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

Validating profitability segment fields in ME21N

Former Member
0 Likes
730

Hello,

Has anyone ever used a user exit or badi to validate profitability segment fields on a line in ME21N? I have looked at the ME_PROCESS_PO_CUST badi and a few user exits (MM06E005 - EXIT_SAPMM06E_012 for example) and I can't see anywhere this can be done. The fields don't seem to be in the standard account assignment structures and tables used in the BADI or user exit. An example a field that I want to validate on save of the purchase order is Customer CE0BPUKKNDNR.

Thanks

Hello,

Has anyone ever used a user exit or badi to validate profitability segment fields on a line in ME21N? I have looked at the ME_PROCESS_PO_CUST badi and a few user exits (MM06E005 - EXIT_SAPMM06E_012 for example) and I can't see anywhere this can be done. The fields don't seem to be in the standard account assignment structures and tables used in the BADI or user exit. An example a field that I want to validate on save of the purchase order is Customer CE0BPUKKNDNR.

Thanks

1 REPLY 1
Read only

Former Member
0 Likes
479

I managed to get it to work by reading the call stack from the BADI.