I need urgent help on this.My requirement is in ME51n after entering a value in the account assignment category we get into the next screen.Here in the Account Assignment tab when user enters a value starting with 'CP' in the WBS element,an error message will be generated.
For the above requirement I have found the enhancment MEREQ001 where I have the EXIT_SAPLMEREQ_005.Here in the include program I have written the following code
tables:ebkn."Purchase Requisition Account Assignment
data:itab like ebkn occurs 0 with header line.
data:wa_ebkn like ebkn.
select * from ebkn into wa_ebkn where ps_psp_pnr = '00002090'."wbs element
loop at itab.
if itab-ps_psp_pnr eq '00002090'.
message e398(00) with 'please enter capex approv no in recipient'.
Even after activating the project the message is not getting fired.
Please anybody suggest something as the requirement is urgent.
Thanks in advance.