SAP Reports / Programs | Payroll | Austria(PY-AT) SAP PY

RPUNSHA0 SAP ABAP Report - Transfer of External NSchG Data to Cluster NS







RPUNSHA0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to read the data for personnel numbers that you previously saved in view variant VV_558A_RPUNSHA0 (Payroll Account Transfer) and use it to generate records in cluster NS for a number of consecutive months...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 RPUNSHA0 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_M03_UNSH - External Data Transfer to Cluster NS


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 RPUNSHA0. "Basic submit
SUBMIT RPUNSHA0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPUNSHA0 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: PA_VARIA = Layout
Selection Text: PA_NRPER = D No. of Data Transfer Periods
Selection Text: PA_LAST = D End of External Data Transfer
Selection Text: PA_DERIV = D Auto. Entry in Subseq. Months
Selection Text: PA_DATUJ = Date Type Entry Leave Year
Title: Transfer of External NSchG Data to Cluster NS
Text Symbol: P03 = Save proposed records?
Text Symbol: P02 = Direct DB Update in Cluster NS
Text Symbol: P01 = Direct DB Insert in Cluster NS
Text Symbol: MD8 = No records selected for database insert
Text Symbol: MD7 = No records selected for database update
Text Symbol: MD6 = No. of months for data transfer must be at least 1
Text Symbol: MD5 = Specified date must be last day of month
Text Symbol: MD3 = or overwritten
Text Symbol: MD2 = No cluster entries saved
Text Symbol: MD1 = DB change terminated
Text Symbol: M35 = with errors.
Text Symbol: M34 = terminated
Text Symbol: M33 = @1B@Export to database buffer for per. no.
Text Symbol: M32 = failed.
Text Symbol: M31 = PCL1
Text Symbol: M30 = @1B@Writing to database
Text Symbol: M29 = Proposed Records for Cluster UPDATE, Remainder
Text Symbol: M28 = Proposed Records for Cluster INSERT, Remainder
Text Symbol: M27 = Failed Changes from Cluster UPDATE
Text Symbol: M26 = Failed Changes from Cluster INSERT
Text Symbol: PNO = No
Text Symbol: PYS = Y
Text Symbol: S01 = Selected records for personnel no.
Text Symbol: S02 = have already been saved to the database
Text Symbol: S03 = Selected record for personnel no.
Text Symbol: S04 = is identical to the database data.
Text Symbol: S05 = The record will not be included in the selection.
Text Symbol: S06 = Records for Pers. No.
Text Symbol: S07 = added to selection for database insert
Text Symbol: S08 = removed from selection for database insert
Text Symbol: S09 = added to selection for database update
Text Symbol: S10 = removed from selection for database update





Text Symbol: S11 = Errors occurred
Text Symbol: S12 = during period
Text Symbol: S13 = while creating the proposal record
Text Symbol: S14 = PerNo.
Text Symbol: S15 = For more details, see performance assistant
Text Symbol: TI1 = Data Transfer Period from
Text Symbol: TI2 = to
Text Symbol: WID = @1A@ Warning
Text Symbol: M25 = Successful Changes, Cluster UPDATE, All
Text Symbol: IPE = In Period
Text Symbol: INU = Number
Text Symbol: ING = Is Not Greater
Text Symbol: INE = Is Not Equal To
Text Symbol: ILT = Is Less Than
Text Symbol: IL2 = Are Less Than
Text Symbol: IID = @1B@Inconsist.
Text Symbol: IGT = Is Grtr Than
Text Symbol: IGE = Grtr Than or Eq. To
Text Symbol: IG2 = Are Grtr Than
Text Symbol: IFS = Fields
Text Symbol: IEQ = equal to
Text Symbol: IE2 = are equal
Text Symbol: IAM = Amount
Text Symbol: I17 = (See Constant 'NSUB1' in View 'V_T511K')
Text Symbol: BU2 = @2L@ DB Upd. Only
Text Symbol: BU1 = @2L@ DB Ins. Only
Text Symbol: 006 = Auto. Entry in Subseq. Months
Text Symbol: 005 = Date Type Entry Leave Year
Text Symbol: 004 = Data Transfer Start:
Text Symbol: 003 = No. of Data Transfer Periods
Text Symbol: 002 = End of External Data Transfer
Text Symbol: 001 = Details for Program Execution
Text Symbol: M24 = Successful Changes, Cluster INSERT, All
Text Symbol: M23 = Proposed Records for Cluster UPDATE, All
Text Symbol: M22 = Proposed Records for Cluster INSERT, All
Text Symbol: M21 = Processed Entries in T558A
Text Symbol: M20 = No entries found in view 'V_T558A'
Text Symbol: M19 = No records will be generated for personnel no.
Text Symbol: M18 = and





