/SAPSRM/OFFLINEAPPROVALSEND is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program /SAPSRM/OFFLINEAPPROVALSEND 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 /SAPSRM/OFFLINEAPPROVALSEND 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: X_BUTTON = Buttons
Selection Text: X_ATT_PV = Attach Print Vers. of Document
Selection Text: X_ATT_AT = Attach Document Attachments
Selection Text: X_ALW_TR = All
Selection Text: X_14ALL = One E-Mail per User
Selection Text: P_WI_ID = D .
Selection Text: P_USER = Users (Blank = All)
Selection Text: P_TEXT9 = Line 9
Selection Text: P_TEXT8 = Line 8
Selection Text: P_TEXT7 = Line 7
Selection Text: P_TEXT6 = Line 6
Selection Text: P_TEXT5 = Line 5
Selection Text: P_TEXT4 = Line 4
Selection Text: P_TEXT3 = Line 3
Selection Text: P_TEXT2 = Line 2
Selection Text: P_TEXT1 = Line 1
Selection Text: P_TEXT0 = Line 10
Selection Text: P_TASKS = Tasks (Blank = All)
Selection Text: P_JOBSUF = Job Suffix
Selection Text: P_FROMT = Work Item Creation Time From
Selection Text: P_FROMD = Work Item Creation Date From
Selection Text: P_EMAIL = E-Mail Address
Selection Text: P_BO_TY = D .
Selection Text: X_ENCRPT = Encrypted
Selection Text: X_W_HTML = HTML Format
Selection Text: X_W_DEC = Available
Selection Text: X_WI_TXT = Short Text
Selection Text: X_WI_LNG = Work Item Language
Selection Text: X_T_DESC = Full Text
Selection Text: X_SY_LNG = System Language
Selection Text: X_SIGN = Signed
Selection Text: X_PR_LNG = Recipient's Language
Selection Text: X_PRIO_9 = Priority 9
Selection Text: X_PRIO_8 = Priority 8
Selection Text: X_PRIO_7 = Priority 7
Selection Text: X_PRIO_6 = Priority 6
Selection Text: X_PRIO_5 = Priority 5
Selection Text: X_PRIO_4 = Priority 4
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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 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.
SWW_WI_HEADER_READ CALL FUNCTION 'SWW_WI_HEADER_READ' EXPORTING wi_id = wi_id IMPORTING wi_header = ls_wi_header EXCEPTIONS read_failed = 1 OTHERS = 2.
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.
SWD_PROPS_GET CALL FUNCTION 'SWD_PROPS_GET' EXPORTING im_workflow_props = lv_wf_type im_prop = swfco_type_reviewer EXCEPTIONS property_not_set = 1 OTHERS = 2.
SWL_WI_TEXT_TRANSLATE CALL FUNCTION 'SWL_WI_TEXT_TRANSLATE' EXPORTING i_langu = l_langu CHANGING c_wi_header = ls_wi_header EXCEPTIONS wi_read_failed = 1 container_read_failed = 2 OTHERS = 3.
SCMS_BINARY_TO_XSTRING CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING input_length = lv_size IMPORTING buffer = attachment_lst-content TABLES binary_tab = ls_attach-phio_content[].
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.
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.
BBP_PROCDOC_GETDETAIL CALL FUNCTION 'BBP_PROCDOC_GETDETAIL' EXPORTING i_guid = lv_guid i_object_id = lv_object_id i_object_type = lv_object_type i_with_itemdata = space TABLES e_longtext = lt_longtext e_messages = lt_messages.
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 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.
BBP_PDH_WFL_RESET_DBBUFFER CALL FUNCTION 'BBP_PDH_WFL_RESET_DBBUFFER' EXPORTING iv_language = lv_langu.
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.
BBP_PDH_WFL_RESET_DBBUFFER CALL FUNCTION 'BBP_PDH_WFL_RESET_DBBUFFER' EXPORTING iv_language = lv_langu.
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_PD_CTR_GETDETAIL CALL FUNCTION 'BBP_PD_CTR_GETDETAIL' EXPORTING i_guid = lv_guid i_attach_with_doc = ' ' i_with_itemdata = 'X' IMPORTING e_header = ls_header TABLES e_item = lt_items e_partner = lt_partner.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = lt_items-unit language = lv_langu IMPORTING output = lv_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_bapiret2.
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 e_account = lt_account e_limit = lt_limit e_partner = lt_partner.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = lt_items-unit language = lv_langu IMPORTING output = lv_unit EXCEPTIONS unit_not_found = 1 OTHERS = 2.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = lt_items-unit language = lv_langu IMPORTING output = lv_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_bapiret2.
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.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = lt_items-unit language = lv_langu IMPORTING output = lv_unit EXCEPTIONS unit_not_found = 1 OTHERS = 2.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = lt_items-unit language = lv_langu IMPORTING output = lv_unit EXCEPTIONS unit_not_found = 1 OTHERS = 2.
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 = lv_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.
BBP_PD_PO_GETDETAIL CALL FUNCTION 'BBP_PD_PO_GETDETAIL' EXPORTING i_guid = lv_guid i_attach_with_doc = ' ' i_with_itemdata = 'X' IMPORTING e_header = ls_header TABLES e_item = lt_items e_account = lt_account e_limit = lt_limit e_partner = lt_partner.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = lt_items-unit language = lv_langu IMPORTING output = lv_unit EXCEPTIONS unit_not_found = 1 OTHERS = 2.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = lt_items-unit language = lv_langu IMPORTING output = lv_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_bapiret2.
BBP_PDH_WFL_MAINWI_FROM_WI_GET CALL FUNCTION 'BBP_PDH_WFL_MAINWI_FROM_WI_GET' EXPORTING iv_workitem_id = p_wi_id iv_direct_main_wiid = 'X' 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.
BBP_PDH_WFL_OBJECT_WI_GET CALL FUNCTION 'BBP_PDH_WFL_OBJECT_WI_GET' EXPORTING iv_workitem_id = p_wi_id IMPORTING ex_reqno = p_object_id ex_guid = p_guid ev_obj_type = p_object_type.
BBP_PDH_CONV_TSTMP_TO_DATE CALL FUNCTION 'BBP_PDH_CONV_TSTMP_TO_DATE' EXPORTING iv_timestamp =
-timestmp iv_tzone = sy-zonlo IMPORTING ev_date = lv_wi_date ev_time = lv_wi_time.
SAP_WAPI_READ_CONTAINER CALL FUNCTION 'SAP_WAPI_READ_CONTAINER' EXPORTING workitem_id = wi_id_tab TABLES simple_container = lt_container.
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.
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 /SAPSRM/OFFLINEAPPROVALSEND or its description.
/SAPSRM/OFFLINEAPPROVALSEND - Report /SAPSRM/OFFLINEAPPROVALSEND /SAPSRM/OFFLINEAPPROVALSEND - Report /SAPSRM/OFFLINEAPPROVALSEND /SAPSRM/OFFLINEAPPROVALGET - Get Offline Approval mails and continue WF /SAPSRM/OFFLINEAPPROVALGET - Get Offline Approval mails and continue WF /SAPSRM/MIGRATION_CHECK - Program /SAPSRM/MIGRATION_CHECK /SAPSRM/MIGRATION_CHECK - Program /SAPSRM/MIGRATION_CHECK