SAP Reports / Programs

HGRUTSM1 SAP ABAP Report - TSMEDE Contributions ASCII File







HGRUTSM1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You run this report on a monthly basis to generate a file with data about the employee’s and employer’s contributions to the Engineers & Public Constructors Pension Fund (TSMEDE)...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 HGRUTSM1 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_M45_TSM1 - TSMEDE Contributions ASCII File


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 HGRUTSM1. "Basic submit
SUBMIT HGRUTSM1 AND RETURN. "Return to original report after report execution complete
SUBMIT HGRUTSM1 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_CB = Christmas bonus
Selection Text: P_CURR = D .
Selection Text: P_EB = Easter bonus
Selection Text: P_EFAPAJ = For Lump Sum
Selection Text: P_EIDPRS = For Special Surcharge
Selection Text: P_EPIK = For Supplementary Pension
Selection Text: P_FILE = Filename
Selection Text: P_KYT = For Health Branch(KYT)
Selection Text: P_LB = Vacation bonus
Selection Text: P_MAIN = For Main Pension
Selection Text: P_MONTH = Calendar Month
Selection Text: P_NORM = Normal payroll
Selection Text: P_PAYMTH = Payment Method
Selection Text: P_PAYTY = Include OffCycles periods
Selection Text: P_PYTYP = D .
Selection Text: P_SDATE = Submission Date
Selection Text: P_SEQNR = Company Data Sequential No.
Selection Text: P_YEAR = Calendar Year
Title: TSMEDE Contributions ASCII File
Text Symbol: 147 = Date From
Text Symbol: 148 = Date To
Text Symbol: 910 = File already exists. To Overright ?
Text Symbol: 920 = File already exists !
Text Symbol: 930 = File was not created ....
Text Symbol: F90 = Grand Totals
Text Symbol: F93 = Totals for Employees Insured before 1/1/93
Text Symbol: F94 = Totals for Employees Insured after 1/1/93
Text Symbol: H01 = Company's Reg No:
Text Symbol: M10 = File conversion error occured...
Text Symbol: M15 = Error occured during reseting converter of codepage
Text Symbol: M16 = Error occured during conversion of codepage
Text Symbol: MPR = File download in process...
Text Symbol: T01 = TSMEDE Contributions ASCII File Overview
Text Symbol: T02 = Page
Text Symbol: 146 = Payment
Text Symbol: 001 = Header payroll type
Text Symbol: 002 = Additional Fees
Text Symbol: 010 = Notification No. for





Text Symbol: 101 = C.No
Text Symbol: 102 = Reg.No
Text Symbol: 105 = Fath.Name
Text Symbol: 111 = Gross wages
Text Symbol: 112 = Main Pension EE
Text Symbol: 113 = Main Pension ER
Text Symbol: 114 = Spec.Surch.EE
Text Symbol: 115 = Supplement.EE
Text Symbol: 116 = Supplement.ER
Text Symbol: 117 = Lump Sum EE
Text Symbol: 118 = KYT EE
Text Symbol: 119 = KYT ER
Text Symbol: 120 = TOTAL
Text Symbol: 121 = Add.Dues M.Pension
Text Symbol: 122 = Add.Dues Supplem.
Text Symbol: 123 = Add.Dues Lump S.
Text Symbol: 124 = Add.Dues KYT
Text Symbol: 125 = Add.Dues Sp.Surch
Text Symbol: 130 = Notification Nr.
Text Symbol: 131 = Year
Text Symbol: 132 = Batch No
Text Symbol: 133 = T/D
Text Symbol: 134 = Company Address
Text Symbol: 135 = Postal code
Text Symbol: 139 = Spec.Ind.
Text Symbol: 140 = Submis.Date
Text Symbol: 141 = Remarks
Text Symbol: 142 = Payroll Type
Text Symbol: 143 = Incompatibility
Text Symbol: 144 = Negative
Text Symbol: 145 = Period


INCLUDES used within this REPORT HGRUTSM1

INCLUDE OLE2INCL.
INCLUDE HGRUCMP0.
INCLUDE HGRUINS0.
INCLUDE HGRUIKA0.
INCLUDE HGRUGEN0.
INCLUDE HGRUACT0.


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:






REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = w_repid i_internal_tabname = itabname i_inclname = w_repid CHANGING ct_fieldcat = i_fieldcat_alv.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = i_events.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_background_id = 'ALV_BACKGROUND' " i_callback_program = w_variant-report i_default = 'X' " i_save = 'A' * is_variant = w_variant is_layout = w_layout " it_fieldcat = i_fieldcat_alv it_sort = i_sort it_events = i_events i_callback_top_of_page = 'TOP_OF_PAGE' is_print = w_print " TABLES t_outtab = gt_tsmede.

REUSE_ALV_COMMENTARY_WRITE * CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' * EXPORTING * it_list_commentary = gt_list_top_of_page.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = p_file query = 'FE' IMPORTING return = lv_return_code EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = text-910 titel = text-920 IMPORTING answer = lv_answer EXCEPTIONS OTHERS = 1.

POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING textline1 = text-930.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-mpr.

SYSTEM_CODEPAGE CALL FUNCTION 'SYSTEM_CODEPAGE' IMPORTING codepage = l_frcp.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING PERNR = gs_tsmede-pernr INFTY = '0001' BEGDA = gs_tsmede-begda ENDDA = gs_tsmede-endda TABLES INFTY_TAB = p0001 EXCEPTIONS INFTY_NOT_FOUND = 1 OTHERS = 2.



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