SAP Reports / Programs | Supplier Relationship Management | Enterprise Buyer | Invoicing(SRM-EBP-INV) SAP SRM

BBPERS SAP ABAP Report - Evaluated Receipt Settlement (ERS) for B2B Billing







BBPERS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter BBPERS 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 BBPERS. "Basic submit
SUBMIT BBPERS AND RETURN. "Return to original report after report execution complete
SUBMIT BBPERS 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: CF_DATE = Date of Confirmation
Selection Text: CF_ID = Confirmation Number
Selection Text: CO_CODE = Company Code
Selection Text: LOGSYS = Logical System
Selection Text: MEDIUM = Output Medium (PRN, MAI, FAX)
Selection Text: PO_DATE = Purchase Order Date
Selection Text: PO_ID = Purchase Order Number
Selection Text: PRINTER = Printer
Selection Text: TOL_GRP = Tolerance Group
Selection Text: VENDOR = Supplier
Title: Evaluated Receipt Settlement (ERS) for Invoicing


INCLUDES used within this REPORT BBPERS

INCLUDE BBP_PD_CON.
INCLUDE BBP_IV_CONSTANTS.


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:

BBP_IV_PARAMETERS_GET CALL FUNCTION 'BBP_IV_PARAMETERS_GET' IMPORTING parameter = parameter TABLES return = return.

BBP_MS_C_SELECT_STATUS_GET CALL FUNCTION 'BBP_MS_C_SELECT_STATUS_GET' IMPORTING ev_marketset = lv_marketset ev_multicompany = lv_multicompany.

BUPA_NUMBERS_GET CALL FUNCTION 'BUPA_NUMBERS_GET' EXPORTING iv_partner_guid = tab_vendor-guid IMPORTING ev_partner = lv_vendor_id.

BBP_BUPA_FRG0060_READ_ALL CALL FUNCTION 'BBP_BUPA_FRG0060_READ_ALL' EXPORTING iv_partner_guid = tab_vendor-guid TABLES et_frg0061 = t_frg0061 et_sendmedium = t_smedium.

BBP_PD_PO_GETLIST CALL FUNCTION 'BBP_PD_PO_GETLIST' EXPORTING i_partner = guid32 i_partner_fct = parameter-vendor i_iv_possible = 'X' i_iv_open = 'X' i_ers_flag = 'X' TABLES * I_STATUS = e_pdlist = tab_po_list * E_STATUS = e_messages = tab_messages.

BBP_PD_CONF_GETLIST CALL FUNCTION 'BBP_PD_CONF_GETLIST' EXPORTING i_subtype = c_subtype_rt i_partner = guid32 i_partner_fct = parameter-vendor TABLES e_pdlist = tab_cf_rt_list e_messages = tab_messages.

BBP_PD_PO_GETLIST CALL FUNCTION 'BBP_PD_PO_GETLIST' EXPORTING i_object_id = tab_cf_rt_list-po_id i_ers_flag = 'X' TABLES e_pdlist = tab_po_list_single e_messages = tab_messages.

BBP_PD_CONF_GETLIST CALL FUNCTION 'BBP_PD_CONF_GETLIST' EXPORTING i_partner = guid32 i_partner_fct = parameter-vendor * i_iv_possible = 'X' TABLES e_pdlist = tab_cf_list e_messages = tab_messages.

BBP_IV_PARAMETERS_GET CALL FUNCTION 'BBP_IV_PARAMETERS_GET' IMPORTING parameter = parameter TABLES return = return.

BBP_IV_ASSIGNMENT_LEAN CALL FUNCTION 'BBP_IV_ASSIGNMENT_LEAN' EXPORTING is_parameter = parameter iv_subtype = tab_po_list_single-assignment iv_inp_type = c_inp_type_ers IMPORTING es_iv_header = s_iv_header TABLES it_po_selection = tab_selection_single et_iv_item = tab_iv_item et_account = tab_iv_account et_partner = tab_iv_partner et_messages = tab_messages et_longtext = tab_longtext.

BBP_CFIV_WFL_CREATOR_TYPE_GET CALL FUNCTION 'BBP_CFIV_WFL_CREATOR_TYPE_GET' EXPORTING iv_object_type = c_invoice iv_inp_type = c_inp_type_ers IMPORTING ev_wfl_creator_type = s_pds_header-wfl_creator_type EXCEPTIONS OTHERS = 0.

BBP_PROCDOC_LOCK CALL FUNCTION 'BBP_PROCDOC_LOCK' EXPORTING i_header_guid = tab_po_list_single-guid i_object_type = tab_po_list_single-object_type TABLES e_messages = tab_messages.

BBP_PD_INV_CREATE CALL FUNCTION 'BBP_PD_INV_CREATE' EXPORTING i_header = s_pds_header IMPORTING e_header = e_iv_header TABLES i_item = tab_pds_item i_account = tab_iv_account i_partner = tab_iv_partner i_longtext = tab_longtext i_tax = tab_iv_tax e_account = tab_e_iv_account e_partner = tab_e_iv_partner e_tax = tab_e_iv_tax e_messages = tab_messages.

BBP_CFIV_MSG_SCENARIO_GET CALL FUNCTION 'BBP_CFIV_MSG_SCENARIO_GET' EXPORTING iv_object_type = c_invoice iv_object_id = e_iv_header-object_id IMPORTING ev_msg_scenario = lv_msg_scenario.

