SAP /BKC/SOL21_FI_INSERT_DATA Function Module for C&T! - Transfer of FI/CO master data









/BKC/SOL21_FI_INSERT_DATA is a standard /bkc/sol21 fi insert data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for C&T! - Transfer of FI/CO master data processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for /bkc/sol21 fi insert data FM, simply by entering the name /BKC/SOL21_FI_INSERT_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: /BKC/SOL21_FICO
Program Name: /BKC/SAPLSOL21_FICO
Main Program: /BKC/SAPLSOL21_FICO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function /BKC/SOL21_FI_INSERT_DATA pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION '/BKC/SOL21_FI_INSERT_DATA'"C&T! - Transfer of FI/CO master data
EXPORTING
* P_KOKRS = "Controlling area
* P_TABNAME = "Table name
* CALLER_IS_UNICODE = "Background processing, program running in the background
* IF_VERSN = '01' "Version of cluster data
* XBUFSIZE = "C&T! - Size of binary buffer
* XBUFNAME = "Table name
* PROGRAM_IN_TARGET = "Program/transaction in SQL trace evaluation

TABLES
* T_CSKS = "Cost center master record
* T_TKA03 = "Statistical figures
* T_TKT03 = "Statistical figures texts
* T_SKB1 = "Master data of G/L accounts (company code)
* T_SKAT = "Master data of G/L accounts (chart of accounts)
* T_SKA1 = "G/L Account Master (Chart of Accounts)
* FI_SYS_FEHLER = "C&T! - Structure for error display during FI/CO Copy
* XBUFFER32 = "C&T! - Binary buffer with 32 byte
* XBUFFER64 = "C&T! - Binary buffer with 64 byte
* XBUFFER128 = "C&T! - Binary buffer with 128 bytes
* XBUFFER256 = "C&T! - Binary buffer with 256 byte
* T_CSKT = "Cost center texts
* XBUFFER512 = "C&T! - Binary buffer with 512 byte
* XBUFFER1024 = "C&T! - Binary buffer with 1024 byte
* XBUFFER2048 = "C&T! - Binary buffer with 2048 byte
* T_CSKA = "Cost elements (data depending on chart of accounts)
* T_CSKB = "Cost elements (data depending on controlling areas)
* T_CSKU = "Cost element texts
* T_CSLA = "Master data of activity types
* T_CSLT = "Activity type texts
* T_CEPC = "Master data of Profit Centers
* T_CEPCT = "Texts of master data of Profit Centers
.



IMPORTING Parameters details for /BKC/SOL21_FI_INSERT_DATA

P_KOKRS - Controlling area

Data type: KOKRS
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_TABNAME - Table name

Data type: TABNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALLER_IS_UNICODE - Background processing, program running in the background

Data type: SY-BATCH
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_VERSN - Version of cluster data

Data type: PVRSN
Default: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)

XBUFSIZE - C&T! - Size of binary buffer

Data type: /BKC/S21_XBUFSIZE
Optional: Yes
Call by Reference: No ( called with pass by value option)

XBUFNAME - Table name

Data type: TABNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROGRAM_IN_TARGET - Program/transaction in SQL trace evaluation

Data type: PROGRAM
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for /BKC/SOL21_FI_INSERT_DATA

T_CSKS - Cost center master record

Data type: CSKS
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_TKA03 - Statistical figures

Data type: TKA03
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_TKT03 - Statistical figures texts

Data type: TKT03
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_SKB1 - Master data of G/L accounts (company code)

Data type: SKB1
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_SKAT - Master data of G/L accounts (chart of accounts)

Data type: SKAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_SKA1 - G/L Account Master (Chart of Accounts)

Data type: SKA1
Optional: Yes
Call by Reference: Yes

FI_SYS_FEHLER - C&T! - Structure for error display during FI/CO Copy

Data type: /BKC/S21_FI_SYSTEMFEHLER
Optional: Yes
Call by Reference: No ( called with pass by value option)

XBUFFER32 - C&T! - Binary buffer with 32 byte

Data type: /BKC/S21_XBUF32
Optional: Yes
Call by Reference: No ( called with pass by value option)

XBUFFER64 - C&T! - Binary buffer with 64 byte

Data type: /BKC/S21_XBUF64
Optional: Yes
Call by Reference: No ( called with pass by value option)

XBUFFER128 - C&T! - Binary buffer with 128 bytes

Data type: /BKC/S21_XBUF128
Optional: Yes
Call by Reference: No ( called with pass by value option)

XBUFFER256 - C&T! - Binary buffer with 256 byte

Data type: /BKC/S21_XBUF256
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_CSKT - Cost center texts

Data type: CSKT
Optional: Yes
Call by Reference: No ( called with pass by value option)

XBUFFER512 - C&T! - Binary buffer with 512 byte

Data type: /BKC/S21_XBUF512
Optional: Yes
Call by Reference: No ( called with pass by value option)

XBUFFER1024 - C&T! - Binary buffer with 1024 byte

