Skip to Content
avatar image
Former Member

Selection Screen as subscreen

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Sep 02, 2008 at 01:54 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 01:53 PM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Sep 02, 2008 at 01:55 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 02:03 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded