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

Deactivate BADI's during runtime

Former Member
0 Likes
832

Hello,

Is it possible to deactivate BADI during runtime of a program.

I want BADI to be deactivated only for current session i.e when I call transaction from my program.

Thanking you,

Regards,

satya

Hello,

Is it possible to deactivate BADI during runtime of a program.

I want BADI to be deactivated only for current session i.e when I call transaction from my program.

Thanking you,

Regards,

satya

4 REPLIES 4
Read only

Former Member
0 Likes
755

Hi,

all the Badi implementations tored in table SXC_ATTR with active = 'X"

Before calling the Badi Update the database table SXC_ATTR to space nothing but deactive.

once your statements are execture make statments as active by active = 'X" in table SXC_ATTR .

Prabhudas

Read only

0 Likes
755

Hello Prabhu,

Thanks for that and sorry for late reply.

But I have to execute commit statement in between. If I execute commit statment BADIs will be deactivated for other users who are executing transaction in the same time.

I do not want this to happen. Could you please suggest me any other way is possible.

Once again thankyou very much for quick response.

Regards,

satya

Read only

Former Member
0 Likes
755

I think u can make use of sy-repid .

.

Edited by: vidyasagar. on Aug 27, 2010 11:59 AM

Read only

0 Likes
755

Hello Vidyasagar,

I do not want to touch implementations of BADI. Just through program I need to control this..

Thanks

Regards,

satya