Skip to Content
avatar image
Former Member

PO change, me22 material field disabled

Dear experts,   

   I have a situation where in I need to change the material from a PO, thru program based on several conditions. When tried thru BAPI_PO_CHANGE, the system is giving me errors saying Instance xxxxxxxx of object type purchase order could not be changed Xxxxxxxx ---(Po number).

So, I tried writing a BDC for ME22N, this works good when the mode is ‘A’, but fails when the mode is ‘N’. Looks like the item table on the screen is closed when running in background. So, in order to avoid this I wanted to write BDC on ME22. But for some reason, ME22 material field is disabled (or just visible, whereas on me22n it is editable).  Can you please help me on how to either enable this field in me22 or if there is any other way to edit this field(fn. Module/ BAPI).

Thanks for your support.

Regards

-Amit

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    May 06, 2012 at 12:58 PM

    BAPI_PO_CHANGE works.

    Add comment
    10|10000 characters needed characters exceeded