RBBP_NOTIFICATION_OFFAPP 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 work item notifications 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 RBBP_NOTIFICATION_OFFAPP 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_BUSOBJ = BOR Object Type (Blank=>All)
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_USER = Users (Blank=>All)
Selection Text: X_14ALL = Collect Work Items
Selection Text: X_ALW_TR = All
Selection Text: X_ATT_AT = Attach Document Attachments
Selection Text: X_ATT_PV = Attach Print Vers. of Document
Selection Text: X_ERR_TR = Errors Only
Selection Text: X_NO_TR = None
Selection Text: X_PR_LNG = Language of Recipient
Selection Text: X_SY_LNG = System Language
Selection Text: X_T_DESC = Full Text
Selection Text: X_WI_LNG = Language of work item
Selection Text: X_W_DEC = With Approval Links
Selection Text: X_W_HTML = HTML Format
Title: Program for Generating and Sending E-mails for Offline Approval
Text Symbol: T32 = To accept the changes, click on the following link and then select 'Send':
Text Symbol: T31 = To Approve or Reject Directly from this E-mail, Select one of the Following Buttons:
Text Symbol: T30 = To Approve or Reject Directly from this E-mail, Select one of the Following Links and Choose "Send":
Text Symbol: T29 = Document Incomplete. Log on to the System to Process the Document
Text Symbol: T28 = Language of E-mail
Text Symbol: T27 = Operation Description
Text Symbol: T26 = Warning! The 'Forward' Function is not Suitable for Approving a Work Item. Do you want to Continue?
Text Symbol: T25 = Cancel
Text Symbol: T24 = Reject
Text Symbol: T23 = Approve
Text Symbol: T22 = To Approve or Reject Directly from this E-mail, Select one of the Following Buttons:
Text Symbol: T21 = User WF-BATCH does not have an e-mail address
Text Symbol: T20 = Technical information:
Text Symbol: T19 = Please do not change this automatically generated e-mail
Text Symbol: T18 = Approval of the work item
Text Symbol: T17 = Rejection of the work item
Text Symbol: T13 = Log on
Text Symbol: T12 = Rejection via E-mail
Text Symbol: T11 = Approval via E-mail
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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.
BBP_PDH_WFL_OBJECT_WI_GET CALL FUNCTION 'BBP_PDH_WFL_OBJECT_WI_GET' EXPORTING iv_workitem_id = lt_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.
BBP_PDH_WFL_OBJECT_WI_GET * CALL FUNCTION 'BBP_PDH_WFL_OBJECT_WI_GET' * EXPORTING * iv_workitem_id = lv_wiid * IMPORTING * EV_OBJ_TYPE = lv_object_type.
SSFC_BASE64_DECODE CALL FUNCTION 'SSFC_BASE64_DECODE' EXPORTING b64data = text IMPORTING bindata = lv_x_text.
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.
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.
RH_WI_AGENTS_GET CALL FUNCTION 'RH_WI_AGENTS_GET' EXPORTING act_wi_id = ls_wa_wiid_tab TABLES wi_agent_list = lt_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 = lv_user_name TABLES return = return addsmtp = lt_mailadress.
BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = lv_userid IMPORTING address = ls_addr3 TABLES return = return.
SWW_WI_HEADER_READ CALL FUNCTION 'SWW_WI_HEADER_READ' EXPORTING wi_id = lv_workitem_id IMPORTING wi_header = ls_wi_header EXCEPTIONS read_failed = 1 OTHERS = 2.
BBP_WFLH_WORKITEM_TEXT_GET CALL FUNCTION 'BBP_WFLH_WORKITEM_TEXT_GET' EXPORTING iv_workitem_id = lv_workitem_id iv_langu = lv_langu iv_with_longtext = bbppd_on IMPORTING ev_workitem_text = lv_wi_text TABLES et_task_text = lt_text EXCEPTIONS error_wi_text_get = 1 OTHERS = 2.
BBP_WFLH_WORKITEM_TEXT_GET CALL FUNCTION 'BBP_WFLH_WORKITEM_TEXT_GET' EXPORTING iv_workitem_id = lv_workitem_id iv_langu = lv_langu iv_with_longtext = bbppd_on IMPORTING ev_workitem_text = lv_wi_text EXCEPTIONS error_wi_text_get = 1 OTHERS = 2.
BBP_PDH_WFL_OBJECT_WI_GET CALL FUNCTION 'BBP_PDH_WFL_OBJECT_WI_GET' EXPORTING iv_workitem_id = lv_workitem_id IMPORTING ex_reqno = lv_object_id ex_guid = lv_guid ev_obj_type = lv_object_type.
BBP_PD_ALL_GET_OBJECT_GUID CALL FUNCTION 'BBP_PD_ALL_GET_OBJECT_GUID' EXPORTING iv_object_id = lv_object_id iv_object_type = lv_object_type IMPORTING ev_object_guid = lv_guid.
BBP_PDSEC_AUTHORITY_CHECK_RFC CALL FUNCTION 'BBP_PDSEC_AUTHORITY_CHECK_RFC' EXPORTING iv_username = lv_userid is_auth_check = ls_auth_check EXCEPTIONS not_authorized = 1 OTHERS = 2.
SWW_WI_HEADER_READ CALL FUNCTION 'SWW_WI_HEADER_READ' EXPORTING wi_id = iv_workitem_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.
SWW_WI_HEADER_READ CALL FUNCTION 'SWW_WI_HEADER_READ' EXPORTING wi_id = lv_wiid IMPORTING wi_header = ls_wi_header EXCEPTIONS read_failed = 1 OTHERS = 2.
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.
BBP_PD_SC_GETDETAIL CALL FUNCTION 'BBP_PD_SC_GETDETAIL' EXPORTING i_object_id = lv_object_id i_attach_with_doc = ' ' IMPORTING e_header = ls_sc_header TABLES e_status = lt_status.
BBP_PROCDOC_CHECK CALL FUNCTION 'BBP_PROCDOC_CHECK' EXPORTING i_guid = ls_sc_header-guid iv_check_all = 'X' TABLES e_messages = lt_messages.
BBP_PROCDOC_GETDETAIL CALL FUNCTION 'BBP_PROCDOC_GETDETAIL' EXPORTING i_guid = lv_guid i_read_flags = ls_read_flags IMPORTING e_header = ls_header TABLES e_status = lt_status.
BBP_PROCDOC_CHECK CALL FUNCTION 'BBP_PROCDOC_CHECK' EXPORTING i_guid = lv_guid iv_check_all = 'X' TABLES e_messages = lt_messages.
BBP_PDH_WFL_CONTAINER_ELEM_GET CALL FUNCTION 'BBP_PDH_WFL_CONTAINER_ELEM_GET' EXPORTING iv_object_type = ls_header-object_type iv_guid = lv_guid_32 iv_workitem_id = lv_workitem_id iv_element_name = lv_attribute_element IMPORTING ev_element_value = lv_element_value EXCEPTIONS workitem_not_found = 1 OTHERS = 2.
BBP_PROCDOC_GETDETAIL CALL FUNCTION 'BBP_PROCDOC_GETDETAIL' EXPORTING i_guid = lv_guid i_read_flags = ls_read_flags IMPORTING e_header = ls_header TABLES e_status = lt_status.
BBP_PROCDOC_CHECK CALL FUNCTION 'BBP_PROCDOC_CHECK' EXPORTING i_guid = lv_guid iv_check_all = 'X' TABLES e_messages = lt_messages.
BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = lv_tech_wf_user TABLES return = lt_return addsmtp = lt_email_addr.
BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = 'WF-BATCH' TABLES return = lt_return addsmtp = lt_email_addr.
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.
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 RBBP_NOTIFICATION_OFFAPP or its description.
RBBP_NOTIFICATION_OFFAPP - Program for Generating and Sending E-mails for Offline Approval RBBP_NOTIFICATION_OFFAPP - Program for Generating and Sending E-mails for Offline Approval RBBP_IMS_MAIL_PROCESS - Program BBP_IMS_MAIL_PROCESS RBBP_IMS_MAIL_PROCESS - Program BBP_IMS_MAIL_PROCESS RBBP_DOC_SEND_BCS_TEST - Program for testing of CL_BBP_DOC_SEND_BCS to send emails RBBP_DOC_SEND_BCS_TEST - Program for testing of CL_BBP_DOC_SEND_BCS to send emails