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

BADI

Former Member
0 Likes
526

How to write a call method in SE38 ....... exit handler method is there how we will call that method ...........................

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
510
3 REPLIES 3
Read only

Former Member
0 Likes
510

Hi,

For the new BAdi from ECC 6.0 onwards you call the BAdi implementation methods as follows:

GET BADI <badi_definition>.

CALL BADI <badi_definition>-<method_name>

EXPORTING .....

IMPORTING .....

Also, the other method is:

Using CL_EXITHANDLER

CALL METHOD cl_exithandler=>get_instance

EXPORTING

exit_name = <BAdi Name>

null_instance_accepted = 'X'

IMPORTING

act_imp_existing = <flag>

CHANGING

instance = <Implementation_instance>

EXCEPTIONS

OTHERS = 0.

CALL METHOD <Implementation_instance>-<method_name>

......

Remember the <Implementation_instance> should reference (TYPE REF TO) the BAdi Class definition.

Cheers,

Aditya

Read only

Former Member
0 Likes
511