‎2011 Sep 05 5:29 PM
Hi Experts,
I know there are some threads floating around for this but I haven't got any satisfactory reply yet. Hence a new thread.
I have to create a contract with conditions, validity and scales. And I am using BAPI_CONTRACT_CREATE
The contract is getting created properly but the conditions are not getting created except for the default net price condition.
Neither can the validity period be set.
I know that scales cannot be created with BAPI_CONTRACT_CREATE and rather it has to be incorporated using BAPI_CONTRACT_CHANGE.
But I am stuck at condition creation itself. I have tried all kinds of values but I am missing something. I have tried adding contract through the ME_PROCESS_OUT_CUST BADI also, in vain. The validity dates are getting set to default from today to 12/31/9999 and are not taking my own dates.
Can you tell me if it is at all possible to create condition records and set validity dates using BAPI_CONTRACT_CREATE? If so, what is that I am missing?
It would be really kind if you can paste a working code snippet here of the values that are to be passed.
Thanks in advance,
Shinjan
‎2011 Sep 07 9:04 AM
‎2011 Sep 20 4:02 PM
Hello Shinjan
I have the exact same problem, BAPI can change sort text, vendor mat number etc.
But i cant change existing or add a new condition validity period with new conditions.
Have you got any closer to solve the problem since you wrote the post?
Could someone help us with this?
Thanks
‎2011 Dec 02 5:15 PM
Hi Shinjan,
Did you manage to solve this issue? I am strugling with the same - condition validity dates defaulted to system date - 31.12.9999 when using BAPI_CONTRACT_CREATE.
Even if I try to change the validity using BAPI_CONTRACT_CHANGE, I get now two validity periods: for example 01.12.2011 - 31.12.2011 (the one I add) and 01.01.2012 - 31.12.9999.
If you have any idea, please share as I am stuck.
Thank you!
‎2011 Dec 02 5:50 PM