cancel
Showing results for 
Search instead for 
Did you mean: 

bug in BAPI_CUSTOMERCONTRACT_CHANGE

jay_dalwadi
Participant
0 Kudos

Dear SAP Community,

I am encountering a puzzling issue while attempting to modify contract data using the BAPI_CUSTOMERCONTRACT_CHANGE function module. Despite carefully passing the appropriate data, including setting the update flag in the conditions_inx structure to 'U', the BAPI seems to only modify item 10 and create additional step numbers.

Here's a snippet of the code I've used:

```abap
CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
EXPORTING
salesdocument = contract
contract_header_in = contract_header_in
contract_header_inx = contract_header_inx
logic_switch = logic_switch
TABLES
return = return
contract_item_in = it_contract
contract_item_inx = it_contractx
partnerchanges = it_partner_change
conditions_in = it_cond
conditions_inx = it_condx.
```

Despite setting the update flag correctly (`updateflag = 'U'`), it appears that only item 10 gets updated, and additional step numbers are created unexpectedly.

Has anyone in the community encountered a similar issue before? Is this a known product limitation, or could it be an issue with the configuration or data setup? Any insights, suggestions, or guidance on how to address this problem would be greatly appreciated.

Thank you in advance for your assistance.

Best regards,
Jay D

 

jay_dalwadi_0-1711098637316.pngjay_dalwadi_1-1711098647702.pngjay_dalwadi_2-1711098665007.pngjay_dalwadi_3-1711098671981.png

 

 

Accepted Solutions (0)

Answers (0)