SAP Reports / Programs

RBBP_IMS_MAIL_PROCESS SAP ABAP Report - Program BBP_IMS_MAIL_PROCESS







RBBP_IMS_MAIL_PROCESS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report processes e-mails with Adobe attachments that were sent to the IMS system and were not processed immediately since the invoice was locked...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_IMS_MAIL_PROCESS 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_IMS_MAIL_PROCESS. "Basic submit
SUBMIT RBBP_IMS_MAIL_PROCESS AND RETURN. "Return to original report after report execution complete
SUBMIT RBBP_IMS_MAIL_PROCESS 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: LV_NR = Number of Processing Attempts
Title: Program BBP_IMS_MAIL_PROCESS
Text Symbol: 001 = The response could not be processed - Invoice was locked


INCLUDES used within this REPORT RBBP_IMS_MAIL_PROCESS

INCLUDE: BBP_IMS_CONSTANTS.
INCLUDE _IMS_MAIL_PROCESS_F01.


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:

SO_DOCUMENT_READ_API1 CALL FUNCTION 'SO_DOCUMENT_READ_API1' EXPORTING document_id = lv_fol_cont-doc_id TABLES attachment_list = lt_att_list EXCEPTIONS document_id_not_exist = 1 operation_no_authorization = 2 x_error = 3 OTHERS = 4.

SO_ATTACHMENT_READ_API1 CALL FUNCTION 'SO_ATTACHMENT_READ_API1' EXPORTING attachment_id = lv_att-attach_id TABLES contents_hex = lt_att_hex EXCEPTIONS attachment_not_exist = 1 operation_no_authorization = 2 x_error = 3 OTHERS = 4.

BBP_OUTPUT_X_TABLESIZE_CHG CALL FUNCTION 'BBP_OUTPUT_X_TABLESIZE_CHG' IMPORTING ev_size = lv_len ev_xstring = lv_att_x TABLES it_data = lt_att_hex.

BBP_IV_IMS_ADS_TRANSLATE_PDF CALL FUNCTION 'BBP_IV_IMS_ADS_TRANSLATE_PDF' EXPORTING iv_pdf_xstr = lv_att_x IMPORTING ev_pdf_xstr = lv_att_x_new et_item1 = lt_item_form es_header_1 = ls_header_form es_property = ls_property es_exception = ls_exception es_feedback = ls_feedback es_config = ls_config ev_exception_id = lv_excp_guid ev_exception_type = lv_excp_type es_signature = ls_signature es_ext_partner = ls_ext_partner ev_singature_valid = lv_signature_valid EXCEPTIONS ads_error = 1 empty_pdf = 2 error = 3 OTHERS = 4.

BBP_IMS_READ_PROPERTY CALL FUNCTION 'BBP_IMS_READ_PROPERTY' EXPORTING iv_exception_type = lv_excp_type IMPORTING es_excp_property = ls_excp_prop.

BBP_IMS_LOG_ADD CALL FUNCTION 'BBP_IMS_LOG_ADD' EXPORTING is_log = ls_log.

SO_DOCUMENT_DELETE_API1 CALL FUNCTION 'SO_DOCUMENT_DELETE_API1' EXPORTING document_id = lv_fol_cont-doc_id unread_delete = 'X' EXCEPTIONS document_not_exist = 1 operation_no_authorization = 2 parameter_error = 3 x_error = 4 enqueue_error = 5 OTHERS = 6.

BBP_IMS_LOG_ADD CALL FUNCTION 'BBP_IMS_LOG_ADD' EXPORTING is_log = ls_log.

BBP_IMS_INVOICE_UPDATE CALL FUNCTION 'BBP_IMS_INVOICE_UPDATE' EXPORTING is_header_form = ls_header_form is_header_prop = ls_property is_exception_info = ls_exception it_item_form = lt_item_form is_feedback = ls_feedback EXCEPTIONS error = 1 document_locked = 2 OTHERS = 3.

SO_DOCUMENT_DELETE_API1 CALL FUNCTION 'SO_DOCUMENT_DELETE_API1' EXPORTING document_id = lv_fol_cont-doc_id unread_delete = 'X' EXCEPTIONS document_not_exist = 1 operation_no_authorization = 2 parameter_error = 3 x_error = 4 enqueue_error = 5 OTHERS = 6.

BBP_IMS_LOG_ADD CALL FUNCTION 'BBP_IMS_LOG_ADD' EXPORTING is_log = ls_log.

BBP_EV_API_EXCEPT_WORKLIST_GET CALL FUNCTION 'BBP_EV_API_EXCEPT_WORKLIST_GET' EXPORTING it_event = lt_excp_guid IMPORTING et_events = lt_excp[] EXCEPTIONS no_entry_found = 1 OTHERS = 2.

BBP_EV_API_EXCEPT_UPDATE CALL FUNCTION 'BBP_EV_API_EXCEPT_UPDATE' EXPORTING it_events = lt_excp.

SO_DOCUMENT_DELETE_API1 CALL FUNCTION 'SO_DOCUMENT_DELETE_API1' EXPORTING document_id = lv_fol_cont-doc_id EXCEPTIONS document_not_exist = 1 operation_no_authorization = 2 parameter_error = 3 x_error = 4 enqueue_error = 5 OTHERS = 6.

BBP_IMS_LOG_ADD CALL FUNCTION 'BBP_IMS_LOG_ADD' EXPORTING is_log = ls_log.

BBP_IMS_LOG_FILL CALL FUNCTION 'BBP_IMS_LOG_FILL' EXPORTING iv_log_event = 'STATUS' is_exception = ls_excp iv_excp_guid = lv_excp_guid is_msg = ls_msg.



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