06-14-2012 4:05 AM
Hello
I need to create a new item/s to an existing contract (online its VA42 tx), so i am trying to use the 'BAPI_CONTRACT_CHANGE' and 'BAPI_CUSTOMERCONTRACT_CHANGE' BAPIs, but i stucked at
1) For Item: which is the correct field and structure for passing Billing Start Date and Billing End Date
2) in this perspective i tried tables param 'CONTRACT_DATA_IN - CON_ST_DAT' and 'CONTRACT_DATA_IN - CON_EN_DAT' is it correct? then am gettign an error saying 'Pls. pass the date rule'? what is this? i guess its/system is not asking to pass user date format (MM/DD/YYYY, DD.MM.YYYY), its some thing else
3) For Item: which is the correct field and structure for passing a new condition (in VA42, we normally enter by just gng to conditions tab and we add a new condition)?
Thank you
06-14-2012 6:11 AM
Hii,
Just try by passing date in below FM
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = CONTRACT_DATA_IN - CON_ST_DAT
* ACCEPT_INITIAL_DATE =
IMPORTING
date_internal = CONTRACT_DATA_IN - CON_ST_DAT .
Regards,
Ashwath
06-14-2012 5:20 PM
No, its(formatting the date) not the cause. Pls. experts shed some light,
1) For Item: which is the correct field and structure for passing a new condition (in VA42, we normally enter by just gng to conditions tab and we add a new condition)? seems we can create a new item and adding a new condition in ONE SHOT by calling only once! am i correct?
12 For Item: which is the correct field and structure for passing Billing Start Date and Billing End Date
3) in this perspective i tried tables param 'CONTRACT_DATA_IN - CON_ST_DAT' and 'CONTRACT_DATA_IN - CON_EN_DAT' is it correct? then am gettign an error saying 'Pls. pass the date rule'? what is this? i guess its/system is not asking to pass user date format (MM/DD/YYYY, DD.MM.YYYY), its some thing else
06-14-2012 6:20 PM
06-14-2012 6:35 PM