Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

Retrieving Purchase Order ID

$
0
0

Hi experts,

 

My requirement is to retrieve Purchase Order ID and assign it to an extension field of Item node.

Purchase Order 123

Purchase Order ID + Item ID

Item IDProduct
123-11P1
123-22P2

 

I wrote this in PurchaseOrder-Item-AfterModify and in BeforeSave.

 

this.N_PONumber_POItemList = this.ToParent.ID.content+"-"+this.ID;

 

But PurchaseOrder ID is always like "##1" when Save or Order button is clicked.

 

Also I tried in PurchaseOrder-BeforeSave.

foreach(var item in this.Item){

item.N_PONumber_POItemList = this.ID.content+"-"+item.ID;

}

 

Same result.

 

It seems my codes have been processed before Purchase Order ID is issued.

 

1) How can I handle that?

2) As another option, is it possible to concatenate Purchase Order ID and Item ID in the BI report?

 

Best Regards,

Fred


Viewing all articles
Browse latest Browse all 1333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>