Skip to Content
0
Former Member
Jan 16, 2008 at 08:53 AM

BADI for ME51N purchase requisition

267 Views

Dear All,

i want to use user badi for transaction ME51N as i want to put a check for cost centre with plant such that if it does not belong to a particular plant it should throw an error message

i hav found one BADI

ME_PROCESS_REQ_CUST

wherein in one of the methods(PROCESS_ITEM) i m getting

Plant directly but i have searched all method and i m able to get costcentre(*KOSTL) in methods like

IF_ACCT_CONTAINER_MM~LOOKUP

now if i m trying to use this method its saying either method unknown or private or protected

can anyone plz help me with the syntax of using methods having such format as above i know the syntax to access normal methods like getdata or getitem and so on.

Ronak