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

/SAPAPO/WFM_TEST_DEM_MAINT SAP ABAP Report - Program /SAPAPO/WFM_TEST_DEM_MAINT







/SAPAPO/WFM_TEST_DEM_MAINT 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_DEM_MAINT 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_DEM_MAINT. "Basic submit
SUBMIT /SAPAPO/WFM_TEST_DEM_MAINT AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPAPO/WFM_TEST_DEM_MAINT 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_SHOW = Show
Selection Text: P_RESTY2 = (2) Req Res Type
Selection Text: P_RESTY1 = (1) Req Res Type
Selection Text: P_PREC1 = Precision of a Geo location
Selection Text: P_MODIFY = Modify Demand Attributes
Selection Text: P_LONG1 = Geo location longitude
Selection Text: P_LOGSYS = D .
Selection Text: P_LAT1 = Geo location latitude
Selection Text: P_FACAL = Factory Calendar
Selection Text: P_ENDTIM = End of Working Time
Selection Text: P_ENDDAT = End of Validity Period
Selection Text: P_EDATE4 = Validity End 4
Selection Text: P_EDATE3 = Validity End 3
Selection Text: P_EDATE2 = Validity End 2
Selection Text: P_EDATE1 = Validity End 1
Selection Text: P_DWS = Create Demand Time Intervals
Selection Text: P_DUR1 = Duration
Selection Text: P_DUR = Duration (secs)
Selection Text: P_DES = Description
Selection Text: P_DEMKEY = External Demand Key
Selection Text: P_DELETE = Delete Demand & Assignments
Selection Text: P_CREWRK = Generate Timeints from Cal.
Selection Text: P_CREATE = Create Demand w/ attributes
Selection Text: P_COMMIT = Commit
Selection Text: P_CNTRY1 = Country
Selection Text: P_BEGTIM = Start of Working Time
Selection Text: P_BEGDAT = Start of Validity Period
Selection Text: P_BDATE4 = Validity Start 4
Selection Text: P_BDATE3 = Validity Start 3
Selection Text: P_BDATE2 = Validity Start 2
Selection Text: P_BDATE1 = Validity Start 1
Selection Text: P_AWTYP = D .
Selection Text: P_ADDNO1 = Address number
Title: Program /SAPAPO/WFM_TEST_DEM_MAINT


INCLUDES used within this REPORT /SAPAPO/WFM_TEST_DEM_MAINT

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:

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = p_demkey.

GUID_CONVERT CALL FUNCTION 'GUID_CONVERT' EXPORTING iv_guid_c32 = p_demkey IMPORTING ev_guid_c22 = l_int_key. "#EC *

WFD_TRANSACTION_COMMIT CALL FUNCTION 'WFD_TRANSACTION_COMMIT' IMPORTING et_return = lt_return.

WFD_DEMAND_CREATE CALL FUNCTION 'WFD_DEMAND_CREATE' EXPORTING is_admin_record = ls_admin_record i_demand_key = p_demkey * I_PARENT_KEY = * I_PREDECESSOR_KEY = i_description = p_des it_req_qualis = lt_qlt_prof * IT_TIME_RULE = it_req_res_types = lt_req_res_types * IT_CAPA_TIMEINTS = is_req_location = ls_location * IT_RESOURCE_KEY = it_intervals = lt_interval 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 = lt_return .

WFD_TRANSACTION_COMMIT CALL FUNCTION 'WFD_TRANSACTION_COMMIT' IMPORTING et_return = lt_return.

WFD_DEMAND_MODIFY CALL FUNCTION 'WFD_DEMAND_MODIFY' EXPORTING is_admin_record = ls_admin_record i_demand_data = ls_demand_data IMPORTING et_invalid_demand_keys = lt_invalid_demand_key et_invalid_resource_keys = lt_invalid_resource_key et_return = lt_return.

WFD_TRANSACTION_COMMIT CALL FUNCTION 'WFD_TRANSACTION_COMMIT' IMPORTING et_return = lt_return.

WFD_DEMAND_GET_DETAIL CALL FUNCTION 'WFD_DEMAND_GET_DETAIL' EXPORTING i_logsys = p_logsys i_awtyp = p_awtyp i_demand_key = p_demkey IMPORTING et_demand_data = lt_demand_data et_invalid_demand_keys = lt_invalid_demand_key et_return = lt_return.

WFD_DEMAND_DELETE CALL FUNCTION 'WFD_DEMAND_DELETE' EXPORTING is_admin_record = ls_admin_record i_assignments_delete = '' it_demand_key = lt_demkey IMPORTING et_return = lt_return.

WFD_TRANSACTION_COMMIT CALL FUNCTION 'WFD_TRANSACTION_COMMIT' IMPORTING et_return = lt_return.

DAY_ATTRIBUTES_GET CALL FUNCTION 'DAY_ATTRIBUTES_GET' EXPORTING factory_calendar = p_facal * holiday_calendar = date_from = p_begdat date_to = p_enddat language = sy-langu IMPORTING returncode = ls_returncode TABLES day_attributes = lt_day_attribute EXCEPTIONS factory_calendar_not_found = 1 holiday_calendar_not_found = 2 date_has_invalid_format = 3 date_inconsistency = 4 OTHERS = 5.



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