SAP HR_BE_EGOV_GET_FILE_NAME Function Module for Get the filename of a declaration
HR_BE_EGOV_GET_FILE_NAME is a standard hr be egov get file name SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get the filename of a declaration 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 be egov get file name FM, simply by entering the name HR_BE_EGOV_GET_FILE_NAME into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPAYBE_EGOV_WORKFLOW
Program Name: SAPLHRPAYBE_EGOV_WORKFLOW
Main Program: SAPLHRPAYBE_EGOV_WORKFLOW
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_BE_EGOV_GET_FILE_NAME 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_BE_EGOV_GET_FILE_NAME'"Get the filename of a declaration.
EXPORTING
* IM_APPL = 'DMFA' "Teilapplikation
* IM_TEMSE = "
* IM_FITYPE = "
IMPORTING
EX_FILE = "File name
EX_RETURNCODE = "Return Value, Return Value After ABAP Statements
CHANGING
* CH_SENDER = "Sender identification number
* CH_DATE = "
* CH_VERSION = "Version Number of declaration
* CH_TEST = "Feld zum Ankreuzen
* CH_TOTFRAG = "Numerisch 1-stellig
* CH_FRAG = "Numerisch 1-stellig
IMPORTING Parameters details for HR_BE_EGOV_GET_FILE_NAME
IM_APPL - Teilapplikation
Data type: T5F99F0-APPLDefault: 'DMFA'
Optional: No
Call by Reference: Yes
IM_TEMSE -
Data type: CL_HR99S00_TEMSEOptional: Yes
Call by Reference: Yes
IM_FITYPE -
Data type: T5F99F0-APPLOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HR_BE_EGOV_GET_FILE_NAME
EX_FILE - File name
Data type: RLGRAP-FILENAMEOptional: No
Call by Reference: Yes
EX_RETURNCODE - Return Value, Return Value After ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
CHANGING Parameters details for HR_BE_EGOV_GET_FILE_NAME
CH_SENDER - Sender identification number
Data type: P12_SENDEROptional: Yes
Call by Reference: Yes
CH_DATE -
Data type: DOptional: Yes
Call by Reference: Yes
CH_VERSION - Version Number of declaration
Data type: P12_VERSIONOptional: Yes
Call by Reference: Yes
CH_TEST - Feld zum Ankreuzen
Data type: XFELDOptional: Yes
Call by Reference: Yes
CH_TOTFRAG - Numerisch 1-stellig
Data type: NUM1Optional: Yes
Call by Reference: Yes
CH_FRAG - Numerisch 1-stellig
Data type: NUM1Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for HR_BE_EGOV_GET_FILE_NAME 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_ex_file | TYPE RLGRAP-FILENAME, " | |||
| lv_im_appl | TYPE T5F99F0-APPL, " 'DMFA' | |||
| lv_ch_sender | TYPE P12_SENDER, " | |||
| lv_ch_date | TYPE D, " | |||
| lv_im_temse | TYPE CL_HR99S00_TEMSE, " | |||
| lv_ex_returncode | TYPE SY-SUBRC, " | |||
| lv_im_fitype | TYPE T5F99F0-APPL, " | |||
| lv_ch_version | TYPE P12_VERSION, " | |||
| lv_ch_test | TYPE XFELD, " | |||
| lv_ch_totfrag | TYPE NUM1, " | |||
| lv_ch_frag | TYPE NUM1. " |
|   CALL FUNCTION 'HR_BE_EGOV_GET_FILE_NAME' "Get the filename of a declaration |
| EXPORTING | ||
| IM_APPL | = lv_im_appl | |
| IM_TEMSE | = lv_im_temse | |
| IM_FITYPE | = lv_im_fitype | |
| IMPORTING | ||
| EX_FILE | = lv_ex_file | |
| EX_RETURNCODE | = lv_ex_returncode | |
| CHANGING | ||
| CH_SENDER | = lv_ch_sender | |
| CH_DATE | = lv_ch_date | |
| CH_VERSION | = lv_ch_version | |
| CH_TEST | = lv_ch_test | |
| CH_TOTFRAG | = lv_ch_totfrag | |
| CH_FRAG | = lv_ch_frag | |
| . " HR_BE_EGOV_GET_FILE_NAME | ||
ABAP code using 7.40 inline data declarations to call FM HR_BE_EGOV_GET_FILE_NAME
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 FILENAME FROM RLGRAP INTO @DATA(ld_ex_file). | ||||
| "SELECT single APPL FROM T5F99F0 INTO @DATA(ld_im_appl). | ||||
| DATA(ld_im_appl) | = 'DMFA'. | |||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_ex_returncode). | ||||
| "SELECT single APPL FROM T5F99F0 INTO @DATA(ld_im_fitype). | ||||
Search for further information about these or an SAP related objects