Application Development and Automation 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: 
Read only

Installation Date ( VEDA-VINSDAT)

Former Member
0 Likes
1,235

Are there any function module/BAPI available to update Installation Date of Order in ECC. Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,088

Yes you can update installation date through BAPI_CUSTOMERCONTRACT_CHANGE.

In this BAPI you have table parameter CONTRACT_DATA_IN where there is fields INST_DATE that you can use to update VEDA-VINSDAT. Also remember to pass 'X' in CONTRACT_DATA_INX-INST_DATE, so that the BAPI knows you want to update this field

Are there any function module/BAPI available to update Installation Date of Order in ECC. Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
1,089

Yes you can update installation date through BAPI_CUSTOMERCONTRACT_CHANGE.

In this BAPI you have table parameter CONTRACT_DATA_IN where there is fields INST_DATE that you can use to update VEDA-VINSDAT. Also remember to pass 'X' in CONTRACT_DATA_INX-INST_DATE, so that the BAPI knows you want to update this field

Read only

0 Likes
1,088

Thanks.

Read only

0 Likes
1,088

Can you show me the complete code for change Installation that in VEDA.

I have a problem, I only can update the header veda installation date with posnr '00000' when I want to update posnr '00011'.

This is My Code

lv_doc = '4110000440'.

w_header-sales_org = '1000'.
w_header-distr_chan = '20'.
w_header-division = '10'.
w_header-sales_grp = '100'.
w_header-sales_off = '1600'.
w_header-PURCH_NO_C = '0014669494'.

w_headerx-updateflag = 'U'.

w_contract-itm_number = '00000'.
w_contract-inst_date = '20231112'.
APPEND w_contract TO t_contract.

w_contract-itm_number = '11'.
w_contract-inst_date = '20231112'.
APPEND w_contract TO t_contract.

w_contractx-itm_number = '11'.
w_contractx-inst_date = 'X'.
w_contractx-updateflag = 'U'.
APPEND w_contractx TO t_contractx.

w_contractx-itm_number = '00000'.
w_contractx-inst_date = 'X'.
w_contractx-updateflag = 'U'.
APPEND w_contractx TO t_contractx.

CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
EXPORTING
salesdocument = lv_doc
contract_header_in = w_header
contract_header_inx = w_headerx
TABLES
return = w_return
contract_data_in = t_contract
contract_data_inx = t_contractx.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.