SAP ROW_COLUMN_STRUCTURE_JOIN Function Module for Transfer structure of row/column structure









ROW_COLUMN_STRUCTURE_JOIN is a standard row column structure join SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Transfer structure of row/column structure 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 row column structure join FM, simply by entering the name ROW_COLUMN_STRUCTURE_JOIN into the relevant SAP transaction such as SE37 or SE38.

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



Function ROW_COLUMN_STRUCTURE_JOIN 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 'ROW_COLUMN_STRUCTURE_JOIN'"Transfer structure of row/column structure
EXPORTING
APPLCLASS = "
FORM = "Row/column structure
I_RKB1X = "Table name (operating concern/aspect)
* MEM_ID = ' ' "Memory ID for EXPORT/IMPORT
* PRARTS = ' ' "Print type '1' line '2' column
SMODUS = "
* SUBCLASS = '01' "

IMPORTING
E_RKB1X = "
FART = "Form type ('1' w/o tot. keys '2' w. tot. keys)
FTYP = "Form cat.('1' one-dimens. '2' two-dimens.)
MODCN = "
MODDA = "
MODNA = "
MODTI = "
ZEDIM = "Dim. where key figure is used (for billing type 2)
INACT = "

TABLES
* TABLE_VAR = "
TABLE_VIEW1 = "Transfer table (call of FORM_TAB)

EXCEPTIONS
FORM_NOT_FOUND = 1 EMPTY = 2
.



IMPORTING Parameters details for ROW_COLUMN_STRUCTURE_JOIN

APPLCLASS -

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

FORM - Row/column structure

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

I_RKB1X - Table name (operating concern/aspect)

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

MEM_ID - Memory ID for EXPORT/IMPORT

Data type: RGRWA-MEMORYID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PRARTS - Print type '1' line '2' column

Data type: CFBFO01-PRART
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SMODUS -

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

SUBCLASS -

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

EXPORTING Parameters details for ROW_COLUMN_STRUCTURE_JOIN

E_RKB1X -

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

FART - Form type ('1' w/o tot. keys '2' w. tot. keys)

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

FTYP - Form cat.('1' one-dimens. '2' two-dimens.)

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

MODCN -

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

MODDA -

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

MODNA -

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

MODTI -

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

ZEDIM - Dim. where key figure is used (for billing type 2)

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

INACT -

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

TABLES Parameters details for ROW_COLUMN_STRUCTURE_JOIN

TABLE_VAR -

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

TABLE_VIEW1 - Transfer table (call of FORM_TAB)

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

EXCEPTIONS details

FORM_NOT_FOUND -

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

EMPTY -

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

Copy and paste ABAP code example for ROW_COLUMN_STRUCTURE_JOIN 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_e_rkb1x  TYPE RKB1X, "   
lv_applclass  TYPE RKB1D-APPLCLASS, "   
lt_table_var  TYPE STANDARD TABLE OF CFBVP01, "   
lv_form_not_found  TYPE CFBVP01, "   
lv_fart  TYPE RKB1F-FART, "   
lv_form  TYPE RKB1D-FORM, "   
lv_empty  TYPE RKB1D, "   
lt_table_view1  TYPE STANDARD TABLE OF CFBFO01, "   
lv_ftyp  TYPE RKB1F-FTYP, "   
lv_i_rkb1x  TYPE RKB1X, "   
lv_modcn  TYPE TKES1-MODCN, "   
lv_mem_id  TYPE RGRWA-MEMORYID, "   SPACE
lv_modda  TYPE TKES1-MODDA, "   
lv_prarts  TYPE CFBFO01-PRART, "   SPACE
lv_modna  TYPE TKES1-MODNA, "   
lv_smodus  TYPE RKB1D-SMODUS, "   
lv_modti  TYPE TKES1-MODTI, "   
lv_subclass  TYPE RKB1S-SUBCLASS, "   '01'
lv_zedim  TYPE RKB1F-EDIM, "   
lv_inact  TYPE TKES1-INACT. "   

  CALL FUNCTION 'ROW_COLUMN_STRUCTURE_JOIN'  "Transfer structure of row/column structure
    EXPORTING
         APPLCLASS = lv_applclass
         FORM = lv_form
         I_RKB1X = lv_i_rkb1x
         MEM_ID = lv_mem_id
         PRARTS = lv_prarts
         SMODUS = lv_smodus
         SUBCLASS = lv_subclass
    IMPORTING
         E_RKB1X = lv_e_rkb1x
         FART = lv_fart
         FTYP = lv_ftyp
         MODCN = lv_modcn
         MODDA = lv_modda
         MODNA = lv_modna
         MODTI = lv_modti
         ZEDIM = lv_zedim
         INACT = lv_inact
    TABLES
         TABLE_VAR = lt_table_var
         TABLE_VIEW1 = lt_table_view1
    EXCEPTIONS
        FORM_NOT_FOUND = 1
        EMPTY = 2
. " ROW_COLUMN_STRUCTURE_JOIN




ABAP code using 7.40 inline data declarations to call FM ROW_COLUMN_STRUCTURE_JOIN

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 APPLCLASS FROM RKB1D INTO @DATA(ld_applclass).
 
 
 
"SELECT single FART FROM RKB1F INTO @DATA(ld_fart).
 
"SELECT single FORM FROM RKB1D INTO @DATA(ld_form).
 
 
 
"SELECT single FTYP FROM RKB1F INTO @DATA(ld_ftyp).
 
 
"SELECT single MODCN FROM TKES1 INTO @DATA(ld_modcn).
 
"SELECT single MEMORYID FROM RGRWA INTO @DATA(ld_mem_id).
DATA(ld_mem_id) = ' '.
 
"SELECT single MODDA FROM TKES1 INTO @DATA(ld_modda).
 
"SELECT single PRART FROM CFBFO01 INTO @DATA(ld_prarts).
DATA(ld_prarts) = ' '.
 
"SELECT single MODNA FROM TKES1 INTO @DATA(ld_modna).
 
"SELECT single SMODUS FROM RKB1D INTO @DATA(ld_smodus).
 
"SELECT single MODTI FROM TKES1 INTO @DATA(ld_modti).
 
"SELECT single SUBCLASS FROM RKB1S INTO @DATA(ld_subclass).
DATA(ld_subclass) = '01'.
 
"SELECT single EDIM FROM RKB1F INTO @DATA(ld_zedim).
 
"SELECT single INACT FROM TKES1 INTO @DATA(ld_inact).
 


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!