HGRLAPD5 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter HGRLAPD5 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
PC00_M45_APD5 - IKA Employment Statement
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: P_APDTP = APD Type
Selection Text: P_FILE = Filename
Selection Text: P_NEGAT = Display Negative records
Selection Text: P_PYTYP = D .
Selection Text: P_SDATE = Submission Date
Selection Text: P_SEQNR = Company Data Sequential No.
Selection Text: P_YM1 = Period from (YearMonth YYYYMM)
Selection Text: P_YM2 = Period to (YearMonth YYYYMM)
Title: IKA Employment Statement
Text Symbol: 010 = Certificates created
Text Symbol: 020 = Error during writing file
Text Symbol: P01 = C:\Documents and Settings\
Text Symbol: P02 = \Desktop\APD.pdf
INCLUDE HGRUCMP0.
INCLUDE HGRUIKA0.
INCLUDE HGRUGEN0.
INCLUDE HGRUACT0.
No SAP DATABASE tables are accessed within this REPORT code!
FP_FUNCTION_MODULE_NAME CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING i_name = p_form IMPORTING e_funcname = fm_name.
FP_JOB_OPEN CALL FUNCTION 'FP_JOB_OPEN' CHANGING ie_outputparams = ls_outputparams EXCEPTIONS cancel = 1 usage_error = 2 system_error = 3 internal_error = 4 OTHERS = 5.
FP_GET_LAST_ADS_ERRSTR CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR' IMPORTING e_adserrstr = error_string.
FP_JOB_CLOSE CALL FUNCTION 'FP_JOB_CLOSE' EXCEPTIONS usage_error = 1 system_error = 2 internal_error = 3 OTHERS = 4.
SCMS_XSTRING_TO_BINARY CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = ls_formoutput-pdf * append_to_table = 'X' IMPORTING output_length = lv_len TABLES binary_tab = lt_tab.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.