SAP Function Modules

FC_DOCUMENT_REFRESH SAP Function module







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

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


Pattern for FM FC_DOCUMENT_REFRESH - FC DOCUMENT REFRESH





CALL FUNCTION 'FC_DOCUMENT_REFRESH' "
  EXPORTING
    e_dimen =                   " fc_dimen
*   e_rldnr =                   " fc_rldnr
    e_itclg =                   " fc_itclg
    e_rvers =                   " fc_rvers
    e_ryear =                   " fc_ryear
    e_perid =                   " fc_perid
*   e_docty =                   " fc_docty
*   e_docct = FC00_C_DOCCT_CONS  " docct
*   e_action = FC05_CON_DR_ACTN-ALL  " fc05_dr_action
    e_type =                    " fc05_dr_type
*   e_delete =                  " fc_flg
*   e_reverse =                 " fc_flg
*   et_cu =                     " fc05_t_dr_cu
*   es_pair_lock =              " fc02_s_pair_lock
*   et_cu_pcu =                 " fc05_t_dr_cu_pcu
*   et_cg_inv =                 " fc05_t_dr_cg_inv
*   es_inv =                    " fc05_s_dr_inv
*   et_doc =                    " fc05_t_ecmca
*   et_doc_op =                 " fc05_t_dr_doc_op
  IMPORTING
    it_doc =                    " fc05_t_ecmca
    it_doc_nd =                 " fc05_t_ecmca
    it_doc_op =                 " fc05_t_dr_doc_op
    .  "  FC_DOCUMENT_REFRESH

ABAP code example for Function Module FC_DOCUMENT_REFRESH





The ABAP code below is a full code listing to execute function module FC_DOCUMENT_REFRESH 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_it_doc  TYPE FC05_T_ECMCA ,
ld_it_doc_nd  TYPE FC05_T_ECMCA ,
ld_it_doc_op  TYPE FC05_T_DR_DOC_OP .

DATA(ld_e_dimen) = 'Check type of data required'.
DATA(ld_e_rldnr) = 'Check type of data required'.
DATA(ld_e_itclg) = 'Check type of data required'.
DATA(ld_e_rvers) = 'Check type of data required'.
DATA(ld_e_ryear) = 'Check type of data required'.
DATA(ld_e_perid) = 'Check type of data required'.
DATA(ld_e_docty) = 'Check type of data required'.
DATA(ld_e_docct) = 'Check type of data required'.
DATA(ld_e_action) = 'Check type of data required'.
DATA(ld_e_type) = 'Check type of data required'.
DATA(ld_e_delete) = 'Check type of data required'.
DATA(ld_e_reverse) = 'Check type of data required'.
DATA(ld_et_cu) = 'Check type of data required'.
DATA(ld_es_pair_lock) = 'Check type of data required'.
DATA(ld_et_cu_pcu) = 'Check type of data required'.
DATA(ld_et_cg_inv) = 'Check type of data required'.
DATA(ld_es_inv) = 'Check type of data required'.
DATA(ld_et_doc) = 'Check type of data required'.
DATA(ld_et_doc_op) = 'Check type of data required'. . CALL FUNCTION 'FC_DOCUMENT_REFRESH' EXPORTING e_dimen = ld_e_dimen * e_rldnr = ld_e_rldnr e_itclg = ld_e_itclg e_rvers = ld_e_rvers e_ryear = ld_e_ryear e_perid = ld_e_perid * e_docty = ld_e_docty * e_docct = ld_e_docct * e_action = ld_e_action e_type = ld_e_type * e_delete = ld_e_delete * e_reverse = ld_e_reverse * et_cu = ld_et_cu * es_pair_lock = ld_es_pair_lock * et_cu_pcu = ld_et_cu_pcu * et_cg_inv = ld_et_cg_inv * es_inv = ld_es_inv * et_doc = ld_et_doc * et_doc_op = ld_et_doc_op IMPORTING it_doc = ld_it_doc it_doc_nd = ld_it_doc_nd it_doc_op = ld_it_doc_op . " FC_DOCUMENT_REFRESH
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_it_doc  TYPE FC05_T_ECMCA ,
ld_e_dimen  TYPE FC_DIMEN ,
ld_it_doc_nd  TYPE FC05_T_ECMCA ,
ld_e_rldnr  TYPE FC_RLDNR ,
ld_it_doc_op  TYPE FC05_T_DR_DOC_OP ,
ld_e_itclg  TYPE FC_ITCLG ,
ld_e_rvers  TYPE FC_RVERS ,
ld_e_ryear  TYPE FC_RYEAR ,
ld_e_perid  TYPE FC_PERID ,
ld_e_docty  TYPE FC_DOCTY ,
ld_e_docct  TYPE DOCCT ,
ld_e_action  TYPE FC05_DR_ACTION ,
ld_e_type  TYPE FC05_DR_TYPE ,
ld_e_delete  TYPE FC_FLG ,
ld_e_reverse  TYPE FC_FLG ,
ld_et_cu  TYPE FC05_T_DR_CU ,
ld_es_pair_lock  TYPE FC02_S_PAIR_LOCK ,
ld_et_cu_pcu  TYPE FC05_T_DR_CU_PCU ,
ld_et_cg_inv  TYPE FC05_T_DR_CG_INV ,
ld_es_inv  TYPE FC05_S_DR_INV ,
ld_et_doc  TYPE FC05_T_ECMCA ,
ld_et_doc_op  TYPE FC05_T_DR_DOC_OP .

ld_e_dimen = 'Check type of data required'.
ld_e_rldnr = 'Check type of data required'.
ld_e_itclg = 'Check type of data required'.
ld_e_rvers = 'Check type of data required'.
ld_e_ryear = 'Check type of data required'.
ld_e_perid = 'Check type of data required'.
ld_e_docty = 'Check type of data required'.
ld_e_docct = 'Check type of data required'.
ld_e_action = 'Check type of data required'.
ld_e_type = 'Check type of data required'.
ld_e_delete = 'Check type of data required'.
ld_e_reverse = 'Check type of data required'.
ld_et_cu = 'Check type of data required'.
ld_es_pair_lock = 'Check type of data required'.
ld_et_cu_pcu = 'Check type of data required'.
ld_et_cg_inv = 'Check type of data required'.
ld_es_inv = 'Check type of data required'.
ld_et_doc = 'Check type of data required'.
ld_et_doc_op = '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_DOCUMENT_REFRESH or its description.