<?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: Create Salesorder throw BAPI_SALESORDER_CREATEFROMDATA2 USING EXTENSIOIN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-salesorder-throw-bapi-salesorder-createfromdata2-using-extensioin/m-p/3099469#M735422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not much complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Append one structure in BAPE_VBAK with the fields which need to be changed&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field.. dataelement... datatype.. length
zz_disp .. zzdisp .. char .. 4&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Append one structure in BAPE_VBAKX with the fields with one character fields.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field.. dataelement... datatype.. length
zz_disp .. char01... char.. 1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Append the same fields of the structure which was appended in the BAPE_VBAK to VBAKKOZ&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field.. dataelement... datatype.. length
zz_disp .. zzdisp .. char .. 4&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.Append the same structure which was appended in the BAPE_VBAKX to VBAKKOZX.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field.. dataelement... datatype.. length
zz_disp .. char01... char.. 1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, check this program how to fill the EXTENSION parameter&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Report ZTEST_NP.
parameters: p_vbeln like vbak-vbeln.
 
start-of-selection.
 
data: l_vbeln like BAPIVBELN-VBELN,
      l_inx   like BAPISDH1X.
data: it_ret like BAPIRET2 occurs 0 with header line,
      it_ext like BAPIPAREX occurs 0 with header line,
      is_hdr like BAPISDH1.

l_inx-UPDATEFLAG = 'U'.
l_vbeln = p_vbeln.
* fill the table with values to be changed
it_ext-STRUCTURE = 'BAPE_VBAK'.      "Strcture with the fields
it_ext-VALUEPART1+0(10) = l_vbeln.
it_ext-valuepart1+11(4) = 'TEST'.          "&amp;lt;&amp;lt; My ZZ_DISP field
append it_ext.

* mark the fields which you need to change
it_ext-STRUCTURE = 'BAPE_VBAKX'.     " Strcture with the flags
it_ext-VALUEPART1+0(10) = l_vbeln.
it_ext-VALUEPART1+10(1) = 'X'.
it_ext-VALUEPART1+11(1) = 'X'.
append it_ext.

*it_ext-STRUCTURE = 'ZAVBAK'.     " Strcture with the flags
*it_ext-VALUEPART1+24(1) = 'T'.
*append it_ext.
 
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
  EXPORTING
    SALESDOCUMENT               = l_vbeln
    ORDER_HEADER_INX            = l_inx
  TABLES
    RETURN                      = it_ret
    EXTENSIONIN                 = it_ext
          .
  
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
             WAIT          = 'X'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Naimesh Patel on Oct 1, 2009 9:14 AM - Code formatting due to 2500 character limit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2007 04:21:34 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-11-28T04:21:34Z</dc:date>
    <item>
      <title>Create Salesorder throw BAPI_SALESORDER_CREATEFROMDATA2 USING EXTENSIOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-salesorder-throw-bapi-salesorder-createfromdata2-using-extensioin/m-p/3099468#M735421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;     Create Salesorder throw BAPI_SALESORDER_CREATEFROMDATA2 USING EXTENSIOIN  using this parameter i am added to text .&lt;/P&gt;&lt;P&gt;ok   that text ,so plz tell me where add this text . when ever excuted se38(abap editor) they are not displayed.  plz help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 04:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-salesorder-throw-bapi-salesorder-createfromdata2-using-extensioin/m-p/3099468#M735421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T04:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create Salesorder throw BAPI_SALESORDER_CREATEFROMDATA2 USING EXTENSIOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-salesorder-throw-bapi-salesorder-createfromdata2-using-extensioin/m-p/3099469#M735422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not much complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Append one structure in BAPE_VBAK with the fields which need to be changed&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field.. dataelement... datatype.. length
zz_disp .. zzdisp .. char .. 4&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Append one structure in BAPE_VBAKX with the fields with one character fields.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field.. dataelement... datatype.. length
zz_disp .. char01... char.. 1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Append the same fields of the structure which was appended in the BAPE_VBAK to VBAKKOZ&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field.. dataelement... datatype.. length
zz_disp .. zzdisp .. char .. 4&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.Append the same structure which was appended in the BAPE_VBAKX to VBAKKOZX.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field.. dataelement... datatype.. length
zz_disp .. char01... char.. 1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, check this program how to fill the EXTENSION parameter&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Report ZTEST_NP.
parameters: p_vbeln like vbak-vbeln.
 
start-of-selection.
 
data: l_vbeln like BAPIVBELN-VBELN,
      l_inx   like BAPISDH1X.
data: it_ret like BAPIRET2 occurs 0 with header line,
      it_ext like BAPIPAREX occurs 0 with header line,
      is_hdr like BAPISDH1.

l_inx-UPDATEFLAG = 'U'.
l_vbeln = p_vbeln.
* fill the table with values to be changed
it_ext-STRUCTURE = 'BAPE_VBAK'.      "Strcture with the fields
it_ext-VALUEPART1+0(10) = l_vbeln.
it_ext-valuepart1+11(4) = 'TEST'.          "&amp;lt;&amp;lt; My ZZ_DISP field
append it_ext.

* mark the fields which you need to change
it_ext-STRUCTURE = 'BAPE_VBAKX'.     " Strcture with the flags
it_ext-VALUEPART1+0(10) = l_vbeln.
it_ext-VALUEPART1+10(1) = 'X'.
it_ext-VALUEPART1+11(1) = 'X'.
append it_ext.

*it_ext-STRUCTURE = 'ZAVBAK'.     " Strcture with the flags
*it_ext-VALUEPART1+24(1) = 'T'.
*append it_ext.
 
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
  EXPORTING
    SALESDOCUMENT               = l_vbeln
    ORDER_HEADER_INX            = l_inx
  TABLES
    RETURN                      = it_ret
    EXTENSIONIN                 = it_ext
          .
  
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
             WAIT          = 'X'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Naimesh Patel on Oct 1, 2009 9:14 AM - Code formatting due to 2500 character limit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 04:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-salesorder-throw-bapi-salesorder-createfromdata2-using-extensioin/m-p/3099469#M735422</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-28T04:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create Salesorder throw BAPI_SALESORDER_CREATEFROMDATA2 USING EXTENSIOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-salesorder-throw-bapi-salesorder-createfromdata2-using-extensioin/m-p/3099470#M735423</link>
      <description>&lt;P&gt;Thank you Naimesh&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 20:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-salesorder-throw-bapi-salesorder-createfromdata2-using-extensioin/m-p/3099470#M735423</guid>
      <dc:creator>former_member750944</dc:creator>
      <dc:date>2022-02-09T20:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create Salesorder throw BAPI_SALESORDER_CREATEFROMDATA2 USING EXTENSIOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-salesorder-throw-bapi-salesorder-createfromdata2-using-extensioin/m-p/14015565#M2038498</link>
      <description>&lt;P&gt;horrible&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 21:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-salesorder-throw-bapi-salesorder-createfromdata2-using-extensioin/m-p/14015565#M2038498</guid>
      <dc:creator>Prasenjitsbist</dc:creator>
      <dc:date>2025-02-12T21:15:42Z</dc:date>
    </item>
  </channel>
</rss>

