Skip to Content
0

BAPI_PRICES_CONDITIONS to create / change condition records

Oct 21, 2016 at 11:45 AM

322

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Bryan Lanning Jun 29 at 07:25 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded