SAP Function Modules

J_7L_REA_DOCUMENT_GET_LIST SAP Function module







J_7L_REA_DOCUMENT_GET_LIST 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 J_7L_REA_DOCUMENT_GET_LIST into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM J_7L_REA_DOCUMENT_GET_LIST - J 7L REA DOCUMENT GET LIST





CALL FUNCTION 'J_7L_REA_DOCUMENT_GET_LIST' "
* EXPORTING
*   include_doc_flow = SPACE    " c
*   ignore_canceled = SPACE     " c
*   ignore_testruns = SPACE     " c
*   dynamic_select = SPACE      " c
  TABLES
*   so_vbeln =                  " j7lr4_vbeln_range  Document Number
*   so_bltyp =                  " j7lr4_bltyp_range  Document Category
*   so_blart =                  " j7lr4_blart_range  Document Type
*   so_perid =                  " j7lr4_perid_range  Periodicity
*   so_perio_geld =             " j7lr4_perio_geld_range
*   so_perinr =                 " j7lr4_perinr_range  Period No.
*   so_datab =                  " j7lr4_datab_range  Valid From
*   so_datbi =                  " j7lr4_datbi_range  Valid To
*   so_gjahr =                  " j7lr4_gjahr_range  Fiscal Year
*   so_entna =                  " j7lr4_entna_range
*   so_entnr =                  " j7lr4_entnr_range  Disposer ID
*   so_bukrs =                  " j7lr4_bukrs_range  Company Code
*   so_land1 =                  " j7lr4_land1_range  Country
    o_j7lv1k =                  " j_7lv1k       REA Document: Header Data
  EXCEPTIONS
    NO_DOCUMENT_FOUND = 1       "
    .  "  J_7L_REA_DOCUMENT_GET_LIST

ABAP code example for Function Module J_7L_REA_DOCUMENT_GET_LIST





The ABAP code below is a full code listing to execute function module J_7L_REA_DOCUMENT_GET_LIST 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:
it_so_vbeln  TYPE STANDARD TABLE OF J7LR4_VBELN_RANGE,"TABLES PARAM
wa_so_vbeln  LIKE LINE OF it_so_vbeln ,
it_so_bltyp  TYPE STANDARD TABLE OF J7LR4_BLTYP_RANGE,"TABLES PARAM
wa_so_bltyp  LIKE LINE OF it_so_bltyp ,
it_so_blart  TYPE STANDARD TABLE OF J7LR4_BLART_RANGE,"TABLES PARAM
wa_so_blart  LIKE LINE OF it_so_blart ,
it_so_perid  TYPE STANDARD TABLE OF J7LR4_PERID_RANGE,"TABLES PARAM
wa_so_perid  LIKE LINE OF it_so_perid ,
it_so_perio_geld  TYPE STANDARD TABLE OF J7LR4_PERIO_GELD_RANGE,"TABLES PARAM
wa_so_perio_geld  LIKE LINE OF it_so_perio_geld ,
it_so_perinr  TYPE STANDARD TABLE OF J7LR4_PERINR_RANGE,"TABLES PARAM
wa_so_perinr  LIKE LINE OF it_so_perinr ,
it_so_datab  TYPE STANDARD TABLE OF J7LR4_DATAB_RANGE,"TABLES PARAM
wa_so_datab  LIKE LINE OF it_so_datab ,
it_so_datbi  TYPE STANDARD TABLE OF J7LR4_DATBI_RANGE,"TABLES PARAM
wa_so_datbi  LIKE LINE OF it_so_datbi ,
it_so_gjahr  TYPE STANDARD TABLE OF J7LR4_GJAHR_RANGE,"TABLES PARAM
wa_so_gjahr  LIKE LINE OF it_so_gjahr ,
it_so_entna  TYPE STANDARD TABLE OF J7LR4_ENTNA_RANGE,"TABLES PARAM
wa_so_entna  LIKE LINE OF it_so_entna ,
it_so_entnr  TYPE STANDARD TABLE OF J7LR4_ENTNR_RANGE,"TABLES PARAM
wa_so_entnr  LIKE LINE OF it_so_entnr ,
it_so_bukrs  TYPE STANDARD TABLE OF J7LR4_BUKRS_RANGE,"TABLES PARAM
wa_so_bukrs  LIKE LINE OF it_so_bukrs ,
it_so_land1  TYPE STANDARD TABLE OF J7LR4_LAND1_RANGE,"TABLES PARAM
wa_so_land1  LIKE LINE OF it_so_land1 ,
it_o_j7lv1k  TYPE STANDARD TABLE OF J_7LV1K,"TABLES PARAM
wa_o_j7lv1k  LIKE LINE OF it_o_j7lv1k .

DATA(ld_include_doc_flow) = 'Check type of data required'.
DATA(ld_ignore_canceled) = 'Check type of data required'.
DATA(ld_ignore_testruns) = 'Check type of data required'.
DATA(ld_dynamic_select) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_so_vbeln to it_so_vbeln.

"populate fields of struture and append to itab
append wa_so_bltyp to it_so_bltyp.

"populate fields of struture and append to itab
append wa_so_blart to it_so_blart.

"populate fields of struture and append to itab
append wa_so_perid to it_so_perid.

"populate fields of struture and append to itab
append wa_so_perio_geld to it_so_perio_geld.

"populate fields of struture and append to itab
append wa_so_perinr to it_so_perinr.

