WFM_SCHEDULE_MIGRATION 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 WFM_SCHEDULE_MIGRATION into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: P_DATE = Schedule Start Date
Selection Text: P_LOC = Location Profile
Title: migrate schedule
Text Symbol: T01 = Range for Start Date of the Schedule
INCLUDE WFM_SCHEDULE_MIGRATION_TOP.
INCLUDE WFM_SH_WFM_ERMS_LOCATION.
No SAP DATABASE tables are accessed within this REPORT code!
OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = ls_admin-logsys EXCEPTIONS own_logical_system_not_defined = 1 OTHERS = 2.
BUPA_NUMBERS_GET CALL FUNCTION 'BUPA_NUMBERS_GET' EXPORTING iv_partner = ls_seg2-partner IMPORTING ev_partner_guid = lv_partner_guid.
WFD_RES_ADD_TIMESPEC CALL FUNCTION 'WFD_RES_ADD_TIMESPEC' EXPORTING is_admin_record = ls_admin i_resource_key = lv_resource is_timespec_data = ls_timespec_data IMPORTING et_return = lt_return.
GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = lv_assignment_id.
WFD_ASSIGNMENT_CREATE CALL FUNCTION 'WFD_ASSIGNMENT_CREATE' EXPORTING is_admin_record = ls_admin is_assignment_data = ls_assignment IMPORTING et_invalid_resource = lt_resource et_return = lt_return.
WFD_TRANSACTION_COMMIT CALL FUNCTION 'WFD_TRANSACTION_COMMIT' IMPORTING et_return = lt_return EXCEPTIONS transaction_error = 1 OTHERS = 2.
WFD_TRANSACTION_ROLLB CALL FUNCTION 'WFD_TRANSACTION_ROLLB' IMPORTING et_return = lt_return EXCEPTIONS transaction_error = 0 OTHERS = 0.
WFD_TRANSACTION_ROLLB CALL FUNCTION 'WFD_TRANSACTION_ROLLB' IMPORTING et_return = lt_return EXCEPTIONS transaction_error = 0 OTHERS = 0.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.