‎2015 Oct 13 11:56 AM
Hi All,
when i am creating SO through BApi.
and i pass condition type as
| Condition item number | Condition type | Condition rate | Currency Key |
| ITM_NUMBER | COND_TYPE | COND_VALUE | CURRENCY |
| 10 | PR00 | 100 | EUR |
| 10 | EK02 | 110 | EUR |
| 10 | ZCOS | 120 | EUR |
The value of ZCOS get redetermined as EK02 . then manually it has to be changed in va02 as 120 .
i want it to be updated through BApi itself.
still its not happening..
And yes i have tried giving counters and filling cond_inx with update flag as .... 'I' , 'U'
correct answer will be rewarded
‎2015 Oct 13 12:51 PM
Did you check the importing parameter LOGIC_SWITCH.
Here you can pass how the pricing should behave. Take help from you functional person to understand how the values in PRICING field behave (DATA element KNPRS ). Documentation is also there for the same.
Hope this helps.
‎2015 Oct 13 12:45 PM
Hi,
I don't think there is a error in programing,condition types are determined by the system
ref the links :
https://scn.sap.com/thread/1759308
Condition Technique in Calculations and Price Determination - Strategic Sales - SAP Library
it is automatically changed in your code because the for the particular material the condition type has already been defined .
In va02 if the condition type is already defined it will be a non editable field.
so if condition type is not defined the system takes the value passed by you else it takes the value that has been already defined.
Hope this helps.
correct me if i am wrong
‎2015 Oct 13 12:51 PM
Did you check the importing parameter LOGIC_SWITCH.
Here you can pass how the pricing should behave. Take help from you functional person to understand how the values in PRICING field behave (DATA element KNPRS ). Documentation is also there for the same.
Hope this helps.
‎2015 Oct 13 2:16 PM
the correct answer was using pricing condition as 'G' in logic_switch