Application Development 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: 

Subscreen into a standard screen

Former Member
0 Kudos

Hello,

I am using a user exit to add a subscreen into a standard screen and all is ok with one exception:

the main screen is used by several T-codes and I would like subscreen area to be available/visible only for some of them.

How could it be done?

I am using screen painter to build the subscreen.

Thank you.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

In the exit u must be calling the subscreen that u have created,e.g., CALL SCREEN <number>.

Before this statement check for the TCODE, e.g.,

IF sy-tcode = '<tcode>'.

CALL SCREEN <number>.

<other lines of code, if any>

ENDIF.

3 REPLIES 3

Former Member
0 Kudos

Hi,

You can giv condition like

If Sy-Tcode = ' '   "T-code name

endif

Thanks

Shrila

0 Kudos

Where should I write this? Since I am using screen painter, when PBO modules are accessed the graphical elements will be displayed on screen already ....

Former Member
0 Kudos

In the exit u must be calling the subscreen that u have created,e.g., CALL SCREEN <number>.

Before this statement check for the TCODE, e.g.,

IF sy-tcode = '<tcode>'.

CALL SCREEN <number>.

<other lines of code, if any>

ENDIF.