Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PRICES_CONDITIONS to create / change condition records

Former Member
0 Kudos

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

1 REPLY 1

bryan_lanning2
Explorer
0 Kudos

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.