<?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 Selection screen fields  hiding? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571085#M257759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In executable program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 fields in selection screen. But initially I need to display only 1 field, after entering the value for the first field, I need to check that value and if its correct then user should get the left of the 2 fields to enter the input values. After entering the 2 fields&amp;#146; values and click submit button program should execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me what the best way I can do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially I put one field in selection screen and I used CALL SELECTION-SCREEN statement for the 2 fields, but for this after entering the 2 fields values and submit program is not executing the &lt;/P&gt;&lt;P&gt;&amp;#145;START-OF-SELECTION&amp;#146; logic, it&amp;#146;s simply coming out from START-OF-SELECTION line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Oct 2006 13:49:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-04T13:49:27Z</dc:date>
    <item>
      <title>Selection screen fields  hiding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571085#M257759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In executable program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 fields in selection screen. But initially I need to display only 1 field, after entering the value for the first field, I need to check that value and if its correct then user should get the left of the 2 fields to enter the input values. After entering the 2 fields&amp;#146; values and click submit button program should execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me what the best way I can do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially I put one field in selection screen and I used CALL SELECTION-SCREEN statement for the 2 fields, but for this after entering the 2 fields values and submit program is not executing the &lt;/P&gt;&lt;P&gt;&amp;#145;START-OF-SELECTION&amp;#146; logic, it&amp;#146;s simply coming out from START-OF-SELECTION line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 13:49:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571085#M257759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T13:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields  hiding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571086#M257760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ypra_sample56.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETER: p_r1 RADIOBUTTON GROUP rg1 USER-COMMAND vend DEFAULT 'X',&lt;/P&gt;&lt;P&gt;p_r2 RADIOBUTTON GROUP rg1,&lt;/P&gt;&lt;P&gt;p_r3 RADIOBUTTON GROUP rg1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK a1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK a2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;PARAMETER: p_c1 TYPE c AS CHECKBOX,&lt;/P&gt;&lt;P&gt;p_c2 TYPE c AS CHECKBOX,&lt;/P&gt;&lt;P&gt;p_c3 TYPE c AS CHECKBOX,&lt;/P&gt;&lt;P&gt;p_c4 TYPE c AS CHECKBOX,&lt;/P&gt;&lt;P&gt;p_c5 TYPE c AS CHECKBOX.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK a2.&lt;/P&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;INITIALIZATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;PERFORM enable_fields.&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;PERFORM sel_screen_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form sel_screen_output&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Selection screen Output&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sel_screen_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_r1 EQ 'X' OR p_r2 EQ 'X'.&lt;/P&gt;&lt;P&gt;PERFORM enable_fields.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_r3 EQ 'X'.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF screen-name EQ 'P_C4' OR screen-name = 'P_C5'.&lt;/P&gt;&lt;P&gt;screen-active = '1'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM. " sel_screen_output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form enable_fields&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;enable fields in selection screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM enable_fields .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_r1 EQ 'X' OR p_r2 EQ 'X'.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF screen-name EQ 'P_C4' OR screen-name EQ 'P_C5'.&lt;/P&gt;&lt;P&gt;screen-active = '0'.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 13:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571086#M257760</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-04T13:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields  hiding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571087#M257761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At INITIALIZATION event Hide the two fields using LOOP AT SCREEN.And modify the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In AT SELECTION-SCREEN event loop through the screen again and validate the value entered and do the same logic to modify the screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 13:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571087#M257761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T13:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields  hiding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571088#M257762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at the screen and set them off in the AT SELECTION-SCREEN OUTPUT event.  Here is an example program.  If the first field has a value, then the second and third fields will be opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0002.

parameters: p_field1 type c,
            p_field2 type c modif id chk,
            p_field3 type c modif id chk.


at selection-screen output.

  if p_field1 is initial.

    loop at screen.
      if screen-group1 = 'CHK'.
        screen-active    = '0'.
        modify screen.
      endif.
    endloop.

  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 13:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571088#M257762</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-04T13:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields  hiding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571089#M257763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Submit Keyword for passing data in between two executable programs. Refer to its documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 13:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571089#M257763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T13:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields  hiding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571090#M257764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kavitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u need to reprocess the screen. how do you want achive it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you fill the first field, do you press the enter button or what?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;enzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 13:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571090#M257764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T13:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields  hiding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571091#M257765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below logic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report = Zreport.&lt;/P&gt;&lt;P&gt;1.Define the parameters as p1, p2, p3 and pexecute.&lt;/P&gt;&lt;P&gt;  where pexecute as no-display default to 0.&lt;/P&gt;&lt;P&gt;2.In the INITIALIZATION even make the parameters p2 and p3 invisible.&lt;/P&gt;&lt;P&gt;3.At selection-screen event..validate p1 and if correct, enable p2 and p3.&lt;/P&gt;&lt;P&gt;4.In start of selection event use the below code.&lt;/P&gt;&lt;P&gt;  if pexecute = 0.&lt;/P&gt;&lt;P&gt;     submit zreport with  (submit the same abap_)&lt;/P&gt;&lt;P&gt;       p1 = p1 &lt;/P&gt;&lt;P&gt;       p2 = p2&lt;/P&gt;&lt;P&gt;       p3 = p3&lt;/P&gt;&lt;P&gt;       pexecute = 1.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;   --&amp;gt; your processing logic.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 14:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571091#M257765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T14:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields  hiding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571092#M257766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all thanks for ur answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got answers for hiding and enabling 2 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I dint get, when I click on second submit buttoon how do I can execute the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after entering first field values click Buttion1 then it will enable 2 fields and after entering 2 field values when i Click button2 then its comming out from START-OF-SELECTION.  program is not executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please some one can let me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 16:00:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571092#M257766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T16:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields  hiding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571093#M257767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 16:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571093#M257767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T16:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields  hiding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571094#M257768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prakash,&lt;/P&gt;&lt;P&gt;can u send email to my id - n.kavitha.n@gmail.com &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 18:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571094#M257768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T18:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields  hiding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571095#M257769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kavitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution to your second problem:&lt;/P&gt;&lt;P&gt;Just change the user-command code for the Submit pushbutton as 'ONLI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;When you click the second submit button, you will not be able to trigger the start-of-selection event if the id is not 'ONLI'. Thats' the reason, after you click the submit button AT SELECTION-SCREEN OUTPUT event will be triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can trigger START-OF-SELECTION Event only by using the F8 key or the execute button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just change the user-command code for the Submit pushbutton as 'ONLI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Navneet Saraogi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 19:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields-hiding/m-p/1571095#M257769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T19:18:37Z</dc:date>
    </item>
  </channel>
</rss>

