SAP Reports / Programs | Supplier Relationship Management | Enterprise Buyer | Workflow(SRM-EBP-WFL) SAP SRM

RSWUWFMLEC SAP ABAP Report - Program RSWUWFMLEC







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


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 RSWUWFMLEC. "Basic submit
SUBMIT RSWUWFMLEC AND RETURN. "Return to original report after report execution complete
SUBMIT RSWUWFMLEC 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_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





Text Symbol: T18 = Approval of the work item
Text Symbol: T19 = Please do not change this automatically generated e-mail
Text Symbol: T20 = Technical information:
Text Symbol: T21 = User WF-BATCH does not have an e-mail address
Text Symbol: T22 = To Approve or Reject Directly from this E-mail, Select one of the Following Buttons:
Text Symbol: T23 = Approve
Text Symbol: T24 = Reject
Text Symbol: T25 = Cancel
Text Symbol: T26 = Warning! The 'Forward' Function is not Suitable for Approving a Work Item. Do you want to Continue?
Text Symbol: T27 = Operation Description
Text Symbol: T28 = Language of E-mail
Text Symbol: T29 = Document Incomplete. Log on to the System to Process the Document
Text Symbol: T30 = To Approve or Reject Directly from this E-mail, Select one of the Following Links and Choose "Send":
Text Symbol: T31 = To Approve or Reject Directly from this E-mail, Select one of the Following Buttons:
Text Symbol: T32 = To accept the changes, click on the following link and then select 'Send':
Text Symbol: T33 = Accept Changes
Text Symbol: T34 = Accept
Text Symbol: T35 = Accept via E-mail
Text Symbol: 124 = Recipient:
Text Symbol: 123 = Supplier:
Text Symbol: 122 = Total Amount:
Text Symbol: 121 = Item
Text Symbol: 120 = Overview of Confirmation No. &, $
Text Symbol: 119 = Limit
Text Symbol: 118 = Net Order Price
Text Symbol: 117 = Purchase Order / Item
Text Symbol: 116 = Net Value
Text Symbol: 115 = Net Price
Text Symbol: 114 = Overview of Invoice No. &, $
Text Symbol: 113 = Overview of Shopping Cart No. &, $
Text Symbol: 112 = Inform System Administrator
Text Symbol: 111 = User WF-BATCH does not have an E-mail Address.
Text Symbol: 110 = Approval or Rejection via E-mail is not Possible.
Text Symbol: 109 = Rejected
Text Symbol: 108 = Shopping Cart
Text Symbol: 107 = Per
Text Symbol: 106 = Currncy
Text Symbol: 105 = Price
Text Symbol: 104 = Requested Delivery Date





Text Symbol: 103 = Unit
Text Symbol: 102 = Quantity
Text Symbol: 101 = Product
Text Symbol: 100 = Description
Text Symbol: 004 = Execute this Work Item by Opening the Attachment.
Text Symbol: 003 = Message
Text Symbol: 002 = SAPOFFICE
Text Symbol: T05 = Log
Text Symbol: T04 = Data for a Single Run (the Timestamp is not Reset when this Field is Used)
Text Symbol: T03 = Standard Notification Text
Text Symbol: T02 = Type of Mail
Text Symbol: T01 = Message Granularity
Text Symbol: S12 = Use the Following Link to log on to the System and Carry out the Approval Online:
Text Symbol: S11 = The Following Requires Processing:
Text Symbol: S08 = Log on to the R/3 System and Check your Inbox.
Text Symbol: S07 = Work Item in R/3 System:
Text Symbol: S06 = Display Work Item.
Text Symbol: S05 = Integrated Inbox
Text Symbol: S04 = Execute the Work Item.
Text Symbol: S02 = &: You have Received $ New Work Items
Text Symbol: S01 = The Following Requires Processing:
Text Symbol: M13 = Abbr.
Text Symbol: M12 = Failed to Send to:
Text Symbol: M11 = Transmission Successful.
Text Symbol: M10 = A Total of & Work Items Scanned.
Text Symbol: M09 = Address
Text Symbol: M08 = No Work Items Found that Needed Forwarding.
Text Symbol: M06 = This Work Item has no Description.
Text Symbol: M05 = Transmission Failed.
Text Symbol: M04 = E-mail Sent to:
Text Symbol: M03 = WorkItem:
Text Symbol: M02 = The SAPform-task was not Found.
Text Symbol: M01 = Customizing or System Error:
Text Symbol: 126 = Invoice Name:
Text Symbol: 125 = Invoice Numer (Vendor):


INCLUDES used within this REPORT RSWUWFMLEC

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:

SWU_GET_TRACE_HANDLE



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.



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