Application Development and Automation 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: 
Read only

BAPI_CONTRACT_CREATE condition/scales/validity problem

Former Member
0 Likes
1,541

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,009

Anyone?

A little hint will also do.

Thanks

Read only

0 Likes
1,009

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

Read only

0 Likes
1,009

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!

Read only

0 Likes
1,009

Hi,

Go thru this thread: [LSMW create Vendor Contract ME31k|;

Concentrate on second last answer!!

Reetesh