Symptom
Consignment purchasing info record need to be created after creating a standard purchasing info record via API POST API_INFORECORD_PROCESS_SRV.
Environment
SAP S/4HANA Cloud Public Edition
Resolution
Option and sample payload below can be referred.
POST /sap/opu/odata/sap/API_INFORECORD_PROCESS_SRV/A_PurchasingInfoRecord
{
"Supplier" : "xxxxx",
"Material" : "xxxx",
"to_PurgInfoRecdOrgPlantData" : {
"results" : [
{
"PurchasingInfoRecordCategory" : "2",
"PurchasingOrganization" : "xxx",
"Plant" : "",
"PurchasingGroup" : "xxx",
"NetPriceQuantityUnit" : "xx EUR / 1 PC",
"StandardPurchaseOrderQuantity" : "1",
"MaterialPlannedDeliveryDurn" : "1",
"TaxCode" : "",
"to_PurInfoRecdPrcgCndnValidity" : {
"results" : [
{
"ConditionValidityEndDate" : "2024-12-31T00:00:00",
"ConditionValidityStartDate" : "2024-01-01T00:00:00",
"ConditionType" : "PPR0",
"PurchasingOrganization" : "xxxx",
"PurchasingInfoRecordCategory" : "0",
"Supplier" : "xxxxxx",
"Material" : "xxx",
"Plant" : "",
"to_PurInfoRecdPrcgCndn" : {
"ConditionSequentialNumber" : "1",
"ConditionType" : "PPR0",
"ConditionValidityEndDate" : "2024-12-31T00:00:00",
"ConditionValidityStartDate" : "2024-01-01T00:00:00",
"ConditionRateValue" : "xxxx",
"ConditionRateValueUnit" : "EUR",
"ConditionQuantity" : "1",
"ConditionQuantityUnit" : "PC"
}
}
]
}
}
]
}
}
Keywords
API, API_INFORECORD_PROCESS_SRV, Info record, EINA, A_PurchasingInfoRecord , KBA , MM-PUR-VM-REC-2CL , Info Record (Public Cloud) , MM-PUR-VM-REC , Info Record , How To
SAP Knowledge Base Article - Public