Application Development and Automation 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: 
Read only

adding new line in me22n programatically

Former Member
0 Likes
872

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
Read only

Former Member
0 Likes
703

expecting reply ...thanks..

Read only

0 Likes
703

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

Read only

0 Likes
703

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

can any one give me correct solution please.

Read only

0 Likes
703

can any one reply to this thread please.