I need to change date of a contract and for the same I am using Bapi "BAPI_CUSTOMERCONTRACT_CHANGE".
I am passing the following Parameters to the BAPI.
SALESDOCUMENT -- Have passed the Contract Number in this.
CONTRACT_HEADER_IN -- Have passed the values of the following fields ::
COLLECT_NO -- Sales Document number
Sales_Org -- Sales Organization
Distribution Channes -- Dist. Channel
Division -- Division
CT_VALID_T -- New date which I want as the contract end date.
CONTRACT_HEADER_INX -- Following values have been paased in this Structure.
UPDATEFLAG -- 'U'.
CT_VALID_T -- 'X'.
Now when I run the BAPI with these inputs I get the output as ' Field 'GUEEN' cannot be copied, because it is not ready for input'.This is a information message. But the changes are not reflected in the contract. I have done the commit work after BAPI.
When I changes the value for CT_VALID_T flag from 'X' to 'U' the message mentioned above does not come but the end result is same and changes are not reflected in the contract.
I would be really helpful to you if get any kind of helf to know ehy the output is not coming.
Thanks a Lot for your kind help!!!!
The value for CT_VALID_T flag has to be 'X' in the CONTRACT_HEADER_INX structure.
In this case, you receive an informative message "Field 'GUEEN' cannot be copied, because it is not ready for input'"
That is the problem. You cannot change this field because your functional team has this field as "not ready for input" in change mode.
Can you change this field in transaction VA42? If you can't modify it in dialog, you can't modify it with BAPI.
Thanks a Lot for your prompt answer.
But I could not find this field GUEEN in sales order.
One more thing when I try doing this same functionalty using BDC, it works fine. I dont know why it is not working using BAPI.
Could any one please guide me if I am using the correct BAPI "BAPI_CUSTOMERCONTRACT_CHANGE".
Is there any other BAPI/Functionmodule given SAP to change the contract end date of a contract.
Your help and inputs would be highly appreciated.