05-24-2019 12:12 PM - edited 02-03-2024 7:58 PM
Hi;
We like to use SAP_COM_0294 to create pricing conditions (condition type PCP0). Reading through the help
it mentions following Note:
When creating condition records, you must create their validity at the same time by including the A_SlsPrcgCndnRecdValidity entity in your request. Validity can only be created through the A_SlsPrcgCndnRecdValidity entity. Please note that the ConditionValidityEndDate andConditionValidityStartDate properties in the A_SlsPrcgConditionRecord entity are not used for create operations.
We are not sure how the payload needs to look if we want to include multiple entities. Would someone be able to post a json example?
Thanks
Thomas
Figured it out. Clicking on the TryOut option in the API Hub (https://api.sap.com) provided the answer.
Here is an example payload
{
"ConditionTable": "4PB",
"ConditionType": "PCP0",
"ConditionCalculationType": "C",
"ConditionRateValue": "200",
"ConditionRateValueUnit": "AUD",
"ConditionQuantity": "1",
"ConditionQuantityUnit": "HR",
"to_SlsPrcgCndnRecdValidity": {
"results": [
{
"ConditionValidityEndDate": "/Date(1893416400000)/",
"ConditionValidityStartDate": "/Date(1546261200000)/",
"ConditionType": "PCP0",
"EngagementProject": "xxxxxxxxx",
"Material": "T001"
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Born,
This is not working for me. When i remove any mandatory parameter then system is throwing business error like Sold to party is mandatory but when i provide all the parameters then system is throwing internal server error.
I checked all fields many times but not sure about error.
Here is sample payload:
{
"ConditionTable": "902",
"ConditionType": "ZCOU",
"ConditionCalculationType": "B",
"ConditionRateValue": "10",
"ConditionRateValueUnit": "USD",
"PricingScaleType": "A",
"to_SlsPrcgCndnRecdValidity": {
"results": [
{
"ConditionValidityEndDate": "/Date(1893416400000)/",
"ConditionValidityStartDate": "/Date(1546261200000)/",
"ConditionType": "ZCOU",
"SoldToParty": "10000015",
"SalesOrganization": "PC01",
"DistributionChannel": "10",
"YY1_EducationCouponCod_PCH": "18661080003ABC002"
}
]
}
}
Please help as this is urgent.
Error is : 500 Internal Server Error
Regards,
Vikas Madaan
Here are some SAP resources you may review based on your topic "picking,picking,condition record,condition record,create,creating"
License Key Help
In the license key application you either pick an existing system if you want to ... Another possibility is that your hardware record has expired. ... under the terms and conditions of the software license agreement applicable to ... An Installation number is a unique 10-digit number, created by your local SAP contract department.
https://support.sap.com/en/my-support/help-support-applications/license-key-help.html
SAP ERP Human Capital Management Support Package Schedules
In addition, a recording is available. A prerequisite of the ... For a legal change, a CLC Package is created for a country containing all country-specific transports.
SAP ONE Support Launchpad: Log On
SAP ONE Support Launchpad. Log On. E-Mail, ID, or Login Name. Password. Remember me. Log On. Forgot password? Tenant logo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here are some SAP resources you may review based on your topic "picking,picking,condition record,condition record,create,creating"
License Key Help
In the license key application you either pick an existing system if you want to ... Another possibility is that your hardware record has expired. ... under the terms and conditions of the software license agreement applicable to ... An Installation number is a unique 10-digit number, created by your local SAP contract department.
https://support.sap.com/en/my-support/help-support-applications/license-key-help.html
SAP ERP Human Capital Management Support Package Schedules
In addition, a recording is available. A prerequisite of the ... For a legal change, a CLC Package is created for a country containing all country-specific transports.
SAP ONE Support Launchpad: Log On
SAP ONE Support Launchpad. Log On. E-Mail, ID, or Login Name. Password. Remember me. Log On. Forgot password? Tenant logo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.