SAP Reports / Programs

WFA_DOWNLOAD_TOR SAP ABAP Report - Download time-off requests from the HCM system







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


Text pool values


Title: Download time-off requests from the HCM system
Text Symbol: P01 = Start Date
Text Symbol: S01 = Following exceptions occured during the download
Text Symbol: S02 = Following time-off requests have been processed


INCLUDES used within this REPORT WFA_DOWNLOAD_TOR

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:

RFC_SYSTEM_INFO CALL FUNCTION 'RFC_SYSTEM_INFO' DESTINATION ls_rfcdest-rfcdest IMPORTING rfcsi_export = ls_sysinfo.

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' IMPORTING act_plvar = lv_plvar EXCEPTIONS no_active_plvar = 1 OTHERS = 2.

BAPI_EMPATTABS_GETLIST CALL FUNCTION 'BAPI_EMPATTABS_GETLIST' DESTINATION ls_rfcdest-rfcdest EXPORTING from_date = p_from to_date = p_to TABLES hrtimesrec_list = lt_hcm return = lt_return.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = ls_tor-timeoffreq_id.

BP_CENTRALPERSON_GET CALL FUNCTION 'BP_CENTRALPERSON_GET' EXPORTING iv_employee_id = -employeenumber IMPORTING ev_bu_partner_guid = lv_guid EXCEPTIONS no_central_person = 0 no_business_partner = 0 no_id = 0 OTHERS = 0.

BUPA_NUMBERS_GET CALL FUNCTION 'BUPA_NUMBERS_GET' EXPORTING iv_partner_guid = lv_guid IMPORTING ev_partner = ls_tor-partner.

WFA_TIMEOFFREQ_MODIFY CALL FUNCTION 'WFA_TIMEOFFREQ_MODIFY' EXPORTING it_timeoffreq = lt_one_request IMPORTING es_return = ls_return.



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