Skip to Content
0
Jan 11, 2012 at 05:40 PM

Update fields from custom tab in selected lines in ME22N

251 Views

Hello all,

I have implemented BAdis ME_PROCESS_PO_CUST & ME_GUI_PO_CUST and created a custom tab at the header level in ME21N/ME22N. I have fields such as Delivery Date and Ex Factory Date in my tab.

We are able to put data in these fields and have that data populate their respective fields in the Purchase Order.

Our users would like to be able to run ME22N and select certain line items and have only those items changed with the data from the custom fields.

So, my question is how do I handle line selection in the context of these BAdIs? Is there a way to know which lines have been selected and then only change the data in those items?

I have looked in Class CL_PO_ITEM_HANDLE_MM for an attribute or method that might help but I haven't found anything as of yet.

I have found that the field MEPO1211-TCSELFLAG is set when a line is selected in ME22N. However, I haven't found a way to work with it. It doesn't get passed to any of the methods in the BAdIs, as far as I know.

Thanks for any help.

Kind Regards,

Chris

Edited by: Chris Mowl on Jan 11, 2012 4:27 PM