SAP Reports / Programs | Cross-Application Components | General Application Functions | Workforce Management Core(CA-GTF-WFM) SAP CA

/SAPAPO/WFM_TEST_RES_FAR SAP ABAP Report - Program /SAPAPO/WFM_TEST_RES_FAR







/SAPAPO/WFM_TEST_RES_FAR 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 /SAPAPO/WFM_TEST_RES_FAR 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 /SAPAPO/WFM_TEST_RES_FAR. "Basic submit
SUBMIT /SAPAPO/WFM_TEST_RES_FAR AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPAPO/WFM_TEST_RES_FAR 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_RANK = Rank Resource
Selection Text: P_LONGIT = D .
Selection Text: P_LATIT = D .
Selection Text: P_FIND = Find Resource
Selection Text: P_DTUNIT = D .
Selection Text: P_DIST = D .
Selection Text: P_DEMST = Use Demand Steering
Selection Text: P_DEMRT = Use Resource Type
Selection Text: P_DEMQLT = Use Qualifications
Selection Text: P_DEMKEY = Demand Key
Selection Text: P_DEMET = Demand Window End Timestamp
Selection Text: P_DEMBT = Demand Window Begin Timestamp
Selection Text: P_CREATE = Create Test Data: Step 1.
Selection Text: P_COMMIT = Commit
Selection Text: P_CLEAN = Clean Test Data
Selection Text: P_BKTYPE = D .
Selection Text: P_AVCUT = D .
Selection Text: P_ALGOR = Availability: Use Algorithm
Selection Text: P_1QUALI = Use at least one Qualification
Title: Program /SAPAPO/WFM_TEST_RES_FAR
Text Symbol: 003 = Demand Steering
Text Symbol: 002 = Find and Rank Steering Inputs
Text Symbol: 001 = Steering for Test Find and Rank Resource


INCLUDES used within this REPORT /SAPAPO/WFM_TEST_RES_FAR

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:

OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = gv_logsys EXCEPTIONS own_logical_system_not_defined = 1 OTHERS = 2.

WFD_RES_FIND_BY_PROFILE CALL FUNCTION 'WFD_RES_FIND_BY_PROFILE' EXPORTING i_logsys = gv_logsys i_awtyp = cv_awtyp is_search_profile = gs_search_profile is_far_steering = gs_far_steering is_demand_st = gs_dem_steering * I_MAX_RESULTS = 20 IMPORTING et_resources = gt_find_reskey et_return = lt_return.

WFD_RES_RANK_BY_PROFILE CALL FUNCTION 'WFD_RES_RANK_BY_PROFILE' EXPORTING i_logsys = gv_logsys i_awtyp = cv_awtyp it_resource = gt_reskey is_rank_profile = gs_rank_profile is_steering = gs_far_steering * is_demand_st = gs_dem_steering IMPORTING et_rank_details = gt_match_det et_return = lt_return.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = ls_timespec-timespec_key.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = ls_timespec-timespec_key.

WFD_RESOURCE_CREATE CALL FUNCTION 'WFD_RESOURCE_CREATE' EXPORTING is_admin_record = gs_admin i_resource_key = res_key1 i_resource_type = gc_lrp_basic_res i_description = description IMPORTING et_return = lt_return.

/SAPAPO/LRP_TRANSACTION_COMMIT CALL FUNCTION '/SAPAPO/LRP_TRANSACTION_COMMIT' TABLES et_return = lt_return.

WFD_RESOURCE_CREATE CALL FUNCTION 'WFD_RESOURCE_CREATE' EXPORTING is_admin_record = gs_admin i_resource_key = res_key2 i_resource_type = gc_lrp_basic_res i_description = description IMPORTING et_return = lt_return.

/SAPAPO/LRP_TRANSACTION_COMMIT CALL FUNCTION '/SAPAPO/LRP_TRANSACTION_COMMIT' TABLES et_return = lt_return.

WFD_RES_SET_QLT_PROFILE CALL FUNCTION 'WFD_RES_SET_QLT_PROFILE' EXPORTING is_admin_record = gs_admin i_resource_key = res_key1 it_qualities = lt_qlty_pos IMPORTING et_return = lt_return EXCEPTIONS OTHERS = 1.

WFD_RES_SET_QLT_PROFILE CALL FUNCTION 'WFD_RES_SET_QLT_PROFILE' EXPORTING is_admin_record = gs_admin i_resource_key = res_key2 it_qualities = lt_qlty_pos IMPORTING et_return = lt_return EXCEPTIONS OTHERS = 1.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = ls_timespec-timespec_key.

WFD_RES_ADD_TIMESPEC CALL FUNCTION 'WFD_RES_ADD_TIMESPEC' EXPORTING is_admin_record = gs_admin i_resource_key = res_key1 is_timespec_data = ls_timespec IMPORTING * ET_MESSAGES = et_return = lt_return.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = ls_timespec-timespec_key.

WFD_RES_ADD_TIMESPEC CALL FUNCTION 'WFD_RES_ADD_TIMESPEC' EXPORTING is_admin_record = gs_admin i_resource_key = res_key2 is_timespec_data = ls_timespec IMPORTING et_return = lt_return.

WFD_RES_SET_LOCATION CALL FUNCTION 'WFD_RES_SET_LOCATION' EXPORTING is_admin_record = gs_admin i_resource_key = res_key1 it_location = lt_location IMPORTING * ET_MESSAGES = et_return = lt_return.

WFD_RES_SET_LOCATION CALL FUNCTION 'WFD_RES_SET_LOCATION' EXPORTING is_admin_record = gs_admin i_resource_key = res_key2 it_location = lt_location IMPORTING et_return = lt_return.

/SAPAPO/LRP_TRANSACTION_COMMIT CALL FUNCTION '/SAPAPO/LRP_TRANSACTION_COMMIT' TABLES et_return = lt_return.

GUID_CREATE





CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = ls_timespec-timespec_key.

WFD_DEMAND_CREATE CALL FUNCTION 'WFD_DEMAND_CREATE' EXPORTING is_admin_record = gs_admin i_demand_key = dem_key i_description = 'Test FAR Demand ' it_req_qualis = lt_qlt_pos is_req_location = ls_location it_intervals = lt_timeint IMPORTING et_return = lt_return. "#EC NOTEXT

WFD_TRANSACTION_COMMIT CALL FUNCTION 'WFD_TRANSACTION_COMMIT'.

WFD_RESOURCE_DELETE CALL FUNCTION 'WFD_RESOURCE_DELETE' EXPORTING is_admin_record = gs_admin i_resource_key = lv_reskey i_clear_dependencies = 'X' IMPORTING et_return = lt_return.

WFD_DEMAND_DELETE CALL FUNCTION 'WFD_DEMAND_DELETE' EXPORTING is_admin_record = gs_admin it_demand_key = lt_demtab IMPORTING et_return = lt_return.

/SAPAPO/LRP_TRANSACTION_COMMIT CALL FUNCTION '/SAPAPO/LRP_TRANSACTION_COMMIT' TABLES et_return = lt_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 /SAPAPO/WFM_TEST_RES_FAR or its description.