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
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: LV_NR = Number of Processing Attempts
Title: Program BBP_IMS_MAIL_PROCESS
Text Symbol: 001 = The response could not be processed - Invoice was locked
INCLUDE: BBP_IMS_CONSTANTS.
INCLUDE _IMS_MAIL_PROCESS_F01.
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
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 RBBPNOTIFICATION - INTERNAL: Form Class Library RBBPNOTIFICATION - INTERNAL: Form Class Library