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

User Exit Activate/Deactivate

Former Member
0 Likes
648

I have a user exit that is activated. When it is activated it shows an additional tab on an SAP process Order screen for the customer to use. However, I would only like the tab to show for a specific certain plant (WERKS) Process Orders only.

Is it possible for code to de-activate a User Exit in an IF statement?

Else, I guess I would need to figure out how to underintensify this tab for all plants, except for the one it was created for.

Thank-You

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
596

May be you can deactivate the fields in the tab by using the following in PBO of the screen


LOOP AT screen.
if plant eq 'XXXX'  " Plant value
IF screen-name EQ 'XXXXX'. " screen field name
screen-active = '0'.
MODIFY screen.
endif.
endif.
ENDLOOP.

a®

4 REPLIES 4
Read only

Former Member
0 Likes
596

nope, either it is active fro all cases or none.

Read only

0 Likes
596

So there is now way to underintensify it in some cases?

Read only

0 Likes
596

How did you put that tab? if you used a BADI, then maybe you can try putting the if code where you are activating the tab, but the ones I worked on , dont have enough import paramters there to check the fileds ( plant ) you want to check.

Read only

former_member194669
Active Contributor
0 Likes
597

May be you can deactivate the fields in the tab by using the following in PBO of the screen


LOOP AT screen.
if plant eq 'XXXX'  " Plant value
IF screen-name EQ 'XXXXX'. " screen field name
screen-active = '0'.
MODIFY screen.
endif.
endif.
ENDLOOP.

a®