SAP Reports / Programs | Payroll | Mexico | Public Sector(PY-MX-PS) SAP PY

PCTMSMX2 SAP ABAP INCLUDE - Common TEMSE Routines







PCTMSMX2 is a standard ABAP INCLUDE 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 PCTMSMX2 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 PCTMSMX2. "Basic submit
SUBMIT PCTMSMX2 AND RETURN. "Return to original report after report execution complete
SUBMIT PCTMSMX2 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Common TEMSE Routines


INCLUDES used within this REPORT PCTMSMX2

No INCLUDES are used within this REPORT code!


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:

RP_TS_OPEN CALL FUNCTION 'RP_TS_OPEN' EXPORTING tsobj = rem_tsobj empfg = receiver * VERSN = '01' * OWNNR = ' ' * ENQLOCK = 'N' IMPORTING objhd = rem_fbhandle * VERSN = * OBJIN = EXCEPTIONS FB_CALL_HANDLE = 1 FB_ERROR = 2 FB_RSTS_NOCONV = 3 FB_RSTS_OTHER = 4 NO_OBJECT = 5 NO_PERMISSION = 6 NO_HR_APPLICATION_FILE = 7 INVALID_VERSION_NUMBER = 8 WRONG_REPORT = 9 ENQ_FOREIGN_LOCK = 10 ENQ_SYS_FAIL = 11 ENQ_OTHER = 12 OTHERS = 13 .

RSTS_READ CALL FUNCTION 'RSTS_READ' * EXPORTING * BUFFLG = '*' * FBHANDLE = 0 * MAXIX = '*' * PARTS1BY1 = ' ' * SHOWLG = ' ' IMPORTING alldata = sw_alldata TABLES datatab = p_temse_body EXCEPTIONS FB_CALL_HANDLE = 1 FB_ERROR = 2 FB_RSTS_NOCONV = 3 FB_RSTS_OTHER = 4 OTHERS = 5 .

RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' * EXPORTING * FBHANDLE = 0 EXCEPTIONS OTHERS = 1.

RSTS_OPEN_RLC CALL FUNCTION 'RSTS_OPEN_RLC' EXPORTING name = objname * own_fbhandle = ownnr * prom = hr_prom IMPORTING fbhandle = rem_fbhandle EXCEPTIONS fb_call_handle = 01 fb_error = 02 fb_rsts_noconv = 03 fb_rsts_other = 04 no_object = 05 no_permission = 06.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = txt text_button_1 = 'Yes' * ICON_BUTTON_1 = ' ' text_button_2 = 'No' * ICON_BUTTON_2 = ' ' default_button = '2' display_cancel_button = ' ' * USERDEFINED_F1_HELP = ' ' start_column = 15 start_row = 6 IMPORTING answer = answ EXCEPTIONS text_not_found = 1 OTHERS = 2.

RP_TS_CREATE_OBJECT CALL FUNCTION 'RP_TS_CREATE_OBJECT' EXPORTING objkn = tobj_prefix objnr = tobj_sa empfg = receiver IMPORTING tsobj = rem_tsobj objhd = rem_fbhandle EXCEPTIONS * enq_foreign_lock = 1 * enq_sys_fail = 2 * enq_other = 2 OTHERS = 3.

RSTS_WRITE CALL FUNCTION 'RSTS_WRITE' EXPORTING fbhandle = rem_fbhandle TABLES datatab = p_temse_body EXCEPTIONS OTHERS = 1.

RSTS_CLOSE CALL FUNCTION 'RSTS_CLOSE' EXPORTING fbhandle = rem_fbhandle EXCEPTIONS OTHERS = 1.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING value_org = 'S' retfield = feld1 dynpprog = l_repid dynpnr = l_dynnr dynprofield = 'TOBJ_RE' TABLES value_tab = ctst01 EXCEPTIONS OTHERS = 0.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING value_org = 'S' retfield = 'L_OCRSN' dynpprog = l_repid dynpnr = l_dynnr dynprofield = 'OCRSN' TABLES value_tab = lt_offcycle EXCEPTIONS OTHERS = 0.



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