<?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: Problem with select options. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799239#M2024790</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;DATA: vendor TYPE lfa1-lifnr.&lt;BR /&gt;SELECTION-SCREEN BEGIN OF BLOCK blk.&lt;BR /&gt;SELECT-OPTIONS: s_vendor FOR vendor.&lt;BR /&gt;PARAMETERS   : p_werks  TYPE ekpo-werks.&lt;BR /&gt;SELECTION-SCREEN END OF BLOCK blk.&lt;BR /&gt;SELECT lifnr&lt;BR /&gt;       name1&lt;BR /&gt;       ktokk&lt;BR /&gt;  FROM lfa1 INTO CORRESPONDING FIELDS OF TABLE it_lfa1&lt;BR /&gt;  WHERE lifnr IN s_vendor.&lt;BR /&gt;IF it_lfa1 IS NOT INITIAL.&lt;BR /&gt;  SELECT *&lt;BR /&gt;    FROM t077y INTO TABLE it_t077y FOR ALL ENTRIES IN it_lfa1&lt;BR /&gt;    WHERE ktokk = it_lfa1-ktokk.&lt;BR /&gt;  SELECT ebeln&lt;BR /&gt;         lifnr&lt;BR /&gt;         zterm&lt;BR /&gt;    FROM ekko INTO TABLE it_ekko FOR ALL ENTRIES IN it_lfa1&lt;BR /&gt;    WHERE lifnr = it_lfa1-lifnr.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_ekko IS NOT INITIAL.&lt;BR /&gt;  SELECT ebeln&lt;BR /&gt;         ebelp&lt;BR /&gt;     FROM ekpo INTO TABLE it_ekpo&lt;BR /&gt;    FOR ALL ENTRIES IN it_ekko&lt;BR /&gt;    WHERE ebeln = it_ekko-ebeln AND werks = p_werks.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_ekpo IS NOT INITIAL.&lt;BR /&gt;  SELECT ebeln&lt;BR /&gt;         ebelp&lt;BR /&gt;         belnr&lt;BR /&gt;         budat&lt;BR /&gt;         werks&lt;BR /&gt;         xblnr&lt;BR /&gt;         bldat&lt;BR /&gt;         bewtp&lt;BR /&gt;         wrbtr&lt;BR /&gt;         gjahr&lt;BR /&gt;         lfbnr&lt;BR /&gt;         hswae&lt;BR /&gt;         dmbtr&lt;BR /&gt;   FROM ekbe INTO CORRESPONDING FIELDS OF TABLE it_ekbe&lt;BR /&gt;    FOR ALL ENTRIES IN it_ekpo&lt;BR /&gt;   WHERE ebeln = it_ekpo-ebeln&lt;BR /&gt;     AND ebelp = it_ekpo-ebelp&lt;BR /&gt;     AND werks = p_werks.&lt;BR /&gt;ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;IF it_ekbe IS NOT INITIAL.&lt;BR /&gt;  SELECT *&lt;BR /&gt;    FROM rbkp INTO CORRESPONDING FIELDS OF TABLE it_rbkp&lt;BR /&gt;    FOR ALL ENTRIES IN it_ekbe&lt;BR /&gt;    WHERE belnr = it_ekbe-belnr&lt;BR /&gt;    AND gjahr = it_ekbe-gjahr.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_rbkp IS NOT INITIAL.&lt;BR /&gt;  SELECT *&lt;BR /&gt;    FROM bsik INTO CORRESPONDING FIELDS OF TABLE it_bsik&lt;BR /&gt;    FOR ALL ENTRIES IN it_rbkp&lt;BR /&gt;    WHERE lifnr = it_rbkp-lifnr&lt;BR /&gt;    AND gjahr = it_rbkp-gjahr.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_bsik IS NOT INITIAL.&lt;BR /&gt;  SELECT * FROM bseg INTO TABLE it_bseg&lt;BR /&gt;    FOR ALL ENTRIES IN it_bsik&lt;BR /&gt;    WHERE gjahr = it_bsik-gjahr&lt;BR /&gt;    AND   belnr = it_bsik-belnr&lt;BR /&gt;    AND   augbl = ''&lt;BR /&gt;    AND   koart = 'S'.&lt;BR /&gt;  SELECT  lifnr&lt;BR /&gt;          augbl&lt;BR /&gt;          gjahr&lt;BR /&gt;          belnr&lt;BR /&gt;          xblnr&lt;BR /&gt;          blart&lt;BR /&gt;    FROM bsak INTO CORRESPONDING FIELDS OF TABLE it_bsak&lt;BR /&gt;    FOR ALL ENTRIES IN it_bsik&lt;BR /&gt;    WHERE lifnr = it_bsik-lifnr&lt;BR /&gt;     AND  belnr = it_bsik-belnr.&lt;BR /&gt;  SELECT *&lt;BR /&gt;  FROM with_item INTO TABLE it_with_item&lt;BR /&gt;  FOR ALL ENTRIES IN it_bsik&lt;BR /&gt;  WHERE belnr = it_bsik-belnr&lt;BR /&gt;  AND gjahr = it_bsik-gjahr.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_ekko IS NOT INITIAL.&lt;BR /&gt;  SELECT * FROM t052u INTO TABLE it_t052&lt;BR /&gt;    FOR ALL ENTRIES IN it_ekko&lt;BR /&gt;    WHERE zterm = it_ekko-zterm.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_bsak IS NOT INITIAL.&lt;BR /&gt;  SELECT chect&lt;BR /&gt;         lifnr&lt;BR /&gt;         vblnr&lt;BR /&gt;         gjahr&lt;BR /&gt;   FROM payr INTO CORRESPONDING FIELDS OF TABLE it_payr&lt;BR /&gt;    FOR ALL ENTRIES IN it_bsak&lt;BR /&gt;    WHERE lifnr = it_bsak-lifnr&lt;BR /&gt;    AND  vblnr = it_bsak-augbl.&lt;BR /&gt;ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Sep 2023 04:27:34 GMT</pubDate>
    <dc:creator>pritam_baboo49</dc:creator>
    <dc:date>2023-09-21T04:27:34Z</dc:date>
    <item>
      <title>Problem with select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799236#M2024787</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I have a custom report with two inputs: Vendor and plant. In selection screen i have given select-option for vendor and parameters for plant. when i pass some values to vendor then getting correct records but when I keep the vendor fields blank, i.e. to fetch all vendors the some line items for some vendors are missing. I am not able to understand why it is happenning and how to resolve this. &lt;/P&gt;
  &lt;P&gt;Need your kind support and help on this.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 05:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799236#M2024787</guid>
      <dc:creator>pritam_baboo49</dc:creator>
      <dc:date>2023-09-20T05:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799237#M2024788</link>
      <description>&lt;P&gt;Why don't you share the code? It is all but impossible to help you without that.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 06:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799237#M2024788</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2023-09-20T06:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799238#M2024789</link>
      <description>&lt;P&gt;Post the actual selection-screen definition and the select statement where you use it, where clause?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 07:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799238#M2024789</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-09-20T07:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799239#M2024790</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;DATA: vendor TYPE lfa1-lifnr.&lt;BR /&gt;SELECTION-SCREEN BEGIN OF BLOCK blk.&lt;BR /&gt;SELECT-OPTIONS: s_vendor FOR vendor.&lt;BR /&gt;PARAMETERS   : p_werks  TYPE ekpo-werks.&lt;BR /&gt;SELECTION-SCREEN END OF BLOCK blk.&lt;BR /&gt;SELECT lifnr&lt;BR /&gt;       name1&lt;BR /&gt;       ktokk&lt;BR /&gt;  FROM lfa1 INTO CORRESPONDING FIELDS OF TABLE it_lfa1&lt;BR /&gt;  WHERE lifnr IN s_vendor.&lt;BR /&gt;IF it_lfa1 IS NOT INITIAL.&lt;BR /&gt;  SELECT *&lt;BR /&gt;    FROM t077y INTO TABLE it_t077y FOR ALL ENTRIES IN it_lfa1&lt;BR /&gt;    WHERE ktokk = it_lfa1-ktokk.&lt;BR /&gt;  SELECT ebeln&lt;BR /&gt;         lifnr&lt;BR /&gt;         zterm&lt;BR /&gt;    FROM ekko INTO TABLE it_ekko FOR ALL ENTRIES IN it_lfa1&lt;BR /&gt;    WHERE lifnr = it_lfa1-lifnr.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_ekko IS NOT INITIAL.&lt;BR /&gt;  SELECT ebeln&lt;BR /&gt;         ebelp&lt;BR /&gt;     FROM ekpo INTO TABLE it_ekpo&lt;BR /&gt;    FOR ALL ENTRIES IN it_ekko&lt;BR /&gt;    WHERE ebeln = it_ekko-ebeln AND werks = p_werks.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_ekpo IS NOT INITIAL.&lt;BR /&gt;  SELECT ebeln&lt;BR /&gt;         ebelp&lt;BR /&gt;         belnr&lt;BR /&gt;         budat&lt;BR /&gt;         werks&lt;BR /&gt;         xblnr&lt;BR /&gt;         bldat&lt;BR /&gt;         bewtp&lt;BR /&gt;         wrbtr&lt;BR /&gt;         gjahr&lt;BR /&gt;         lfbnr&lt;BR /&gt;         hswae&lt;BR /&gt;         dmbtr&lt;BR /&gt;   FROM ekbe INTO CORRESPONDING FIELDS OF TABLE it_ekbe&lt;BR /&gt;    FOR ALL ENTRIES IN it_ekpo&lt;BR /&gt;   WHERE ebeln = it_ekpo-ebeln&lt;BR /&gt;     AND ebelp = it_ekpo-ebelp&lt;BR /&gt;     AND werks = p_werks.&lt;BR /&gt;ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;IF it_ekbe IS NOT INITIAL.&lt;BR /&gt;  SELECT *&lt;BR /&gt;    FROM rbkp INTO CORRESPONDING FIELDS OF TABLE it_rbkp&lt;BR /&gt;    FOR ALL ENTRIES IN it_ekbe&lt;BR /&gt;    WHERE belnr = it_ekbe-belnr&lt;BR /&gt;    AND gjahr = it_ekbe-gjahr.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_rbkp IS NOT INITIAL.&lt;BR /&gt;  SELECT *&lt;BR /&gt;    FROM bsik INTO CORRESPONDING FIELDS OF TABLE it_bsik&lt;BR /&gt;    FOR ALL ENTRIES IN it_rbkp&lt;BR /&gt;    WHERE lifnr = it_rbkp-lifnr&lt;BR /&gt;    AND gjahr = it_rbkp-gjahr.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_bsik IS NOT INITIAL.&lt;BR /&gt;  SELECT * FROM bseg INTO TABLE it_bseg&lt;BR /&gt;    FOR ALL ENTRIES IN it_bsik&lt;BR /&gt;    WHERE gjahr = it_bsik-gjahr&lt;BR /&gt;    AND   belnr = it_bsik-belnr&lt;BR /&gt;    AND   augbl = ''&lt;BR /&gt;    AND   koart = 'S'.&lt;BR /&gt;  SELECT  lifnr&lt;BR /&gt;          augbl&lt;BR /&gt;          gjahr&lt;BR /&gt;          belnr&lt;BR /&gt;          xblnr&lt;BR /&gt;          blart&lt;BR /&gt;    FROM bsak INTO CORRESPONDING FIELDS OF TABLE it_bsak&lt;BR /&gt;    FOR ALL ENTRIES IN it_bsik&lt;BR /&gt;    WHERE lifnr = it_bsik-lifnr&lt;BR /&gt;     AND  belnr = it_bsik-belnr.&lt;BR /&gt;  SELECT *&lt;BR /&gt;  FROM with_item INTO TABLE it_with_item&lt;BR /&gt;  FOR ALL ENTRIES IN it_bsik&lt;BR /&gt;  WHERE belnr = it_bsik-belnr&lt;BR /&gt;  AND gjahr = it_bsik-gjahr.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_ekko IS NOT INITIAL.&lt;BR /&gt;  SELECT * FROM t052u INTO TABLE it_t052&lt;BR /&gt;    FOR ALL ENTRIES IN it_ekko&lt;BR /&gt;    WHERE zterm = it_ekko-zterm.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF it_bsak IS NOT INITIAL.&lt;BR /&gt;  SELECT chect&lt;BR /&gt;         lifnr&lt;BR /&gt;         vblnr&lt;BR /&gt;         gjahr&lt;BR /&gt;   FROM payr INTO CORRESPONDING FIELDS OF TABLE it_payr&lt;BR /&gt;    FOR ALL ENTRIES IN it_bsak&lt;BR /&gt;    WHERE lifnr = it_bsak-lifnr&lt;BR /&gt;    AND  vblnr = it_bsak-augbl.&lt;BR /&gt;ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Sep 2023 04:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799239#M2024790</guid>
      <dc:creator>pritam_baboo49</dc:creator>
      <dc:date>2023-09-21T04:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799240#M2024791</link>
      <description>&lt;P&gt;some line items are missing -&amp;gt; which line item table? from ekko table select query or where?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 07:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799240#M2024791</guid>
      <dc:creator>xiswanto</dc:creator>
      <dc:date>2023-09-21T07:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799241#M2024792</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thanks for the replay and concern.&lt;/P&gt;&lt;P&gt;I debug the program and corrected it. All records and line items are populating correctly to my internal tables. One small mistake in read table statement for which some line items were missing.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 08:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799241#M2024792</guid>
      <dc:creator>pritam_baboo49</dc:creator>
      <dc:date>2023-09-21T08:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799242#M2024793</link>
      <description>&lt;P&gt;That was a question without minimum details needed to answer, and now we have the answer that it was a "small mistake of missing stuff" (?) which is now fixed. Happy for you but I don't think the existence of this question/answer will help future visitors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 11:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-options/m-p/12799242#M2024793</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-21T11:44:33Z</dc:date>
    </item>
  </channel>
</rss>

