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

problem while updating contract with bapi_contract_change

Former Member
0 Likes
580

Dear Experts , I have a requirement to insert the condition records in contract which got created from SRM , I am using bapi_contract_change . but not able to insert condition records like basic price , discount , fright .

we have two basic price for the contract one for normal goods and other for free goods , is this the resion of not able to update condition records because if I have only one basic price then bapi is working fine ? basic price is not coming into contract even when contract got created from SRM

and also I am getting message in return code that contract change successfully message type S , and Not a price condition message type W

Please help

I am passing below data to bapi

ls_icond-item_no = ls_icond-item_no * 10.

ls_icond-cond_count = lv_cond_count.

ls_icond-serial_id = lv_serial_id.

ls_icond-cond_value = zcond_wa-cond_rate.

ls_icond-currency = zcond_wa-cond_curr.

ls_icond-cond_unit = zcond_wa-cond_unit.

ls_icond-change_id = 'I'.

APPEND ls_icond TO it_item_condition.

ls_icondx-cond_count = lv_cond_count.

ls_icondx-item_nox = 'X'.

ls_icondx-serial_idx = 'X'.

ls_icondx-cond_countx = 'X'.

ls_icondx-cond_type = 'X'.

ls_icondx-cond_value = 'X'.

ls_icondx-currency = 'X'.

ls_icondx-serial_id = lv_serial_id.

2 REPLIES 2
Read only

thomas_jung
Developer Advocate
Developer Advocate
0 Likes
424

Moderator Message: Incorrect Forum. This question has nothing to do with Web Dynpro ABAP directly. Moving to ABAP general. Please be care with with forum selection in the future.

Read only

Former Member
0 Likes
424

solved thru functional configuration , all data is available in xml