Data type: /BKC/S21_XBUF1024
Optional: Yes
Call by Reference: No ( called with pass by value option)

XBUFFER2048 - C&T! - Binary buffer with 2048 byte

Data type: /BKC/S21_XBUF2048
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_CSKA - Cost elements (data depending on chart of accounts)

Data type: CSKA
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_CSKB - Cost elements (data depending on controlling areas)

Data type: CSKB
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_CSKU - Cost element texts

Data type: CSKU
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_CSLA - Master data of activity types

Data type: CSLA
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_CSLT - Activity type texts

Data type: CSLT
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_CEPC - Master data of Profit Centers

Data type: CEPC
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_CEPCT - Texts of master data of Profit Centers

Data type: CEPCT
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for /BKC/SOL21_FI_INSERT_DATA Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_t_csks  TYPE STANDARD TABLE OF CSKS, "   
lv_p_kokrs  TYPE KOKRS, "   
lt_t_tka03  TYPE STANDARD TABLE OF TKA03, "   
lt_t_tkt03  TYPE STANDARD TABLE OF TKT03, "   
lt_t_skb1  TYPE STANDARD TABLE OF SKB1, "   
lt_t_skat  TYPE STANDARD TABLE OF SKAT, "   
lt_t_ska1  TYPE STANDARD TABLE OF SKA1, "   
lt_fi_sys_fehler  TYPE STANDARD TABLE OF /BKC/S21_FI_SYSTEMFEHLER, "   
lt_xbuffer32  TYPE STANDARD TABLE OF /BKC/S21_XBUF32, "   
lt_xbuffer64  TYPE STANDARD TABLE OF /BKC/S21_XBUF64, "   
lt_xbuffer128  TYPE STANDARD TABLE OF /BKC/S21_XBUF128, "   
lt_xbuffer256  TYPE STANDARD TABLE OF /BKC/S21_XBUF256, "   
lt_t_cskt  TYPE STANDARD TABLE OF CSKT, "   
lv_p_tabname  TYPE TABNAME, "   
lt_xbuffer512  TYPE STANDARD TABLE OF /BKC/S21_XBUF512, "   
lt_xbuffer1024  TYPE STANDARD TABLE OF /BKC/S21_XBUF1024, "   
lt_xbuffer2048  TYPE STANDARD TABLE OF /BKC/S21_XBUF2048, "   
lt_t_cska  TYPE STANDARD TABLE OF CSKA, "   
lv_caller_is_unicode  TYPE SY-BATCH, "   
lt_t_cskb  TYPE STANDARD TABLE OF CSKB, "   
lv_if_versn  TYPE PVRSN, "   '01'
lt_t_csku  TYPE STANDARD TABLE OF CSKU, "   
lv_xbufsize  TYPE /BKC/S21_XBUFSIZE, "   
lt_t_csla  TYPE STANDARD TABLE OF CSLA, "   
lv_xbufname  TYPE TABNAME, "   
lt_t_cslt  TYPE STANDARD TABLE OF CSLT, "   
lv_program_in_target  TYPE PROGRAM, "   
lt_t_cepc  TYPE STANDARD TABLE OF CEPC, "   
lt_t_cepct  TYPE STANDARD TABLE OF CEPCT. "   

  CALL FUNCTION '/BKC/SOL21_FI_INSERT_DATA'  "C&T! - Transfer of FI/CO master data
    EXPORTING
         P_KOKRS = lv_p_kokrs
         P_TABNAME = lv_p_tabname
         CALLER_IS_UNICODE = lv_caller_is_unicode
         IF_VERSN = lv_if_versn
         XBUFSIZE = lv_xbufsize
         XBUFNAME = lv_xbufname
         PROGRAM_IN_TARGET = lv_program_in_target
    TABLES
         T_CSKS = lt_t_csks
         T_TKA03 = lt_t_tka03
         T_TKT03 = lt_t_tkt03
         T_SKB1 = lt_t_skb1
         T_SKAT = lt_t_skat
         T_SKA1 = lt_t_ska1
         FI_SYS_FEHLER = lt_fi_sys_fehler
         XBUFFER32 = lt_xbuffer32
         XBUFFER64 = lt_xbuffer64
         XBUFFER128 = lt_xbuffer128
         XBUFFER256 = lt_xbuffer256
         T_CSKT = lt_t_cskt
         XBUFFER512 = lt_xbuffer512
         XBUFFER1024 = lt_xbuffer1024
         XBUFFER2048 = lt_xbuffer2048
         T_CSKA = lt_t_cska
         T_CSKB = lt_t_cskb
         T_CSKU = lt_t_csku
         T_CSLA = lt_t_csla
         T_CSLT = lt_t_cslt
         T_CEPC = lt_t_cepc
         T_CEPCT = lt_t_cepct
. " /BKC/SOL21_FI_INSERT_DATA




ABAP code using 7.40 inline data declarations to call FM /BKC/SOL21_FI_INSERT_DATA

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_caller_is_unicode).
 
 
DATA(ld_if_versn) = '01'.
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!