HR_FR_GET_COTIS 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 HR_FR_GET_COTIS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
36CS
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'HR_FR_GET_COTIS' "
EXPORTING
* p_regno = " pfrs0_tab_regno
* p_organ = " t5f1c-organ
* p_cotis = " t5f1c-cotis
p_begda = " pc223-begda
p_endda = " pc223-endda
* p_pernr = " pernr-pernr
p_chkdt = " pc2aper-chkdt
* iv_ibegd = " begda
* iv_lactv = " endda
* iv_compl = " boole_d
IMPORTING
tab_cotis = " pfrs0_tab_cotis
tab_ass = " pfrs0_tab_ass
tab_model = " pfrs0_tab_t5f1m
tab_t5f1h_cot = " pfrs0_tab_t5f1h_cot
tab_errors = " hrerror_tab
* TABLES
* sv = " pc223
* t_t5f1f = " t5f1f
* t_p0064 = " p0064
* t_t5f1g = " t5f1g
* t_t5f1m = " t5f1m
* wpbp = " pc205
* t0000 = " p0000
* t0001 = " p0001
* CHANGING
* t_t5f1c = " pfrs0_tab_t5f1c
EXCEPTIONS
ERROR = 1 "
NO_COTIS_FOUND = 2 "
INVALID_REGNO = 3 "
RATE_ERROR = 4 "
COND_RULE_ERROR = 5 "
. " HR_FR_GET_COTIS
The ABAP code below is a full code listing to execute function module HR_FR_GET_COTIS 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_tab_cotis | TYPE PFRS0_TAB_COTIS , |
| ld_tab_ass | TYPE PFRS0_TAB_ASS , |
| ld_tab_model | TYPE PFRS0_TAB_T5F1M , |
| ld_tab_t5f1h_cot | TYPE PFRS0_TAB_T5F1H_COT , |
| ld_tab_errors | TYPE HRERROR_TAB , |
| it_sv | TYPE STANDARD TABLE OF PC223,"TABLES PARAM |
| wa_sv | LIKE LINE OF it_sv , |
| it_t_t5f1f | TYPE STANDARD TABLE OF T5F1F,"TABLES PARAM |
| wa_t_t5f1f | LIKE LINE OF it_t_t5f1f , |
| it_t_p0064 | TYPE STANDARD TABLE OF P0064,"TABLES PARAM |
| wa_t_p0064 | LIKE LINE OF it_t_p0064 , |
| it_t_t5f1g | TYPE STANDARD TABLE OF T5F1G,"TABLES PARAM |
| wa_t_t5f1g | LIKE LINE OF it_t_t5f1g , |
| it_t_t5f1m | TYPE STANDARD TABLE OF T5F1M,"TABLES PARAM |
| wa_t_t5f1m | LIKE LINE OF it_t_t5f1m , |
| it_wpbp | TYPE STANDARD TABLE OF PC205,"TABLES PARAM |
| wa_wpbp | LIKE LINE OF it_wpbp , |
| it_t0000 | TYPE STANDARD TABLE OF P0000,"TABLES PARAM |
| wa_t0000 | LIKE LINE OF it_t0000 , |
| it_t0001 | TYPE STANDARD TABLE OF P0001,"TABLES PARAM |
| wa_t0001 | LIKE LINE OF it_t0001 . |
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_t_t5f1c | TYPE PFRS0_TAB_T5F1C , |
| ld_tab_cotis | TYPE PFRS0_TAB_COTIS , |
| ld_p_regno | TYPE PFRS0_TAB_REGNO , |
| it_sv | TYPE STANDARD TABLE OF PC223 , |
| wa_sv | LIKE LINE OF it_sv, |
| ld_tab_ass | TYPE PFRS0_TAB_ASS , |
| ld_p_organ | TYPE T5F1C-ORGAN , |
| it_t_t5f1f | TYPE STANDARD TABLE OF T5F1F , |
| wa_t_t5f1f | LIKE LINE OF it_t_t5f1f, |
| ld_tab_model | TYPE PFRS0_TAB_T5F1M , |
| ld_p_cotis | TYPE T5F1C-COTIS , |
| it_t_p0064 | TYPE STANDARD TABLE OF P0064 , |
| wa_t_p0064 | LIKE LINE OF it_t_p0064, |
| ld_tab_t5f1h_cot | TYPE PFRS0_TAB_T5F1H_COT , |
| ld_p_begda | TYPE PC223-BEGDA , |
| it_t_t5f1g | TYPE STANDARD TABLE OF T5F1G , |
| wa_t_t5f1g | LIKE LINE OF it_t_t5f1g, |
| ld_tab_errors | TYPE HRERROR_TAB , |
| ld_p_endda | TYPE PC223-ENDDA , |
| it_t_t5f1m | TYPE STANDARD TABLE OF T5F1M , |
| wa_t_t5f1m | LIKE LINE OF it_t_t5f1m, |
| it_wpbp | TYPE STANDARD TABLE OF PC205 , |
| wa_wpbp | LIKE LINE OF it_wpbp, |
| ld_p_pernr | TYPE PERNR-PERNR , |
| it_t0000 | TYPE STANDARD TABLE OF P0000 , |
| wa_t0000 | LIKE LINE OF it_t0000, |
| ld_p_chkdt | TYPE PC2APER-CHKDT , |
| it_t0001 | TYPE STANDARD TABLE OF P0001 , |
| wa_t0001 | LIKE LINE OF it_t0001, |
| ld_iv_ibegd | TYPE BEGDA , |
| ld_iv_lactv | TYPE ENDDA , |
| ld_iv_compl | TYPE BOOLE_D . |
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 HR_FR_GET_COTIS or its description.