Hi Devi,
After call BAPI 'BAPI_COSTCENTER_CREATEMULTIPLE' "SY" structure has:
MSGID KS
MSGTY E
MSGNO 002
MSGV1 1000
MSGV2 COST CENTER
Try next code after call the BAPI.
READ TABLE et_return WITH KEY type = 'E'
TRANSPORTING NO FIELDS.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = abap_true
IMPORTING
return = lw_bapiret2.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
IMPORTING
return = lw_bapiret2.
ENDIF.