Skip to Content
Former Member
Sep 05, 2011 at 04:29 PM

BAPI_CONTRACT_CREATE condition/scales/validity problem


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,