<?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: BAPI problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/2321933#M509847</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 am farwarding some sample code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i have declared one internal table i_tab like bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why because there is one table that is returning from bapi named RETURN &lt;/P&gt;&lt;P&gt;of type bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_tab LIKE bapiret2 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_BUPR_RELATIONSHIP_CREATE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          businesspartner1     = i_tab_flat-partner_number&lt;/P&gt;&lt;P&gt;          businesspartner2     = gv_rpartner_number&lt;/P&gt;&lt;P&gt;          relationshipcategory = 'BUR001'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          return               = i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that bapi write this commit work even.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 06:25:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T06:25:22Z</dc:date>
    <item>
      <title>BAPI problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/2321931#M509845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends;&lt;/P&gt;&lt;P&gt;I m first time working on bapi. My requirement is that i m having excel sheet with me and from that excel sheet i need to transfer those data to cats  and i  m using &lt;/P&gt;&lt;P&gt;bapi BAPI_CATIMESHEETMGR_INSERT . I dont no what parameter to pass &lt;/P&gt;&lt;P&gt;includeing tables&lt;/P&gt;&lt;P&gt;There is one table that is returning from bapi named RETURN mandatory parameter . I want to process those data containing in that table &lt;/P&gt;&lt;P&gt;Please help me&lt;/P&gt;&lt;P&gt;Regards;&lt;/P&gt;&lt;P&gt;Parag Gavkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 05:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/2321931#M509845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T05:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/2321932#M509846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parag,&lt;/P&gt;&lt;P&gt;Usually most of the BAPIs have the table RETURN as one of the returning parametrs. Please check if this is of type BAPIRET2 in the interface of the function module.&lt;/P&gt;&lt;P&gt;If it is so, create a structure ls_return of type BAPIRET2.&lt;/P&gt;&lt;P&gt;Loop at the return table into the ls_return and do the processing you want. Eg : if you want to find if there is any error message, use :&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Loop at RETURN into ls_return.&lt;/P&gt;&lt;P&gt;if ls_return-type eq 'E'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  do the processing you want *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Or if you are looking for success message from BAPI call, use : &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Loop at RETURN into ls_return.&lt;/P&gt;&lt;P&gt;if ls_return-type eq 'S'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  doisplay the success message to the user*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Reward points if you find this useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 06:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/2321932#M509846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T06:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/2321933#M509847</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 am farwarding some sample code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i have declared one internal table i_tab like bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why because there is one table that is returning from bapi named RETURN &lt;/P&gt;&lt;P&gt;of type bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_tab LIKE bapiret2 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_BUPR_RELATIONSHIP_CREATE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          businesspartner1     = i_tab_flat-partner_number&lt;/P&gt;&lt;P&gt;          businesspartner2     = gv_rpartner_number&lt;/P&gt;&lt;P&gt;          relationshipcategory = 'BUR001'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          return               = i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that bapi write this commit work even.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 06:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/2321933#M509847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T06:25:22Z</dc:date>
    </item>
  </channel>
</rss>

