Uploading Data Into SAP DB Using BAPI: ( BAPI_BANK_CREATE )
*&---------------------------------------------------------------------*
*& Report ZBAPI
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
report zbapi no standard page heading.
data : wa_add like bapi1011_address.
wa_add-bank_name = 'City bank'.
wa_add-region = '01'.
wa_add-street = 'SRNAGER'.
wa_add-city = 'HYDERABAD'.
data: wa_return like bapiret2.
call function 'BAPI_BANK_CREATE'
exporting
bank_ctry = 'IN'
bank_key = '555544444'
bank_address = wa_add
importing
return = wa_return.
call function 'BAPI_TRANSACTION_COMMIT'.
if not wa_return is initial.
write:/ wa_return-message.
endif.
*& Report ZBAPI
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
report zbapi no standard page heading.
data : wa_add like bapi1011_address.
wa_add-bank_name = 'City bank'.
wa_add-region = '01'.
wa_add-street = 'SRNAGER'.
wa_add-city = 'HYDERABAD'.
data: wa_return like bapiret2.
call function 'BAPI_BANK_CREATE'
exporting
bank_ctry = 'IN'
bank_key = '555544444'
bank_address = wa_add
importing
return = wa_return.
call function 'BAPI_TRANSACTION_COMMIT'.
if not wa_return is initial.
write:/ wa_return-message.
endif.