Need to change CONTRACT End date using Bapi BAPI_CUSTOMERCONTRACT_CHANGE
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!!!!
try to use the structure CONTRACT_DATA_IN and CONTRACT_DATA_INX. The field you have to fill is CON_EN_DAT, for the item "000000" (header data).
The field VBAK-GUEEN is filled with the data of VEDA-VENDDAT for the header.