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: 

FB50 and BADI

Wil_Wilstroth
Active Participant
0 Kudos

hi all,

Does anyone know what is the BADI i can use for FB50.

I am creating document in FB50. I need a BADI that can automatically update the Business Area.

Does anyone have any idea which BADI to use?

Thanks

William Wilstroth

William Wilstroth
1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

0 Kudos

> 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

I tried your steps as described above. But the program won't go to the breakpoint at line 25...

is there any step above that is missing?

Thanks

William Wilstroth

William Wilstroth

0 Kudos

Hi William

Just as I said before u have to use substitution no BADI

Max

Former Member
0 Kudos

Hi

Use the substitutions to do that (trx OBBH)

Max

Former Member
0 Kudos

make use of BTE ( Business Transaction Events )

for info : tcode FFBF.

Regards

Prabhu

Wil_Wilstroth
Active Participant
0 Kudos

- I am closing this long time ago issue -

Thanks' for everyone's support...

William Wilstroth