<?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 EXTENSION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715055#M1579468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iu2019ve created one new field on VBAK called zzminvaluecheck and then in order to make this able to be changeable by BAPI I have also replicate it on the follow structures:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) VBAKKOZ     ( NEW FIELD WITH 3 CHARACTERS)&lt;/P&gt;&lt;P&gt;b) VBAKKOZX  (NEW FIELD WITH 1 CHARACTER)&lt;/P&gt;&lt;P&gt;c) BAPE_VBAK ( NEW FIELD WITH 3 CHARACTERS)&lt;/P&gt;&lt;P&gt;d) BAPE_VBAKX (NEW FIELD WITH 1 CHARACTER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_order_headerx-updateflag   = 'U'.
  wa_bape_vbak-vbeln = p_wa_output-vbeln.
  wa_bape_vbakx-vbeln = p_wa_output-vbeln.
  wa_bape_vbak-zzminvaluecheck  = c_no.
  wa_bape_vbakx-zzminvaluecheck = 'X'.
  clear wa_exten.
  wa_exten-structure  = 'BAPE_VBAK'.
  wa_exten-valuepart1 = wa_bape_vbak.
  append wa_exten to ti_exten.
  clear wa_exten.
  wa_exten-structure  = 'BAPE_VBAKX'.
  wa_exten-valuepart1 = wa_bape_vbakx.
  append wa_exten to ti_exten.

  call function 'BAPI_SALESORDER_CHANGE'
    exporting
      salesdocument             = p_wa_output-vbeln
      order_header_inx          = wa_order_headerx
    tables
      return                    = ti_return
*     ORDER_ITEM_IN             =
*     ORDER_ITEM_INX            =
      extensionin               = ti_exten.
  read table ti_return into wa_return with key type = 'E'.

  if sy-subrc eq 0.
    wa_output1-mesg = wa_return-message.
    call function 'BAPI_TRANSACTION_ROLLBACK'.
  else.
    wa_output1-mesg = text-021.
    call function 'BAPI_TRANSACTION_COMMIT' .
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iu2019ve got the following message: &lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN has been processed successfully&lt;/P&gt;&lt;P&gt; No data was changed.&lt;/P&gt;&lt;P&gt;ACTUALLY NOTHING WAS CHANGED!&lt;/P&gt;&lt;P&gt;I missed something,  can any of you guys tell me what is wrong with this code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ACR on Feb 22, 2011 11:27 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines for your posts.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 23, 2011 1:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2011 22:26:41 GMT</pubDate>
    <dc:creator>alexandre_docarmorocha</dc:creator>
    <dc:date>2011-02-22T22:26:41Z</dc:date>
    <item>
      <title>EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715055#M1579468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iu2019ve created one new field on VBAK called zzminvaluecheck and then in order to make this able to be changeable by BAPI I have also replicate it on the follow structures:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) VBAKKOZ     ( NEW FIELD WITH 3 CHARACTERS)&lt;/P&gt;&lt;P&gt;b) VBAKKOZX  (NEW FIELD WITH 1 CHARACTER)&lt;/P&gt;&lt;P&gt;c) BAPE_VBAK ( NEW FIELD WITH 3 CHARACTERS)&lt;/P&gt;&lt;P&gt;d) BAPE_VBAKX (NEW FIELD WITH 1 CHARACTER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_order_headerx-updateflag   = 'U'.
  wa_bape_vbak-vbeln = p_wa_output-vbeln.
  wa_bape_vbakx-vbeln = p_wa_output-vbeln.
  wa_bape_vbak-zzminvaluecheck  = c_no.
  wa_bape_vbakx-zzminvaluecheck = 'X'.
  clear wa_exten.
  wa_exten-structure  = 'BAPE_VBAK'.
  wa_exten-valuepart1 = wa_bape_vbak.
  append wa_exten to ti_exten.
  clear wa_exten.
  wa_exten-structure  = 'BAPE_VBAKX'.
  wa_exten-valuepart1 = wa_bape_vbakx.
  append wa_exten to ti_exten.

  call function 'BAPI_SALESORDER_CHANGE'
    exporting
      salesdocument             = p_wa_output-vbeln
      order_header_inx          = wa_order_headerx
    tables
      return                    = ti_return
*     ORDER_ITEM_IN             =
*     ORDER_ITEM_INX            =
      extensionin               = ti_exten.
  read table ti_return into wa_return with key type = 'E'.

  if sy-subrc eq 0.
    wa_output1-mesg = wa_return-message.
    call function 'BAPI_TRANSACTION_ROLLBACK'.
  else.
    wa_output1-mesg = text-021.
    call function 'BAPI_TRANSACTION_COMMIT' .
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iu2019ve got the following message: &lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN has been processed successfully&lt;/P&gt;&lt;P&gt; No data was changed.&lt;/P&gt;&lt;P&gt;ACTUALLY NOTHING WAS CHANGED!&lt;/P&gt;&lt;P&gt;I missed something,  can any of you guys tell me what is wrong with this code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ACR on Feb 22, 2011 11:27 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines for your posts.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 23, 2011 1:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 22:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715055#M1579468</guid>
      <dc:creator>alexandre_docarmorocha</dc:creator>
      <dc:date>2011-02-22T22:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715056#M1579469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can go like as under --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_SALESORDER_CHANGE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    salesdocument    = i_vbeln&lt;/P&gt;&lt;P&gt;    order_header_in  = order_header_in&lt;/P&gt;&lt;P&gt;    order_header_inx = order_header_inx&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    return           = ti_return&lt;/P&gt;&lt;P&gt;    extensionin  = ti_exten.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    wait   = 'X'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    return = ret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, you need to take care about the Structure ORDER_HEADER_IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For better understanding, you can refer following thread -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2873986"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this may clear your doubts.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Kumar Saurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 05:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715056#M1579469</guid>
      <dc:creator>former_member186491</dc:creator>
      <dc:date>2011-02-23T05:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715057#M1579470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, you need to take care about the Structure ORDER_HEADER_IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Kumar: No, not true at all.  You can make changes to only custom fields as long as the update flag is set in the 'X' structure.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first glance, the code looks OK.  Your best bet is to debug the process and find out why the changes aren't made.  Perhaps the flag values aren't being set for some reason.  Start with form 'ms_move_extensionin' in SD_SALES_DOCUMENT_CHANGE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 16:03:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715057#M1579470</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-02-23T16:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715058#M1579471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Brad, I'm used to do it in the creation step in other project. My question is.. has anybody achieve this change before? I mean.. using only the extension?!  I will debug it anyway, but any idea will be welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 17:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715058#M1579471</guid>
      <dc:creator>alexandre_docarmorocha</dc:creator>
      <dc:date>2011-02-23T17:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715059#M1579472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.  As I pointed out to the incorrect poster, you are not required to change any other field just to get custom fields changed.  I've done it that way many times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 23:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715059#M1579472</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-02-23T23:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715060#M1579473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just figure it out, you must use data elements CHAR1 or CHAR01 on the X structures. Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 16:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extension/m-p/7715060#M1579473</guid>
      <dc:creator>alexandre_docarmorocha</dc:creator>
      <dc:date>2011-02-28T16:10:05Z</dc:date>
    </item>
  </channel>
</rss>

