Monday, April 8, 2013

0 Uploading Data Into SAP DB for FI01 Tcode Using BAPI ( BAPI_BANK_CREATE )

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.
 

SAP-ABAP Copyright © 2011 - |- Template created by Vishnu - |- Powered by Blogger Templates