SAP Reports / Programs

HPLAZUS0 SAP ABAP Report - Generation of ZUS registration documents







HPLAZUS0 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 HPLAZUS0 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit 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.






SUBMIT HPLAZUS0. "Basic submit
SUBMIT HPLAZUS0 AND RETURN. "Return to original report after report execution complete
SUBMIT HPLAZUS0 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_TST_ON = Test run (without update)
Selection Text: P_TECHN = Technical run (for fixing)
Selection Text: P_FILENA = KEDU file name, *& special ch.
Title: Generation of ZUS registration documents
Text Symbol: 000 = Processing


INCLUDES used within this REPORT HPLAZUS0

INCLUDE PAZUSPL0.
INCLUDE PAZUSPL1.
INCLUDE PAZUSPL2.
INCLUDE PAZUSPLA.
INCLUDE PAZUSPLB.
INCLUDE PAZUSPLC.
INCLUDE PAZUSPLD.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

WS_ULDL_PATH CALL FUNCTION 'WS_ULDL_PATH' IMPORTING DOWNLOAD_PATH = TMP_FILENAME.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING mask = ',*.*,*.*.'

HR_PL_PY_INIT_REPORT_COUNTER CALL FUNCTION 'HR_PL_PY_INIT_REPORT_COUNTER'. "init progress indic.

HR_PL_REFRESH_STAT_LIST CALL FUNCTION 'HR_PL_REFRESH_STAT_LIST'.

HR_PL_PY_UPDATE_REP_STATUS CALL FUNCTION 'HR_PL_PY_UPDATE_REP_STATUS' EXPORTING THRESHOLD = 0. "inc progress status

POPUP_TO_CONFIRM_WITH_MESSAGE * CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' * EXPORTING * defaultoption = 'N' * DIAGNOSETEXT1 = TEXT-010 * DIAGNOSETEXT2 = '' * diagnosetext3 = '' * TEXTLINE1 = TEXT-011 * TEXTLINE2 = TEXT-012 * TITEL = TEXT-013 * IMPORTING * ANSWER = EXIT_NEEDED * EXCEPTIONS * OTHERS = 1.

RP_TS_CREATE_OBJECT CALL FUNCTION 'RP_TS_CREATE_OBJECT' EXPORTING OBJKN = OBJNM OBJNR = OBJNR EMPFG = ' ' IMPORTING TSOBJ = DATASET_EXP * objhd = EXCEPTIONS OTHERS = 1.

RSTS_WRITE CALL FUNCTION 'RSTS_WRITE' * EXPORTING * BUFFLG = '*' * FBHANDLE = 0 * SHOWLG = ' ' * ROWS = 0 * STARTROW = 1 TABLES DATATAB = FILETAB EXCEPTIONS OTHERS = 1.

RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' * exporting * fbhandle = 0 EXCEPTIONS OTHERS = 1.

HR_PL_DOWNLOAD CALL FUNCTION 'HR_PL_DOWNLOAD' EXPORTING FILENAME = FILENAME APPEND = ' ' EXT_CODE_PAGE = 'iso-8859-2' CRLF = 'X' TABLES DATA_TAB = ZUSFILETAB EXCEPTIONS OTHERS = 1.

BAPI_EMPLOYEE_ENQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE' EXPORTING number = pernr-pernr IMPORTING return = return_struc.

BAPI_EMPLOYEE_DEQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE' EXPORTING number = pernr-pernr.

RP_HIRE_FIRE CALL FUNCTION 'RP_HIRE_FIRE' EXPORTING END = P0515-BEGDA IMPORTING hire_date = hire_date TABLES pphifi = phifi pp0000 = p0000 PP0001 = P0001 EXCEPTIONS "85092328 OTHERS = 1. "85092328



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name HPLAZUS0 or its description.