BBP_PD_INV_UPDATE CALL FUNCTION 'BBP_PD_INV_UPDATE' EXPORTING i_save = c_on i_header = ls_header iv_msg_scenario = lv_msg_scenario TABLES e_messages = tab_messages.

BBP_PD_INV_RESET_BUFFER CALL FUNCTION 'BBP_PD_INV_RESET_BUFFER'.

BBP_PROCDOC_UNLOCK CALL FUNCTION 'BBP_PROCDOC_UNLOCK' EXPORTING i_header_guid = tab_po_list_single-guid i_object_type = tab_po_list_single-object_type.

BBP_PD_INV_SAVE CALL FUNCTION 'BBP_PD_INV_SAVE' EXPORTING iv_header_guid = e_iv_header-guid.

BBP_PD_INV_RESET_BUFFER





CALL FUNCTION 'BBP_PD_INV_RESET_BUFFER'.

BBP_PARTNER_TYPE_SELECT CALL FUNCTION 'BBP_PARTNER_TYPE_SELECT' EXPORTING partner_ftyp = c_vendor TABLES i_partner = tab_e_iv_partner e_partner = lt_vendor.

SSF_FUNCTION_MODULE_NAME * CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' * EXPORTING * formname = 'BBP_ERS' * IMPORTING * fm_name = function_name.

BUPA_ADDRESS_GET_DETAIL * CALL FUNCTION 'BUPA_ADDRESS_GET_DETAIL' * EXPORTING * iv_partner_guid = tab_vendor-guid * IMPORTING * es_address = transfer_address.

BUPA_ADDRESSES_GET * CALL FUNCTION 'BUPA_ADDRESSES_GET' * EXPORTING * iv_partner_guid = tab_vendor-guid * IMPORTING * ev_standard_addrnumber = vendor_address.

BBP_OUTPUT_ERS_CREATE CALL FUNCTION 'BBP_OUTPUT_ERS_CREATE' EXPORTING is_vendor = ls_vendor iv_printer = printer it_inv = lt_docs iv_medium = medium iv_none_sus_supplier = inv_ok iv_sngl_out_per_inv = sng_out EXCEPTIONS noinvoices = 1 OTHERS = 2.

/1BCDWB/SF00000012 * CALL FUNCTION function_name " '/1BCDWB/SF00000012' * EXPORTING * archive_index = is_archive_index ** ARCHIVE_INDEX_TAB = * archive_parameters = is_archive_parameters * control_parameters = is_control_parameters * mail_appl_obj = is_+mail_appl_obj * mail_recipient = is_mail_recipient * mail_sender = is_mail_sender * output_options = is_output_options * user_settings = 'X' * i_output_header = output_header * IMPORTING * document_output_info = es_document_output_info * job_output_info = es_job_output_info * job_output_options = es_job_output_options * TABLES * t_output_items = tab_output_items * t_output_tax = tab_output_tax ** exceptions ** FORMATTING_ERROR = 1 ** INTERNAL_ERROR = 2 ** SEND_ERROR = 3 ** USER_CANCELED = 4 ** error_message = 5 ** others = 6.

BBP_PD_CONF_GETDETAIL * CALL FUNCTION 'BBP_PD_CONF_GETDETAIL' * EXPORTING * i_guid = i_guid_cf * TABLES * e_tax = lt_tax.

CRM_TAX_ERS_CALCULATE * CALL FUNCTION 'CRM_TAX_ERS_CALCULATE' * IMPORTING * o_par_tax_total = tax_amount * TABLES * i_tax_item = i_tab_tax_item * o_tax_item = o_tab_tax_item * EXCEPTIONS * international = 1 * taxcode_missed = 2 * lock_error = 3 * internal_error = 4 * item_number_missed = 5 * error_message = 6 * OTHERS = 7.

BBP_PD_LOG_INITIALIZE CALL FUNCTION 'BBP_PD_LOG_INITIALIZE'.

BBP_TAX_CALCULATE_TAXES CALL FUNCTION 'BBP_TAX_CALCULATE_TAXES' EXPORTING iv_tab_per_guid = ' ' TABLES ct_item = lt_item it_partner = it_partner it_tax = it_tax et_tax = lt_tax CHANGING cs_header = ls_header.

BBP_PD_LOG_GET_MESSAGES CALL FUNCTION 'BBP_PD_LOG_GET_MESSAGES' TABLES e_messages = et_messages.

BBP_PD_LOG_DELETE CALL FUNCTION 'BBP_PD_LOG_DELETE'.

BBP_PD_PO_GETDETAIL CALL FUNCTION 'BBP_PD_PO_GETDETAIL' EXPORTING i_object_id = lv_object_id i_with_itemdata = ' ' i_without_header_totals = 'X' TABLES e_orgdata = lt_orgdata.

BBP_READ_ATTRIBUTES CALL FUNCTION 'BBP_READ_ATTRIBUTES' EXPORTING iv_orgunit = lv_orgunit iv_scenario = 'BBP' iv_attr_single = ls_attr_get IMPORTING ev_attr_dft_single = ls_attr EXCEPTIONS object_id_not_found = 1 no_attributes_requested = 2 attributes_read_error = 3 OTHERS = 4.



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