<?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 how to set condition type value as zero (0). in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763753#M1462043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_conditions_in-itm_number = wa_konv-kposn.
      wa_conditions_in-cond_st_no = wa_konv-stunr.
      wa_conditions_in-cond_count = wa_konv-zaehk.
      wa_conditions_in-cond_type  = wa_konv-kschl.
      wa_conditions_in-cond_value = wa_konv-kbetr.

      append wa_conditions_in to it_conditions_in.
      clear : wa_conditions_in.

      wa_conditions_inx-updateflag = 'U'.
      wa_conditions_inx-itm_number = wa_konv-kposn.
      wa_conditions_inx-cond_st_no = wa_konv-stunr.
      wa_conditions_inx-cond_count = wa_konv-zaehk.
      wa_conditions_inx-cond_type  = wa_konv-kschl.
      wa_conditions_inx-cond_value = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Apr 2010 05:01:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-13T05:01:25Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763750#M1462040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading a lot of posts about similar questions to this one I haveN'T finally got it. The resume is that everytime I try to set a value zero condition type from this BAPI, the condition type is determinated again! so i can't give it a zero value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My problem is as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; *1) I have a condition type on a Procedure ZABC and these are its specifications:*

_Access seq._
none

_Control DATA 1_ 
Cond. Class: A
Calculate Type: B
Cond. Category: ' '
Orunding Rule: ' '
StrucCond: ' '

{quote}  _Group condition_ {quote} 
none here

_Changes which can be made_
Manual entries: 'C'
All checks checked but "Header condition"

_Master Data_
none

_Scales_
none

_Control data 2_
just checked Currency Conv.: 'X'

_Text determination_
none

*2) Procedure specifications for this condition type:*
Manual: ' '
Required: 'X'
Stadistic: 'X'
Sutot: '6'
Requirement: yes, it uses a formula
CalType: yes, it uses a formula
BasType: yes, it uses a formula


