SAP Function Modules

FC_SAVED_DOCUMENTS_READ SAP Function module







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

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


Pattern for FM FC_SAVED_DOCUMENTS_READ - FC SAVED DOCUMENTS READ





CALL FUNCTION 'FC_SAVED_DOCUMENTS_READ' "
  EXPORTING
*   it_ra_docty =               " fc05_t_ra_docty
*   it_ra_docid =               " fc05_t_ra_docid
    i_dimen =                   " fc_dimen
    i_itclg =                   " fc_itclg
    i_rvers =                   " fc_rvers
    i_rldnr =                   " fc_rldnr
*   i_flg_read_all =            " fc_flg
*   i_flg_struc_confl_handle =   " fc_flg
*   i_flg_docid_enrich =        " fc_flg
  IMPORTING
    et_docid_info =             " fc05_t_docid_info
    et_docid =                  " fc05_t_docid
    et_doctytxt =               " fc05_t_doctytxt
    et_ecmca =                  " fc05_t_ecmca
  EXCEPTIONS
    DOCIDS_IMPORT_STRUC_CONFLICT = 1  "
    SAV_DOC_IMPORT_STRUC_CONFLICT = 2  "
    .  "  FC_SAVED_DOCUMENTS_READ

ABAP code example for Function Module FC_SAVED_DOCUMENTS_READ





The ABAP code below is a full code listing to execute function module FC_SAVED_DOCUMENTS_READ 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_et_docid_info  TYPE FC05_T_DOCID_INFO ,
ld_et_docid  TYPE FC05_T_DOCID ,
ld_et_doctytxt  TYPE FC05_T_DOCTYTXT ,
ld_et_ecmca  TYPE FC05_T_ECMCA .

DATA(ld_it_ra_docty) = 'Check type of data required'.
DATA(ld_it_ra_docid) = 'Check type of data required'.
DATA(ld_i_dimen) = 'Check type of data required'.
DATA(ld_i_itclg) = 'Check type of data required'.
DATA(ld_i_rvers) = 'Check type of data required'.
DATA(ld_i_rldnr) = 'Check type of data required'.
DATA(ld_i_flg_read_all) = 'Check type of data required'.
DATA(ld_i_flg_struc_confl_handle) = 'Check type of data required'.
DATA(ld_i_flg_docid_enrich) = 'Check type of data required'. . CALL FUNCTION 'FC_SAVED_DOCUMENTS_READ' EXPORTING * it_ra_docty = ld_it_ra_docty * it_ra_docid = ld_it_ra_docid i_dimen = ld_i_dimen i_itclg = ld_i_itclg i_rvers = ld_i_rvers i_rldnr = ld_i_rldnr * i_flg_read_all = ld_i_flg_read_all * i_flg_struc_confl_handle = ld_i_flg_struc_confl_handle * i_flg_docid_enrich = ld_i_flg_docid_enrich IMPORTING et_docid_info = ld_et_docid_info et_docid = ld_et_docid et_doctytxt = ld_et_doctytxt et_ecmca = ld_et_ecmca EXCEPTIONS DOCIDS_IMPORT_STRUC_CONFLICT = 1 SAV_DOC_IMPORT_STRUC_CONFLICT = 2 . " FC_SAVED_DOCUMENTS_READ
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 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_et_docid_info  TYPE FC05_T_DOCID_INFO ,
ld_it_ra_docty  TYPE FC05_T_RA_DOCTY ,
ld_et_docid  TYPE FC05_T_DOCID ,
ld_it_ra_docid  TYPE FC05_T_RA_DOCID ,
ld_et_doctytxt  TYPE FC05_T_DOCTYTXT ,
ld_i_dimen  TYPE FC_DIMEN ,
ld_et_ecmca  TYPE FC05_T_ECMCA ,
ld_i_itclg  TYPE FC_ITCLG ,
ld_i_rvers  TYPE FC_RVERS ,
ld_i_rldnr  TYPE FC_RLDNR ,
ld_i_flg_read_all  TYPE FC_FLG ,
ld_i_flg_struc_confl_handle  TYPE FC_FLG ,
ld_i_flg_docid_enrich  TYPE FC_FLG .

ld_it_ra_docty = 'Check type of data required'.
ld_it_ra_docid = 'Check type of data required'.
ld_i_dimen = 'Check type of data required'.
ld_i_itclg = 'Check type of data required'.
ld_i_rvers = 'Check type of data required'.
ld_i_rldnr = 'Check type of data required'.
ld_i_flg_read_all = 'Check type of data required'.
ld_i_flg_struc_confl_handle = 'Check type of data required'.
ld_i_flg_docid_enrich = '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 FC_SAVED_DOCUMENTS_READ or its description.