Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_BANK_CREATE

Former Member
0 Likes
535

Hi,

DID anyone used this bapi to create bank master data.

i need asistance.

Jeff

1 REPLY 1
Read only

Former Member
0 Likes
412

Hi,

here below a program that reads bank data from one system to replicate it in another one.

report z_fi_00_0351010 .

parameters : p_banks like bnka-banks.

data : it_bnka like BAPI1011_LIST occurs 0 with header line.

data : st_bank_address like bapi1011_address.

data : st_bank_detail like bapi1011_detail.

start-of-selection.

check sy-sysid ne 'GPR'.

call function 'BAPI_BANK_GETLIST' destination 'GPRCLNT710'

exporting

bank_ctry = p_banks

max_rows = 99999

  • IMPORTING

  • RETURN =

tables

bank_list = it_bnka

.

loop at it_bnka.

clear: st_bank_address, st_bank_detail.

call function 'BAPI_BANK_GETDETAIL' destination 'GPRCLNT710'

exporting

bankcountry = it_bnka-bank_ctry

bankkey = it_bnka-bank_key

importing

bank_address = st_bank_address

bank_detail = st_bank_detail

  • RETURN =

.

data : bankc like bapi1011_key-bank_ctry.

data : bankkey like bapi1011_key-bank_key.

data return like bapiret2.

call function 'BAPI_BANK_SAVEREPLICA'

exporting

bank_ctry = it_bnka-bank_ctry

bank_key = it_bnka-bank_key

bank_address = st_bank_address

bank_detail = st_bank_detail

importing

return = return.

commit work.

write 😕 it_bnka-bank_ctry, it_bnka-bank_key, return.

endloop.

Regards.

David