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

BAPI_CONTRACT_CHANGE malfunctioning

Former Member
0 Likes
625

Hello all,

Im doing a fix for update and delete function for contract.

In update there is no problem it is fucntioning properly but for delete, it did not delete the line item I selected.

Heres my sample code..

   CALL FUNCTION 'BAPI_CONTRACT_CHANGE'
    EXPORTING
      purchasingdocument  = i_ebeln
    TABLES
      item                = t_item
      itemx               = t_itemx
      item_cond_validity  = t_cond_validity
      item_cond_validityx = t_cond_validityx
      item_condition      = t_condition
      item_conditionx     = t_conditionx
      return              = t_return
    EXCEPTIONS
      error_message       = 1.

Thanks in regard..

2 REPLIES 2
Read only

Former Member
0 Likes
414

Have you passed the deletion indicator as 'X' in both item and itemx tables?

Read only

Former Member
0 Likes
414

yes Shambu, actually i already detect the cause of the error, it is because of item action in agreement  = 'T' / text.. im wondering how can i treat in the bapi this item action 'T'..

well appreciated your response..