Application Development 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: 

BADI/EXIT in Purchase Order

former_member764673
Participant
0 Kudos

Hi ALL,

When i create a PO , payment terms displays automatically because In vendor master payment terms is maintained but in some case based on the material/vendor combination i have to select a different payment terms which i have maintained in a Z table. What i should know is, Is there any BADI/Exit which will be triggered

1) when a line item is entered where i should be able to change the payments terms value (OR)

2) when i check the Purchase order

3) When i save the purchase order.

Note : Both Header & Line item value should be available in the EXIT/BADI.

Thanks & Regards,

Rajanidhi Rajasekeran.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Follow the below steps to find out what all BADI's are called when you press any button in any transaction.

1) Goto se24 (Display class cl_exithandler)

2) Double click on the method GET_INSTANCE.

3) Put a break point at Line no.25 (CASE sy-subrc).

Now

4) Execute SAP standard transaction

5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.

6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.

7) This way you will find all the BADIs called on click of any button in any transaction.

Regs,

Venkat Ramanan

2 REPLIES 2

Former Member
0 Kudos

Hi,

Check the following exits.

AMPL0001

LMEDR001

LMELA002

LMELA010

LMEQR001

LMEXF001

LWSUS001

M06B0001

M06B0002

M06B0003

M06B0004

M06B0005

M06E0004

M06E0005

ME590001

MEETA001

MEFLD004

MELAB001

MEQUERY1

MEVME001

MM06E001

MM06E003

MM06E004

MM06E005

MM06E007

MM06E008

MM06E009

MM06E010

MMAL0001

MMAL0002

MMAL0003

MMAL0004

MMDA0001

MMFAB001

MRFLB001

Regards,

Shashank

Former Member
0 Kudos

Hi,

Follow the below steps to find out what all BADI's are called when you press any button in any transaction.

1) Goto se24 (Display class cl_exithandler)

2) Double click on the method GET_INSTANCE.

3) Put a break point at Line no.25 (CASE sy-subrc).

Now

4) Execute SAP standard transaction

5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.

6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.

7) This way you will find all the BADIs called on click of any button in any transaction.

Regs,

Venkat Ramanan