|
There's a Purchase Requisition (PR) that generates a Purchase Order (PO) after fully approved which become stuck in "Ordering" status after a change adding items which is sent by PurchaseOrderChangeAsyncResponsePullRequest document failing with CIG-PLT-04641 error in the Managed Gateway for Spend&Network portal.
This issue can also be found by looking into the Validator.dat file, which in this scenario contains: The content of element 'urn:item' is not complete. One of '{"urn:Ariba:Buyer:vsap":NumberInCollection, "urn:Ariba:Buyer:vsap":ServiceMapKey, "urn:Ariba:Buyer:vsap":custom}' is expected.
Since the ERP and P2P have different representations for the items in a particular PO, we need to correctly correlate that whenever we do a change, this is why the PurchaseOrderChangeAsyncresponsePullRequest is created. Managed Gateway for Spend&Network transaction tracker have a built-in syntax validator which checks for each item if they are accordingly filled up. In this case, the error CIG-PLT-04641 is triggered because the ERP code fails to add the <AribaItemID> field accordingly.
In order to solve this issue for new documents, you need to apply SAP Note 3050686 - SAP ERP or SAP S/4HANA was creating duplicate line items when a new line item in change purchase orders (POs) was retriggered from SAP Integration Suite, managed gateway for spend management and SAP Business Network.
In order to correct the older ones, you can cancel the affected orders, creating new ones in replacement after applying the SAP Note, or you can follow the steps below for the affected documents individually:
1. Opening the reference table:
Now you are facing the ARBCIG_POHISTORY table for the affected PO.
2. Correcting the payload:
Correct: | Wrong (Missing the <AribaItemID> to correlate): |
<Item> | <Item> <SAPItemID>0010</SAPItemID> (...) </Item> |
3. After correcting and keep sure that each item have its fields correctly correlated, save this manually edited document as a ".xml" file.
3. Posting the corrected payload to CIG:
Now you had successfully sent an edited Payload through Managed Gateway for Spend&Network. You can see it in the Transaction Tracker, and if everything was done correctly, now the transaction is completed.
Into the SE16 transaction, for the ARBCIG_POHISTORY table, the information there stands for:
The EBELN field represents the number of the Purchase Order in the ERP.
The EBELP field represents the item number in the ERP.
The ITEMONREQ field represents the AribaItemId is the item number in P2P.
The REQ_ID field represents the PR which this document is originated from.
The ERPORDERID field represents the Document ID number in Managed Gateway for Spend&Network transaction tracker.
SAP Integration Suite Managed Gateway > Managed Gateway for Business Network SCC > Managed Gateway for Buyer Business Network SCC