<?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_CREATEFROMDAT2 doesn't work for header Condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735546#M1581341</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;My belief is that CONDCOINHD is the only one that needs to be set for the Header Condition type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i'll have to look at the BAPI code to confirm. Will it be possible for you to try with leaving COND_COUNT blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Naveen Vajja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Mar 2011 05:58:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-25T05:58:53Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735542#M1581337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a sales order using BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't work to create a heder condition.(HB00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After BAPI, I check KONV data, HB00 data is broken.&lt;/P&gt;&lt;P&gt;KONV-STUNR and KONV-ZAEHK is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but item condtion data is OK. no problem.&lt;/P&gt;&lt;P&gt;I don't know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any idea, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------" /&gt;&lt;P&gt;IW_LOGIC_SWITCH-PRICING = 'G'&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR IW_CONDITIONS.&lt;/P&gt;&lt;P&gt;IW_CONDITIONS-ITM_NUMBER = '000000'.&lt;/P&gt;&lt;P&gt;IW_CONDITIONS-COND_COUNT = '01'.&lt;/P&gt;&lt;P&gt;IW_CONDITIONS-COND_TYPE  = 'HB00'.&lt;/P&gt;&lt;P&gt;IW_CONDITIONS-COND_VALUE = W_VALUE.&lt;/P&gt;&lt;P&gt;IW_CONDITIONS-CURRENCY   = W_WAERK.&lt;/P&gt;&lt;P&gt;IW_CONDITIONS-CONDCOINHD = '01'.&lt;/P&gt;&lt;P&gt;APPEND IW_CONDITIONS TO IT_CONDITIONS.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ORDER_HEADER_IN               = IW_HEADER&lt;/P&gt;&lt;P&gt;    LOGIC_SWITCH                  = IW_LOGIC_SWITCH&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    SALESDOCUMENT                 = W_SALEDOC&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    RETURN                        = IT_RETURN&lt;/P&gt;&lt;P&gt;    ORDER_ITEMS_IN                = IT_ITEMS&lt;/P&gt;&lt;P&gt;    ORDER_PARTNERS                = IT_PARTNERS&lt;/P&gt;&lt;P&gt;    ORDER_SCHEDULES_IN            = IT_SCHEDULES&lt;/P&gt;&lt;P&gt;    ORDER_CONDITIONS_IN           = IT_CONDITIONS&lt;/P&gt;&lt;P&gt;    ORDER_TEXT                    = IT_TEXT&lt;/P&gt;&lt;P&gt;    EXTENSIONIN                   = IT_EXTENSIONIN&lt;/P&gt;&lt;P&gt;    PARTNERADDRESSES              = IT_PARTNERADDRESSES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 04:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735542#M1581337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T04:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735543#M1581338</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;Are you sure that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IW_CONDITIONS-COND_COUNT = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IW_CONDITIONS-CONDCOINHD = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hold. Sometimes they have to different. Just an educated guess though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 05:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735543#M1581338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T05:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735544#M1581339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ncvajja.&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to set different value COND_COUNT and CONDCOINHD?&lt;/P&gt;&lt;P&gt;How do I code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Rie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 05:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735544#M1581339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T05:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735545#M1581340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
lt_cond-itm_number = sy-tabix.
lt_cond-cond_value =  13.
lt_cond-currency = 'INR'.
lt_cond-condvalue = lt_cond-cond_value .
lt_cond-cond_type = 'HB00'.
append lt_cond.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
lt_condx-UPDATEFLAG = 'I'.
lt_condx-itm_number = 'X'.
lt_condx-currency = 'X'.
lt_condx-condvalue = 'X'.

 lt_condx-cond_type = 'X' . 

append lt_condx.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Krupaji on Mar 25, 2011 6:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 05:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735545#M1581340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T05:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735546#M1581341</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;My belief is that CONDCOINHD is the only one that needs to be set for the Header Condition type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i'll have to look at the BAPI code to confirm. Will it be possible for you to try with leaving COND_COUNT blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Naveen Vajja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 05:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735546#M1581341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T05:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735547#M1581342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your Reply, Krupaji  and Ncvajja .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but It doesn't still working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krupaji,&lt;/P&gt;&lt;P&gt;I tryed your code, but I can't.&lt;/P&gt;&lt;P&gt;I think that It doesn't need to set on CONDX parameter for my pattern of createing a new sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ncvajja&lt;/P&gt;&lt;P&gt;I tryed this code:&lt;/P&gt;&lt;P&gt; CONDCOINHD = '01'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;COND_COUNT = '01'     "comment &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still doesn't work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any other idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Rie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 06:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735547#M1581342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T06:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735548#M1581343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the following link&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="8969882"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
L_ORDER_PARTNERS-PARTN_ROLE = 'AG'.
L_ORDER_PARTNERS-PARTN_NUMB =
RECORD-KUNNR_1.
APPEND L_ORDER_PARTNERS TO
LI_ORDER_PARTNERS.
 