Text Symbol: M17 = Is not in value range of
Text Symbol: M16 = @5B@Cluster data already deleted in period
Text Symbol: M15 = Records already exist in the periods
Text Symbol: M14 = @1B@Record already exists in period
Text Symbol: M13 = @5D@Only Upd. Allowed:
Text Symbol: M12 = @5B@Identical record already exists in period
Text Symbol: M11 = No form of add. text in tab. T522T for lang key
Text Symbol: M09 = no longer in company acc. to infotype 'Actions'
Text Symbol: M08 = @1B@The employee is
Text Symbol: M07 = does not exist in table T500P.
Text Symbol: M06 = @1B@The personnel area
Text Symbol: M03 = but in the company.
Text Symbol: M01 = The employee is not active in Austria,
Text Symbol: J30 = and amount in WT/UGM of previous period is 00.
Text Symbol: IWT = in WT
Text Symbol: IRT = Amt/unit


INCLUDES used within this REPORT RPUNSHA0

INCLUDE RPPPXD00.
INCLUDE RPPPXM00.


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_REFRESH_STAT_LIST CALL FUNCTION 'HR_REFRESH_STAT_LIST'.

DDUT_DOMVALUE_TEXT_GET CALL FUNCTION 'DDUT_DOMVALUE_TEXT_GET' EXPORTING name = l_domname value = l_domvalue langu = sy-langu IMPORTING dd07v_wa = idd07v EXCEPTIONS OTHERS = 1.

RP_HIRE_FIRE CALL FUNCTION 'RP_HIRE_FIRE' EXPORTING beg = l_endda end = l_endda IMPORTING fire_date = p_fire_date hire_date = l_hire_date TABLES pphifi = l_phifi pp0000 = p0000 pp0001 = p0001.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = l_pernr arbgb = p_msgid msgty = p_msgty msgno = p_msgno msgv1 = p_msgv1 msgv2 = p_msgv2 msgv3 = p_msgv3 msgv4 = p_msgv4.

HR_REFRESH_STAT_LIST CALL FUNCTION 'HR_REFRESH_STAT_LIST'.

HR_APPEND_STAT_LIST CALL FUNCTION 'HR_APPEND_STAT_LIST' EXPORTING selected = g_statistik-get_pernr_all processed = g_statistik-pernr_selected rejected = g_statistik-pernr_rejected EXCEPTIONS OTHERS = 4.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = c_msgid msgno = c_msgno msgv1 = text-m21 number = g_statistik-t558a_selected.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = c_msgid msgno = c_msgno msgv1 = text-m22 number = g_statistik-ns_ins_accepted.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = c_msgid msgno = c_msgno msgv1 = text-m23 number = g_statistik-ns_upd_accepted.

HR_EXTEND_STAT_LIST



CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = c_msgid msgno = c_msgno msgv1 = text-m24 number = l_dstatistik-ns_inserted.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = c_msgid msgno = c_msgno msgv1 = text-m28 number = l_dstatistik-ns_not_inserted.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = c_msgid msgno = c_msgno msgv1 = text-m26 number = l_dstatistik-ns_ins_rejected.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = c_msgid msgno = c_msgno msgv1 = text-m25 number = l_dstatistik-ns_updated.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = c_msgid msgno = c_msgno msgv1 = text-m29 number = l_dstatistik-ns_not_updated.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = c_msgid msgno = c_msgno msgv1 = text-m27 number = l_dstatistik-ns_upd_rejected.

HR_ALV_LIST_DISPLAY CALL FUNCTION 'HR_ALV_LIST_DISPLAY' EXPORTING data_structure = c_struct current_report = g_repid list_title = sy-title list_title2 = l_list_title2 hr_display_error_list = l_display_eolist hr_display_stat_list = l_display_eolist variant = pa_varia callback_button1 = l_callback_button1 text_button1 = l_text_button1 callback_button2 = l_callback_button2 text_button2 = l_text_button2 status_fieldname = l_c_stat_field callback_user_command = l_c_form_user_callback TABLES data_tab = i_alvliste EXCEPTIONS program_error = 1 OTHERS = 2.

HR_ALV_LIST_REFRESH CALL FUNCTION 'HR_ALV_LIST_REFRESH'.

HELP_OBJECT_SHOW_FOR_FIELD CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD' EXPORTING doklangu = sy-langu doktitle = p_doktitle * CALLED_BY_TCODE = called_by_program = g_repid called_by_dynp = l_dynp called_for_tab = c_struct called_for_field = 'ERRID' * CALLED_FOR_TAB_FLD_BTCH_INPUT = * CALLED_BY_CUAPROG = * CALLED_BY_CUASTAT = merge_dz_if_available = 'X' * MEMORYID = * EXPLICIT_MEMORYID = ' ' * TABLES * LINKS = * excludefun = * EXCEPTIONS * OBJECT_NOT_FOUND = 1 * SAPSCRIPT_ERROR = 2 * OTHERS = 3 .

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = l_titlebar text_question = l_text_question text_button_1 = 'Ja'(pys) text_button_2 = 'Nein'(pno) default_button = '2' display_cancel_button = 'X' IMPORTING answer = p_confirmation.

VIEW_ENQUEUE CALL FUNCTION 'VIEW_ENQUEUE' EXPORTING action = p_endequeue enqueue_mode = 'E' view_name = 'T558A' enqueue_range = 'X' TABLES sellist = l_isellist EXCEPTIONS foreign_lock = 2 system_failure = 5 OTHERS = 7.



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