Skip to Content
0

How to create an Inbound delivery using CreateWithReference function.

Jun 08, 2017 at 08:19 PM

138

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Arun Mavinahally Lakshmikantha
Jun 09, 2017 at 05:59 AM
0

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

Show 1 Share
10 |10000 characters needed characters left 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

0