BBP_GET_STATUS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for After the documents (purchase requisition, purchase order, reservation) have been created in the backend system for a requirement coverage request, the following references are stored in the requirement coverage request: The name of the backend system in which the documents exist...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 BBP_GET_STATUS 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.
Batch program to update the status information
Title: Program BBP_GET_STATUS
Text Symbol: 000 = No requirements with status 'transferred' found
Text Symbol: 001 = No references for the following lines:
Text Symbol: 002 = Error in references to core objects:
Text Symbol: 003 = Control record:
Text Symbol: 009 = Error in RFC connection:
Text Symbol: 010 = Error during update, no changes made
Text Symbol: 011 = Update successful,
Text Symbol: 012 = Data records updated (table REQLINE)
Text Symbol: 013 = Data records created (table REQREF)
Text Symbol: 014 = These requirements were blocked during update by other users:
Text Symbol: 015 = On the basis of data, no changes possible
Text Symbol: 016 = The following RFC destinations were called:
Text Symbol: 017 = Error while writing in internal table, backend system not called
Text Symbol: 018 = RFC Destination:
Text Symbol: 019 = Call result:
Text Symbol: 020 = OK
Text Symbol: 021 = ...
Text Symbol: 022 = and
Text Symbol: 023 = No destination
Text Symbol: 024 = These references contain neither a destination nor a GUID, therefore cannot be assigned to a system, not even the local system
001 ma reqno reqlline count reftype refnumber refl refpackno refintrow refsyst refdest refs_no lt
INCLUDE BBPGETSTOP.
No SAP DATABASE tables are accessed within this REPORT code!
UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = value_in unit_in = unit_in unit_out = unit_out IMPORTING output = value_out EXCEPTIONS conversion_not_found = 1 division_by_zero = 2 input_invalid = 3 output_invalid = 4 overflow = 5 type_invalid = 6 units_missing = 7 unit_in_not_found = 8 unit_out_not_found = 9 OTHERS = 10.
CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datlo foreign_currency = i_req_line-currency local_amount = p_value local_currency = i_upd_line-currency_r3 IMPORTING foreign_amount = p_value EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.
BALW_BAPIRETURN_GET CALL FUNCTION 'BALW_BAPIRETURN_GET' EXPORTING type = errtype cl = 'BBP_BATCH' number = errnum par1 = p1 par2 = p2 par3 = p3 IMPORTING bapireturn = return EXCEPTIONS only_2_char_for_message_id = 1 OTHERS = 2.
META_STATUS_READ CALL FUNCTION 'META_STATUS_READ' EXPORTING logical_system = i_destinations-logical_system TABLES req_ref = i_func_req_ref upd_line = i_func_req_line upd_ref = i_upd_ref return = return control_record = cont_rec.
BBP_UPDATE_STATUS_REF_LINE_VB CALL FUNCTION 'BBP_UPDATE_STATUS_REF_LINE_VB' "IN UPDATE TASK TABLES req_line = i_upd_line[] req_ref = i_upd_ref[] EXCEPTIONS update_error = 1.
ENQUEUE_REQREQ CALL FUNCTION 'ENQUEUE_REQREQ' EXPORTING mode_reqhead = 'E' client = sy-mandt reqno = i_upd_line-reqno x_reqno = ' ' _scope = '2' _wait = ' ' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
DEQUEUE_REQREQ CALL FUNCTION 'DEQUEUE_REQREQ' EXPORTING mode_reqhead = 'E' client = sy-mandt reqno = i_upd_line-reqno x_reqno = ' ' _scope = '3' _synchron = ' ' _collect = ' '.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
BBP_GET_STATUS - Program BBP_GET_STATUS BBP_GET_STATUS - Program BBP_GET_STATUS BBP_GET_EXRATE - Update exchange rate tables in component system BBP_GET_EXRATE - Update exchange rate tables in component system BBP_GET_CURRENCY - Update currency tables in component system BBP_GET_CURRENCY - Update currency tables in component system