<?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_SALESORDER_CHANGE - Fields update problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798963#M1586877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt that you updated those fields; most likely, you created a new address with only those fields specified.  To change existing address detail, you should use the org. address change BAPI or one of the other functions provided for address changes.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Krupaji: if you're going to give example code, don't use deprecated syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data PARTNERADDRESSES like BAPIADDR1 occurs 0 with header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2011 13:46:12 GMT</pubDate>
    <dc:creator>brad_bohn</dc:creator>
    <dc:date>2011-03-21T13:46:12Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CHANGE - Fields update problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798959#M1586873</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;&lt;/P&gt;&lt;P&gt;I need to update some specific fields (BAPIADDR1-HOME_CITY, BAPIADDR1-HOUSE_NO2) in sales order. &lt;/P&gt;&lt;P&gt;For this I use BAPI above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously in BAPIADDR1 structure there is also ADDR_NO field filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, that the rest of the fields was deleted (updated). I mean these one, which was not specified ...&lt;/P&gt;&lt;P&gt;How to avoid update those field. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really thanks.&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 11:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798959#M1586873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-21T11:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE - Fields update problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798960#M1586874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;data PARTNERADDRESSES like BAPIADDR1 occurs 0 with header line.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PARTNERADDRESSES-ADDR_NO = '0000000004'.

PARTNERADDRESSES-NAME = 'krupa'.

PARTNERADDRESSES-STREET = 'test'.

PARTNERADDRESSES-NAME_2 = 'Bldg 56'.

PARTNERADDRESSES-CITY = 'ahmedabad'. 

*APPEND PARTNERADDRESSES. CLEAR PARTNERADDRESSES*

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;call function 'BAPI_SALESORDER_CHANGE'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;salesdocument = salesd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN = it_BAPISDH1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;order_header_inx = it_BAPISDH1X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SIMULATION =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BEHAVE_WHEN_ERROR = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INT_NUMBER_ASSIGNMENT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LOGIC_SWITCH =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ORDER_ITEM_IN = it_BAPISDITM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ORDER_ITEM_INX = it_BAPISDITMX&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PARTNERS = it_BAPIPARNR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return = it_BAPIRET2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARTNERCHANGES = it_BAPIPARNRC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PARTNERADDRESSES = PARTNERADDRESSES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 11:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798960#M1586874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-21T11:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE - Fields update problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798961#M1586875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thing is that I don't want to fill those fields like STREET, NAME, CITY .etc. because they are exist allready.&lt;/P&gt;&lt;P&gt;I do not want to update all of this fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Daniel Duras on Mar 21, 2011 1:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 11:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798961#M1586875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-21T11:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE - Fields update problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798962#M1586876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first u use &lt;STRONG&gt;BAPISDORDER_GETDETAILEDLIST&lt;/STRONG&gt; and get list all then after wht u want to modify u can do for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if want to change val.type the  the see the following example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
order_header_in-sd_doc_cat  = 'C'.
order_header_inx-updateflag = 'U'.
i_bapi_view-header = 'X'.
i_bapi_view-item = 'X'.
i_bapi_view-partner = 'X'.
i_bapi_view-contract = 'X'.
i_bapi_view-sdcond = 'X'.
i_bapi_view-sdcond_add = 'X'.
i_bapi_view-billplan = 'X'.
i_bapi_view-configure = 'X'.
sales_documents-vbeln = v_order.
.
APPEND sales_documents.
***GET LIST OF SALESORDER
CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
  EXPORTING
    i_bapi_view            = i_bapi_view
  TABLES
    sales_documents        = sales_documents
    order_headers_out      = order_headers_out
    order_items_out        = order_items_out
    order_contracts_out    = order_contracts_out
    order_billingplans_out = order_billingplans_out
    order_billingdates_out = order_billingdates_out
    order_partners_out     = order_partners_out
    order_conditions_out   = order_conditions_out.

LOOP AT order_items_out .
  MOVE-CORRESPONDING order_items_out TO order_item_in.
  order_item_in-val_type = pval.
  APPEND order_item_in.
ENDLOOP
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pass &lt;STRONG&gt;order_item_in&lt;/STRONG&gt; into bapi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Krupaji on Mar 21, 2011 2:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 12:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798962#M1586876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-21T12:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE - Fields update problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798963#M1586877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt that you updated those fields; most likely, you created a new address with only those fields specified.  To change existing address detail, you should use the org. address change BAPI or one of the other functions provided for address changes.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Krupaji: if you're going to give example code, don't use deprecated syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data PARTNERADDRESSES like BAPIADDR1 occurs 0 with header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 13:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798963#M1586877</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-03-21T13:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE - Fields update problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798964#M1586878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replies again.&lt;/P&gt;&lt;P&gt;I have decided to use ADDR_UPDATE FM. Seems to work fine.&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 06:43:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-fields-update-problem/m-p/7798964#M1586878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-22T06:43:22Z</dc:date>
    </item>
  </channel>
</rss>

