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: 

Selection Screen as subscreen

Former Member
0 Kudos

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

naimesh_patel
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.

naimesh_patel
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.