SAP Reports / Programs

HNZCADV0 SAP ABAP Report - Advance payment NZ







HNZCADV0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for HNZCADV0 Report To create advance payments, the advance payment program: Simulates a payroll run to retrieve the payroll results for the period in which the leave occurs Creates an advance payment cluster that contains the payroll results for the period in which the leave occurs and is paid in the period specified by the user Locks the absence so that the amount cannot be paid to the employee again Produces an advance payment report with details of the advance payment The system retrieves the payroll results for the specified period from the advance pay cluster...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter HNZCADV0 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

PC00_M43_CADV - Advance payment 43


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 HNZCADV0. "Basic submit
SUBMIT HNZCADV0 AND RETURN. "Return to original report after report execution complete
SUBMIT HNZCADV0 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: UPDATE = Advance payment
Selection Text: SCHEMA = Schema
Selection Text: PAYDATE = Date to pay leave
Selection Text: LV-ENDDA = End of leave
Selection Text: LV-BEGDA = Start of leave
Title: Advance payment NZ
Text Symbol: 035 = Absence already paid for the period
Text Symbol: 036 = Absence for the period does not exist.
Text Symbol: 040 = Advance payment details:
Text Symbol: 050 = Claim is active for period. It has been ignored in advance payment.
Text Symbol: 051 = Carry-over is active for period. It has been ignored in advance payment.
Text Symbol: 060 = Error exporting cluster N1. Key
Text Symbol: 070 = Employee cannot be paid in advance because of change in payroll area.
Text Symbol: 080 = Check for Advance Payment failed.
Text Symbol: 081 = could not be found for
Text Symbol: 082 = Entry in T001P could not be found for key
Text Symbol: 083 = Entry in T554S could not be found for key
Text Symbol: 084 = Entry in T7NZLS could not be found for key
Text Symbol: 090 = Student Loan
Text Symbol: 091 = Absence Wage Type
Text Symbol: 092 = Absence WT Desc.
Text Symbol: 093 = Pay Period
Text Symbol: 094 = -
Text Symbol: 095 = Report:
Text Symbol: 096 = Run Date
Text Symbol: 097 = Time
Text Symbol: 098 = Message Text
Text Symbol: 110 = Advance Payment for Absence
Text Symbol: 111 = Pers. No.
Text Symbol: 112 = Pay Period
Text Symbol: 114 = Absent From
Text Symbol: 115 = Absent To
Text Symbol: SF4 = Schema
Text Symbol: 034 = Check IMG. The type of leave to be paid in advance should be
Text Symbol: 001 = Absence for period
Text Symbol: 002 = to
Text Symbol: 003 = already paid
Text Symbol: 004 = Payroll subunit





Text Symbol: 005 = locked, no advance payment performed
Text Symbol: 006 = Advance Payment Enquiry Report
Text Symbol: 007 = Advance Payment Update Report
Text Symbol: 008 = No pay results created for period
Text Symbol: 009 = . Check log in spooler for error.
Text Symbol: 010 = Earnings and Allowance
Text Symbol: 011 = Total Gross
Text Symbol: 012 = Total Dedns
Text Symbol: 013 = Total Tax
Text Symbol: 014 = Total Net
Text Symbol: 015 = Advance Payment Amount
Text Symbol: 016 = To be paid on
Text Symbol: 017 = For absence
Text Symbol: 018 = between
Text Symbol: 019 = and
Text Symbol: 020 = Deductions
Text Symbol: 021 = Amount created in infotype 0015, under wage type
Text Symbol: 022 = The Advance Payment was delete. Rerun HNZCADV0 to
Text Symbol: 023 = The employee has already received the Advance payment
Text Symbol: 024 = Amount
Text Symbol: 025 = Please delete Advance Payment from
Text Symbol: 026 = Advance payment for leave
Text Symbol: 027 = Payment. The payroll will handle any adjustment.
Text Symbol: 028 = does not exist.
Text Symbol: 029 = Leave has been paid in advance.
Text Symbol: 030 = Totals
Text Symbol: 031 = Payroll will handle leave adjustment.
Text Symbol: 032 = The Advance Payment record was deleted.
Text Symbol: 033 = Rerun Advance Payment to reflect new leave record.


INCLUDES used within this REPORT HNZCADV0

INCLUDE HNZCADVD_ALV. "DATA DEFINITIONS


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:

DEQUEUE_EPPRELE CALL FUNCTION 'DEQUEUE_EPPRELE' EXPORTING pernr = pernr-pernr.

ENQUEUE_EPPRELE CALL FUNCTION 'ENQUEUE_EPPRELE' EXPORTING pernr = pernr-pernr.

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = lc_msgid i_msgno = lc_msgno i_msgty = lc_msgty i_msgv1 = ls_msg_txt-msgv1 i_msgv2 = ls_msg_txt-msgv2 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE





CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = sy-repid i_structure_name = gc_structure_name3 CHANGING ct_fieldcat = gt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

HR_PAL_CREATE_NODE_CATEG CALL FUNCTION 'HR_PAL_CREATE_NODE_CATEG' EXPORTING i_categ_id = gv_categ_id is_layout = ls_layout it_fieldcat = gt_fieldcat.

HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = text-111 i_node_txt = sy-title i_categ_id = gv_categ_id IMPORTING e_node_key = gv_node_key.

HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = gv_node_key i_row_data = gs_node_row.

RP_READ_T100 CALL FUNCTION 'RP_READ_T100' EXPORTING msgnr = l_msgnr msgv1 = l_msgv1 msgv2 = l_msgv2 msgv3 = l_msgv3 msgv4 = l_msgv4 IMPORTING text = l_text.

F4_POPUP_SCHEMA CALL FUNCTION 'F4_POPUP_SCHEMA' EXPORTING molga = '43' titel = 'Zulässige Schemen'(sf4) IMPORTING sname = schema EXCEPTIONS OTHERS = 1.

RP_HIRE_FIRE CALL FUNCTION 'RP_HIRE_FIRE' EXPORTING beg = '18000101' end = '99991231' IMPORTING hire_date = p_hire_date fire_date = p_fire_date TABLES pp0000 = p0000 pp0001 = p0001 pphifi = phifi.

HRCA_COMPANYCODE_GETDETAIL CALL FUNCTION 'HRCA_COMPANYCODE_GETDETAIL' "FGKALRK046765 EXPORTING "FGKALRK046765 companycode = comp_code "FGKALRK046765 language = sy-langu "FGKALRK046765 IMPORTING "FGKALRK046765 comp_name = l_comp_name "FGKALRK046765 EXCEPTIONS "FGKALRK055055 not_found = 1 "FGKALRK055055 OTHERS = 2. "FGKALRK055055

STRING_CENTER CALL FUNCTION 'STRING_CENTER' "center company name EXPORTING string = l_comp_name * string = t001-butxt "FGKALRK055055 IMPORTING cstring = co-name.

STRING_CENTER CALL FUNCTION 'STRING_CENTER' EXPORTING string = report_name "center report_name IMPORTING cstring = crep_name.

STRING_CENTER CALL FUNCTION 'STRING_CENTER' EXPORTING string = payroll_subunit IMPORTING cstring = cpay_subunit.

HR_PAL_LOG_DISPLAY CALL FUNCTION 'HR_PAL_LOG_DISPLAY' EXPORTING i_s_display_profile = l_display_profile.

RP_READ_T100_BDC call function 'RP_READ_T100_BDC' exporting * msgid = l_msgid msgnr = l_msgnr msgv1 = l_msgv1 msgv2 = l_msgv2 msgv3 = l_msgv3 msgv4 = l_msgv4 importing text = l_text.



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