Skip to Content
0
Aug 26, 2019 at 02:46 AM

how to create a PurchaseOrderConfirmation with PDI

144 Views

Hi experts,

We expect to create a Purchase Order Acknowledgment with SDK, I saw the BO released in PSM which's name is PurchaseOrderConfirmation. I wrote down as below the SDK code for creating an Acknowledgment,

import ABSL;

import AP.Purchasing.Global;

var queryPO = PurchaseOrder.QueryByElements;

var paramsPO = queryPO.CreateSelectionParams();

paramsPO.Add(queryPO.ID.content,"I", "EQ", "846");

var resultPO = queryPO.Execute(paramsPO);

var confirm;

if (resultPO.Count() > 0) {

var poInstance = resultPO.GetFirst();

confirm = PurchaseOrderConfirmation.CreateWithReference(poInstance); // the error occurred in this line

}

--------- the system error is as below, I didn't get any useful error message. please help for this issue, or give an example for how to create a PurchaseOrderConfirmation with SDK.

Please try resuming your work. If you still face issues, report an incident. Details ClassName sap.b.controller.event.PostRequest MethodName post Response

500 SAP Internal Server Error ERROR: Type conflict with ASSIGN in program /SRMAP/CL_FND_A_TOUCH=========CP . (termination: RABAX_STATE)