RWS41F04 is a standard ABAP INCLUDE 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 RWS41F04 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.
Title: Include for Technical Execution of Discontinuation
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING MSGID = SY-MSGID MSGNR = SY-MSGNO MSGV1 = SY-MSGV1 MSGV2 = SY-MSGV2 MSGV3 = SY-MSGV3 MSGV4 = SY-MSGV4 IMPORTING MESSAGE_TEXT_OUTPUT = MSG_TEXT EXCEPTIONS OTHERS = 0.
SWW_WI_CREATE *1 CALL FUNCTION 'SWW_WI_CREATE' *1 EXPORTING *1* CALLBACK_FB = ' ' *1* CHECKED_WI = NO_ID *1* CONFIRM = ' ' *1 creator = creator *1 language = sy-langu *1 desired_end_action = tsww-wi_def_dh_act *1 desired_start_date = desired_start_date *1 desired_start_time = desired_start_time *1 desired_end_date = desired_end_date *1 desired_end_time = desired_end_time *1 latest_start_date = latest_start_date *1 latest_start_time = latest_start_time *1 latest_end_date = latest_end_date *1 latest_end_time = latest_end_time *1 latest_end_action = tsww-wi_def_dh_act *1* LATEST_END_ESCALATION = NO_ESC *1 latest_start_action = tsww-wi_def_dh_act *1* MAX_EVENT_COUNT = EI_DEF_MAX_EVT_CNT *1 org_unit = ' ' *1* PRIORITY = NO_PRIO *1 task = wf_task_auslistung *1 workitem_type = wi_flow *1 do_commit = 'X' *1 do_sync_callback = ' ' *1* TEXT = ' ' *1* DELAY_EXECUTION = ' ' *1 importing *1 wi_id = wi_id *1* wi_header = *1 tables *1 agents = agents *1 deadline_agents = deadline_agents *1 excluded_agents = excluded_agents *1 notification_agents = notification_agents *1 secondary_methods = secondary_methods *1 wi_container = wi_container *1 comp_events = comp_events *1 exceptions *1 id_not_created = 1 *1 read_failed = 2 *1 others = 3.
SWE_EVENT_CREATE CALL FUNCTION 'SWE_EVENT_CREATE' EXPORTING OBJTYPE = MARA_OBJTYPE OBJKEY = OBJKEY EVENT = EV_MATERIAL_DISCONT "'STARTMATNRDEL' CREATOR = CREATOR * start_with_delay = ' ' * START_RECFB_SYNCHRON = ' ' * IMPORTING * EVENT_ID = TABLES EVENT_CONTAINER = WI_CONTAINER EXCEPTIONS OBJTYPE_NOT_FOUND = 1 OTHERS = 2.
SWE_EVENT_CREATE CALL FUNCTION 'SWE_EVENT_CREATE' EXPORTING objtype = mara_objtype " 4.5B
SWE_EVENT_CREATE CALL FUNCTION 'SWE_EVENT_CREATE' EXPORTING OBJTYPE = EINA_OBJTYPE OBJKEY = OBJKEY EVENT = EV_VENDORMATERIAL_DISCONT " 'STARTVENDORMATNRDEL' CREATOR = CREATOR * start_with_delay = ' ' * START_RECFB_SYNCHRON = ' ' * IMPORTING * EVENT_ID = TABLES EVENT_CONTAINER = WI_CONTAINER EXCEPTIONS OBJTYPE_NOT_FOUND = 1 OTHERS = 2.
SWE_EVENT_CREATE CALL FUNCTION 'SWE_EVENT_CREATE' EXPORTING OBJTYPE = EINA_OBJTYPE OBJKEY = OBJKEY event = ev_vendorplantmaterial_discont"4.5B
READ_TWPDO CALL FUNCTION 'READ_TWPDO' * exporting * PE_MESSAGEID = * PE_MESSAGE = IMPORTING PE_OTYPE = DEADLINE_AGENTS-OTYPE PE_OBJID = DEADLINE_AGENTS-OBJID EXCEPTIONS NO_ENTRY_FOUND = 1 WRONG_CALL = 2 OTHERS = 3.
MATERIAL_LOGICAL_DELETE CALL FUNCTION 'MATERIAL_LOGICAL_DELETE' EXPORTING PI_MATNR = P_MATNR PI_WERKS = P_WERKS * PI_UNAME = SY-UNAME EXCEPTIONS NO_LVORM_SET = 1 VALIDITY_ERROR = 2 OTHERS = 3.
JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING JOBNAME = JOB IMPORTING JOBCOUNT = NUM EXCEPTIONS CANT_CREATE_JOB = 1 INVALID_JOB_DATA = 2 JOBNAME_MISSING = 3 OTHERS = 4.
JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING JOBCOUNT = NUM JOBNAME = JOB STRTIMMED = 'X' EXCEPTIONS CANT_START_IMMEDIATE = 1 INVALID_STARTDATE = 2 JOBNAME_MISSING = 3 JOB_CLOSE_FAILED = 4 JOB_NOSTEPS = 5 JOB_NOTEX = 6 LOCK_FAILED = 7 OTHERS = 8.
CREATE_DISCONTINUATION_EVENTS CALL FUNCTION 'CREATE_DISCONTINUATION_EVENTS' IN UPDATE TASK TABLES DISCONTINUATION_KEY = RECORD_TO_CHECK_WFLOW.
MULTIPLE_MATERIAL_LOG_DELETE * CALL FUNCTION 'MULTIPLE_MATERIAL_LOG_DELETE' " 4.6C
MULTIPLE_MATERIAL_LOG_DELETE CALL FUNCTION 'MULTIPLE_MATERIAL_LOG_DELETE' in update task" 4.6C
JOB_OPEN call function 'JOB_OPEN' EXPORTING jobname = p_jname IMPORTING jobcount = num EXCEPTIONS cant_create_job = 1 invalid_job_data = 2 jobname_missing = 3 others = 4.
JOB_CLOSE call function 'JOB_CLOSE' EXPORTING jobcount = num jobname = p_jname sdlstrtdt = p_udate sdlstrttm = p_UZeit EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 INVALID_TARGET = 8 others = 9.
JOB_OPEN call function 'JOB_OPEN' EXPORTING jobname = p_jname IMPORTING jobcount = num EXCEPTIONS cant_create_job = 1 invalid_job_data = 2 jobname_missing = 3 others = 4.
JOB_CLOSE call function 'JOB_CLOSE' EXPORTING jobcount = num jobname = p_jname sdlstrtdt = p_udate sdlstrttm = p_UZeit EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 INVALID_TARGET = 8 others = 9.
LESEN_VARIANTEN_ZU_SA call function 'LESEN_VARIANTEN_ZU_SA' exporting sammelartikel = hi_mara-matnr tables varianten = ht_var_mara exceptions enqueue_mode_changed = 1 lock_on_material = 2 lock_system_error = 3 wrong_call = 4 not_found = 5 no_maw1_for_mara = 6 lock_on_marc = 7 lock_on_mbew = 8 others = 9.
call function 'MARA_SINGLE_READ' exporting matnr = p_matnr importing wmara = ps_mara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.
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 RWS41F04 or its description.
RWS41F04 - Include for Technical Execution of Discontinuation RWS41F03 - Further Processing of the Basic List + Calling Other Lists RWS41F02 - Functions for Displaying Details and for Further Branching RWS41F01 - Carry Out Checks and Output Basic List RWS41E01 - Handling of Events RWS40TOP - TOP Include of Program RWSORT40