<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122727#M1187897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Query the BSIS table in SE16 transaction. Do you really get 4 records or do the other selection fields that you have added filter them out to two records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2009 11:06:44 GMT</pubDate>
    <dc:creator>ashwin_bhat</dc:creator>
    <dc:date>2009-01-28T11:06:44Z</dc:date>
    <item>
      <title>Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122725#M1187895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m passing 4 values of HKONT in select options and i want to pic some fields from BSIS table.&lt;/P&gt;&lt;P&gt;but problem is that i m getting only 2 HKONT values in itab according to where condition while i need the  other 2 HKONT must be there in itab. so i need total 4 rows in ITAB even we dont get values for other 2 from BSIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT bukrs hkont gjahr monat shkzg prctr FROM bsis INTO table itab&lt;/P&gt;&lt;P&gt;                                  WHERE hkont in hkont&lt;/P&gt;&lt;P&gt;                                  AND   bukrs IN bukrs&lt;/P&gt;&lt;P&gt;                                  AND   prctr IN prctr&lt;/P&gt;&lt;P&gt;                                  AND   gjahr IN gjahr&lt;/P&gt;&lt;P&gt;                                  AND   monat IN monat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Saurabh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 11:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122725#M1187895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T11:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122726#M1187896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6930740"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;duplicate post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 11:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122726#M1187896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T11:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122727#M1187897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Query the BSIS table in SE16 transaction. Do you really get 4 records or do the other selection fields that you have added filter them out to two records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 11:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122727#M1187897</guid>
      <dc:creator>ashwin_bhat</dc:creator>
      <dc:date>2009-01-28T11:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122728#M1187898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USe the dynamic select otions.Then u wull get the correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK&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, 28 Jan 2009 11:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122728#M1187898</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-01-28T11:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122729#M1187899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check in BSIS table for the other 2 HKONTs. Are there recs available in BSIS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 11:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122729#M1187899</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-28T11:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122730#M1187900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you checked entries in se11  of BSIS table . How many records are available in BSIS table ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 11:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122730#M1187900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T11:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122731#M1187901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all thanx for reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had checked and there are only 2 records present according to where condition. but i need all 4 HKONT in ITAB while for other 2 i dont need values only empty fields wud be there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exa: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB : i need like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HKONT           PRCTR              MONAT                DMBTR&lt;/P&gt;&lt;P&gt;15000             20000                 10                        250.00&lt;/P&gt;&lt;P&gt;16000             20000                 10                        220.00&lt;/P&gt;&lt;P&gt;17000             -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;                     -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;                        -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;18000            -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;                      -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;                        -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards saurabh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 11:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122731#M1187901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T11:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122732#M1187902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then do one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After geetting the data from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE APPEND itab.&lt;/P&gt;&lt;P&gt;        append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THen it will insert two empty rows for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 11:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122732#M1187902</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-01-28T11:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122733#M1187903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sourabh,&lt;/P&gt;&lt;P&gt;In that case while you output the data if you are using write then Loop on your select option and write hkont from there..&lt;/P&gt;&lt;P&gt;based on hkont loop on your itab..something like this..&lt;/P&gt;&lt;P&gt;Here you can also fill hkont based on ur select-option hkont range...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT hkont.
  LOOP at itab where hkont = hkont-hkont.
    "write..
    "flag = X
  ENDLOOP.
  IF flag &amp;lt;&amp;gt; X
   write hkont.
  clear flag.
  ENDIF.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also you may append rows in itab based on the entries in hkont table fileed from the hkont range.&lt;/P&gt;&lt;P&gt;For you requirement i will suggest you to get all hkont based on your SO hkont from skb1.&lt;/P&gt;&lt;P&gt;Then append blank lines in your itab for those hkont which donot have any entry...&lt;/P&gt;&lt;P&gt;Reason for this is because you may feed a range also in Select Option...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT it_hkont.
READ TABLE itab with key hkont = it_hkont-hkont.
IF sy-subrc &amp;lt;&amp;gt; 0.
itab-hkont = it_hkont-hkont.
APPEND itab.
ENDIF.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ankesh Saharan on Jan 28, 2009 5:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 11:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122733#M1187903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T11:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122734#M1187904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT HKONT.
READ TABLE ITAB TRANSPORTING NO FIELDS
WITH KEY HKONT = HKONT-LOW.
IF SY-SUBRC NE 0.
ITAB-HKONT = HKONT-LOW.
APPEND ITAB.
ENDIF. 
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You donot have to LOOP at ITAB to fill the HKONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 11:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122734#M1187904</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-28T11:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122735#M1187905</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;SELECT bukrs hkont gjahr FROM bsis INTO table i_tab &lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;(hkont in hkont AND bukrs IN bukrs AND gjahr IN gjahr AND prctr IN prctr) &lt;/P&gt;&lt;P&gt;or hkont in hkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_tab.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayanthi.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 11:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/5122735#M1187905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T11:39:30Z</dc:date>
    </item>
  </channel>
</rss>

