SAP HR_CL_ISAP_PROC_GENERATE_PDFDT Function Module for Create ISAPRE Statement









HR_CL_ISAP_PROC_GENERATE_PDFDT is a standard hr cl isap proc generate pdfdt SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create ISAPRE Statement 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 cl isap proc generate pdfdt FM, simply by entering the name HR_CL_ISAP_PROC_GENERATE_PDFDT into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPAYCL_ISAPRE
Program Name: SAPLHRPAYCL_ISAPRE
Main Program: SAPLHRPAYCL_ISAPRE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_CL_ISAP_PROC_GENERATE_PDFDT 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_CL_ISAP_PROC_GENERATE_PDFDT'"Create ISAPRE Statement
EXPORTING
IV_GRATUITY = "Income Type - Gratuity
IV_START_DATE = "
IV_END_DATE = "
IV_PAYMENT_DATE = "Payment Date
IS_EMPLOYER = "Structure for Employer
IT_ISAPRE = "Type table for ISAPRE Statement
IV_DECLARATION_NO_PAY = "General Flag
IV_DECLARATION_PAY = "General Flag
IV_DECLARATION_LAST = "General Flag
IV_LEGAL_REPR_CHANGE = "
IV_EMPLOYER_ADDRESS_CHANGE = "
IV_EMPLOYER_RUT_CHANGE = "
IV_YEAR = "Fiscal Year
IV_MONTH = "Month

IMPORTING
I_DATA = "Structure for ISPR Statement (PDF)

EXCEPTIONS
CX_FP_API_USAGE = 1 CX_FP_API_REPOSITORY = 2 CX_FP_API_INTERNAL = 3
.



IMPORTING Parameters details for HR_CL_ISAP_PROC_GENERATE_PDFDT

IV_GRATUITY - Income Type - Gratuity

Data type: FLAG
Optional: No
Call by Reference: Yes

IV_START_DATE -

Data type: D
Optional: No
Call by Reference: Yes

IV_END_DATE -

Data type: D
Optional: No
Call by Reference: Yes

IV_PAYMENT_DATE - Payment Date

Data type: D
Optional: No
Call by Reference: Yes

IS_EMPLOYER - Structure for Employer

Data type: P39_EMPLOYER
Optional: No
Call by Reference: Yes

IT_ISAPRE - Type table for ISAPRE Statement

Data type: PCL_T_ISAPRE
Optional: No
Call by Reference: Yes

IV_DECLARATION_NO_PAY - General Flag

Data type: FLAG
Optional: No
Call by Reference: Yes

IV_DECLARATION_PAY - General Flag

Data type: FLAG
Optional: No
Call by Reference: Yes

IV_DECLARATION_LAST - General Flag

Data type: FLAG
Optional: No
Call by Reference: Yes

IV_LEGAL_REPR_CHANGE -

Data type: PCL_CHRLG
Optional: No
Call by Reference: Yes

IV_EMPLOYER_ADDRESS_CHANGE -

Data type: PCL_CHDER
Optional: No
Call by Reference: Yes

IV_EMPLOYER_RUT_CHANGE -

Data type: PCL_CHRER
Optional: No
Call by Reference: Yes

IV_YEAR - Fiscal Year

Data type: PCL_YEAR
Optional: No
Call by Reference: Yes

IV_MONTH - Month

Data type: MONTH
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for HR_CL_ISAP_PROC_GENERATE_PDFDT

I_DATA - Structure for ISPR Statement (PDF)

Data type: P39_ISAPRE_PDF_DATA
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CX_FP_API_USAGE - Exception API (Use)

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CX_FP_API_REPOSITORY - Exception API (Repository)

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CX_FP_API_INTERNAL - Exception API (Internal)

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HR_CL_ISAP_PROC_GENERATE_PDFDT 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_i_data  TYPE P39_ISAPRE_PDF_DATA, "   
lv_iv_gratuity  TYPE FLAG, "   
lv_cx_fp_api_usage  TYPE FLAG, "   
lv_iv_start_date  TYPE D, "   
lv_iv_end_date  TYPE D, "   
lv_iv_payment_date  TYPE D, "   
lv_is_employer  TYPE P39_EMPLOYER, "   
lv_it_isapre  TYPE PCL_T_ISAPRE, "   
lv_cx_fp_api_repository  TYPE PCL_T_ISAPRE, "   
lv_iv_declaration_no_pay  TYPE FLAG, "   
lv_cx_fp_api_internal  TYPE FLAG, "   
lv_iv_declaration_pay  TYPE FLAG, "   
lv_iv_declaration_last  TYPE FLAG, "   
lv_iv_legal_repr_change  TYPE PCL_CHRLG, "   
lv_iv_employer_address_change  TYPE PCL_CHDER, "   
lv_iv_employer_rut_change  TYPE PCL_CHRER, "   
lv_iv_year  TYPE PCL_YEAR, "   
lv_iv_month  TYPE MONTH. "   

  CALL FUNCTION 'HR_CL_ISAP_PROC_GENERATE_PDFDT'  "Create ISAPRE Statement
    EXPORTING
         IV_GRATUITY = lv_iv_gratuity
         IV_START_DATE = lv_iv_start_date
         IV_END_DATE = lv_iv_end_date
         IV_PAYMENT_DATE = lv_iv_payment_date
         IS_EMPLOYER = lv_is_employer
         IT_ISAPRE = lv_it_isapre
         IV_DECLARATION_NO_PAY = lv_iv_declaration_no_pay
         IV_DECLARATION_PAY = lv_iv_declaration_pay
         IV_DECLARATION_LAST = lv_iv_declaration_last
         IV_LEGAL_REPR_CHANGE = lv_iv_legal_repr_change
         IV_EMPLOYER_ADDRESS_CHANGE = lv_iv_employer_address_change
         IV_EMPLOYER_RUT_CHANGE = lv_iv_employer_rut_change
         IV_YEAR = lv_iv_year
         IV_MONTH = lv_iv_month
    IMPORTING
         I_DATA = lv_i_data
    EXCEPTIONS
        CX_FP_API_USAGE = 1
        CX_FP_API_REPOSITORY = 2
        CX_FP_API_INTERNAL = 3
. " HR_CL_ISAP_PROC_GENERATE_PDFDT




ABAP code using 7.40 inline data declarations to call FM HR_CL_ISAP_PROC_GENERATE_PDFDT

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!