RSWUWFMLEC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for E-mail notification for new work items in the Business Workplace The report sends notifications for work items via e-mail to e-mail recipients...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RSWUWFMLEC 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_EMAIL = E-Mail Address
Selection Text: P_FROMD = Creation date from work item
Selection Text: P_FROMT = Creation time from work item
Selection Text: P_JOBSUF = Job Suffix
Selection Text: P_TASKS = Tasks (Blank = All)
Selection Text: P_TEXT0 = Line 10
Selection Text: P_TEXT1 = Line 1
Selection Text: P_TEXT2 = Row 2
Selection Text: P_TEXT3 = Line 3
Selection Text: P_TEXT4 = Line 4
Selection Text: P_TEXT5 = Line 5
Selection Text: P_TEXT6 = Line 6
Selection Text: P_TEXT7 = Line 7
Selection Text: P_TEXT8 = Line 8
Selection Text: P_TEXT9 = Line 9
Selection Text: X_W_HTML = HTML Format
Selection Text: X_W_DEC = Exists
Selection Text: X_WI_TXT = Short Text
Selection Text: X_WI_LNG = Language of Work Item
Selection Text: X_T_DESC = Full Text
Selection Text: X_SY_LNG = System Language
Selection Text: X_PR_LNG = Language of Recipient
Selection Text: X_O_HTML = Plain Text Format
Selection Text: X_O_DEC = Not Available
Selection Text: X_NO_TR = None
Selection Text: X_N14ALL = One E-mail per Work Item
Selection Text: X_ERR_TR = Errors Only
Selection Text: X_ALW_TR = All
Selection Text: X_14ALL = One E-mail per User
Selection Text: P_USER = Users (Blank = All)
Title: Program RSWUWFMLEC
Text Symbol: T06 = Approval Buttons in HTML Mail
Text Symbol: T08 = Return Address
Text Symbol: T10 = To Approve or Reject Directly from this E-mail, Select one of the Following Links and Choose "Send":
Text Symbol: T11 = Approve by E-mail
Text Symbol: T12 = Reject by E-mail
Text Symbol: T13 = Log on
Text Symbol: T17 = Rejection of the work item
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
CALL FUNCTION 'SWU_GET_TRACE_HANDLE' EXCEPTIONS trace_not_active = 1 could_not_create_handle = 2 OTHERS = 3.
SO_USER_ADDRESS_READ_API1 CALL FUNCTION 'SO_USER_ADDRESS_READ_API1' TABLES user_address = user_addresses EXCEPTIONS enqueue_errror = 1 parameter_error = 2 x_error = 3 OTHERS = 4.
ENQUEUE_E_RSWUWFMLEC CALL FUNCTION 'ENQUEUE_E_RSWUWFMLEC' EXPORTING mode_swu_wlscan = 'E' client = sy-mandt curr_numb = p_jobsuf _scope = '1' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
DEQUEUE_E_RSWUWFMLEC CALL FUNCTION 'DEQUEUE_E_RSWUWFMLEC' EXPORTING mode_swu_wlscan = 'E' client = sy-mandt curr_numb = p_jobsuf.
BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = recipients-user_name IMPORTING address = ls_address TABLES return = return.
BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = recipients-user_name IMPORTING address = ls_address TABLES return = return.
BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = recipients-user_name TABLES return = return addsmtp = mailadress.
SO_RAW_TO_RTF CALL FUNCTION 'SO_RAW_TO_RTF' "672504 TABLES "672504 objcont_old = contents "672504 objcont_new = contents "672504 .
SO_NEW_DOCUMENT_ATT_SEND_API1 * CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' * EXPORTING * document_data = document_data ** put_in_outbox = ' ' * IMPORTING * sent_to_all = sent_to_all * new_object_id = new_object_id * TABLES * packing_list = packing_list * object_header = object_header * contents_txt = contents * receivers = real_recipients * EXCEPTIONS * too_many_receivers = 1 * document_not_sent = 2 * document_type_not_exist = 3 * operation_no_authorization = 4 * parameter_error = 5 * x_error = 6 * enqueue_error = 7 * OTHERS = 8.
SO_NAME_CONVERT_API1 CALL FUNCTION 'SO_NAME_CONVERT_API1' EXPORTING name = readable_recipients TABLES names = readable_recipients EXCEPTIONS user_not_exist = 1 parameter_error = 2 x_error = 3 OTHERS = 4.
SO_NAME_CONVERT_API1 CALL FUNCTION 'SO_NAME_CONVERT_API1' EXPORTING name = readable_recipients TABLES names = readable_recipients EXCEPTIONS user_not_exist = 1 parameter_error = 2 x_error = 3 OTHERS = 4.
MESSAGE_PREPARE CALL FUNCTION 'MESSAGE_PREPARE' EXPORTING msg_id = 'WZ' msg_no = p_msgno msg_var1 = p_msgv1 IMPORTING msg_text = msg_text EXCEPTIONS function_not_completed = 1 message_not_found = 2 OTHERS = 3.
BBP_PDH_WFL_OBJECT_WI_GET CALL FUNCTION 'BBP_PDH_WFL_OBJECT_WI_GET' EXPORTING iv_workitem_id = wi_id_tab IMPORTING ex_reqno = lv_reqno ex_guid = lv_document_guid ev_obj_type = lv_obj_type.
BBP_PD_ALL_GET_OBJECT_GUID CALL FUNCTION 'BBP_PD_ALL_GET_OBJECT_GUID' EXPORTING iv_object_id = lv_reqno iv_object_type = lv_obj_type IMPORTING ev_object_guid = lv_document_guid.
RH_WI_AGENTS_GET CALL FUNCTION 'RH_WI_AGENTS_GET' EXPORTING act_wi_id = wi_id_tab TABLES wi_agent_list = user_tab EXCEPTIONS no_active_plvar = 1 no_agent_found = 2 general_task = 3 background_task = 4 OTHERS = 5.
BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = user_name TABLES return = return addsmtp = mailadress.
BBP_PDH_WFL_OBJECT_WI_GET CALL FUNCTION 'BBP_PDH_WFL_OBJECT_WI_GET' EXPORTING iv_workitem_id = lv_wi_id IMPORTING ex_reqno = lv_object_id ex_guid = lv_guid ev_obj_type = lv_object_type.
SCMS_STRING_TO_XSTRING * CALL FUNCTION 'SCMS_STRING_TO_XSTRING' * EXPORTING * text = text * mimetype = ' ' * IMPORTING * buffer = lv_x_rest * EXCEPTIONS * failed = 1 * OTHERS = 2.
SSFC_BASE64_DECODE CALL FUNCTION 'SSFC_BASE64_DECODE' EXPORTING b64data = text IMPORTING bindata = lv_x_text.
BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = lv_tech_wf_user TABLES return = ret addsmtp = lt_email_adr.
BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = 'WF-BATCH' TABLES return = ret addsmtp = lt_email_adr.
RH_SUBSTITUTES_GET CALL FUNCTION 'RH_SUBSTITUTES_GET' EXPORTING act_plvar = space act_otype = p_user_tab-otype act_objid = p_user_tab-objid act_endda = sy-datum TABLES subst_str = subst_str EXCEPTIONS no_substitute_found = 1 OTHERS = 2.
RH_STRUC_GET CALL FUNCTION 'RH_STRUC_GET' EXPORTING act_otype = subst_str-otype act_objid = subst_str-objid act_wegid = 'SAP_TAGT' TABLES result_tab = l_agents_tab EXCEPTIONS no_plvar_found = 1 no_entry_found = 2 OTHERS = 3.
SWW_WI_HEADER_READ CALL FUNCTION 'SWW_WI_HEADER_READ' EXPORTING wi_id = gt_wi_one4all-wi_id IMPORTING wi_header = ls_wi_header EXCEPTIONS read_failed = 1 OTHERS = 2.
SWL_WI_TEXT_TRANSLATE CALL FUNCTION 'SWL_WI_TEXT_TRANSLATE' EXPORTING i_langu = lv_langu CHANGING c_wi_header = ls_wi_header EXCEPTIONS wi_read_failed = 1 container_read_failed = 2 OTHERS = 3.
BBP_READ_ATTRIBUTES CALL FUNCTION 'BBP_READ_ATTRIBUTES' EXPORTING iv_user = lv_user_name iv_scenario = lv_scenario it_attr_list = attr_list IMPORTING et_attr = lt_attr_return EXCEPTIONS object_id_not_found = 1 no_attributes_requested = 2 attributes_read_error = 3 OTHERS = 4.
SWW_WI_HEADER_READ CALL FUNCTION 'SWW_WI_HEADER_READ' EXPORTING wi_id = lv_wi_id * READ_FOR_UPDATE = ' ' IMPORTING wi_header = lt_wi_header EXCEPTIONS read_failed = 1 OTHERS = 2.
SWW_WI_CONTAINER_READ CALL FUNCTION 'SWW_WI_CONTAINER_READ' EXPORTING wi_id = lv_wi_id TABLES wi_container = lt_wi_container EXCEPTIONS container_does_not_exist = 1 OTHERS = 2.
SWU_GET_TASK_TEXTLINES CALL FUNCTION 'SWU_GET_TASK_TEXTLINES' EXPORTING task = lt_wi_header-wi_rh_task usage = 'D' language = lv_langu wiheader = lt_wi_header TABLES ascii_text_lines = lt_text_lines container = lt_wi_container EXCEPTIONS wrong_usage = 01 text_not_found = 02 text_system_error = 03.
SWU_GET_TASK_TEXTLINES CALL FUNCTION 'SWU_GET_TASK_TEXTLINES' EXPORTING task = lt_wi_header-wi_rh_task usage = 'W' language = lv_langu wiheader = lt_wi_header TABLES ascii_text_lines = lt_text_lines container = lt_wi_container EXCEPTIONS wrong_usage = 01 text_not_found = 02 text_system_error = 03.
SWW_WI_HEADER_READ CALL FUNCTION 'SWW_WI_HEADER_READ' EXPORTING wi_id = lv_wi_id IMPORTING wi_header = ls_wi_header EXCEPTIONS read_failed = 1 OTHERS = 2.
SWL_WI_TEXT_TRANSLATE CALL FUNCTION 'SWL_WI_TEXT_TRANSLATE' EXPORTING * I_CNT_HANDLE = i_langu = lv_langu * I_FORCE_REFRESH = ' ' CHANGING c_wi_header = ls_wi_header EXCEPTIONS wi_read_failed = 1 container_read_failed = 2 OTHERS = 3 .
BBP_PD_SC_GETDETAIL CALL FUNCTION 'BBP_PD_SC_GETDETAIL' EXPORTING i_object_id = lv_object_id i_attach_with_doc = ' ' i_with_itemdata = 'X' IMPORTING e_header = ls_header TABLES e_item = lt_items.
BBP_PD_INV_GETDETAIL CALL FUNCTION 'BBP_PD_INV_GETDETAIL' EXPORTING i_guid = lv_guid IMPORTING e_header = ls_header TABLES e_item = lt_items e_partner = lt_partner e_status = lt_status e_messages = lt_messages.
BBP_PDH_INV_GET_KIND CALL FUNCTION 'BBP_PDH_INV_GET_KIND' EXPORTING iv_src_object_type = ls_header-src_object_type IMPORTING ev_inv_kind = lv_invoice_kind.
BBP_PD_CONF_GETDETAIL CALL FUNCTION 'BBP_PD_CONF_GETDETAIL' EXPORTING i_guid = lv_guid IMPORTING e_header = ls_header TABLES e_item = lt_items e_status = lt_status e_messages = lt_messages.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING INPUT = lt_items-unit LANGUAGE = lv_langu IMPORTING OUTPUT = lt_items-unit EXCEPTIONS UNIT_NOT_FOUND = 1 OTHERS = 2.
BBP_IV_PARTNER_FUNCTIONS_GET CALL FUNCTION 'BBP_IV_PARTNER_FUNCTIONS_GET' IMPORTING partner_fct = ls_partner_fct TABLES return = lt_return.
BUPA_NUMBERS_GET CALL FUNCTION 'BUPA_NUMBERS_GET' EXPORTING iv_partner_guid = ls_vendor_guid IMPORTING ev_partner = ls_vendor_id.
CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = ls_vendor_id IMPORTING output = ls_vendor_id.
SWW_WI_CONTAINER_READ CALL FUNCTION 'SWW_WI_CONTAINER_READ' EXPORTING wi_id = iv_main_workitem_id IMPORTING wi_container_handle = lv_wi_container_handle EXCEPTIONS container_does_not_exist = 1 read_failed = 2 OTHERS = 3.
BBP_PDH_WFL_MAINWI_FROM_WI_GET CALL FUNCTION 'BBP_PDH_WFL_MAINWI_FROM_WI_GET' EXPORTING iv_workitem_id = p_wi_id IMPORTING ev_main_workitem_id = lv_main_wi_id.
SWW_WI_CONTAINER_READ CALL FUNCTION 'SWW_WI_CONTAINER_READ' EXPORTING wi_id = lv_main_wi_id IMPORTING wi_container_handle = lv_wi_container_handle EXCEPTIONS container_does_not_exist = 1 read_failed = 2 OTHERS = 3.
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 RSWUWFMLEC or its description.