SAP Reports / Programs | Plant Maintenance | Maintenance Processing | Maintenance Orders(PM-WOC-MO) SAP PM

/MRSS/RPTWFMIF SAP ABAP Report - HR Interface -> WFM Core: Availability Interface







/MRSS/RPTWFMIF is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Generated Include to Extension - SCHWIDEFSKY - 06...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 /MRSS/RPTWFMIF 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 /MRSS/RPTWFMIF. "Basic submit
SUBMIT /MRSS/RPTWFMIF AND RETURN. "Return to original report after report execution complete
SUBMIT /MRSS/RPTWFMIF 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 = Update
Selection Text: P_UPDATE = Update
Selection Text: P_INSERT = Insert
Selection Text: P_FILTER = Filter according to Infotype
Selection Text: P_ALL = Transfer Complete Period
Selection Text: PTRANSF = Transfer Availability
Selection Text: PSYNC = Synchronous Update
Selection Text: PQUERY = Read Availability
Selection Text: PQUALI = Transfer Qualifications
Selection Text: PDEST = RFC Destination for WFM Core
Selection Text: PDELETE = Delete Resources
Selection Text: PCREATE = Create Resources
Selection Text: PBUFFSZ = Package Size for Update
Selection Text: INSERT = Insert
Title: HR Interface -> WFM Core: Availability Interface
Text Symbol: UPD = Update (for changes: infotype/subtype records in reporting period)
Text Symbol: TRA = Transfer Mode
Text Symbol: RFC = RFC Destination Does Not Exist
Text Symbol: INS = Insert(complete distribution:delete in target system, recreate)
Text Symbol: COM = Communication Parameters for the WFM System
Text Symbol: 002 = Personnel Numbers Transferred
Text Symbol: 001 = Package Cannot Be Processed


INCLUDES used within this REPORT /MRSS/RPTWFMIF

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:

RH_INTEGRATION_CHECK ************* CALL FUNCTION 'RH_INTEGRATION_CHECK' ************* IMPORTING ************* INTEGRATED_PLVAR = PCHPLVAR.

HR_WFM_OPEN

HR_LRP_OPEN **************\ CALL FUNCTION 'HR_WFM_OPEN' **************} DELETE **************{ INSERT KP7K019907 6 ************** Open the WFM core interface ************* CALL FUNCTION 'HR_LRP_OPEN' **************} INSERT ************* EXPORTING ************* rfc_destination = pdest ************* awtyp = co_awtyp ************* buffsize = pbuffsz ************* sync = psync ************* EXCEPTIONS ************* own_logical_system_not_defined = 1 ************* OTHERS = 2.

HR_WFM_OPEN ************* CALL FUNCTION 'HR_WFM_OPEN' ************* EXPORTING ************* rfc_destination = pdest ************* awtyp = co_awtyp ************* buffsize = pbuffsz ************* sync = psync ************* EXCEPTIONS ************* own_logical_system_not_defined = 1 ************* OTHERS = 2.

HR_LRP_EMP_CREATE_RESOURCE ************* CALL FUNCTION 'HR_LRP_EMP_CREATE_RESOURCE' ************* EXPORTING ************* PERSNO = L_PERSNO-PERSNO ************* TABLES ************* RETURN = LT_RETURN ************* EXCEPTIONS ************* RESOURCE_EXISTS = 1 ************* SERVICE_NOT_AVAILABLE = 2 ************* TRANSACTION_ERROR = 3.

HR_LRP_EMP_DELETE_RESOURCE ************* CALL FUNCTION 'HR_LRP_EMP_DELETE_RESOURCE' ************* EXPORTING ************* PERSNO = L_PERSNO-PERSNO ************* TABLES ************* RETURN = LT_RETURN ************* EXCEPTIONS ************* RESOURCE_DOES_NOT_EXIST = 1 ************* SERVICE_NOT_AVAILABLE = 2 ************* TRANSACTION_ERROR = 3.

HR_LRP_EMP_AVAILABILITY_CREATE ************* CALL FUNCTION 'HR_LRP_EMP_AVAILABILITY_CREATE' ************* EXPORTING ************* startdate = pc-begda "#EC DOM_EQUAL ************* enddate = pc-endda "#EC DOM_EQUAL ************* transfer_all = l_all ************* filter = p_filter ************* IMPORTING ************* record_no = l_number ************* TABLES ************* persno = lt_persno ************** return = lt_return ************* EXCEPTIONS ************* error = 1.

HR_LRP_EMP_AVAILABILITY_CREATE ************* CALL FUNCTION 'HR_LRP_EMP_AVAILABILITY_CREATE' ************* EXPORTING ************* startdate = pc-begda "#EC DOM_EQUAL ************* enddate = pc-endda "#EC DOM_EQUAL ************* transfer_all = l_all ************* filter = p_filter ************* IMPORTING ************* record_no = l_number ************* TABLES ************* persno = lt_persno ************** INFTY_SUBTY = ************** return = lt_return ************* EXCEPTIONS ************* error = 1.

