cancel
Showing results for 
Search instead for 
Did you mean: 

How to create an Inbound delivery using CreateWithReference function.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

arunml
Advisor
Advisor
0 Kudos

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-w...

Please check if the above blog is helpful.

Best Regards,

Arun

Former Member
0 Kudos

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