Skip to Content
0
Former Member
Jan 14, 2008 at 05:54 AM

BADI for ME51N purchase requisition

53 Views

Dear All,

i want to insert a check between cost cerntre and plant such that if a costcentre does not belong to a particular plant it should throw an error message

for transaction ME51N (purchase requisition) now i hav found out a BADI ME_PROCESS_REQ_CUST and writtrn a code for the check in PROCESS_ACCOUNT which is working fine when the users presses the ENTER key for the first time but if bymistake he pressses the enter twice it is not throwing thwe error message and is allowing the document to be saved which shouldnt be the case can u plz help me as to wher i should insert the code to prevent it from saving.

methods avallable in ME_PROCESS_REQ_CUST are

INITIALIZE

OPEN

PROCESS_HEADER

PROCESS_ITEM

PROCESS_ACCOUNT

CHECK

POST

CLOSE

FIELDSELECTION_HEADER_REFKEYS

FIELDSELECTION_HEADER

FIELDSELECTION_ITEM_REFKEYS

FIELDSELECTION_ITEM