2012 Jan 16 6:28 PM
Are there any function module/BAPI available to update Installation Date of Order in ECC. Thanks.
2012 Jan 16 6:46 PM
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.
2012 Jan 16 6:46 PM
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
2012 Jan 16 9:39 PM
2023 Jun 22 8:55 AM
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'.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |