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.