SAP HR_IN_CALC_F16 Function Module for Generate company code wise F16 information
HR_IN_CALC_F16 is a standard hr in calc f16 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate company code wise F16 information processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for hr in calc f16 FM, simply by entering the name HR_IN_CALC_F16 into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPADINT
Program Name: SAPLHRPADINT
Main Program: SAPLHRPADINT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_IN_CALC_F16 pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'HR_IN_CALC_F16'"Generate company code wise F16 information.
EXPORTING
EMPNO = "Personnel number
* MULTIPLE_F16 = ' ' "Multiple Form 16? (Yes/No
FYBEGDA = "Date and time, current (application server) date
FYENDDA = "Date and time, current (application server) date
TABLES
P0000 = "HR Master Record: Infotype 0001 (Org. Assignment)
P0001 = "HR Master Record: Infotype 0008 (Basic Pay)
P0580 = "HR Master Record for Infotype 0580
COCD = "Company code splits (Output)
F16 = "Company code wise wagetype details (Output)
EXCEPTIONS
NO_RGDIR = 1 NO_CLUSTER_RESULT = 2
IMPORTING Parameters details for HR_IN_CALC_F16
EMPNO - Personnel number
Data type: PERNR-PERNROptional: No
Call by Reference: Yes
MULTIPLE_F16 - Multiple Form 16? (Yes/No
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
FYBEGDA - Date and time, current (application server) date
Data type: SY-DATUMOptional: No
Call by Reference: Yes
FYENDDA - Date and time, current (application server) date
Data type: SY-DATUMOptional: No
Call by Reference: Yes
TABLES Parameters details for HR_IN_CALC_F16
P0000 - HR Master Record: Infotype 0001 (Org. Assignment)
Data type: P0000Optional: No
Call by Reference: Yes
P0001 - HR Master Record: Infotype 0008 (Basic Pay)
Data type: P0001Optional: No
Call by Reference: Yes
P0580 - HR Master Record for Infotype 0580
Data type: P0580Optional: No
Call by Reference: Yes
COCD - Company code splits (Output)
Data type: PINCCOptional: No
Call by Reference: Yes
F16 - Company code wise wagetype details (Output)
Data type: PIN16Optional: No
Call by Reference: Yes
EXCEPTIONS details
NO_RGDIR -
Data type:Optional: No
Call by Reference: Yes
NO_CLUSTER_RESULT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_IN_CALC_F16 Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_empno | TYPE PERNR-PERNR, " | |||
lt_p0000 | TYPE STANDARD TABLE OF P0000, " | |||
lv_no_rgdir | TYPE P0000, " | |||
lt_p0001 | TYPE STANDARD TABLE OF P0001, " | |||
lv_multiple_f16 | TYPE CHAR1, " ' ' | |||
lv_no_cluster_result | TYPE CHAR1, " | |||
lt_p0580 | TYPE STANDARD TABLE OF P0580, " | |||
lv_fybegda | TYPE SY-DATUM, " | |||
lt_cocd | TYPE STANDARD TABLE OF PINCC, " | |||
lv_fyendda | TYPE SY-DATUM, " | |||
lt_f16 | TYPE STANDARD TABLE OF PIN16. " |
  CALL FUNCTION 'HR_IN_CALC_F16' "Generate company code wise F16 information |
EXPORTING | ||
EMPNO | = lv_empno | |
MULTIPLE_F16 | = lv_multiple_f16 | |
FYBEGDA | = lv_fybegda | |
FYENDDA | = lv_fyendda | |
TABLES | ||
P0000 | = lt_p0000 | |
P0001 | = lt_p0001 | |
P0580 | = lt_p0580 | |
COCD | = lt_cocd | |
F16 | = lt_f16 | |
EXCEPTIONS | ||
NO_RGDIR = 1 | ||
NO_CLUSTER_RESULT = 2 | ||
. " HR_IN_CALC_F16 |
ABAP code using 7.40 inline data declarations to call FM HR_IN_CALC_F16
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single PERNR FROM PERNR INTO @DATA(ld_empno). | ||||
DATA(ld_multiple_f16) | = ' '. | |||
"SELECT single DATUM FROM SY INTO @DATA(ld_fybegda). | ||||
"SELECT single DATUM FROM SY INTO @DATA(ld_fyendda). | ||||
Search for further information about these or an SAP related objects