<?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 read table from FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-from-fm/m-p/6995337#M1494433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have found siutable FM, with two selection parameters....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'Z_SDPRICES'
       EXPORTING
            pricedate_from = lv_pricedate_from
            x_material     = 'X'
       TABLES
            matprice       = ZSD_MATPRICE2.


      LOOP AT ZSD_MATPRICE2.
        MOVE-CORRESPONDING ZSD_MATPRICE2 TO INT.
      IF SY-SUBRC NE 0.
        APPEND INT.
      ENDIF.
     ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why my INT table is not filled, the structure of the INT is the same as ZSD_MATPRICE2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on May 28, 2010 4:15 PM - fixed formatting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 May 2010 13:21:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-28T13:21:33Z</dc:date>
    <item>
      <title>read table from FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-from-fm/m-p/6995337#M1494433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have found siutable FM, with two selection parameters....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'Z_SDPRICES'
       EXPORTING
            pricedate_from = lv_pricedate_from
            x_material     = 'X'
       TABLES
            matprice       = ZSD_MATPRICE2.


      LOOP AT ZSD_MATPRICE2.
        MOVE-CORRESPONDING ZSD_MATPRICE2 TO INT.
      IF SY-SUBRC NE 0.
        APPEND INT.
      ENDIF.
     ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why my INT table is not filled, the structure of the INT is the same as ZSD_MATPRICE2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on May 28, 2010 4:15 PM - fixed formatting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 13:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-from-fm/m-p/6995337#M1494433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-28T13:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: read table from FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-from-fm/m-p/6995338#M1494434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF SY-SUBRC NE 0. " Are you sure of the relevance of this test?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the structure are the same, you could also try a APPEND LINES OF zsd_matprice2 TO int.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 13:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-from-fm/m-p/6995338#M1494434</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-05-28T13:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: read table from FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-from-fm/m-p/6995339#M1494435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry i tred everything IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in any case the int table is not filled&lt;/P&gt;&lt;P&gt;brs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 13:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-from-fm/m-p/6995339#M1494435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-28T13:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: read table from FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-from-fm/m-p/6995340#M1494436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- Are both tables defined with a header line (they should not, obsolete, but your code needs it, no ASSIGNIONG or INTO wa)&lt;/P&gt;&lt;P&gt;- Does the FM manage an error raising if no data is loaded (e.g. RAISE NODATA, and use the EXCEPTION option of the FM call)&lt;/P&gt;&lt;P&gt;- Does the APPEND set sy-subrc to an error value (e.g. if INT is a sorted table or this kind of error)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 13:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-from-fm/m-p/6995340#M1494436</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-05-28T13:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: read table from FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-from-fm/m-p/6995341#M1494437</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;If both the internal tables are of same structure you don't need a loop, rather use the below statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INT[] = ZSD_MATPRICE2[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 14:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-from-fm/m-p/6995341#M1494437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-28T14:06:59Z</dc:date>
    </item>
  </channel>
</rss>

