Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

adding new line in me22n programatically

Former Member
0 Kudos

Dear Friends,

I need to add a new line item in the purchase order based on certain conditions from reading the po line items.

i am trying with ME_PROCESS_PO_CUST , but i am not sure to use which method to insert new line item.

can i use bapi(BAPI_CHANGE_PO) inside the check method of ME_PROCESS_PO_CUST to insert new line item.

Thanks,

Shans

4 REPLIES 4

Former Member
0 Kudos

expecting reply ...thanks..

0 Kudos

Yes you can use BAPI_CHANGE_PO for this purpose. Note that the Bapi gets triggered wen ME23N is used online once in PBO and once in PAI. There is a field to distinguish, I don't remeber details. Try some code and come back.

Regards

Clemens

0 Kudos

bapi_po_change cannot be used in me_process_po_cust i found out!!.

can any one give me correct solution please.

0 Kudos

can any one reply to this thread please.