SAP HRXSS_SG_IR21_GET_PDF Function Module for Getting PDF stream for IR21
HRXSS_SG_IR21_GET_PDF is a standard hrxss sg ir21 get pdf SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Getting PDF stream for IR21 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 hrxss sg ir21 get pdf FM, simply by entering the name HRXSS_SG_IR21_GET_PDF into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRXSS_SG_IR21
Program Name: SAPLHRXSS_SG_IR21
Main Program: SAPLHRXSS_SG_IR21
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRXSS_SG_IR21_GET_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 'HRXSS_SG_IR21_GET_PDF'"Getting PDF stream for IR21.
EXPORTING
PERNR = "Personnel Number
YEAR = "Data Type 4 Characters
CLAIMS = "XSS: Boolean value
* IV_ESS_ABAP = ABAP_FALSE "
IMPORTING
PDF_DOC = "PDF Data Stream
MESSAGE = "Return Parameter
IMPORTING Parameters details for HRXSS_SG_IR21_GET_PDF
PERNR - Personnel Number
Data type: PERNR-PERNROptional: No
Call by Reference: No ( called with pass by value option)
YEAR - Data Type 4 Characters
Data type: CHAR04Optional: No
Call by Reference: No ( called with pass by value option)
CLAIMS - XSS: Boolean value
Data type: XSS_SER_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
IV_ESS_ABAP -
Data type: ABAP_BOOLDefault: ABAP_FALSE
Optional: No
Call by Reference: Yes
EXPORTING Parameters details for HRXSS_SG_IR21_GET_PDF
PDF_DOC - PDF Data Stream
Data type: XSTRINGOptional: No
Call by Reference: No ( called with pass by value option)
MESSAGE - Return Parameter
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRXSS_SG_IR21_GET_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_pernr | TYPE PERNR-PERNR, " | |||
| lv_pdf_doc | TYPE XSTRING, " | |||
| lv_year | TYPE CHAR04, " | |||
| lv_message | TYPE BAPIRET2, " | |||
| lv_claims | TYPE XSS_SER_BOOLEAN, " | |||
| lv_iv_ess_abap | TYPE ABAP_BOOL. " ABAP_FALSE |
|   CALL FUNCTION 'HRXSS_SG_IR21_GET_PDF' "Getting PDF stream for IR21 |
| EXPORTING | ||
| PERNR | = lv_pernr | |
| YEAR | = lv_year | |
| CLAIMS | = lv_claims | |
| IV_ESS_ABAP | = lv_iv_ess_abap | |
| IMPORTING | ||
| PDF_DOC | = lv_pdf_doc | |
| MESSAGE | = lv_message | |
| . " HRXSS_SG_IR21_GET_PDF | ||
ABAP code using 7.40 inline data declarations to call FM HRXSS_SG_IR21_GET_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.| "SELECT single PERNR FROM PERNR INTO @DATA(ld_pernr). | ||||
| DATA(ld_iv_ess_abap) | = ABAP_FALSE. | |||
Search for further information about these or an SAP related objects