<?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: Call function with select options problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631039#M1441890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the code as described below to solve your issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_selec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/SAPAPO/TS_PLOB_LIST_GET'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    iv_bas_plobid  = 'Z_DP_POS'&lt;/P&gt;&lt;P&gt;    it_selection   = lt_selec&lt;/P&gt;&lt;P&gt;    it_group_by    = lt_group&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    et_plob_values = lt_plobs .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;add your desired logic&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2010 18:14:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-03T18:14:44Z</dc:date>
    <item>
      <title>Call function with select options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631037#M1441888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there dear SDN community members.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got an strange ABAP problem wich function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code1&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
CLEAR ls_selec .
ls_selec-iobjnm = '9AMATNR' .
ls_selec-sign   = 'I' .                                     
ls_selec-option = 'EQ' .
ls_selec-low    = '0000000000000000000000000000000000017714' .
APPEND ls_selec TO lt_selec .

CLEAR ls_selec .
ls_selec-iobjnm = '9AMATNR' .
ls_selec-sign   = 'I' .
ls_selec-option = 'EQ' .
ls_selec-low    = '0000000000000000000000000000000010079409' .
APPEND ls_selec TO lt_selec .

CALL FUNCTION '/SAPAPO/TS_PLOB_LIST_GET'
  EXPORTING
    iv_bas_plobid  = 'Z_DP_POS'
    it_selection   = lt_selec
    it_group_by    = lt_group
  IMPORTING
    et_plob_values = lt_plobs .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function returns data in &lt;STRONG&gt;lt_plobs&lt;/STRONG&gt; itab &lt;STRONG&gt;only for the last product&lt;/STRONG&gt; which was appended to the selection table &lt;STRONG&gt;lt_selec&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code2&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLEAR ls_selec .
ls_selec-iobjnm = '9AMATNR' .
ls_selec-sign   = 'I' .
ls_selec-option = 'BT' .
ls_selec-low    = '0000000000000000000000000000000000017714' .
ls_selec-high   = '0000000000000000000000000000000010079409' .
APPEND ls_selec TO lt_selec .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Returns data in &lt;STRONG&gt;lt_plobs&lt;/STRONG&gt; for &lt;STRONG&gt;all products&lt;/STRONG&gt; included in selection tab &lt;STRONG&gt;lt_selec&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong in case of Code1? Why function does not return data for both products included in selection tab &lt;STRONG&gt;lt_selec&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will be thankful for help. Regards. P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 16:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631037#M1441888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T16:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Call function with select options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631038#M1441889</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; Looks like if you and multiple rows in the selection table it takes the last one. You can get into the function module /SAPAPO/TS_PLOB_LIST_GET and check where the field it_selection is being used. Also this one is an importing parameter for the FM not a tables parameter so I doubt this could be the reason as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Could you also check any documentation of this FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasenjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 18:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631038#M1441889</guid>
      <dc:creator>prasenjit_sharma</dc:creator>
      <dc:date>2010-02-03T18:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Call function with select options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631039#M1441890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the code as described below to solve your issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_selec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/SAPAPO/TS_PLOB_LIST_GET'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    iv_bas_plobid  = 'Z_DP_POS'&lt;/P&gt;&lt;P&gt;    it_selection   = lt_selec&lt;/P&gt;&lt;P&gt;    it_group_by    = lt_group&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    et_plob_values = lt_plobs .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;add your desired logic&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 18:14:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631039#M1441890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T18:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Call function with select options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631040#M1441891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think its a table type because the signature parameter is prefixed with 'IT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@OP: Did you debug and check what is the value filled in the range table when the fm is getting called ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 18:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631040#M1441891</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-02-03T18:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Call function with select options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631041#M1441892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...sorry, mistake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 18:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631041#M1441892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T18:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Call function with select options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631042#M1441893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;did you try this?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION '/SAPAPO/TS_PLOB_LIST_GET'
  EXPORTING
    iv_bas_plobid  = 'Z_DP_POS'
    it_selection   = lt_selec[]
    it_group_by    = lt_group
  IMPORTING
    et_plob_values = lt_plobs .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards,darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 18:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631042#M1441893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T18:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Call function with select options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631043#M1441894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am very sorry to take your time unnecessarily. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem was caused by data inconsistency in our sandbox system I was developing in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be understanding, please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards. P.&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;&lt;/P&gt;&lt;P&gt;Ps.  &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vinod Nair&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'Loop' solution has slowed the performance down very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 09:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-with-select-options-problem/m-p/6631043#M1441894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T09:25:15Z</dc:date>
    </item>
  </channel>
</rss>

