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

Selection Screen as subscreen

Former Member
0 Likes
1,624

Please help me with the following issue:

I have Selection Screen as subscreen (subscreen no 1010) and I'm calling this in my screen 100. My question is how do I modify the subscreen elements (which is selection screen)?

when I'm using LOOP AT SCREEN and MODIFY SCREEN it is only affecting my main screen 100.

Appriciate your help in advance.

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
1,178

In Your program, use the Event AT SELECTION-SCREEN OUTPUT to be able to use the LOOP AT SCREEN ... MODIFY SCREEN syntax.

Regards,

Naimesh Patel

5 REPLIES 5
Read only

Former Member
0 Likes
1,178

you need to write the code in PBO or PAI os subscreen...

Read only

0 Likes
1,178

Ramesh,

it will not allow me to write in subscreen, as it is not possible to modify the Selection screen at the SE51 level, it is controlled by Report level.

Read only

naimesh_patel
Active Contributor
0 Likes
1,179

In Your program, use the Event AT SELECTION-SCREEN OUTPUT to be able to use the LOOP AT SCREEN ... MODIFY SCREEN syntax.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
1,178

Hello,

You need to do the treatments in the event AT SELECTION-SCREEN.

http://help.sap.com/saphelp_nw04s/helpdata/en/79/34a234d9b511d1950e0000e8353423/frameset.htm


PARAMETERS: test1(10) TYPE c MODIF ID sc1,
            test2(10) TYPE c MODIF ID sc2,
            test3(10) TYPE c MODIF ID sc1,
            test4(10) TYPE c MODIF ID sc2.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-group1 = 'SC1'.
      screen-intensified = '1'.
      MODIFY SCREEN.
      CONTINUE.
    ENDIF.
    IF screen-group1 = 'SC2'.
      screen-intensified = '0'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Regards.

Read only

Former Member
0 Likes
1,178

Naimesh and David,

Thanks for your answer, I could solve it. actually i had written the code AT SELECTION-SCREEN OUTPUT. without LOOP AT SCREEN and MODIFY SCREEN. after adding that piece of code it solved my problem.

thanks a lot for your help.