SAP RKC_STRUCTURE_SAVE Function Module for









RKC_STRUCTURE_SAVE is a standard rkc structure save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rkc structure save FM, simply by entering the name RKC_STRUCTURE_SAVE into the relevant SAP transaction such as SE37 or SE38.

Function Group: KXGD
Program Name: SAPLKXGD
Main Program: SAPLKXGD
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RKC_STRUCTURE_SAVE 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 'RKC_STRUCTURE_SAVE'"
EXPORTING
I_APPLC = "
I_SYSTP = "
I_TABNM = "
I_TABCL = "
I_TXT_M = "
* I_INC_TAB = "
* I_PERBL = "

IMPORTING
E_SUBRC = "

CHANGING
C_T_DIM = "
C_T_DEP = "
C_T_BAS = "
C_T_ATR = "
.



IMPORTING Parameters details for RKC_STRUCTURE_SAVE

I_APPLC -

Data type: CGSPAR-APPLC
Optional: No
Call by Reference: No ( called with pass by value option)

I_SYSTP -

Data type: CGSPAR-SYSTP
Optional: No
Call by Reference: No ( called with pass by value option)

I_TABNM -

Data type: KCDB_S_TAB-TABNM
Optional: No
Call by Reference: No ( called with pass by value option)

I_TABCL -

Data type: KCDB_S_TAB-TABCL
Optional: No
Call by Reference: No ( called with pass by value option)

I_TXT_M -

Data type: KCDB_S_TAB-TXT_M
Optional: No
Call by Reference: No ( called with pass by value option)

I_INC_TAB -

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

I_PERBL -

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

EXPORTING Parameters details for RKC_STRUCTURE_SAVE

E_SUBRC -

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

CHANGING Parameters details for RKC_STRUCTURE_SAVE

C_T_DIM -

Data type: KCDB_T_CGGFIE
Optional: No
Call by Reference: Yes

C_T_DEP -

Data type: KCDB_T_DEP
Optional: No
Call by Reference: Yes

C_T_BAS -

Data type: KCDB_T_CGGFIE
Optional: No
Call by Reference: Yes

C_T_ATR -

Data type: KCDB_T_GATR
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RKC_STRUCTURE_SAVE 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:
lv_c_t_dim  TYPE KCDB_T_CGGFIE, "   
lv_e_subrc  TYPE SY-SUBRC, "   
lv_i_applc  TYPE CGSPAR-APPLC, "   
lv_c_t_dep  TYPE KCDB_T_DEP, "   
lv_i_systp  TYPE CGSPAR-SYSTP, "   
lv_c_t_bas  TYPE KCDB_T_CGGFIE, "   
lv_i_tabnm  TYPE KCDB_S_TAB-TABNM, "   
lv_c_t_atr  TYPE KCDB_T_GATR, "   
lv_i_tabcl  TYPE KCDB_S_TAB-TABCL, "   
lv_i_txt_m  TYPE KCDB_S_TAB-TXT_M, "   
lv_i_inc_tab  TYPE KCDB_T_TAB, "   
lv_i_perbl  TYPE CGSPAR-PERBL. "   

  CALL FUNCTION 'RKC_STRUCTURE_SAVE'  "
    EXPORTING
         I_APPLC = lv_i_applc
         I_SYSTP = lv_i_systp
         I_TABNM = lv_i_tabnm
         I_TABCL = lv_i_tabcl
         I_TXT_M = lv_i_txt_m
         I_INC_TAB = lv_i_inc_tab
         I_PERBL = lv_i_perbl
    IMPORTING
         E_SUBRC = lv_e_subrc
    CHANGING
         C_T_DIM = lv_c_t_dim
         C_T_DEP = lv_c_t_dep
         C_T_BAS = lv_c_t_bas
         C_T_ATR = lv_c_t_atr
. " RKC_STRUCTURE_SAVE




ABAP code using 7.40 inline data declarations to call FM RKC_STRUCTURE_SAVE

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 SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
"SELECT single APPLC FROM CGSPAR INTO @DATA(ld_i_applc).
 
 
"SELECT single SYSTP FROM CGSPAR INTO @DATA(ld_i_systp).
 
 
"SELECT single TABNM FROM KCDB_S_TAB INTO @DATA(ld_i_tabnm).
 
 
"SELECT single TABCL FROM KCDB_S_TAB INTO @DATA(ld_i_tabcl).
 
"SELECT single TXT_M FROM KCDB_S_TAB INTO @DATA(ld_i_txt_m).
 
 
"SELECT single PERBL FROM CGSPAR INTO @DATA(ld_i_perbl).
 


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!