<?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: select option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4147987#M991839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the event START-OF-SELECTION write the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;START-OF-SELECTION.

if s_matnr is initial.
  
     Select &amp;lt;fieldnames&amp;gt;
        from &amp;lt;DB Tab Name&amp;gt;
        into  &amp;lt; Int Tab Name&amp;gt;.

elseif s_werks is initial.
       Select &amp;lt;fieldnames&amp;gt;
        from &amp;lt;DB Tab Name&amp;gt;
        into  &amp;lt; Int Tab Name&amp;gt;.
else.
     Select &amp;lt;fieldnames&amp;gt;
        from &amp;lt;DB Tab Name&amp;gt;
        into  &amp;lt; Int Tab Name&amp;gt;.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2008 12:05:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-23T12:05:17Z</dc:date>
    <item>
      <title>select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4147984#M991836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN  BEGIN OF BLOCK b2 WITH FRAME TITLE text-s03.&lt;/P&gt;&lt;P&gt;PARAMETERS:       p_ldest TYPE ssfcompop-tddest DEFAULT 'LIME'.&lt;/P&gt;&lt;P&gt;PARAMETERS:       p_print TYPE rldru-druck  DEFAULT ' '.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN  BEGIN OF BLOCK b3 WITH FRAME TITLE text-s04.&lt;/P&gt;&lt;P&gt;PARAMETERS:       p_tddel TYPE ssfcompop-tddelete DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;PARAMETERS:       p_tdimm TYPE ssfcompop-tdimmed DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;PARAMETERS:       p_datas TYPE ssfcompop-tddataset DEFAULT 'IMLBEL'.&lt;/P&gt;&lt;P&gt;PARAMETERS:       p_copis TYPE ssfcompop-tdcopies DEFAULT '1'.&lt;/P&gt;&lt;P&gt;PARAMETERS:       p_autor TYPE ssfcompop-tdautority.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b3.&lt;/P&gt;&lt;P&gt;data:p_lgpbe type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;IF s_lgpbe[] is initial.&lt;/P&gt;&lt;P&gt;select single lgpbe&lt;/P&gt;&lt;P&gt;from mard&lt;/P&gt;&lt;P&gt;into s_lgpbe&lt;/P&gt;&lt;P&gt;where werks in s_werks and&lt;/P&gt;&lt;P&gt;      lgort in s_lgort and&lt;/P&gt;&lt;P&gt;      matnr in s_matnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is my code in program.&lt;/P&gt;&lt;P&gt;My question when user will not enter any select option let say storage bin in selection screen.&lt;/P&gt;&lt;P&gt;Then i written above logic but is is not wrking.In this case i want select the data first for storage bin and then do the selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 11:57:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4147984#M991836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T11:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4147985#M991837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use an internal table for the lgpbe donot use the   &lt;STRONG&gt;into s_lgpbe&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF s_lgpbe[] is initial.&lt;/P&gt;&lt;P&gt;select single lgpbe&lt;/P&gt;&lt;P&gt;from mard&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;into s_lgpbe&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where werks in s_werks and&lt;/P&gt;&lt;P&gt;lgort in s_lgort and&lt;/P&gt;&lt;P&gt;matnr in s_matnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 12:01:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4147985#M991837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T12:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4147986#M991838</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;Put the Select query in the ELSE part of IF statemetn.&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;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Chandralekha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 12:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4147986#M991838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T12:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4147987#M991839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the event START-OF-SELECTION write the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;START-OF-SELECTION.

if s_matnr is initial.
  
     Select &amp;lt;fieldnames&amp;gt;
        from &amp;lt;DB Tab Name&amp;gt;
        into  &amp;lt; Int Tab Name&amp;gt;.

elseif s_werks is initial.
       Select &amp;lt;fieldnames&amp;gt;
        from &amp;lt;DB Tab Name&amp;gt;
        into  &amp;lt; Int Tab Name&amp;gt;.
else.
     Select &amp;lt;fieldnames&amp;gt;
        from &amp;lt;DB Tab Name&amp;gt;
        into  &amp;lt; Int Tab Name&amp;gt;.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 12:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4147987#M991839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T12:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4147988#M991840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select a value into a variable and then populate select-option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF s_lgpbe[] is initial.&lt;/P&gt;&lt;P&gt;select single lgpbe&lt;/P&gt;&lt;P&gt;from mard&lt;/P&gt;&lt;P&gt;into v_lgpbe&lt;/P&gt;&lt;P&gt;where werks in s_werks and&lt;/P&gt;&lt;P&gt;lgort in s_lgort and&lt;/P&gt;&lt;P&gt;matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_lgpbe-sign  = 'I'.&lt;/P&gt;&lt;P&gt;s_lgpbe-option =  'EQ'.&lt;/P&gt;&lt;P&gt;s_lgpbe-low = v_lgpbe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append s_lgpbe.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 12:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4147988#M991840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T12:07:48Z</dc:date>
    </item>
  </channel>
</rss>

