SAP Reports / Programs

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







/SAPAPO/WFM_TEST_004 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_004 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_004. "Basic submit
SUBMIT /SAPAPO/WFM_TEST_004 AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPAPO/WFM_TEST_004 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_004

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_TRANSACTION_COMMIT CALL FUNCTION 'WFD_TRANSACTION_COMMIT' EXPORTING no_explicit_commit_work = gc_lrp_false IMPORTING et_return = return_tab EXCEPTIONS transaction_error = 1 OTHERS = 2.

WFD_RES_GET_CAPA_PROF CALL FUNCTION 'WFD_RES_GET_CAPA_PROF' EXPORTING i_logsys = admin_record-logsys i_awtyp = admin_record-awtyp it_resource_keys = resource_keys it_timeints = timeint_tab * IT_TIME_RULE = IMPORTING et_res_capa_profile = res_capa_prof * ET_INVALID_RESOURCES = et_return = return_tab .

/SAPAPO/LRP_RES_ASSIGN_CONTRIB **** CALL FUNCTION '/SAPAPO/LRP_RES_ASSIGN_CONTRIB' **** EXPORTING **** logsys = admin_record-logsys **** awtyp = admin_record-awtyp **** resources = resource_keys **** intervals = timeints **** IMPORTING **** assignments_capa = assign_capa **** TABLES **** return = return_tab.

WFD_TRANSACTION_COMMIT CALL FUNCTION 'WFD_TRANSACTION_COMMIT' EXPORTING no_explicit_commit_work = ' ' IMPORTING et_return = return_tab EXCEPTIONS transaction_error = 1 OTHERS = 2.

WFD_RESOURCE_CREATE CALL FUNCTION 'WFD_RESOURCE_CREATE' EXPORTING is_admin_record = admin_record i_resource_key = res_key i_resource_type = gc_lrp_basic_res * I_CAPA_INPUT_TYPE = i_description = description * IT_VALIDITY_PERIOD = * IT_OVERTIME_PROFILE = * IT_CAPALIMIT_PROFILE = IMPORTING * ET_INVALID_RESOURCES = et_return = local_return .

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

WFD_DEMAND_CREATE CALL FUNCTION 'WFD_DEMAND_CREATE' EXPORTING is_admin_record = admin_record i_demand_key = dem_key * I_PARENT_KEY = * I_PREDECESSOR_KEY = i_description = p_demdes * IT_REQ_QUALIS = * IT_TIME_RULE = * IT_REQ_RES_TYPES = * IT_CAPA_TIMEINTS = * IS_REQ_LOCATION = * IT_RESOURCE_KEY = it_intervals = interval_tab IMPORTING * ET_INVALID_DEMAND_KEY = * ET_INVALID_PARENT_KEY = * ET_INVALID_PREDECESSOR_KEY = * ET_INVALID_RESOURCE_KEY = * ET_INVALID_TIMESPEC_KEY = * ET_INVALID_REQ_LOC_KEY = 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 .

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 = return_tab .

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 = return_tab .

WFD_RESOURCE_DELETE CALL FUNCTION 'WFD_RESOURCE_DELETE' EXPORTING is_admin_record = admin_record i_resource_key = res_key * I_CLEAR_DEPENDENCIES = ' ' IMPORTING * ET_INVALID_RESOURCES = et_return = return_tab .



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