<?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-OPTIONS error in output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919019#M1691390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why u required my mail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Aug 2012 14:03:46 GMT</pubDate>
    <dc:creator>gouravkumar64</dc:creator>
    <dc:date>2012-08-04T14:03:46Z</dc:date>
    <item>
      <title>SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919000#M1691371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having an issue with the output for my code.&lt;/P&gt;&lt;P&gt;what i want to see as an output the&amp;nbsp; D&lt;SPAN class="L0S33"&gt;elivery Quantity and &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;Order Quantity (lips-lfimg and vbap-kwmeng) after the user selects the Reference document (lips-vgbel)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;when i run the code i get empty output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/126377" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/126378" width="450" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;please can you tell me what is the mistake i am doing in my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===================================================================================&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;REPORT&amp;nbsp; &lt;/SPAN&gt;ZDEMO_SELECTION_SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA: &lt;/SPAN&gt;VGBEL &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;LIPS&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;VGBEL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;wa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KWMENG &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;VBAP&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;kwmeng,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LFIMG &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;LIPS&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;LFIMG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;wa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; itab &lt;SPAN class="L0S52"&gt;LIKE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SORTED &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;wa &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NON-UNIQUE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &lt;/SPAN&gt;LFIMG KWMENG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;SELECT-OPTIONS: &lt;/SPAN&gt;S_VGBEL &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;VGBEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;f&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;LFIMG&amp;nbsp; q&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;kwmeng&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;CORRESPONDING &lt;SPAN class="L0S52"&gt;FIELDS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;itab&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;VBAP &lt;SPAN class="L0S52"&gt;AS &lt;/SPAN&gt;q &lt;SPAN class="L0S52"&gt;LEFT &lt;/SPAN&gt;OUTER &lt;SPAN class="L0S52"&gt;JOIN &lt;/SPAN&gt;LIPS &lt;SPAN class="L0S52"&gt;AS &lt;/SPAN&gt;f &lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;f&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;vgbel &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;q&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;vbeln &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;f&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;VGPOS &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;q&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;POSNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE: &lt;/SPAN&gt;/10 &lt;SPAN class="L0S33"&gt;'Delivery Quantity', &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;40 &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Order Quantity'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OUTPUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;itab &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;wa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE: &lt;/SPAN&gt;/10 wa&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;LFIMG, &lt;SPAN class="L0S32"&gt;40 &lt;/SPAN&gt;wa&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;KWMENG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDLOOP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;========================================================================================&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 08:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919000#M1691371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T08:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919001#M1691372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi madam,&lt;/P&gt;&lt;P&gt;can u comment this line &amp;amp; write like this?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*AT SELECTION-SCREEN OUTPUT.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;itab &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;wa&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/10 wa&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;LFIMG&lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;40 &lt;/SPAN&gt;wa&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;KWMENG&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;let me know output is coming or not.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;gourav.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 08:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919001#M1691372</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2012-08-04T08:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919002#M1691373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;1.check the value are present or not in SE11 ans also check it is partialy active or fully active&lt;/P&gt;&lt;P&gt;2. Through debugging you can retrieve the error are transferring of values through F5 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 08:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919002#M1691373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T08:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919003#M1691374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;gourav&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I comment the &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;AT SELECTION-SCREEN OUTPUT as you recommended. i am getting now an output but the values are wrong. now it is giving me the delivery quantity, and the order quantity the same value as you can see in the following image:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/126379" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;how can i get the correct output?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 08:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919003#M1691374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T08:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919004#M1691375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the issue i am having is that the output is not connected to the selction input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i need as anoutput is only the &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;D&lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;elivery Quantity and &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Order Quantity that corresponds to the sales document&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;~Amal&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 08:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919004#M1691375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T08:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919005#M1691376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes How Can you get output connected to your selection input. As you have not passed S_VGBEL to anywhere. Have you consider checking that? Kindly Debug your select query you will get your answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 08:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919005#M1691376</guid>
      <dc:creator>dhruv_mehta</dc:creator>
      <dc:date>2012-08-04T08:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919006#M1691377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mehta;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check the debugger, but can you tell me how can i connect the selection input to the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 08:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919006#M1691377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T08:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919007#M1691378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;SPAN class="L0S52"&gt; &lt;/SPAN&gt;kwmeng&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO table &lt;/SPAN&gt;wa&lt;SPAN class="L0S70"&gt;&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;vbap &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;vgbel &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;s_vgbel&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt; &lt;/SPAN&gt;lfimg &lt;SPAN class="L0S52"&gt;INTO table &lt;/SPAN&gt;wa2&lt;SPAN class="L0S70"&gt;&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;lips"declare another internal table&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;for all entries in wa&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;vgbel &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;s_vgbel &lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;then read table&amp;nbsp; .&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;instead of join use for all entries .it is good.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 08:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919007#M1691378</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2012-08-04T08:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919008#M1691379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kumar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this is how it should be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;REPORT&amp;nbsp; &lt;/SPAN&gt;ZDEMO_SELECTION_SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA: &lt;/SPAN&gt;VGBEL &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;LIPS&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;VGBEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;TYPES: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;wa,&lt;/P&gt;&lt;P&gt; KWMENG &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;VBAP&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;kwmeng &lt;SPAN class="L0S52"&gt;OCCURS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;TYPES: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;wa2,&lt;/P&gt;&lt;P&gt; LFIMG &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;LIPS&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;LFIMG &lt;SPAN class="L0S52"&gt;occurs &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;wa2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;SELECT-OPTIONS: &lt;/SPAN&gt;S_VGBEL &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;VGBEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;kwmeng&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;wa &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;vbap &lt;SPAN class="L0S52"&gt;for &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;all &lt;/SPAN&gt;entries &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;wa &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;vgbel &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;s_vgbel.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;lfimg &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;wa2 &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;lips &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ALL &lt;/SPAN&gt;ENTRIES &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;wa2 &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;vgbel &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;s_vgbel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE: &lt;/SPAN&gt;/10 &lt;SPAN class="L0S33"&gt;'Delivery Quantity', &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;40 &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Order Quantity'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;itab &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;wa.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;10 &lt;/SPAN&gt;wa&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;KWMENG.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDLOOP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;itab &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;wa2.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;40 &lt;/SPAN&gt;wa1&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;LFIMG.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDLOOP.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 11:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919008#M1691379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T11:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919009#M1691380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi madam,&lt;/P&gt;&lt;P&gt;forget this report,&lt;/P&gt;&lt;P&gt;some simple thing i want to tell you now before this,&lt;/P&gt;&lt;P&gt;always go for some coding standard like now i am writing one small report here &amp;amp; explaning you the whole process,&lt;/P&gt;&lt;P&gt;1)imagine report name is zdemo,&lt;/P&gt;&lt;P&gt;2)vbap is master table &amp;amp; lips is secondary table,&lt;/P&gt;&lt;P&gt;3)there will be some common primary key field or selection screen field,&lt;/P&gt;&lt;P&gt;at first declare internal table&lt;/P&gt;&lt;P&gt;tables : vbap,lips. "useful to write all table name used in program.&lt;/P&gt;&lt;P&gt;types: begin of ty_vbap,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbeln type vbap-vbeln,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kwmeng type kwmeng,"refer to data element directly is good practice&lt;/P&gt;&lt;P&gt;vgbel type vgbel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end of ty_vbap.&lt;/P&gt;&lt;P&gt;types: begin of ty_lips,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbeln type lips-vbeln,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lfimg type lfimg"refer to data element directly is good practice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vgbel type vgbel, " i forget the sequence but try to declare sequentially from table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end of ty_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_final,"table for final o/p display&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kwmeng type kwmeng,"maintain sequence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lfimg type lfimg,&lt;/P&gt;&lt;P&gt;end of..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_vbap type table of ty_vbap,"internal table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; wa_vbap type ty_vbap,"work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this declare the others.&lt;/P&gt;&lt;P&gt;then selection screen&lt;/P&gt;&lt;P&gt;select-options: s_vb for vbap-vbveln,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_vg for vbap-vgbel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;now select &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;select vbeln kwmeng from vbap into table it_vbap "into table is keyword&lt;/P&gt;&lt;P&gt;where vbeln in s_vb&lt;/P&gt;&lt;P&gt; vgbel in s_vg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now come to for all entries it is better than inner or other join for good perormance&lt;/P&gt;&lt;P&gt;so see here&lt;/P&gt;&lt;P&gt;select vbeln lfimg vgbel into table it_lips &lt;/P&gt;&lt;P&gt;for all entries in it_vbap&amp;nbsp; "comparing with it_vbap like join&lt;/P&gt;&lt;P&gt;where vbeln in s_vb&lt;/P&gt;&lt;P&gt;and vgbel in s_vg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here selection screen matching but sometimes not matching then for all entries is best&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;loop will on master table here &amp;amp; &lt;/P&gt;&lt;P&gt; now read table from table to work area &amp;amp; displying the data in final tbale&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_vbap into wa_vbap.&lt;/P&gt;&lt;P&gt;wa_final-kwmeng = wa_vbap-kwmeng.&lt;/P&gt;&lt;P&gt;read table it_lips into wa_lips with key vbeln = s_vbeln vgbel = s_vgbel " with key for simple tbale&lt;/P&gt;&lt;P&gt;wa_final-lfimg = wa_lips-kwmeng.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) do not use occurs , inner join it is costly &amp;amp; time consuming&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LAST write Your write statement for values or you can write in alv&amp;nbsp; also this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALL the best for next report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any confusion u can tell me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gourav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 12:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919009#M1691380</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2012-08-04T12:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919010#M1691381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;occurs !!! you should not use,,, missing coding standards!..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 13:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919010#M1691381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T13:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919011#M1691382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;occurs 0 !!!!&lt;/P&gt;&lt;P&gt;there are many like this.&lt;/P&gt;&lt;P&gt;select endselect,&lt;/P&gt;&lt;P&gt;into corresponding fields of table ,&lt;/P&gt;&lt;P&gt;but sometimes occurs 0 have to use.. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/843/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 13:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919011#M1691382</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2012-08-04T13:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919012#M1691383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ofcourse but it is not recommended by SAP right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 13:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919012#M1691383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T13:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919013#M1691384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes surya,&lt;/P&gt;&lt;P&gt;in new version of abap occurs 0 obsolete,types declaration is new way to declare. but there are rare case have to use occurs 0. as per my little knowledge. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/843/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 13:50:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919013#M1691384</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2012-08-04T13:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919014#M1691385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm.. yeah.. i am working with 4.5b, all the code is written with occurs 0, have nothing to do.. agreed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 13:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919014#M1691385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T13:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919015#M1691386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes u r right in 4.5 but i am working in ecc 6.0 where this keyword is obsolete. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/843/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 13:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919015#M1691386</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2012-08-04T13:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919016#M1691387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;btw hello, where do u work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 13:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919016#M1691387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T13:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919017#M1691388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Organisation? and Experience in SAP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 14:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919017#M1691388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T14:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919018#M1691389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ur mail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 14:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919018#M1691389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T14:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS error in output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919019#M1691390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why u required my mail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 14:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error-in-output/m-p/8919019#M1691390</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2012-08-04T14:03:46Z</dc:date>
    </item>
  </channel>
</rss>

