ABAP FM FIN_AP_AR_ADD_BANK for FK02

Finding ways to add/insert Vendor Master Bank Details using BAPI OR FM?

I've been scratching my head for quite sometime looking and finding BAPI for Vendor Master Bank Details. Glad able to find the Function Module.
FM - FIN_AP_AR_ADD_BANK
TCODE - FK02
TABLE - LFBK



FK02 Bank Detail Vendor Master

Here's the code snippet.
DATA: Bank_Data  type LFBK.

Clear:
Bank_Data.
Bank_Data-lifnr   = lv_Lifnr.
Bank_Data-banks = lv_Country.
Bank_Data-bankl = lv_Bankl.
Bank_Data-bankn = lv_Bankn.
Bank_Data-koinh = lv_AcctHolder.
Bank_Data-bvtyp = lv_Bvtyp.

CALL FUNCTION 'FIN_AP_AR_ADD_BANK'
     EXPORTING
         i_koart                    = 'K'
         i_bankdata              = 
Bank_Data
 *         I_CONFIRM_CHANGES       = 'X'
*         I_CHECKMODUS            = ' '
*     IMPORTING
*          E_RETURNCODE            = 
*    TABLES
*         T_MESSAGES              =
              .


Goodluck at maraming salamat!

Happy abaping!

Comments

Post a Comment

Popular posts from this blog

SAP ABAP: Capturing CHECK BOX event in FM REUSE_ALV_GRID_DISPLAY / Cell Editing

SAP ABAP: Smartforms/SAPscript formatting

SAP ABAP: Adding leading zero to char or string.