Application Development 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: 

Change the contract

former_member202077
Participant
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

Any help pls?

Thank you

0 Kudos

What is the message number and id?

Rob