<?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_SALESORDER_CREATEFROMDAT2 , cannot update ZFIELD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047899#M1611531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;reference note: 143580&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAK (Append ZZFIELD1 CHAR4)&lt;/P&gt;&lt;P&gt;VBAKKOZ (Append ZZFIELD1 CHAR4)&lt;/P&gt;&lt;P&gt;VBAKKOZX (Append ZZFIELD1 CHAR1)&lt;/P&gt;&lt;P&gt;BAPE_VBAK (Append ZZFIELD1 CHAR4)&lt;/P&gt;&lt;P&gt;BAPE_VBAKX (Append ZZFIELD1 CHAR1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA: WA_EXTENSION TYPE BAPIPAREX,
        WA_BAPE_VBAK TYPE BAPE_VBAK,
        WA_BAPE_VBAKX TYPE BAPE_VBAKX.


  WA_BAPE_VBAK-ZZFIELD1 = 'ABCD'.
  WA_BAPE_VBAKX-ZZFIELD1 = 'X'.

  MOVE 'BAPE_VBAK' TO WA_EXTENSION-STRUCTURE.
  MOVE WA_BAPE_VBAK TO WA_EXTENSION-VALUEPART1.
  APPEND WA_EXTENSION TO EXTENSIONIN.

  CLEAR WA_EXTENSION.

  MOVE 'BAPE_VBAKX' TO WA_EXTENSION-STRUCTURE.
  MOVE WA_BAPE_VBAKX TO WA_EXTENSION-VALUEPART1.
  APPEND WA_EXTENSION TO EXTENSIONIN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, Sales Order is created, but does not update  ZZFIELD1. &lt;/P&gt;&lt;P&gt;what's problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 10:03:36 GMT</pubDate>
    <dc:creator>former_member1137458</dc:creator>
    <dc:date>2011-07-07T10:03:36Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CREATEFROMDAT2 , cannot update ZFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047899#M1611531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;reference note: 143580&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAK (Append ZZFIELD1 CHAR4)&lt;/P&gt;&lt;P&gt;VBAKKOZ (Append ZZFIELD1 CHAR4)&lt;/P&gt;&lt;P&gt;VBAKKOZX (Append ZZFIELD1 CHAR1)&lt;/P&gt;&lt;P&gt;BAPE_VBAK (Append ZZFIELD1 CHAR4)&lt;/P&gt;&lt;P&gt;BAPE_VBAKX (Append ZZFIELD1 CHAR1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA: WA_EXTENSION TYPE BAPIPAREX,
        WA_BAPE_VBAK TYPE BAPE_VBAK,
        WA_BAPE_VBAKX TYPE BAPE_VBAKX.


  WA_BAPE_VBAK-ZZFIELD1 = 'ABCD'.
  WA_BAPE_VBAKX-ZZFIELD1 = 'X'.

  MOVE 'BAPE_VBAK' TO WA_EXTENSION-STRUCTURE.
  MOVE WA_BAPE_VBAK TO WA_EXTENSION-VALUEPART1.
  APPEND WA_EXTENSION TO EXTENSIONIN.

  CLEAR WA_EXTENSION.

  MOVE 'BAPE_VBAKX' TO WA_EXTENSION-STRUCTURE.
  MOVE WA_BAPE_VBAKX TO WA_EXTENSION-VALUEPART1.
  APPEND WA_EXTENSION TO EXTENSIONIN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, Sales Order is created, but does not update  ZZFIELD1. &lt;/P&gt;&lt;P&gt;what's problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 10:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047899#M1611531</guid>
      <dc:creator>former_member1137458</dc:creator>
      <dc:date>2011-07-07T10:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 , cannot update ZFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047900#M1611532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cpliu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this at item level.&lt;/P&gt;&lt;P&gt;1) VBAP: In your append structure you specify your ZZFIELD with the data type as needed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) BAPE_VBAP: In the append structure here also add the ZZFIELD with the data type as needed with limitations. No decimals. Try and stick to char characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) BAPE_VBAPX: In the append structure add the field ZZFIELD of type BAPIUPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(NOTE: (2) and (3) must have the same number of fields in the same order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) VBAPKOZ: In the append structure here also add the ZZFIELD with the data type as needed with limitations. No decimals. Try and stick to char characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) VBAPKOZX: In the append structure add the field ZZFIELD of type BAPIUPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (4) and (5) must have the same number of fields in the same order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly do for VBAK, BAPE_VBAK, BAPE_VBAKX, VBAKKOZ and VBAKKOZX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this and see.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 10:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047900#M1611532</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-07-07T10:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 , cannot update ZFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047901#M1611533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't try to update VBAP, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(VBAKKOZX  and BAPE_VBAKX)  ZZFIELD1  data type was changed to  BAPIUPDATE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's also not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 10:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047901#M1611533</guid>
      <dc:creator>former_member1137458</dc:creator>
      <dc:date>2011-07-07T10:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 , cannot update ZFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047902#M1611534</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;That is fine .Try the same way to update vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 10:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047902#M1611534</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-07-07T10:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 , cannot update ZFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047903#M1611535</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;Madhu is right. See SAP Note 143580 - Information on SD BAPIs and customer enhancement concept&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This IDOC call the function module SD_SALESDOCUMENT_CREATE. In the subroutine &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  perform ms_move_extensionin tables extensionin
                                     sales_items_in
                                     sales_schedules_in
                              using
                                     sales_header_in.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this subroutine, in this coding and so on, debug it, with the aim to know what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  LOOP AT extensionin.
    CASE extensionin-structure.
