代码5S
分类: 其他平台
2020-06-18 15:57:15
转载
点击(此处)折叠或打开
-
*&---------------------------------------------------------------------*
-
*& Report ZDEMO09
-
*&
-
*&---------------------------------------------------------------------*
-
*&
-
*&
-
*&---------------------------------------------------------------------*
-
-
report zdemo09.
-
-
data:gv_bcy type banks,
-
gw_add type bapi1011_address,
-
gv_bck type bankk,
-
gw_return type bapiret2.
-
-
gv_bcy = 'CN'.
-
gv_bck = '10000000037'.
-
gw_add-bank_name = 'TEST BANK1'.
-
gw_add-bank_branch = 'TEST BANK2'.
-
gw_add-region = '190'.
-
-
call function 'BAPI_BANK_CREATE'
-
exporting
-
bank_ctry = gv_bcy
-
bank_key = gv_bck
-
bank_address = gw_add
-
importing
-
return = gw_return
-
bankkey = gv_bck.
-
-
if gv_bck is not initial.
-
call function 'BAPI_TRANSACTION_COMMIT'
-
exporting
-
wait = 'X'.
-
write gv_bck.
-
else.
-
call function 'BAPI_TRANSACTION_ROLLBACK'.
-
endif.