SAP Reports / Programs

HPLAWST0 SAP ABAP Report - Contract of employment







HPLAWST0 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 HPLAWST0 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 HPLAWST0. "Basic submit
SUBMIT HPLAWST0 AND RETURN. "Return to original report after report execution complete
SUBMIT HPLAWST0 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: ZAW = Date of agreement
Selection Text: WORDFRM = MS Word form name
Selection Text: WORD = WORD printout
Selection Text: TMP_ZLEA = Sales document
Selection Text: TMP_POZ = D .
Selection Text: TMP_KOIN = D .
Selection Text: TMP_KOCU = D .
Selection Text: TMP_JOB = Job position
Selection Text: TMP_CUNR = D .
Selection Text: TMP_CNTY = D .
Selection Text: TMP_ADM = Order admin
Selection Text: TDNEWID = New spool request
Selection Text: TDLIFE = Spool retention period (days)
Selection Text: TDDELE = Delete after print
Selection Text: TDARMOD = Archiving mode
Selection Text: SAPS = Sapscript printout
Selection Text: ROZP = Work start date
Selection Text: PRINTER = Output device
Selection Text: MIEDZY = Employer name
Selection Text: MERGEWRD = Merge data with form
Selection Text: INNE = Other employment conditions
Selection Text: DIMMED = Print immediately
Selection Text: DIAL = Print preview
Title: Contract of employment
Text Symbol: TM1 = Selection for tempolary workers
Text Symbol: T08 = GR
Text Symbol: T07 = ONE THOUSAND
Text Symbol: T06 = THOUSAND
Text Symbol: T05 = ZL
Text Symbol: T04 = to
Text Symbol: T03 = - from
Text Symbol: T02 = Contract - from
Text Symbol: T01 = Fixed term contract
Text Symbol: FR2 = PIT-11 additional data
Text Symbol: FR1 = Print parameters
Text Symbol: ADD = Additional data
Text Symbol: 011 = and start of work
Text Symbol: 010 = Please fill date of contract





INCLUDES used within this REPORT HPLAWST0

INCLUDE PCINTPL0. "86082912
INCLUDE PCINTPL1. "OT86082912


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:

HR_PL_GET_FORM_F4 CALL FUNCTION 'HR_PL_GET_FORM_F4' EXPORTING FRCLA = 'AWST' IMPORTING FRNAM = WORDFRM EXCEPTIONS UNKNOWN_ERR = 1 OTHERS = 2.

RP_HIRE_FIRE CALL FUNCTION 'RP_HIRE_FIRE' EXPORTING BEG = '18000101' END = '99991231' IMPORTING FIRE_DATE = FIRE_DATE HIRE_DATE = HIRE_DATE TABLES PPHIFI = PHIFI PP0000 = P0000 PP0001 = P0001.

OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING * APPLICATION = 'TX' * ARCHIVE_INDEX = ' ' * ARCHIVE_PARAMS = ' ' * DEVICE = 'PRINTER' DIALOG = DIAL FORM = 'HRPL_WRKST_01' LANGUAGE = 'L' OPTIONS = ITCPO * MAIL_SENDER = ' ' * MAIL_RECIPIENT = ' ' * MAIL_APPL_OBJECT = ' ' * RAW_DATA_INTERFACE = '*' * IMPORTING * LANGUAGE = * NEW_ARCHIVE_PARAMS = * RESULT = EXCEPTIONS CANCELED = 1 DEVICE = 2 FORM = 3 OPTIONS = 4 UNCLOSED = 5 MAIL_OPTIONS = 6 ARCHIVE_ERROR = 7 OTHERS = 8 .

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING * ELEMENT = ' ' * FUNCTION = 'SET' * TYPE = 'BODY' WINDOW = 'OKNO' * IMPORTING * PENDING_LINES = EXCEPTIONS ELEMENT = 1 FUNCTION = 2 TYPE = 3 UNOPENED = 4 UNSTARTED = 5 WINDOW = 6 BAD_PAGEFORMAT_FOR_PRINT = 7 OTHERS = 8 .

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING WINDOW = 'MAIN'.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' * IMPORTING * RESULT = * RDI_RESULT = * TABLES * OTFDATA = EXCEPTIONS UNOPENED = 1 BAD_PAGEFORMAT_FOR_PRINT = 2 OTHERS = 3 .

RP_HIRE_FIRE CALL FUNCTION 'RP_HIRE_FIRE' EXPORTING BEG = '18000101' END = '99991231' IMPORTING FIRE_DATE = FIRE_DATE HIRE_DATE = HIRE_DATE TABLES PPHIFI = PHIFI PP0000 = P0000 PP0001 = P0001.

RP_FILL_WAGE_TYPE_TABLE_EXT CALL FUNCTION 'RP_FILL_WAGE_TYPE_TABLE_EXT' EXPORTING APPLI = 'E' BEGDA = l_ROZP "sy-datum " HR-PL-37 ENDDA = l_ROZP "sy-datum " HR-PL-37 INFTY = '0008' OBJPS = ' ' PERNR = PERNR-PERNR SUBTY = '0 ' TABLES PP0001 = P0001 PP0007 = P0007 PP0008 = P0008 PPBWLA = PPBWLA * pp0230 = p0230 "XGFAHRK010494 EXCEPTIONS ERROR_AT_INDIRECT_EVALUATION = 1.

HR_PL_GET_FORM CALL FUNCTION 'HR_PL_GET_FORM' EXPORTING FORMID = WORDFRM FORMCL = 'AWST' * TEST_ONLY = ' ' CHANGING DOC_FILE = FN EXCEPTIONS FORM_NOT_EXISTS = 1 COMMUNICATION_ERROR = 2 OTHERS = 3 .

HR_COLLECT_ERROR_LIST CALL FUNCTION 'HR_COLLECT_ERROR_LIST' EXPORTING PERNR = PERNR-PERNR ARBGB = SY-MSGID MSGTY = 'E' MSGNO = SY-MSGNO MSGV1 = SY-MSGV1 MSGV2 = SY-MSGV2 MSGV3 = SY-MSGV3 MSGV4 = SY-MSGV4.

HR_PL_MSWORD_EXPORT CALL FUNCTION 'HR_PL_MSWORD_EXPORT' EXPORTING WORD_DOC = FN * PASSWORD_OPTION = 2 MERGE = MERGEWRD TABLES P_WORK_DATA = WRKDATA P_FIELD_NAMES = FIELD_NAMES EXCEPTIONS INVALID_FIELDNAMES = 1 USER_CANCELLED = 2 DOWNLOAD_PROBLEM = 3 COMMUNICATION_ERROR = 4 OTHERS = 5 .

WS_FILE_DELETE CALL FUNCTION 'WS_FILE_DELETE' EXPORTING FILE = FN IMPORTING RETURN = MY_SUBRC EXCEPTIONS OTHERS = 1.

GET_COMPONENT_LIST CALL FUNCTION 'GET_COMPONENT_LIST' EXPORTING PROGRAM = PROG FIELDNAME = 'WRKDATA' TABLES COMPONENTS = COMPS.

SPELL_AMOUNT CALL FUNCTION 'SPELL_AMOUNT' EXPORTING AMOUNT = BETRG CURRENCY = 'PLN' LANGUAGE = SY-LANGU IMPORTING IN_WORDS = KWOTA.



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 HPLAWST0 or its description.