Skip to Content
0
Former Member
Jan 07, 2010 at 08:33 AM

Problem while updating attribute using bapi BAPI_CASE_CHANGEATTRIBUTES

501 Views

Hi Guys,

Iam trying to update a attribute uisng bapi BAPI_CASE_CHANGEATTRIBUTES

Iam trying to update a standard table SCMG_T_CASE_Attr with follwing bapi. it is giving me sy-subrc value = 0 but its not updating the table..

Iam passing the case id and based on the case id iam passing the table lt_attr ( the value which has to be updated ).

If i use update statement it is updating the database table perfectly....

But updating thestandard data base table using update statement is not correct way i need to use the below bapi..

can any one let me know any thing needs to be added for the below code


 CALL FUNCTION 'BAPI_DISPUTE_ATTRIBUTES_CHANGE'
        EXPORTING
          case_guid  = v_case_guid
        IMPORTING
          return     = v_return1
        TABLES
          attributes = lt_attr.


 IF v_return1-type <> 'E' AND v_return1-type <> 'A'.

        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          IMPORTING
            return = v_return2.

endif.