<?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_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/7308807#M1535201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an append structure with field name MSR_RET_REASON for standard structure BAPE_VBAP. Populate the custome field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA lv_vpart(600)    TYPE c.
DATA x_bape_vbap type BAPE_VBAP.
DATA it_extensionin              TYPE bapiparex  OCCURS 0 WITH HEADER LINE.


* Populate Performance Start and End dates
  x_bape_vbap-MSR_RET_REASON= &amp;lt;VALUE&amp;gt;.

* Populate the structure
  CALL METHOD cl_abap_container_utilities=&amp;gt;fill_container_c
    EXPORTING
      im_value               = x_bape_vbap
    IMPORTING
      ex_container           = lv_vpart
    EXCEPTIONS
      illegal_parameter_type = 1
      OTHERS                 = 2.

it_extensionin-structure = 'BAPE_VBAP'.
it_extensionin-valuepart1     = lv_vpart+0(240).
append it_extensionin.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With your other fields call the BAPI BAPI_CUSTOMERRETURN_CREATE, for parameter EXTENSIONIN pass the above populate internal table. Standard program will populate to VBAP table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference check include program LVBAK001, subroutine MAP_VBAP_TOBAPISDIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Sep 2010 18:48:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-30T18:48:58Z</dc:date>
    <item>
      <title>BAPI_CUSTOMERRETURN_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create/m-p/7308806#M1535200</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;I'm facing a problem with BAPI_CUSTOMERRETURN_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a standard field in VBAP-MSR_RET_REASON. Could not find a place to populate it from the BAPI. Even tried extension, it did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share your ideas to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anupam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 12:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create/m-p/7308806#M1535200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T12:17:41Z</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/7308807#M1535201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an append structure with field name MSR_RET_REASON for standard structure BAPE_VBAP. Populate the custome field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA lv_vpart(600)    TYPE c.
DATA x_bape_vbap type BAPE_VBAP.
DATA it_extensionin              TYPE bapiparex  OCCURS 0 WITH HEADER LINE.


* Populate Performance Start and End dates
  x_bape_vbap-MSR_RET_REASON= &amp;lt;VALUE&amp;gt;.

* Populate the structure
  CALL METHOD cl_abap_container_utilities=&amp;gt;fill_container_c
    EXPORTING
      im_value               = x_bape_vbap
    IMPORTING
      ex_container           = lv_vpart
    EXCEPTIONS
      illegal_parameter_type = 1
      OTHERS                 = 2.

it_extensionin-structure = 'BAPE_VBAP'.
it_extensionin-valuepart1     = lv_vpart+0(240).
append it_extensionin.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With your other fields call the BAPI BAPI_CUSTOMERRETURN_CREATE, for parameter EXTENSIONIN pass the above populate internal table. Standard program will populate to VBAP table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference check include program LVBAK001, subroutine MAP_VBAP_TOBAPISDIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 18:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create/m-p/7308807#M1535201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T18:48:58Z</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/7308808#M1535202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VBAPKD needs to be appended as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 11:13:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create/m-p/7308808#M1535202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-05T11:13:01Z</dc:date>
    </item>
  </channel>
</rss>