*3) I use BAPI_SALESORDER_CREATEFROMDAT2 to create a sales order and in some cases I need to set this condition type value as zero. *
My item_condition_in table seems like this:
       clear wa_order_CONDITIONS_in.
        wa_order_CONDITIONS_in-itm_number = va_posicion.

        MOVE it_bapisdcond_O-COND_VALUE TO
        wa_order_CONDITIONS_in-COND_VALUE.

        MOVE it_bapisdcond_O-CONDVALUE TO
        wa_order_CONDITIONS_in-CONDVALUE.

        MOVE it_bapisdcond_O-COND_ST_NO
        TO wa_order_CONDITIONS_in-COND_ST_NO.

        MOVE it_bapisdcond_O-COND_COUNT
        TO wa_order_CONDITIONS_in-COND_COUNT.

        MOVE it_bapisdcond_O-APPLICATIO
        TO wa_order_CONDITIONS_in-APPLICATIO.

        MOVE it_bapisdcond_O-COND_TYPE
        TO wa_order_CONDITIONS_in-COND_TYPE.

        MOVE it_bapisdcond_O-CONPRICDAT
        TO wa_order_CONDITIONS_in-CONPRICDAT.

        MOVE it_bapisdcond_O-CALCTYPCON
        TO wa_order_CONDITIONS_in-CALCTYPCON.

        CLEAR wa_order_CONDITIONS_in-CONBASEVAL.

        MOVE it_bapisdcond_O-CURREN_ISO
        TO wa_order_CONDITIONS_in-CURRENISO.

        MOVE it_bapisdcond_O-CURRENCY
        TO wa_order_CONDITIONS_in-CURRENCY.

        MOVE it_bapisdcond_O-COND_P_UNT
        TO wa_order_CONDITIONS_in-COND_P_UNT.

        MOVE it_bapisdcond_O-COND_D_UNT
        TO wa_order_CONDITIONS_in-cond_unit.
        append wa_order_CONDITIONS_in to order_CONDITIONS_in.

        clear wa_order_CONDITIONS_inx.
        wa_order_CONDITIONS_inx-itm_number = va_posicion.
        wa_order_CONDITIONS_inx-COND_TYPE  = it_bapisdcond_O-cond_type.
        wa_order_CONDITIONS_inx-COND_VALUE = 'X'.
        wa_order_CONDITIONS_inx-CURRENCY   = 'X'.
        wa_order_CONDITIONS_inx-COND_UNIT  = 'X'.
        wa_order_CONDITIONS_inx-COND_P_UNT = 'X'.
        wa_order_CONDITIONS_inx-updateflag  = 'U'.
        append wa_order_CONDITIONS_inx to order_CONDITIONS_inx.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course the cond_value, condvalue and conbaseval are set to zero.. other than this I have tested filling different vars on the order_conditions_in structure and in the inx one. Like updateflag as 'I' instead of 'U'. Filling fields like currency, cond_p_unt, conbaseval or not filling them... But the condition type is always REDETERMINED!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS it able to set a zero value condition type from this BAPI when the condition type is formula calculated (base and value)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advise will be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: John Smith on Apr 12, 2010 12:22 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: John Smith on Apr 12, 2010 12:23 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: John Smith on Apr 12, 2010 12:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 10:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763750#M1462040</guid>
      <dc:creator>marcelogb</dc:creator>
      <dc:date>2010-04-12T10:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763751#M1462041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can pass the pricing condition from BAPI only when the pricing conditions are maintained as "Manual".  Otherwise, irrespective of the values passed though BAPI, pricing conditions&amp;amp;its values will be redetermined as per the pricing procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 10:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763751#M1462041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T10:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763752#M1462042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mmm I don´t think so. Why then can I change its value from VA02? I can set it as zero and it updates the prices. I don't know why I can't do the same from BAPI...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 15:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763752#M1462042</guid>
      <dc:creator>marcelogb</dc:creator>
      <dc:date>2010-04-12T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763753#M1462043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_conditions_in-itm_number = wa_konv-kposn.
      wa_conditions_in-cond_st_no = wa_konv-stunr.
      wa_conditions_in-cond_count = wa_konv-zaehk.
      wa_conditions_in-cond_type  = wa_konv-kschl.
      wa_conditions_in-cond_value = wa_konv-kbetr.

      append wa_conditions_in to it_conditions_in.
      clear : wa_conditions_in.

      wa_conditions_inx-updateflag = 'U'.
      wa_conditions_inx-itm_number = wa_konv-kposn.
      wa_conditions_inx-cond_st_no = wa_konv-stunr.
      wa_conditions_inx-cond_count = wa_konv-zaehk.
      wa_conditions_inx-cond_type  = wa_konv-kschl.
      wa_conditions_inx-cond_value = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 05:01:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763753#M1462043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T05:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763754#M1462044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's how I have it. I have also tried to delete ("D")  it or insert ("I") it but I got the same result. It recalculates it again instead of setting my new value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to change the procedure config for this condition type ZABC, I have tried checking obligatory, unchecking it, checking manual and unchecking it... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just remember is a condition type with formula in calculation and in base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: John Smith on Apr 13, 2010 1:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 11:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763754#M1462044</guid>
      <dc:creator>marcelogb</dc:creator>
      <dc:date>2010-04-13T11:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763755#M1462045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried by changing the update flag?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_conditions_inx-updateflag = 'I'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 11:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763755#M1462045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T11:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763756#M1462046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, as I told in my last post, I have also tried "I" and "D" since I have to set its value to zero, I tried to delete it but same thing occurs... system calculates it again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need any kind of additional info just ask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 12:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763756#M1462046</guid>
      <dc:creator>marcelogb</dc:creator>
      <dc:date>2010-04-13T12:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763757#M1462047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had simulated your scenario, which worked properly for me.  Check the following..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Confirm whether the pricing condition you are updating is manual,&lt;/P&gt;&lt;P&gt;2) Is there any pricing routine attached to this pricing condition (Check the pricing procedure), if yes check the coding in VOFM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 08:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763757#M1462047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T08:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763758#M1462048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, as I told before, the condition type has two routines, one for value and another for base. Although I check CONDVALUE, COND_VALUE and CONBASEVAL to set value zero and the option "Changes which can be made" is set to C (Manual changes have priority), it always recalculate the value with the calculation routine instead of set my value. I have also tried to set any other value diferent from zero and is always the same, It recalculates the value with the routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My last try was setting the condition type like manual in the procedure but even in manual, it recalculates its value based on the calculation routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your effort and help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 10:07:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763758#M1462048</guid>
      <dc:creator>marcelogb</dc:creator>
      <dc:date>2010-04-14T10:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763759#M1462049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you remove the calculcation routine and check the BAPI?  If it works, then it is due the calculation routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar on Apr 14, 2010 3:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 10:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763759#M1462049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T10:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763760#M1462050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your help. I really think is not possible to change its value since the condition type has a calculation routine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way what I finally did was use the KBETR (import) since I didn't need it for anything (it was always zero) and modify my calculation routine like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; If I want to overwrite the value depending on some sales position conditions I just set the value (KWERT) from the KBETR that I manually filled in my report. If the condition isn't satisfied it just work as usual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I was clear enough, anyway ask if you need any support on my solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all Vinod, effort is always appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 09:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-how-to-set-condition-type-value-as-zero-0/m-p/6763760#M1462050</guid>
      <dc:creator>marcelogb</dc:creator>
      <dc:date>2010-04-16T09:40:28Z</dc:date>
    </item>
  </channel>
</rss>

