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

Subscreen into a standard screen

Former Member
0 Likes
703

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
Read only

Former Member
0 Likes
667

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.

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.

3 REPLIES 3
Read only

Former Member
0 Likes
667

Hi,

You can giv condition like

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

endif

Thanks

Shrila

Read only

0 Likes
667

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 ....

Read only

Former Member
0 Likes
668

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.