HR_WFM_CLOSE **************\ CALL FUNCTION 'HR_WFM_CLOSE' **************} DELETE **************{ INSERT KP7K019907 4 ************* ENDIF.

/MRSS/RSG_LRPIF_UPDATE_QUALIF ************* CALL FUNCTION '/MRSS/RSG_LRPIF_UPDATE_QUALIF' ************* EXPORTING ************* IV_BEGDA = pchbegda ************* IV_ENDDA = pchendda ************* TABLES ************* persno = gt_persno ************* RETURN = lt_return ************* EXCEPTIONS ************* TRANSACTION_ERROR = 1 ************* OTHERS = 2 ************* .

HR_LRP_CLOSE ************* CALL FUNCTION 'HR_LRP_CLOSE' **************} INSERT ************* TABLES ************* error = gt_error.

HR_WFM_CLOSE ************* CALL FUNCTION 'HR_WFM_CLOSE' ************* TABLES ************* error = gt_error.

REUSE_ALV_FIELDCATALOG_MERGE ************* CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' ************* EXPORTING ************* i_program_name = i_repid ************* i_internal_tabname = i_itabname ************** I_STRUCTURE_NAME = ************** I_CLIENT_NEVER_DISPLAY = 'X' ************* i_inclname = i_repid ************* CHANGING ************* ct_fieldcat = lt_fieldcat ************* EXCEPTIONS ************* OTHERS = 0.

REUSE_ALV_FIELDCATALOG_MERGE ************* CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' ************* EXPORTING ************** i_program_name = g_repid ************** i_internal_tabname = 'LT_PER_PS_INT' ************* i_structure_name = i_structure_name ************** i_client_never_display = 'X' ************** i_inclname = g_repid ************* CHANGING ************* ct_fieldcat = lt_fieldcat ************* EXCEPTIONS ************* OTHERS = 0.

REUSE_ALV_LIST_DISPLAY ************* CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' ************* EXPORTING ************** I_INTERFACE_CHECK = ' ' ************** i_callback_program = ************** I_CALLBACK_PF_STATUS_SET = ' ' ************** I_CALLBACK_USER_COMMAND = ' ' ************** I_STRUCTURE_NAME = ************** IS_LAYOUT = ************* it_fieldcat = lt_fieldcat ************** IT_EXCLUDING = ************** IT_SPECIAL_GROUPS = ************** IT_SORT = ************** IT_FILTER = ************** IS_SEL_HIDE = ************** I_DEFAULT = 'X' ************* i_save = 'A' ************* is_variant = l_isvariant ************** IT_EVENTS = ************** IT_EVENT_EXIT = ************** IS_PRINT = ************** I_SCREEN_START_COLUMN = 0 ************** I_SCREEN_START_LINE = 0 ************** I_SCREEN_END_COLUMN = 0 ************** I_SCREEN_END_LINE = 0 ************** IMPORTING ************** E_EXIT_CAUSED_BY_CALLER = ************** ES_EXIT_CAUSED_BY_USER = ************* TABLES ************* t_outtab = it_outtab ************* EXCEPTIONS ************* OTHERS = 0.

HR_LRP_EMPLOYEE_TO_RESOURCE ************* CALL FUNCTION 'HR_LRP_EMPLOYEE_TO_RESOURCE' ************* EXPORTING ************* PERSNO = L_PERSNO-PERSNO ************* IMPORTING ************* LRP_RESOURCE = L_RESOURCE.

OWN_LOGICAL_SYSTEM_GET ************* CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' ************* IMPORTING ************* OWN_LOGICAL_SYSTEM = L_LOGSYS ************* EXCEPTIONS ************* OTHERS = 0.

/SAPAPO/LRP_RES_GET_TIMEINT_IR ************* CALL FUNCTION '/SAPAPO/LRP_RES_GET_TIMEINT_IR' ************* DESTINATION PDEST ************* EXPORTING ************* I_LOGSYS = L_LOGSYS ************* I_BEG_TSTMP = L_BEG_TSTMP ************* I_END_TSTMP = L_END_TSTMP ************* TABLES ************* IT_RESOURCE_KEY = LT_RESOURCE **************" IT_TIMESPEC_TYPES STRUCTURE /SAPAPO/LRP_TIMESPEC_TYPE_RFC **************" OPTIONAL ************* ET_RESOURCE_TIMEINT = LT_RES_TSP ************** et_timespec_admin_record = lt_adm_rec ************* ET_RETURN = LT_RETURN ************* ET_INVALID_RESOURCES = LT_INV_RES.

HR_LRP_RESOURCE_TO_EMPLOYEE ************* CALL FUNCTION 'HR_LRP_RESOURCE_TO_EMPLOYEE' ************* EXPORTING ************* LRP_RESOURCE = L_RES_TSP-RES_KEY ************* IMPORTING ************* PERSNO = L_PERNR ************* EXCEPTIONS ************* OTHERS = 0.






HR_LRP_RESOURCE_TO_EMPLOYEE ************* CALL FUNCTION 'HR_LRP_RESOURCE_TO_EMPLOYEE' ************* EXPORTING ************* LRP_RESOURCE = L_RES_TSP-RES_KEY ************* IMPORTING ************* PERSNO = L_PERNR ************* EXCEPTIONS ************* OTHERS = 0.

HR_LRP_CLOSE ************* CALL FUNCTION 'HR_LRP_CLOSE' ************* TABLES ************* ERROR = GT_ERROR.



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 /MRSS/RPTWFMIF or its description.