* BAPI-Schnittstelle für Kundenerweiterungen zur Tabelle VBAK
      WHEN 'BAPE_VBAK'.
        call method cl_abap_container_utilities=&amp;gt;read_container_c
          exporting
            im_container           = extensionin+lv_length
          importing
            ex_value               = wa_bape_vbak
          exceptions
            illegal_parameter_type = 1
            others                 = 2.
        CATCH SYSTEM-EXCEPTIONS conversion_errors  = 1.     "#EC *
          MOVE-CORRESPONDING wa_bape_vbak TO e_vbakkom.
        ENDCATCH.
* BAPI-Ankreuzleiste für Kundenerweiterungen zur Tabelle VBAK
      WHEN 'BAPE_VBAKX'.
        MOVE extensionin+lv_length TO wa_bape_vbakx.
        CATCH SYSTEM-EXCEPTIONS conversion_errors  = 1.     "#EC *
          MOVE-CORRESPONDING wa_bape_vbakx TO e_vbakkomx.
        ENDCATCH.
 .............
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie: check if data is trasfered to E_VBAKKOM as note says in point 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 13:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047903#M1611535</guid>
      <dc:creator>eduardo_hinojosa</dc:creator>
      <dc:date>2011-07-07T13:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 , cannot update ZFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047904#M1611536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been debug, the output value is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E_VBAKKOM-ZZFIELD1 = 'ABCD'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 14:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047904#M1611536</guid>
      <dc:creator>former_member1137458</dc:creator>
      <dc:date>2011-07-07T14:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 , cannot update ZFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047905#M1611537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;perform map_vbak_to_bapisdhd tables   return
                                        extensionex
                               using    da_vbak
                               changing sales_header_out.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* fill the extension structure for the header bapi
     if da_extension_needed = charx.
        move-corresponding da_vbak to da_bape_vbak.
        catch system-exceptions conversion_errors  = 1.
* Belegnummer übernehmen
              move da_vbak-vbeln to da_bape_vbak-vbeln.
* Strukturnamen setzen
              move 'BAPE_VBAK'   to da_parex-structure.
* Daten übertragen
              move da_bape_vbak  to da_parex-values.
              move da_parex      to ch_parex.
        endcatch.
* Erweiterungsstruktur aufbauen
        append ch_parex.
     endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, in table "ch_parex", output is&lt;/P&gt;&lt;P&gt;CH_PAREX-STRUCTURE = 'BAPE_VBAK'&lt;/P&gt;&lt;P&gt;CH_PAREX-VALUEPART1 = '1234567890ABCD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at this line, it seems no problem..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 14:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047905#M1611537</guid>
      <dc:creator>former_member1137458</dc:creator>
      <dc:date>2011-07-07T14:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 , cannot update ZFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047906#M1611538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all. problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I found this user exit effect result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USEREXIT_SAVE_DOCUMENT_PREPARE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 07:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-cannot-update-zfield/m-p/8047906#M1611538</guid>
      <dc:creator>former_member1137458</dc:creator>
      <dc:date>2011-07-08T07:52:33Z</dc:date>
    </item>
  </channel>
</rss>

