SAP Reports / Programs

RBBP_NOTIFICATION_OFFAPP SAP ABAP Report - Program for Generating and Sending E-mails for Offline Approval







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


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





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: T33 = Acceptance of Changes
Text Symbol: T34 = Accept
Text Symbol: T35 = Acceptance via E-mail
Text Symbol: T36 = No Form Found
Text Symbol: T37 = An error occurred during processing of the form
Text Symbol: T38 = Error Generating E-mail Subject
Text Symbol: T39 = Error Generating E-mail Body
Text Symbol: T40 = Error Generating E-mail Attachment
Text Symbol: T41 = Error Archiving Form
Text Symbol: T42 = Error Determining Texts for E-mail
Text Symbol: T44 = Error Formatting Data for E-mail
Text Symbol: T45 = Document contains errors. Log on to the system to process the document.
Text Symbol: T46 = SMTP Inbound Address Not Maintained
Text Symbol: T47 = You can then enter an approval note.%23NOTM%23
Text Symbol: T48 = Back to Document Creator
Text Symbol: T49 = Back to Approver
Text Symbol: T50 = No work items found that require e-mail forwarding to approver
Text Symbol: T51 = No work items found for entered selection parameters
Text Symbol: T52 = No documents attached because recipient is not allowed to read document attachments
Text Symbol: T53 = Following error messages occurred:
Text Symbol: T54 = Transfer status:
Text Symbol: S08 = Log on to the R/3 System and Check your Inbox.
Text Symbol: 126 = Invoice Name:
Text Symbol: 125 = Invoice Numer (Vendor):
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 not possible
Text Symbol: 109 = Rejected
Text Symbol: 108 = Shopping Cart
Text Symbol: 107 = Per
Text Symbol: 106 = Currency
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 the work item by opening the attachment
Text Symbol: 003 = Message
Text Symbol: 002 = SAPoffice
Text Symbol: H10 = Parameters of Work Item Selection
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: M15 = Work Item Agent:
Text Symbol: M14 = Proc. By:
Text Symbol: M13 = Abbreviation
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 = Work Item:
Text Symbol: M02 = The SAPform-task was not Found.
Text Symbol: M01 = Customizing or System Error:
Text Symbol: H30 = Log
Text Symbol: H26 = Language of E-mail
Text Symbol: H25 = E-mail Attachments (not possible for 'Collect Work Items')



Text Symbol: H24 = E-mail Text (full or short text)
Text Symbol: H23 = Approval links
Text Symbol: H22 = Format (nothing selected: plain text format)
Text Symbol: H21 = Collect work items per user (nothing selected: one e-mail per work item)
Text Symbol: H20 = E-mail Options
Text Symbol: H13 = Period (if set, time stamp for last run ignored)
Text Symbol: H11 = Process Type


INCLUDES used within this REPORT RBBP_NOTIFICATION_OFFAPP

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:

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.



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