2008 Dec 02 8:07 PM
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
2008 Dec 02 8:37 PM
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®
2008 Dec 02 8:11 PM
2008 Dec 02 8:12 PM
2008 Dec 02 8:25 PM
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.
2008 Dec 02 8:37 PM
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®