10-04-2017 5:32 AM
I have requirement in my project where I have to validate the below field : In the Purchase Order (I.E ME21N Tcode), In the Account Assignment Tab at Item level,when user choose GL Account(sakto) in the G/L account field from the valid set,then we need to make sure that Order Number field(Aufnr) is mandatory . I am new to user exits and I don't know from where should I begin to complete this requirement..Any suggestions will be helpful..Thanks in advance.
10-04-2017 6:37 AM
Don't use any old customer exit, better use available BAdI
Perform also some search in forum, there are already many samples on this subject.
But talk first with functionals, they are asking you to check their Customizing and master data, the fact that the field status of an account force the order to be mandatory is not part of the purchase order creation, this is not the good point of control, or is the actual requirement to prevent using those account in PO, there are other solutions like FI or CO validation that can be implemented thru Customizing without any Abap. (e.g. OKC7, if account in set and PO transaction/BAPI, then order must not be initial)
10-04-2017 10:56 AM