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
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
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).
| 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 . |
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 . |
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.