SAP Program IBRO_STMTRANSF0 - Broker report transfer program

Description
This report transfers broker report data and creates one or morebroker reports.
The following steps are executed:

  • It reads the specified application server file and checks the data
  • contained therein
    • It creates one or more broker reports, as long as the data records are
    • correct
      • It closes and posts the created broker report, as long as the
      • appropriate indicators are set
        • Data records that contain errors are saved separately and can be
        • transferred, after they have been corrected

          Output
          The report outputs the following data in a log:

          • Number of data records (broker report items ) that contain errors, their
          • number and line in the application server file
            • List of created broker reports and their status

            • You can choose an expanded log.

              Precondition
              The broker report data is transferred from the report from anapplication server file. Take note of the following for this file:

              • All fields must be in character format

              • Every line can contain just one structure

              • The report expects the following for each file (take note of thesequence):
                • One file header record (IBROSTMSTRT_EXT structure)

                • One broker report header (IBROSTMH_EXT or ZBROSTMH_EXT structure)

                • Up to 4 default values for broker report items (IBROSTMDFLT_EXT or
                • ZBROSTMDFLT_EXT structure)
                  • A user-defined number of items from the IBROSTMP_EXT or ZBROSTMP_EXT
                  • structures
                    You can include data for as many broker reports as you want in a file.You must guarantee that the broker report header is always specifiedfirst, and then the associated broker report items.
                    You can use the ZBRO structures to transfer data structures smaller thanthe standard structures. Every ZBRO structure can only contain onepartial amount of the fields for the corresponding IBRO structure.

                    What_to_do
                    Analyze the structures specified in the section entitled'Prerequisites'. Determine what required data is contained in yourbroker reports, and what data you need to expand.
                    Write a program that extracts your broker reports, enriched with SAP-
                    specific data where appropriate, and exports it in a sequentialapplication server file. Take note of the remarks on the data structuredescribed in the section entitled 'Prerequisites'.
                    Call up the report for transferring broker report data(IBRO_STMTRANSF0). Fill the required fields and mark the "
                    Process file" field, to transfer the data fromthe application server file to Collections/Disbursements.
                    RESET N1
                    If the report has found data records that contain errors (see log),proceed as follows:
                    Execute the report for error processing (IBRO_STMTRANSF_FA) and correctthe data records that contain errors. Executefunction
                    Call up the report for transferring the broker report again(IBRO_STMTRANSF0). Fill the required fields and mark theProcess errors field to add the corrected datarecords to the appropriate broker report.
                    If the report is interrupted, you can continue processing by selectingthe Process file after interruption field for thereport run. The report continues processing at the last processed datarecord.

                    Hint
                    You can check and convert the data to be transferred by using thefunction modules that you write. The event V560 (expanding/checking anitem) is available for this. You can find further information in theContract Accounts Receivable and Payable IMG under:Program Enhancements.