码迷,mamicode.com
首页 > Windows程序 > 详细

函数使用十一:BAPI_BANK_CREATE

时间:2019-12-20 12:10:42      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:ack   else   back   span   turn   type   date   ret   amp   

FI01创建银行主数据:

BAPI:BAPI_BANK_CREATE

*&---------------------------------------------------------------------*
*& Report  ZBAPI_BANK_CREATE
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT  ZBAPI_BANK_CREATE.
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
*   BANK_METHOD           =
*   BANK_FORMATTING       =
*   BANK_ADDRESS1         =
*   I_XUPDATE             = ‘X‘
 IMPORTING
   RETURN                = GW_RETURN
*   BANKCOUNTRY           =
   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.

 

函数使用十一:BAPI_BANK_CREATE

标签:ack   else   back   span   turn   type   date   ret   amp   

原文地址:https://www.cnblogs.com/sapSB/p/12071836.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!