<?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: Cannot Loop values from BAPI internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987482#M1895605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Soni &amp;amp; Kannan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one small query, in the BAPI the export parameter POHEADER is defined as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POHEADER like BAPIMEPOHEADER. . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case if it is defined as POHEADER type BAPIMEPOHEADER - then does my declaration will work ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Apr 2015 12:29:10 GMT</pubDate>
    <dc:creator>former_member462348</dc:creator>
    <dc:date>2015-04-12T12:29:10Z</dc:date>
    <item>
      <title>Cannot Loop values from BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987479#M1895602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frnds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared the below structure and internal table in my program and using the BAPI&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;'BAPI_PO_GETDETAIL1' am trying to fetch the PO details to the internal table &lt;SPAN style="font-size: 13.3333330154419px;"&gt; IT_BAPI_TY_1. And the PO values is getting stored in the internal table successfully, but when i loop the table &lt;SPAN style="font-size: 13.3333330154419px;"&gt; IT_BAPI_TY_1 its getting failed, kindly help me out. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why the values from internal table is not getting moved to the workarea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF IT_BAPI_TY .&lt;/P&gt;&lt;P&gt;&amp;nbsp; INCLUDE STRUCTURE BAPIMEPOHEADER.&lt;/P&gt;&lt;P&gt;TYPES: END OF IT_BAPI_TY,&lt;/P&gt;&lt;P&gt; WA_BAPI TYPE BAPIMEPOHEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: IT_BAPI_TY_1 TYPE STANDARD TABLE OF IT_BAPI_TY WITH HEADER LINE ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WA_BAPI_1 type IT_BAPI_TY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; CALL FUNCTION 'BAPI_PO_GETDETAIL1'&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PURCHASEORDER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = WA_EKKO-EBELN&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt; IMPORTING&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; POHEADER&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; = IT_BAPI_TY_1.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; LOOP AT IT_BAPI_TY_1 INTO WA_BAPI_1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; READ TABLE IT_BAPI_TY_1 INTO WA_BAPI_1 WITH KEY PO_NUMBER = WA_EKKO-EBELN.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 11:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987479#M1895602</guid>
      <dc:creator>former_member462348</dc:creator>
      <dc:date>2015-04-12T11:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Loop values from BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987480#M1895603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you see FM BAPI_PO_GETDETAIL1 export parameter POHEADER is declared as structure NOT as table type so it will contain only one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So declaring internal with header line does not make sense here.You can declare like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_poheader&amp;nbsp; type BAPIMEPOHEADER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; color: #333333; background: #ffffff;"&gt;&amp;nbsp; CALL FUNCTION 'BAPI_PO_GETDETAIL1'&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; color: #333333; background: #ffffff;"&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PURCHASEORDER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = WA_EKKO-EBELN&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; color: #333333; background: #ffffff;"&gt;IMPORTING&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; POHEADER&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; wa_poheader&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; color: #333333; background: #ffffff;"&gt;if wa_poheader-PO_NUMBER = &lt;STRONG style="font-size: 12px; color: #333333; background: #ffffff;"&gt;WA_EKKO-EBELN&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;lt;logic&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; color: #333333; background: #ffffff;"&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 12:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987480#M1895603</guid>
      <dc:creator>jitendra_it</dc:creator>
      <dc:date>2015-04-12T12:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Loop values from BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987481#M1895604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rufus,&lt;/P&gt;&lt;P&gt;Change type of your internal table &amp;amp; WA to BAPIMEPOHEADER.You can use like &lt;SPAN style="font-size: 13.3333330154419px;"&gt;BAPIMEPOHEADER&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kannan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 12:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987481#M1895604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-12T12:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Loop values from BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987482#M1895605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Soni &amp;amp; Kannan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one small query, in the BAPI the export parameter POHEADER is defined as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POHEADER like BAPIMEPOHEADER. . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case if it is defined as POHEADER type BAPIMEPOHEADER - then does my declaration will work ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 12:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987482#M1895605</guid>
      <dc:creator>former_member462348</dc:creator>
      <dc:date>2015-04-12T12:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Loop values from BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987483#M1895606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rufus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is just parameters you can pass any name there only thing is the type assginment filed should be correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define any name there.If you have doubt in using this just put a where used list and see how the FM works.Even a simple serach will also bring lot of sample codes which i dont want to paste here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just do a small search it will help. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1249/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kannan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 13:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987483#M1895606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-12T13:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Loop values from BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987484#M1895607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Kannan &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1249/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 15:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987484#M1895607</guid>
      <dc:creator>former_member462348</dc:creator>
      <dc:date>2015-04-12T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Loop values from BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987485#M1895608</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;Create a internal table for the&amp;nbsp; Parameters declared in tables tab position available in&amp;nbsp; FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 16:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-loop-values-from-bapi-internal-table/m-p/10987485#M1895608</guid>
      <dc:creator>VenkatRamesh_V</dc:creator>
      <dc:date>2015-04-12T16:55:02Z</dc:date>
    </item>
  </channel>
</rss>

