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

/SAPAPO/WFM_TEST_DEMAND_FAR SAP ABAP Report - Program /SAPAPO/WFM_TEST_004







/SAPAPO/WFM_TEST_DEMAND_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_DEMAND_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_DEMAND_FAR. "Basic submit
SUBMIT /SAPAPO/WFM_TEST_DEMAND_FAR AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPAPO/WFM_TEST_DEMAND_FAR VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Program /SAPAPO/WFM_TEST_004
Text Symbol: 002 = Test Resource/ Test Demand
Text Symbol: 003 = Date


INCLUDES used within this REPORT /SAPAPO/WFM_TEST_DEMAND_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 = logsys EXCEPTIONS own_logical_system_not_defined = 1 OTHERS = 2.

WFD_DEM_FIND_AND_RANK CALL FUNCTION 'WFD_DEM_FIND_AND_RANK' EXPORTING i_logsys = logsys i_awtyp = c_awtyp is_steering = steering i_resource = res_key1 *RE parameter deleted *RE is_sup_profile = sup_profile is_interval = interval i_max_results = 20 it_demand_list = dem_steerings IMPORTING et_rank_details = rank_details et_return = return_tab.

WFD_RESOURCE_CREATE CALL FUNCTION 'WFD_RESOURCE_CREATE' EXPORTING is_admin_record = admin_record i_resource_key = tmp_key i_resource_type = gc_lrp_basic_res i_description = description IMPORTING et_return = local_return * ET_INVALID_RESOURCES = .

WFD_RESOURCE_CREATE CALL FUNCTION 'WFD_RESOURCE_CREATE' EXPORTING is_admin_record = admin_record i_resource_key = tmp_key i_resource_type = gc_lrp_basic_res i_description = description IMPORTING et_return = local_return * ET_INVALID_RESOURCES = .

WFD_RES_SET_QLT_PROFILE CALL FUNCTION 'WFD_RES_SET_QLT_PROFILE' EXPORTING is_admin_record = admin_record i_resource_key = res_key1 it_qualities = qualities IMPORTING et_return = local_return.

WFD_RES_ADD_TIMESPEC CALL FUNCTION 'WFD_RES_ADD_TIMESPEC' EXPORTING is_admin_record = admin_record i_resource_key = res_key1 is_timespec_data = timespec_data IMPORTING * ET_MESSAGES = et_return = local_return .

WFD_RES_ADD_TIMESPEC CALL FUNCTION 'WFD_RES_ADD_TIMESPEC' EXPORTING is_admin_record = admin_record i_resource_key = res_key2 is_timespec_data = timespec_data IMPORTING * ET_MESSAGES = et_return = local_return .

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

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

WFD_DEMAND_CREATE CALL FUNCTION 'WFD_DEMAND_CREATE' EXPORTING is_admin_record = admin_record i_demand_key = key * I_PARENT_KEY = * I_PREDECESSOR_KEY = i_description = description it_req_qualis = qualities "new qlt per resource * IT_TIME_RULE = * IT_REQ_RES_TYPES = * IT_CAPA_TIMEINTS = is_req_location = location * IT_RESOURCE_KEY = it_intervals = timeints IMPORTING et_invalid_demand_key = lt_invalid_demand_key et_invalid_parent_key = lt_invalid_parent_key et_invalid_predecessor_key = lt_invalid_predecessor_key et_invalid_resource_key = lt_invalid_resource_key et_invalid_timespec_key = lt_invalid_timespec_key et_invalid_req_loc_key = lt_invalid_req_loc_key et_return = local_return .

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

WFD_ASSIGNMENT_CREATE CALL FUNCTION 'WFD_ASSIGNMENT_CREATE' EXPORTING is_admin_record = admin_record is_assignment_data = assign IMPORTING * ET_ASSIGNMENT = * ET_ASSIGNMENT_MOD = * ET_ASSIGNMENT_DEL = * ET_INVALID_RESOURCE = et_return = local_return.

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

WFD_ASSIGNMENT_DELETE CALL FUNCTION 'WFD_ASSIGNMENT_DELETE' EXPORTING is_admin_record = admin_record it_assignment_keys = assign_keys IMPORTING * ET_INVALID_ASSIGNMENT_KEYS = et_return = local_return .

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

WFD_DEMAND_DELETE CALL FUNCTION 'WFD_DEMAND_DELETE' EXPORTING is_admin_record = admin_record * I_ASSIGNMENTS_DELETE = it_demand_key = demand_keys IMPORTING * ET_INVALID_DEMAND_KEYS = et_return = local_return .

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

WFD_RESOURCE_DELETE CALL FUNCTION 'WFD_RESOURCE_DELETE' EXPORTING is_admin_record = admin_record i_resource_key = res_key1 * I_CLEAR_DEPENDENCIES = ' ' IMPORTING * ET_INVALID_RESOURCES = et_return = local_return .

WFD_RESOURCE_DELETE





CALL FUNCTION 'WFD_RESOURCE_DELETE' EXPORTING is_admin_record = admin_record i_resource_key = res_key2 * I_CLEAR_DEPENDENCIES = ' ' IMPORTING * ET_INVALID_RESOURCES = et_return = local_return .

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