<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: selection screen output (loop at screen) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726500#M896921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your question is a little confusing... your code should be structured something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters:
  p_parm1     as checkbox.
select-options:
  s_bukrs     for t001-bukrs.

at selection-screen output.
" this occurs before the screen display and is where you adjust the layout eg hide or lock fields
  perform at_selection_screen_output.

at selection-screen.
" this occurs after the user hits enter or executes the report - put validations here
  perform at_selection_screen.

start-of-selection.
" Now we can use the parameters to get info from database into internal tables etc
  perform get_data.

end-of-selection.
" Data have been collected so show it to the user...
  perform output_data.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2008 12:13:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-07T12:13:23Z</dc:date>
    <item>
      <title>selection screen output (loop at screen)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726499#M896920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends&lt;/P&gt;&lt;P&gt;   iam working on events in reports.&lt;/P&gt;&lt;P&gt;   with at selection-screen output iam doing screen validations(loop at screen).&lt;/P&gt;&lt;P&gt;  my requirement is  : i have checkboxes ,. if c_or = 'x'  i want to dispaly  2 select-options for input .&lt;/P&gt;&lt;P&gt;  after that start-of-selection and fieldcats are there.&lt;/P&gt;&lt;P&gt; but my problem was iam not getting output its only diaplaying  empty list.&lt;/P&gt;&lt;P&gt;i  had done debugging also ( on at selection-screen output) but the cursor comes out and dipslyaing empty list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody chosee the way ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 11:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726499#M896920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T11:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen output (loop at screen)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726500#M896921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your question is a little confusing... your code should be structured something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters:
  p_parm1     as checkbox.
select-options:
  s_bukrs     for t001-bukrs.

at selection-screen output.
" this occurs before the screen display and is where you adjust the layout eg hide or lock fields
  perform at_selection_screen_output.

at selection-screen.
" this occurs after the user hits enter or executes the report - put validations here
  perform at_selection_screen.

start-of-selection.
" Now we can use the parameters to get info from database into internal tables etc
  perform get_data.

end-of-selection.
" Data have been collected so show it to the user...
  perform output_data.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 12:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726500#M896921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T12:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen output (loop at screen)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726501#M896922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for input u r providing.&lt;/P&gt;&lt;P&gt;If u want 2 select-options to display u must group them using MODIF ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 12:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726501#M896922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T12:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen output (loop at screen)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726502#M896923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suposse you have two fields on SELECTION-SCREEN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS :

s_field1 FOR mara-matnr MODIF ID sg1,
s_field2 FOR mara-matnr MODIF ID sg2,

s_field3 FOR vbak-vbeln.

PARAMETER : p_test AS CHECKBOX DEFAULT 'X' USER-COMMAND uc1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note: it's VERY important to have USER COMMAND on the checkbox, because it triggers the whole event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To hide or diplay a field with a checkbox, you must do LOOP AT SCREEN, on AT SELECTION-SCREEN OUTPUT event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
*** If checkbox is marked, shows fields:
  IF p_test IS NOT INITIAL.
    IF screen-group1     = 'SG1' OR
       screen-group1     = 'SG2'.
       screen-active     = 1.
    ENDIF.

  ELSE.
*** If checkbox is NOT marked, hides fields:
    IF screen-group1     = 'SG1' OR
       screen-group1     = 'SG2'.
       screen-active     = 0.
    ENDIF.
  ENDIF.

*** Important!!! Makes screen changes visible:
MODIFY SCREEN.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brian Gonsales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 12:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726502#M896923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T12:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen output (loop at screen)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726503#M896924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi satya , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the block . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen &lt;/P&gt;&lt;P&gt;  make screen active = '1' in the while u loop the screen for ur given condition . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also u cannot debug the selection screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Santosh .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 17:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726503#M896924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T17:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen output (loop at screen)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726504#M896925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;PARAMETERS : p_dl AS CHECKBOX USER-COMMAND check ,&lt;/P&gt;&lt;P&gt;                        p_file LIKE rlgrap-filename,&lt;/P&gt;&lt;P&gt;                        p_file1 like rlgrap-filename  .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     Validating the selection screen Parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                  at selection-screen output&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-name = 'P_FILE' or Screen-name = 'P_FILE1'.&lt;/P&gt;&lt;P&gt;      IF p_dl = 'X'.&lt;/P&gt;&lt;P&gt;        screen-input = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        screen-input = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write : p_file,p_file1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardss,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 04:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726504#M896925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T04:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen output (loop at screen)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726505#M896926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Dec 2010 10:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-output-loop-at-screen/m-p/3726505#M896926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-24T10:16:59Z</dc:date>
    </item>
  </channel>
</rss>

