Skip to Content

How to create an Inbound delivery using CreateWithReference function.

Dear everyone,

I tried to create an Inbound delivery using CreateWithReference function (With Reference to purchase order).

I have tried the below code. It is not working. Please correct me, to resolve this issue.

var poQry = PurchaseOrder.QueryByElements;
var paraPO = poQry.CreateSelectionParams();

paraPO.Add(poQry.ID.content, "I", "EQ" , "190");
var resultPO = poQry.Execute(paraPO);
if(resultPO.Count() > 0)
{
	var POIns = resultPO.GetFirst();
	var createID = InboundDelivery.CreateWithReference(POIns, "ECPO", true, "test");
	if (createID.IsSet()) //Value not set
	{
		this.ID = createID.ID.content;
	}
}

Thanks in advance

Sankaran A

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 09, 2017 at 05:59 AM

    Dear Sankaran,

    You can refer to the below blog.

    The blog describes about creation of TPOP IDN and Standard IDN. You can use the IDN type CRD to create a customer return notification as well. Please let me know if this helps.

    Create Third-Party and Standard Inbound Delivery Notification via Webservice

    https://blogs.sap.com/2017/04/10/create-third-party-and-standard-inbound-delivery-notification-via-webservice/

    Please check if the above blog is helpful.

    Best Regards,

    Arun

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Arun,

      your answer is useful for my scenario. Thanks a lot.

      But, Can you help me to achieve this same via asbl script? Because I can see that there is a standard action is available in the Inbound Delivery Notification Business Object. How to use that?

      Regards

      Sankaran