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

Former Member
0 Kudos

Hi guys,

I'm trying to use BAPI_PRICES_CONDITIONS to create and/or update price conditions and scales info records, but I'm having some difficulties...

Anyone have a sample code to do this? or valuable tips on this?

most of the related posts are a bit contradictory...

Thanks in advance!

Nuno

3 REPLIES 3

Former Member

0 Kudos

does this BAPI manage overlapping validity dates? I find its behavior a bit strange.

and if you update a info record with a new validity period with scales, it updates other periods with same scale values... bizarre!

any tips?!

Former Member
0 Kudos

exactly....that BAPI is internally released and can cause inconsistency as you

faced. Hence this BAPI cannot take care of even creating conditions incase it is used for populating condition tables which wouldnt have anykeys otherthan material customer and dates. Incase of rebate conditions yoou can go ahead and use this as agreement number or something similar will also be a part of key.

For creating pricing conditions you can use RV_CONDITION_COPY.Which creates conditions exactly as in VK11( checking overlaping dates and arranging).

However to delete older connditions you are left with no choice otherthan to manually set kona-loevm field to 'X'.

Reward if usefull

Thanks

Rendeep