"populate fields of struture and append to itab
append wa_so_datab to it_so_datab.

"populate fields of struture and append to itab
append wa_so_datbi to it_so_datbi.

"populate fields of struture and append to itab
append wa_so_gjahr to it_so_gjahr.

"populate fields of struture and append to itab
append wa_so_entna to it_so_entna.

"populate fields of struture and append to itab
append wa_so_entnr to it_so_entnr.

"populate fields of struture and append to itab
append wa_so_bukrs to it_so_bukrs.

"populate fields of struture and append to itab
append wa_so_land1 to it_so_land1.

"populate fields of struture and append to itab
append wa_o_j7lv1k to it_o_j7lv1k. . CALL FUNCTION 'J_7L_REA_DOCUMENT_GET_LIST' * EXPORTING * include_doc_flow = ld_include_doc_flow * ignore_canceled = ld_ignore_canceled * ignore_testruns = ld_ignore_testruns * dynamic_select = ld_dynamic_select TABLES * so_vbeln = it_so_vbeln * so_bltyp = it_so_bltyp * so_blart = it_so_blart * so_perid = it_so_perid * so_perio_geld = it_so_perio_geld * so_perinr = it_so_perinr * so_datab = it_so_datab * so_datbi = it_so_datbi * so_gjahr = it_so_gjahr * so_entna = it_so_entna * so_entnr = it_so_entnr * so_bukrs = it_so_bukrs * so_land1 = it_so_land1 o_j7lv1k = it_o_j7lv1k EXCEPTIONS NO_DOCUMENT_FOUND = 1 . " J_7L_REA_DOCUMENT_GET_LIST
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_include_doc_flow  TYPE C ,
it_so_vbeln  TYPE STANDARD TABLE OF J7LR4_VBELN_RANGE ,
wa_so_vbeln  LIKE LINE OF it_so_vbeln,
ld_ignore_canceled  TYPE C ,
it_so_bltyp  TYPE STANDARD TABLE OF J7LR4_BLTYP_RANGE ,
wa_so_bltyp  LIKE LINE OF it_so_bltyp,
ld_ignore_testruns  TYPE C ,
it_so_blart  TYPE STANDARD TABLE OF J7LR4_BLART_RANGE ,
wa_so_blart  LIKE LINE OF it_so_blart,
ld_dynamic_select  TYPE C ,
it_so_perid  TYPE STANDARD TABLE OF J7LR4_PERID_RANGE ,
wa_so_perid  LIKE LINE OF it_so_perid,
it_so_perio_geld  TYPE STANDARD TABLE OF J7LR4_PERIO_GELD_RANGE ,
wa_so_perio_geld  LIKE LINE OF it_so_perio_geld,
it_so_perinr  TYPE STANDARD TABLE OF J7LR4_PERINR_RANGE ,
wa_so_perinr  LIKE LINE OF it_so_perinr,
it_so_datab  TYPE STANDARD TABLE OF J7LR4_DATAB_RANGE ,
wa_so_datab  LIKE LINE OF it_so_datab,
it_so_datbi  TYPE STANDARD TABLE OF J7LR4_DATBI_RANGE ,
wa_so_datbi  LIKE LINE OF it_so_datbi,
it_so_gjahr  TYPE STANDARD TABLE OF J7LR4_GJAHR_RANGE ,
wa_so_gjahr  LIKE LINE OF it_so_gjahr,
it_so_entna  TYPE STANDARD TABLE OF J7LR4_ENTNA_RANGE ,
wa_so_entna  LIKE LINE OF it_so_entna,
it_so_entnr  TYPE STANDARD TABLE OF J7LR4_ENTNR_RANGE ,
wa_so_entnr  LIKE LINE OF it_so_entnr,
it_so_bukrs  TYPE STANDARD TABLE OF J7LR4_BUKRS_RANGE ,
wa_so_bukrs  LIKE LINE OF it_so_bukrs,
it_so_land1  TYPE STANDARD TABLE OF J7LR4_LAND1_RANGE ,
wa_so_land1  LIKE LINE OF it_so_land1,
it_o_j7lv1k  TYPE STANDARD TABLE OF J_7LV1K ,
wa_o_j7lv1k  LIKE LINE OF it_o_j7lv1k.

ld_include_doc_flow = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_so_vbeln to it_so_vbeln.
ld_ignore_canceled = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_so_bltyp to it_so_bltyp.
ld_ignore_testruns = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_so_blart to it_so_blart.
ld_dynamic_select = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_so_perid to it_so_perid.

"populate fields of struture and append to itab
append wa_so_perio_geld to it_so_perio_geld.

"populate fields of struture and append to itab
append wa_so_perinr to it_so_perinr.

"populate fields of struture and append to itab
append wa_so_datab to it_so_datab.

"populate fields of struture and append to itab
append wa_so_datbi to it_so_datbi.

"populate fields of struture and append to itab
append wa_so_gjahr to it_so_gjahr.

"populate fields of struture and append to itab
append wa_so_entna to it_so_entna.

"populate fields of struture and append to itab
append wa_so_entnr to it_so_entnr.

"populate fields of struture and append to itab
append wa_so_bukrs to it_so_bukrs.

"populate fields of struture and append to itab
append wa_so_land1 to it_so_land1.

"populate fields of struture and append to itab
append wa_o_j7lv1k to it_o_j7lv1k.

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 J_7L_REA_DOCUMENT_GET_LIST or its description.