SAP HR_BEN_FORM_PRINT_PDF Function Module for
HR_BEN_FORM_PRINT_PDF is a standard hr ben form print pdf SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ben form print pdf FM, simply by entering the name HR_BEN_FORM_PRINT_PDF into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRBEN00FORMS
Program Name: SAPLHRBEN00FORMS
Main Program: SAPLHRBEN00FORMS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_BEN_FORM_PRINT_PDF 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_BEN_FORM_PRINT_PDF'".
EXPORTING
PERNR_TABLE = "
FORM_DATUM = "
* FORM_TYPE = 'E' "
FORM_NAME = "
* EVENT_DESCR_TABLE = "
* ENROLLMENT_TYPE = 'O' "
* COMMAND = 'FDIS' "
* LANGUAGE = SY-LANGU "
REACTION = "
IMPORTING
PDF_TABLE = "
PDF_FSIZE = "
RESULT_TABLE = "
SUBRC = "
PDF_XSTRING = "
CHANGING
OPTIONS = "
TABLES
ERROR_TABLE = "
IMPORTING Parameters details for HR_BEN_FORM_PRINT_PDF
PERNR_TABLE -
Data type: HRBEN00PERSONFORMSOptional: No
Call by Reference: Yes
FORM_DATUM -
Data type: SYDATUMOptional: No
Call by Reference: No ( called with pass by value option)
FORM_TYPE -
Data type: CDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
FORM_NAME -
Data type: T74HL-SSCFOOptional: No
Call by Reference: No ( called with pass by value option)
EVENT_DESCR_TABLE -
Data type: HRBEN00EVENTOptional: Yes
Call by Reference: Yes
ENROLLMENT_TYPE -
Data type: RPBENRPT01-ENRTYDefault: 'O'
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMAND -
Data type:Default: 'FDIS'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE -
Data type: THEAD-TDSPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
REACTION -
Data type: SY-MSGTYOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_BEN_FORM_PRINT_PDF
PDF_TABLE -
Data type: RCL_BAG_TLINEOptional: No
Call by Reference: Yes
PDF_FSIZE -
Data type: IOptional: No
Call by Reference: Yes
RESULT_TABLE -
Data type: HRBEN00ERROptional: No
Call by Reference: Yes
SUBRC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
PDF_XSTRING -
Data type: XSTRINGOptional: No
Call by Reference: Yes
CHANGING Parameters details for HR_BEN_FORM_PRINT_PDF
OPTIONS -
Data type: ITCPOOptional: No
Call by Reference: Yes
TABLES Parameters details for HR_BEN_FORM_PRINT_PDF
ERROR_TABLE -
Data type: RPBENERROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_BEN_FORM_PRINT_PDF 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_options | TYPE ITCPO, " | |||
lv_pdf_table | TYPE RCL_BAG_TLINE, " | |||
lt_error_table | TYPE STANDARD TABLE OF RPBENERR, " | |||
lv_pernr_table | TYPE HRBEN00PERSONFORMS, " | |||
lv_pdf_fsize | TYPE I, " | |||
lv_form_datum | TYPE SYDATUM, " | |||
lv_form_type | TYPE C, " 'E' | |||
lv_result_table | TYPE HRBEN00ERR, " | |||
lv_subrc | TYPE SY-SUBRC, " | |||
lv_form_name | TYPE T74HL-SSCFO, " | |||
lv_pdf_xstring | TYPE XSTRING, " | |||
lv_event_descr_table | TYPE HRBEN00EVENT, " | |||
lv_enrollment_type | TYPE RPBENRPT01-ENRTY, " 'O' | |||
lv_command | TYPE RPBENRPT01, " 'FDIS' | |||
lv_language | TYPE THEAD-TDSPRAS, " SY-LANGU | |||
lv_reaction | TYPE SY-MSGTY. " |
  CALL FUNCTION 'HR_BEN_FORM_PRINT_PDF' " |
EXPORTING | ||
PERNR_TABLE | = lv_pernr_table | |
FORM_DATUM | = lv_form_datum | |
FORM_TYPE | = lv_form_type | |
FORM_NAME | = lv_form_name | |
EVENT_DESCR_TABLE | = lv_event_descr_table | |
ENROLLMENT_TYPE | = lv_enrollment_type | |
COMMAND | = lv_command | |
LANGUAGE | = lv_language | |
REACTION | = lv_reaction | |
IMPORTING | ||
PDF_TABLE | = lv_pdf_table | |
PDF_FSIZE | = lv_pdf_fsize | |
RESULT_TABLE | = lv_result_table | |
SUBRC | = lv_subrc | |
PDF_XSTRING | = lv_pdf_xstring | |
CHANGING | ||
OPTIONS | = lv_options | |
TABLES | ||
ERROR_TABLE | = lt_error_table | |
. " HR_BEN_FORM_PRINT_PDF |
ABAP code using 7.40 inline data declarations to call FM HR_BEN_FORM_PRINT_PDF
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.DATA(ld_form_type) | = 'E'. | |||
"SELECT single SUBRC FROM SY INTO @DATA(ld_subrc). | ||||
"SELECT single SSCFO FROM T74HL INTO @DATA(ld_form_name). | ||||
"SELECT single ENRTY FROM RPBENRPT01 INTO @DATA(ld_enrollment_type). | ||||
DATA(ld_enrollment_type) | = 'O'. | |||
DATA(ld_command) | = 'FDIS'. | |||
"SELECT single TDSPRAS FROM THEAD INTO @DATA(ld_language). | ||||
DATA(ld_language) | = SY-LANGU. | |||
"SELECT single MSGTY FROM SY INTO @DATA(ld_reaction). | ||||
Search for further information about these or an SAP related objects