L_ORDER_PARTNERS-PARTN_ROLE = 'WE'.
L_ORDER_PARTNERS-PARTN_NUMB =
RECORD-KUNNR_2.
APPEND L_ORDER_PARTNERS TO
LI_ORDER_PARTNERS.
*------------------------------------------------------------------
* Build order header
*------------------------------------------------------------------
CLEAR: L_ORDER_HEADER_INX,
L_ORDER_HEADER_IN.
* Update flag
L_ORDER_HEADER_INX-UPDATEFLAG = 'I'.
* Sales document type
L_ORDER_HEADER_IN-DOC_TYPE =
RECORD-AUART.
L_ORDER_HEADER_INX-DOC_TYPE = 'X'.
* Sales organization
L_ORDER_HEADER_IN-SALES_ORG = RECORD-VKORG.
L_ORDER_HEADER_INX-SALES_ORG = 'X'.
* Distribution channel
L_ORDER_HEADER_IN-DISTR_CHAN = RECORD-VTWEG.
L_ORDER_HEADER_INX-DISTR_CHAN = 'X'.
* Division
L_ORDER_HEADER_IN-DIVISION = RECORD-SPART.
L_ORDER_HEADER_INX-DIVISION = 'X'.
* Sales Office
L_ORDER_HEADER_IN-SALES_OFF = RECORD-VKBUR.
L_ORDER_HEADER_INX-SALES_OFF = 'X'.
* Sales Group
L_ORDER_HEADER_IN-SALES_GRP = RECORD-VKGRP.
L_ORDER_HEADER_INX-SALES_GRP = 'X'.
* Purchase order
L_ORDER_HEADER_IN-PURCH_NO_C = RECORD-BSTNK.
L_ORDER_HEADER_INX-PURCH_NO_C = 'X'.
* Purchase order Date
L_ORDER_HEADER_IN-PURCH_DATE =
RECORD-BSTDK.
L_ORDER_HEADER_INX-PURCH_DATE = 'X'.
* Payment Terms
L_ORDER_HEADER_IN-PMNTTRMS = RECORD-ZTERM.
L_ORDER_HEADER_INX-PMNTTRMS = 'X'.
* Incoterm1
L_ORDER_HEADER_IN-INCOTERMS1 = RECORD-INCO1.
L_ORDER_HEADER_INX-INCOTERMS1 = 'X'.
* Incoterm2
L_ORDER_HEADER_IN-INCOTERMS2 = RECORD-INCO2.
L_ORDER_HEADER_INX-INCOTERMS2 = 'X'.
* Customer Group
L_ORDER_HEADER_IN-CUSGROUP = RECORD-KDGRP.
L_ORDER_HEADER_INX-CUSGROUP = 'X'.
ENDIF.
 
*------------------------------------------------------------------
* Build order item(s)
*------------------------------------------------------------------
CLEAR: L_ORDER_ITEMS_INX, L_ORDER_ITEMS_IN.
L_ORDER_ITEMS_IN-ITM_NUMBER = INO.
L_ORDER_ITEMS_INX-ITM_NUMBER = INO.
 
L_ORDER_ITEMS_IN-MATERIAL = RECORD-MABNR.
L_ORDER_ITEMS_INX-MATERIAL = 'X'.
 
L_ORDER_ITEMS_IN-PLANT = RECORD-WERKS.
L_ORDER_ITEMS_INX-PLANT = 'X'.
 
L_ORDER_ITEMS_IN-SALES_UNIT = RECORD-VRKME.
L_ORDER_ITEMS_INX-SALES_UNIT = 'X'.
 
L_ORDER_ITEMS_IN-WBS_ELEM = RECORD-PS_POSID.
L_ORDER_ITEMS_INX-WBS_ELEM = 'X'.
 
APPEND L_ORDER_ITEMS_IN TO LI_ORDER_ITEMS_IN.
 
L_ORDER_ITEMS_INX-UPDATEFLAG = 'I'.
APPEND L_ORDER_ITEMS_INX TO
LI_ORDER_ITEMS_INX.
*----------------------------------------------------------------------
* Build Schedule lines... Order Quantity
*----------------------------------------------------------------------
CLEAR: L_ORDER_SCHEDULES_IN,
L_ORDER_SCHEDULES_INX.
L_ORDER_SCHEDULES_IN-ITM_NUMBER = INO.
L_ORDER_SCHEDULES_INX-ITM_NUMBER = INO.
 
L_ORDER_SCHEDULES_IN-REQ_QTY = RECORD-KWMENG.
L_ORDER_SCHEDULES_INX-REQ_QTY = 'X'.
 
L_ORDER_SCHEDULES_INX-UPDATEFLAG = 'X'.
 
