<?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 BAPI_CUSTOMERRETURN_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create/m-p/3326045#M796699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to use this BAPI to create a return based on an Invoice. I run this stand-alone at the moment but cannot get it to work. I get an order(Return) number returned but when viewing in VA03 it states that it is not in the DB or archived.&lt;/P&gt;&lt;P&gt;I am trying to enter the minimum data in HEader_in,Item_in,Partner_in and set corresponding 'X' flags in header_X,ITM_X structures.... the data I populate is as below  -  has anyone encountered this problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sales_org&lt;/P&gt;&lt;P&gt;  division   &lt;/P&gt;&lt;P&gt;   distr_chan &lt;/P&gt;&lt;P&gt;   ref_doc     = Invoice number&lt;/P&gt;&lt;P&gt;  refdoc_cat  = 'M'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;partner&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    lt_partners-partn_role   = 'WE'.&lt;/P&gt;&lt;P&gt;    lt_partners-partn_numb &lt;/P&gt;&lt;P&gt;    APPEND lt_partners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;order item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    lt_items_in-material   &lt;/P&gt;&lt;P&gt;        lt_items_in-target_qty  = 10.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2008 16:43:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-31T16:43:04Z</dc:date>
    <item>
      <title>BAPI_CUSTOMERRETURN_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create/m-p/3326045#M796699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to use this BAPI to create a return based on an Invoice. I run this stand-alone at the moment but cannot get it to work. I get an order(Return) number returned but when viewing in VA03 it states that it is not in the DB or archived.&lt;/P&gt;&lt;P&gt;I am trying to enter the minimum data in HEader_in,Item_in,Partner_in and set corresponding 'X' flags in header_X,ITM_X structures.... the data I populate is as below  -  has anyone encountered this problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sales_org&lt;/P&gt;&lt;P&gt;  division   &lt;/P&gt;&lt;P&gt;   distr_chan &lt;/P&gt;&lt;P&gt;   ref_doc     = Invoice number&lt;/P&gt;&lt;P&gt;  refdoc_cat  = 'M'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;partner&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    lt_partners-partn_role   = 'WE'.&lt;/P&gt;&lt;P&gt;    lt_partners-partn_numb &lt;/P&gt;&lt;P&gt;    APPEND lt_partners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;order item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    lt_items_in-material   &lt;/P&gt;&lt;P&gt;        lt_items_in-target_qty  = 10.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 16:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create/m-p/3326045#M796699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T16:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CUSTOMERRETURN_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create/m-p/3326046#M796700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This BAPI doesnt have an internal commit to reflect the data changes.&lt;/P&gt;&lt;P&gt;so you need to call BAPI_TRANSACTION_COMMIT to commit the data  after BAPI_CUSTOMERRETURN_CREATE is called. Then it will be reflected and stored in the database.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 17:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create/m-p/3326046#M796700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T17:42:07Z</dc:date>
    </item>
  </channel>
</rss>

