10-21-2016 12:45 PM
Hi,
I am using BAPI_PRICES_CONDITIONS to create / change condition records.
When i am using it to create and change rate its working fine.
However when i am trying to change dates or create new record with overlapping dates I get multiple recorrds in my condition table.
Scenario 1.
Before
Condition_1 21.10.2016 --> 31.12.9999
After
EXpected:
Condition_1 21.10.2016 --> 30.10.2016
Condition_2 31.10.2016 --> 31.12.9999
Actual:
Condition_1 21.10.2016 --> 31.12.9999
Condition_2 31.10.2016 --> 31.12.9999
Scenario 2
Before
Condition_1 21.10.2016 --> 31.12.9999
After
EXpected:
Condition_1 21.10.2016 --> 30.10.2016 (change end date)
Actual:
Condition_1 21.10.2016 --> 31.12.9999
Condition_1 21.10.2016 --> 30.10.2016
06-29-2018 8:25 PM
Although this is an old post, it is coming up in web searches. For future readers, the OP is describing a known bug in BAPI_PRICES_CONDITIONS that is described in SAP Note 1135984. From the note: "This is not an error. The function module BAPI_PRICES_CONDITIONS has the status 'Not released'; you should not use it.".
The note suggests two alternatives; batch input or IDocs.