APPEND L_ORDER_SCHEDULES_IN TO
LI_ORDER_SCHEDULES_IN.
APPEND L_ORDER_SCHEDULES_INX TO
LI_ORDER_SCHEDULES_INX.
 
 
*----------------------------------------------------------------------
* Build Conditions
*----------------------------------------------------------------------
CLEAR: L_ORDER_CONDITIONS_IN,
L_ORDER_CONDITIONS_INX.
 
L_ORDER_CONDITIONS_IN-ITM_NUMBER = INO.
L_ORDER_CONDITIONS_IN-COND_COUNT = '01'.
L_ORDER_CONDITIONS_IN-COND_TYPE =
RECORD-KSCHL_1.
L_ORDER_CONDITIONS_IN-COND_VALUE =
RECORD-KBETR_1.
IF RECORD-KSCHL_1 = 'PR00'.
L_ORDER_CONDITIONS_IN-COND_VALUE =
L_ORDER_CONDITIONS_IN-COND_VALUE
/ 10.
ENDIF.
 
L_ORDER_CONDITIONS_INX-ITM_NUMBER = INO.
L_ORDER_CONDITIONS_INX-COND_COUNT = '01'.
L_ORDER_CONDITIONS_INX-COND_TYPE =
RECORD-KSCHL_1.
L_ORDER_CONDITIONS_INX-UPDATEFLAG = 'X'.
L_ORDER_CONDITIONS_INX-COND_VALUE = 'X'.
 
APPEND L_ORDER_CONDITIONS_IN TO
LI_ORDER_CONDITIONS_IN.
APPEND L_ORDER_CONDITIONS_INX TO
LI_ORDER_CONDITIONS_INX.
 
 
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
 
ORDER_HEADER_IN =L_ORDER_HEADER_IN
ORDER_HEADER_INX = L_ORDER_HEADER_INX
 
IMPORTING
SALESDOCUMENT = L_VBELN
TABLES
RETURN = LI_RETURN
ORDER_ITEMS_IN =
LI_ORDER_ITEMS_IN
ORDER_ITEMS_INX =
LI_ORDER_ITEMS_INX
ORDER_PARTNERS =
LI_ORDER_PARTNERS
ORDER_SCHEDULES_IN =
LI_ORDER_SCHEDULES_IN
ORDER_SCHEDULES_INX =
LI_ORDER_SCHEDULES_INX
ORDER_CONDITIONS_IN =
LI_ORDER_CONDITIONS_IN
ORDER_CONDITIONS_INX =
LI_ORDER_CONDITIONS_INX
 
.
 
END-OF-SELECTION


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 06:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735548#M1581343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T06:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735549#M1581344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also face the same issue long before. The solution I tried is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just make use of the x-structures when you pass to bapi. You have to set the updateflag for each field that you want to update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you to close the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do appreciate if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vinit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 07:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735549#M1581344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T07:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735550#M1581345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also facing same situation where Header conditions from Quotation are not getting copied to the Sale order while using this BAPI( BAPI_SALESORDER_CREATEFROMDAT2). Here I have more than one header Condition to be copied. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know whether it is possible to copy those Header condition using this BAPI. It will be helpful if you can specify what all are the mandatory fields that needs to be populated in ORDER_CONDITION_IN, in order to copy header conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 14:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735550#M1581345</guid>
      <dc:creator>former_member498725</dc:creator>
      <dc:date>2011-03-31T14:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735551#M1581346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no possible without pass updateflag&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
lt_condx-UPDATEFLAG = 'I'.
lt_condx-itm_number = 'X'.
lt_condx-currency = 'X'.
lt_condx-condvalue = 'X'.
 
 lt_condx-cond_type = 'X' . 
 
append lt_condx.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 07:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735551#M1581346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-01T07:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735552#M1581347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the solution. I was not passing the parameter LOGIC_SWITCH in BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to pass LOGIC_SWITCH-PRICING = 'G'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also for BAPICONDX these values to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPICONDX-itm_number = '000000'.&lt;/P&gt;&lt;P&gt;BAPICONDX-cond_type = condition type&lt;/P&gt;&lt;P&gt;BAPICONDX-cond_value = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful to copy all the header conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Apr 2011 07:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735552#M1581347</guid>
      <dc:creator>former_member498725</dc:creator>
      <dc:date>2011-04-03T07:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735553#M1581348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved my problem myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NG -&amp;gt;  IW_LOGIC_SWITCH-PRICING = 'G'&lt;/P&gt;&lt;P&gt;OK -&amp;gt;   IW_LOGIC_SWITCH-COND_HANDL = 'X'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only that, I can solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for many comments!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;Rie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 04:45:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-doesn-t-work-for-header-condition/m-p/7735553#M1581348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-17T04:45:58Z</dc:date>
    </item>
  </channel>
</rss>

