Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Re: BAPI_COSTCENTER_CREATEMULTIPLE

$
0
0

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.

Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>