11-20-2007 4:13 PM
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
11-20-2007 4:28 PM
Check the below link :
http://www.sapnet.ru/viewtopic.php?p=765&sid=88b6f60f85501678fc93cd16e187ad61
Thanks
Seshu
11-30-2007 4:56 PM
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?!
12-05-2007 11:02 AM
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