SAP Function Modules

CO_LA_OPER_SEQ_PRE_READ_DB_STD SAP Function module







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

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


Pattern for FM CO_LA_OPER_SEQ_PRE_READ_DB_STD - CO LA OPER SEQ PRE READ DB STD





CALL FUNCTION 'CO_LA_OPER_SEQ_PRE_READ_DB_STD' "
  EXPORTING
*   i_version =                 " psj_versionen-version
*   i_aufruf =                  " psj_versionen-aufruf
*   i_flg_read_capacities = ' '  " c
    i_tcndb =                   " tcndb
*   i_flg_get_co_obj = ' '      " c
    i_dyn_sel =                 " rsds_type
*   i_flg_dyn_sel = ' '         " c
*   i_gen_report = SPACE        " rs38m-programm
  TABLES
    t_aufpl_pre_tab =           " aufpl_pre
    t_select_fields =           " rsfs_fields
*   t_afvgd =                   "
*   t_afvc =                    "
*   t_afvu =                    "
*   t_afvv =                    "
    .  "  CO_LA_OPER_SEQ_PRE_READ_DB_STD

ABAP code example for Function Module CO_LA_OPER_SEQ_PRE_READ_DB_STD





The ABAP code below is a full code listing to execute function module CO_LA_OPER_SEQ_PRE_READ_DB_STD 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_t_aufpl_pre_tab  TYPE STANDARD TABLE OF AUFPL_PRE,"TABLES PARAM
wa_t_aufpl_pre_tab  LIKE LINE OF it_t_aufpl_pre_tab ,
it_t_select_fields  TYPE STANDARD TABLE OF RSFS_FIELDS,"TABLES PARAM
wa_t_select_fields  LIKE LINE OF it_t_select_fields ,
it_t_afvgd  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_afvgd  LIKE LINE OF it_t_afvgd ,
it_t_afvc  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_afvc  LIKE LINE OF it_t_afvc ,
it_t_afvu  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_afvu  LIKE LINE OF it_t_afvu ,
it_t_afvv  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_afvv  LIKE LINE OF it_t_afvv .


DATA(ld_i_version) = Check type of data required

DATA(ld_i_aufruf) = Check type of data required
DATA(ld_i_flg_read_capacities) = 'Check type of data required'.
DATA(ld_i_tcndb) = 'Check type of data required'.
DATA(ld_i_flg_get_co_obj) = 'Check type of data required'.
DATA(ld_i_dyn_sel) = 'Check type of data required'.
DATA(ld_i_flg_dyn_sel) = 'Check type of data required'.

DATA(ld_i_gen_report) = some text here

"populate fields of struture and append to itab
append wa_t_aufpl_pre_tab to it_t_aufpl_pre_tab.

"populate fields of struture and append to itab
append wa_t_select_fields to it_t_select_fields.

"populate fields of struture and append to itab
append wa_t_afvgd to it_t_afvgd.

"populate fields of struture and append to itab
append wa_t_afvc to it_t_afvc.

"populate fields of struture and append to itab
append wa_t_afvu to it_t_afvu.

"populate fields of struture and append to itab
append wa_t_afvv to it_t_afvv. . CALL FUNCTION 'CO_LA_OPER_SEQ_PRE_READ_DB_STD' EXPORTING * i_version = ld_i_version * i_aufruf = ld_i_aufruf * i_flg_read_capacities = ld_i_flg_read_capacities i_tcndb = ld_i_tcndb * i_flg_get_co_obj = ld_i_flg_get_co_obj i_dyn_sel = ld_i_dyn_sel * i_flg_dyn_sel = ld_i_flg_dyn_sel * i_gen_report = ld_i_gen_report TABLES t_aufpl_pre_tab = it_t_aufpl_pre_tab t_select_fields = it_t_select_fields * t_afvgd = it_t_afvgd * t_afvc = it_t_afvc * t_afvu = it_t_afvu * t_afvv = it_t_afvv . " CO_LA_OPER_SEQ_PRE_READ_DB_STD
IF SY-SUBRC EQ 0. "All OK 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_i_version  TYPE PSJ_VERSIONEN-VERSION ,
it_t_aufpl_pre_tab  TYPE STANDARD TABLE OF AUFPL_PRE ,
wa_t_aufpl_pre_tab  LIKE LINE OF it_t_aufpl_pre_tab,
ld_i_aufruf  TYPE PSJ_VERSIONEN-AUFRUF ,
it_t_select_fields  TYPE STANDARD TABLE OF RSFS_FIELDS ,
wa_t_select_fields  LIKE LINE OF it_t_select_fields,
ld_i_flg_read_capacities  TYPE C ,
it_t_afvgd  TYPE STANDARD TABLE OF STRING ,
wa_t_afvgd  LIKE LINE OF it_t_afvgd,
ld_i_tcndb  TYPE TCNDB ,
it_t_afvc  TYPE STANDARD TABLE OF STRING ,
wa_t_afvc  LIKE LINE OF it_t_afvc,
ld_i_flg_get_co_obj  TYPE C ,
it_t_afvu  TYPE STANDARD TABLE OF STRING ,
wa_t_afvu  LIKE LINE OF it_t_afvu,
ld_i_dyn_sel  TYPE RSDS_TYPE ,
it_t_afvv  TYPE STANDARD TABLE OF STRING ,
wa_t_afvv  LIKE LINE OF it_t_afvv,
ld_i_flg_dyn_sel  TYPE C ,
ld_i_gen_report  TYPE RS38M-PROGRAMM .


ld_i_version = Check type of data required

"populate fields of struture and append to itab
append wa_t_aufpl_pre_tab to it_t_aufpl_pre_tab.

ld_i_aufruf = Check type of data required

"populate fields of struture and append to itab
append wa_t_select_fields to it_t_select_fields.
ld_i_flg_read_capacities = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_afvgd to it_t_afvgd.
ld_i_tcndb = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_afvc to it_t_afvc.
ld_i_flg_get_co_obj = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_afvu to it_t_afvu.
ld_i_dyn_sel = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_afvv to it_t_afvv.
ld_i_flg_dyn_sel = 'Check type of data required'.

ld_i_gen_report = some text here

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