Application Development and Automation 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: 
Read only

Exit

Kinsbrunner
Active Contributor
0 Likes
540

Hi All!

Can someone tell me step by step how to put a button on a standard transaction (FK02) using an Exit???

Thanks!

Regards

Alejandro.

4 REPLIES 4
Read only

Former Member
0 Likes
511

You need BADI for that.

Read only

former_member404244
Active Contributor
0 Likes
511

Hi Ale,

u go for BADI instead of userexit.

How to find out badi.

goto tcode->SE24,give class name as CL_EXITHANDLER,then choose then in the properties tab click on GET_INSTANCE,and put break point at

CALL METHOD cl_exithandler=>get_class_name_by_interface.

now run ur tcode.U will find the badi's.

Regards,

Nagaraj

Read only

Former Member
0 Likes
511

Hello,

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

Read only

Kinsbrunner
Active Contributor
0 Likes
511

Hi!

I really don't klnow how to put a button, I already have the BADI's name (VENDOR_ADD_DATA) but I don't know how to apply it beacuse I've never used one.

Can somebody tell me how to use it?

I want to insert a button on the standard transaction FK02

Thanks!

Alejandro.