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

How do you hide a custom subscreen based on user input?

Former Member
0 Likes
1,177

So, I've added a custom screen to tcode XD03. it should only be activated (e.g. shown to the user) if sales area data has been given on the initial screen. The issue I'm having is how to implement this functionality for the new screen, as I do not have access to the initial screen's fields within the method 'CHECK_ADD_ON_ACTIVE'.

Does anyone have an idea on how I can proceed with this?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
947

I suppose you didn't use BAdI CUSTOMER_ADD_DATA_CS so you cannot use the method IF_EX_CUSTOMER_ADD_DATA_CS~SUPPRESS_TAXI_TABSTRIPS to hide some tab/subscreen when some data are not provided (or authorization failure) or Am I wrong?

So, I've added a custom screen to tcode XD03. it should only be activated (e.g. shown to the user) if sales area data has been given on the initial screen. The issue I'm having is how to implement this functionality for the new screen, as I do not have access to the initial screen's fields within the method 'CHECK_ADD_ON_ACTIVE'.

Does anyone have an idea on how I can proceed with this?

3 REPLIES 3
Read only

Former Member
0 Likes
947

Try

FM: DYNP_VALUES_READ

Thanks

Read only

RaymondGiuseppi
Active Contributor
0 Likes
948

I suppose you didn't use BAdI CUSTOMER_ADD_DATA_CS so you cannot use the method IF_EX_CUSTOMER_ADD_DATA_CS~SUPPRESS_TAXI_TABSTRIPS to hide some tab/subscreen when some data are not provided (or authorization failure) or Am I wrong?

Read only

0 Likes
947

It seems I overlooked this method.

I am using the BADI CUSTOMER_ADD_DATA_CS, but I seem to have over looked this method within it. I have since put in some code for this, and, while it doesn't hide the button in XD03, it does hide the sub-screen once the button is clicked when the sales area data isn't given on the initial screen.

I believe this will satisfy the requirement for this new screen.

Thanks for your help!