<?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 insert sales order item lines ERRORS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170443#M1197277</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;&lt;STRONG&gt;Error 1&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Header data is process succesfully&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item data has a problem. Item category is not available in the sytem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error 2&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;material is the flat file is not defined in the system or there might be a mismatch in the way it has been written. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the material number is given sometimes the FF might contain the materail desc instead of Mat no. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2009 12:20:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-10T12:20:53Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CHANGE insert sales order item lines ERRORS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170442#M1197276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to insert new item lines for a &lt;U&gt;given sales order document number&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;i use bapi_salesorder_change but it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are the &lt;U&gt;messages in the return&lt;/U&gt; table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Error 1.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Message: ORDER_HEADER_IN has been processed succesfully&lt;/P&gt;&lt;P&gt;Message: No item category available&lt;/P&gt;&lt;P&gt;Message: Error in ITEM_IN&lt;/P&gt;&lt;P&gt;Message: Condition cc_cond is not allowed as header condition&lt;/P&gt;&lt;P&gt;Message: Sales document was not changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Error 2.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Message: ORDER_HEADER_IN has been processed succesfully&lt;/P&gt;&lt;P&gt;Message:Material is not defined for sales org., distribution chan, language DE {but i checked the table mvke with the matnr and sales org and distribution chanel and the material exists}&lt;/P&gt;&lt;P&gt;Message: Error in ITEM_IN&lt;/P&gt;&lt;P&gt;Message: Condition cc_cond is not allowed as header condition&lt;/P&gt;&lt;P&gt;Message: Sales document was not changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;here is the code:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_t_item-itm_number    = p_posnr.&lt;/P&gt;&lt;P&gt;  i_t_item-material      = p_matnr.&lt;/P&gt;&lt;P&gt;  i_t_item-target_qty    = p_qty.&lt;/P&gt;&lt;P&gt;  i_t_item-plant         = p_plant.&lt;/P&gt;&lt;P&gt;  i_t_item-hg_lv_item = p_uepos. &lt;/P&gt;&lt;P&gt;  i_t_item-price_date   = p_preisdat.&lt;/P&gt;&lt;P&gt;   i_t_item-prc_group2   = cc_prc_group.&lt;/P&gt;&lt;P&gt;  APPEND i_t_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*setting conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_t_bapicond-itm_number  = p_posnr.&lt;/P&gt;&lt;P&gt;  i_t_bapicond-cond_type   = cc_condition_type.&lt;/P&gt;&lt;P&gt;  i_t_bapicond-cond_value  = l_netwr.&lt;/P&gt;&lt;P&gt;  i_t_bapicond-conpricdat  = gc_datum.&lt;/P&gt;&lt;P&gt;  i_t_bapicond-currency    = cc_eur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND i_t_bapicond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_t_itemx-updateflag = cc_i. {= 'I'}&lt;/P&gt;&lt;P&gt;  i_t_itemx-itm_number = p_posnr.&lt;/P&gt;&lt;P&gt;  i_t_itemx-material      = cc_x.&lt;/P&gt;&lt;P&gt;  i_t_itemx-target_qty    = cc_x.&lt;/P&gt;&lt;P&gt;  i_t_itemx-plant         = cc_x.&lt;/P&gt;&lt;P&gt;  i_t_itemx-hg_lv_item    = cc_x.&lt;/P&gt;&lt;P&gt;  i_t_itemx-price_date    = cc_x.&lt;/P&gt;&lt;P&gt;  i_t_itemx-prc_group2    = cc_x.&lt;/P&gt;&lt;P&gt;  APPEND i_t_itemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_t_bapicondx-updateflag = cc_i.{'I'}&lt;/P&gt;&lt;P&gt;  i_t_bapicondx-itm_number = p_posnr.&lt;/P&gt;&lt;P&gt;  i_t_bapicondx-cond_type = cc_x.&lt;/P&gt;&lt;P&gt;  i_t_bapicondx-cond_value = cc_x.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; i_t_bapicondx-conpricdat = cc_x.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  i_t_bapicondx-currency = cc_x.&lt;/P&gt;&lt;P&gt;  append i_t_bapicondx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: l_behave, sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR i_t_header.&lt;/P&gt;&lt;P&gt;  i_t_header-updateflag = cc_u. {='U'}&lt;/P&gt;&lt;P&gt;  APPEND i_t_header.&lt;/P&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               = sales_ord_number&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   ORDER_HEADER_IN       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;       order_header_inx            = i_t_header&lt;/P&gt;&lt;P&gt;       simulation                      = cc_x&lt;/P&gt;&lt;P&gt;       behave_when_error         = l_behave&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   INT_NUMBER_ASSIGNMENT       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   LOGIC_SWITCH                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;       return                              = i_t_return&lt;/P&gt;&lt;P&gt;       order_item_in                  = i_t_item&lt;/P&gt;&lt;P&gt;       order_item_inx                = i_t_itemx&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   PARTNERS                        = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   PARTNERCHANGES              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   PARTNERADDRESSES            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   ORDER_CFGS_REF              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   ORDER_CFGS_INST             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   ORDER_CFGS_PART_OF          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   ORDER_CFGS_VALUE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   ORDER_CFGS_BLOB             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   ORDER_CFGS_VK               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   ORDER_CFGS_REFINST          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   SCHEDULE_LINES         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   SCHEDULE_LINESX             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;       order_text                    = i_t_text&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   ORDER_KEYS                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;       conditions_in               = i_t_bapicond&lt;/P&gt;&lt;P&gt;       conditions_inx             = i_t_bapicondx&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     extensionin                 = i_t_extensionin.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF i_t_return-type EQ cc_s OR i_t_return-type EQ cc_w OR i_t_return-type EQ cc_i.&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 = cc_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM return_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    p_flag = cc_x.&lt;/P&gt;&lt;P&gt;    PERFORM return_code_err.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to rollback the transation for error records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF. " IF i_t_return-type EQ 'S'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope you can tell me where my code is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Emilia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 12:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170442#M1197276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T12:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE insert sales order item lines ERRORS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170443#M1197277</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;&lt;STRONG&gt;Error 1&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Header data is process succesfully&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item data has a problem. Item category is not available in the sytem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error 2&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;material is the flat file is not defined in the system or there might be a mismatch in the way it has been written. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the material number is given sometimes the FF might contain the materail desc instead of Mat no. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 12:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170443#M1197277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T12:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE insert sales order item lines ERRORS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170444#M1197278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Error 2&lt;/U&gt;&lt;/P&gt;&lt;P&gt;i checked about the material number and it seems that everything is in order.&lt;/P&gt;&lt;P&gt;so this is not the problem.:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Error 1&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;about the item category error: do i get this error because i don't fill the field ITEM_CATEG? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Error 1 and Error 2&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About Message: &lt;STRONG&gt;Condition cc_cond is not allowed as header condition&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i really don't undesrtand what this is about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Emilia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 12:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170444#M1197278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T12:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE insert sales order item lines ERRORS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170445#M1197279</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;&lt;/P&gt;&lt;P&gt;About Message: Condition cc_cond is not allowed as header condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some condition has been given in the Header which cannot be assigned in the item level or vice versa. Please chk with the sd guys. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 13:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170445#M1197279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T13:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE insert sales order item lines ERRORS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170446#M1197280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i rechecked the data and it seems that it was indeed a problem of the way the matnr was written.&lt;/P&gt;&lt;P&gt;because a matnr has leading zeroes (e.g. 000000000000009321).&lt;/P&gt;&lt;P&gt;when i read the material i just read 9321 and when i assign the value the matnr becomes: 932100000000000000. so i had to add the leading zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the other problems were directly related to the faulty mat number.&lt;/P&gt;&lt;P&gt;so: &lt;/P&gt;&lt;P&gt;since the material number was not recognized the item line had an error and could not be inserted and so the conditions were recognized at header level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards, emilia.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 09:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170446#M1197280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T09:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE insert sales order item lines ERRORS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170447#M1197281</link>
      <description>&lt;P&gt;ERROR1&lt;/P&gt;&lt;P&gt;Message: &lt;STRONG&gt;No item category available&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;if you are creating a new line item, this message might indicated that system cannot determine a item category for the new line item , you should check the configuration of item category determinatoin in spro, Combine sales document type/Item category group(in Material Master data-Sales 2 View)/Usage/ High item category(if BOM is involved) in VOV4&lt;/P&gt;&lt;P&gt;elseif you are changing a existing line item, this message might indicates that system did not read the line item data since you already create the order ,there's no way your configuration is wrong unless you change the configuration afterthen, SO Please check the BAPI Table :ORDER ITEMS INX, check whether you maintain the parameter : ITM_NUMBER , without this ,BAPI can not read the line item data&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 07:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-insert-sales-order-item-lines-errors/m-p/5170447#M1197281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-08-05T07:25:12Z</dc:date>
    </item>
  </channel>
</rss>

