on 02-05-2024 6:34 AM
Hi Gurus,
I need to POST Purchase Orders into S4 system and for that am making use of SAP shipped Purchase Order OData APIs. V2 version(which is now deprecated) works fine and generates a PO but for the payload created using the same data V4 is not working and giving error. Below are the details:
V2 Version uri: /sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV/A_PurchaseOrder
V4 Version uri: /sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder
Error details for V4:
{
"error" : {
"code" : "ME/816",
"message" : "System error (error in method po_post)",
"@SAP__common.ExceptionCategory" : "Provider_Application_Error",
"details" : [
{
"code" : "CX_SY_MESSAGE_IN_PLUGIN_MODE",
"message" : "Message A ME 816 cannot be processed in plugin mode HTTPS",
"@SAP__common.Severity" : "error",
"@SAP__common.numericSeverity" : 4
}
],
Error source details: Class~Method CL_PO_HEADER_HANDLE_MM~PO_POST.
Inside the above Method there is a call made to below FM:
'MEPO_DOC_POST'
which is not generating a PO.
Note: I have constructed the Payload using a valid existing PO only and by running $expand operations. So, I am ruling out the error cause due to invalid format for any of the data fields and as mentioned earlier V2 works fine for the payload created in same manner considering that reference PO.
Helpful pointers much appreciated.
Thanks,
Sijin
User | Count |
---|---|
74 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.