Skip to Content
avatar image
Former Member

BAPI_PRICES_CONDITIONS to create / change condition records

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 29 at 07: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.

    Add comment
    10|10000 characters needed characters exceeded