SAP Function Modules

RKE_READ2_READ_FROM_JOIN SAP Function module







RKE_READ2_READ_FROM_JOIN is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name RKE_READ2_READ_FROM_JOIN into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: KED7
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RKE_READ2_READ_FROM_JOIN - RKE READ2 READ FROM JOIN





CALL FUNCTION 'RKE_READ2_READ_FROM_JOIN' "
  EXPORTING
    erkrs =                     " tkeb-erkrs
    form =                      " ceddb-dataform
    program =                   " ceddb-program
*   debug_mode = ' '            " ked7_char1
  IMPORTING
    timestmp =                  " ceddb-timestmp
  TABLES
    seltab =                    " cedst
    sftab =                     " cfbsf01
  EXCEPTIONS
    PROGRAM_ERROR = 1           "
    SYNTAX_CHECK = 2            "
    DB_FAILURE = 3              "
    FIELD_CATALOG_MISMATCH = 4  "
    .  "  RKE_READ2_READ_FROM_JOIN

ABAP code example for Function Module RKE_READ2_READ_FROM_JOIN





The ABAP code below is a full code listing to execute function module RKE_READ2_READ_FROM_JOIN including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_timestmp  TYPE CEDDB-TIMESTMP ,
it_seltab  TYPE STANDARD TABLE OF CEDST,"TABLES PARAM
wa_seltab  LIKE LINE OF it_seltab ,
it_sftab  TYPE STANDARD TABLE OF CFBSF01,"TABLES PARAM
wa_sftab  LIKE LINE OF it_sftab .


SELECT single ERKRS
FROM TKEB
INTO @DATA(ld_erkrs).


DATA(ld_form) = some text here

DATA(ld_program) = some text here
DATA(ld_debug_mode) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_seltab to it_seltab.

"populate fields of struture and append to itab
append wa_sftab to it_sftab. . CALL FUNCTION 'RKE_READ2_READ_FROM_JOIN' EXPORTING erkrs = ld_erkrs form = ld_form program = ld_program * debug_mode = ld_debug_mode IMPORTING timestmp = ld_timestmp TABLES seltab = it_seltab sftab = it_sftab EXCEPTIONS PROGRAM_ERROR = 1 SYNTAX_CHECK = 2 DB_FAILURE = 3 FIELD_CATALOG_MISMATCH = 4 . " RKE_READ2_READ_FROM_JOIN
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_timestmp  TYPE CEDDB-TIMESTMP ,
ld_erkrs  TYPE TKEB-ERKRS ,
it_seltab  TYPE STANDARD TABLE OF CEDST ,
wa_seltab  LIKE LINE OF it_seltab,
ld_form  TYPE CEDDB-DATAFORM ,
it_sftab  TYPE STANDARD TABLE OF CFBSF01 ,
wa_sftab  LIKE LINE OF it_sftab,
ld_program  TYPE CEDDB-PROGRAM ,
ld_debug_mode  TYPE KED7_CHAR1 .


SELECT single ERKRS
FROM TKEB
INTO ld_erkrs.


"populate fields of struture and append to itab
append wa_seltab to it_seltab.

ld_form = some text here

"populate fields of struture and append to itab
append wa_sftab to it_sftab.

ld_program = some text here
ld_debug_mode = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RKE_READ2_READ_FROM_JOIN or its description.