SAP Function Modules

BAPI_BROKERREP_GETDETAIL SAP Function module - Reading Broker Report Information







BAPI_BROKERREP_GETDETAIL is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BAPI_BROKERREP_GETDETAIL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: IBRBAPI
Released Date: 21.08.2007
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_BROKERREP_GETDETAIL - BAPI BROKERREP GETDETAIL





CALL FUNCTION 'BAPI_BROKERREP_GETDETAIL' "Reading Broker Report Information
  EXPORTING
    reportid =                  " bapibrokrepheader-report  Broker Report Identification
*   no_auth_check =             " bapibrokrepctrl-no_auth_check  Do Not Execute Authorization Checks for User Data
  IMPORTING
    brokerreportheader =        " bapibrokrepheader_detail  Broker Report - BAPI Structure Broker Report Header
* TABLES
*   brokerreportdefault =       " bapibrokrepdefault_detail  Broker Report - BAPI Structure Proposal Data
*   brokerreportitem =          " bapibrokrepitem_detail  Broker Report: BAPI Structure Item Data
*   brokerreportselitem =       " bapibrokrepselitem  Broker Report: BAPI Structure Selected Open Items
*   brokerreportitemdoc =       " bapibrokrepitem_docs  Broker Report: BAPI Structure for Additional Documents
*   brokerreportclarcases =     " bapibrokrepclarcases  Broker Report: BAPI Structure Clarification Cases
*   extensionin =               " bapiparex     Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
*   extensionout =              " bapiparex     Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
*   return =                    " bapiret2      Return Parameters
    .  "  BAPI_BROKERREP_GETDETAIL

ABAP code example for Function Module BAPI_BROKERREP_GETDETAIL





The ABAP code below is a full code listing to execute function module BAPI_BROKERREP_GETDETAIL including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_brokerreportheader  TYPE BAPIBROKREPHEADER_DETAIL ,
it_brokerreportdefault  TYPE STANDARD TABLE OF BAPIBROKREPDEFAULT_DETAIL,"TABLES PARAM
wa_brokerreportdefault  LIKE LINE OF it_brokerreportdefault ,
it_brokerreportitem  TYPE STANDARD TABLE OF BAPIBROKREPITEM_DETAIL,"TABLES PARAM
wa_brokerreportitem  LIKE LINE OF it_brokerreportitem ,
it_brokerreportselitem  TYPE STANDARD TABLE OF BAPIBROKREPSELITEM,"TABLES PARAM
wa_brokerreportselitem  LIKE LINE OF it_brokerreportselitem ,
it_brokerreportitemdoc  TYPE STANDARD TABLE OF BAPIBROKREPITEM_DOCS,"TABLES PARAM
wa_brokerreportitemdoc  LIKE LINE OF it_brokerreportitemdoc ,
it_brokerreportclarcases  TYPE STANDARD TABLE OF BAPIBROKREPCLARCASES,"TABLES PARAM
wa_brokerreportclarcases  LIKE LINE OF it_brokerreportclarcases ,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extensionin  LIKE LINE OF it_extensionin ,
it_extensionout  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extensionout  LIKE LINE OF it_extensionout ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


DATA(ld_reportid) = some text here

DATA(ld_no_auth_check) = some text here

"populate fields of struture and append to itab
append wa_brokerreportdefault to it_brokerreportdefault.

"populate fields of struture and append to itab
append wa_brokerreportitem to it_brokerreportitem.

"populate fields of struture and append to itab
append wa_brokerreportselitem to it_brokerreportselitem.

"populate fields of struture and append to itab
append wa_brokerreportitemdoc to it_brokerreportitemdoc.

"populate fields of struture and append to itab
append wa_brokerreportclarcases to it_brokerreportclarcases.

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin.

"populate fields of struture and append to itab
append wa_extensionout to it_extensionout.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'BAPI_BROKERREP_GETDETAIL' EXPORTING reportid = ld_reportid * no_auth_check = ld_no_auth_check IMPORTING brokerreportheader = ld_brokerreportheader * TABLES * brokerreportdefault = it_brokerreportdefault * brokerreportitem = it_brokerreportitem * brokerreportselitem = it_brokerreportselitem * brokerreportitemdoc = it_brokerreportitemdoc * brokerreportclarcases = it_brokerreportclarcases * extensionin = it_extensionin * extensionout = it_extensionout * return = it_return . " BAPI_BROKERREP_GETDETAIL
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_brokerreportheader  TYPE BAPIBROKREPHEADER_DETAIL ,
ld_reportid  TYPE BAPIBROKREPHEADER-REPORT ,
it_brokerreportdefault  TYPE STANDARD TABLE OF BAPIBROKREPDEFAULT_DETAIL ,
wa_brokerreportdefault  LIKE LINE OF it_brokerreportdefault,
ld_no_auth_check  TYPE BAPIBROKREPCTRL-NO_AUTH_CHECK ,
it_brokerreportitem  TYPE STANDARD TABLE OF BAPIBROKREPITEM_DETAIL ,
wa_brokerreportitem  LIKE LINE OF it_brokerreportitem,
it_brokerreportselitem  TYPE STANDARD TABLE OF BAPIBROKREPSELITEM ,
wa_brokerreportselitem  LIKE LINE OF it_brokerreportselitem,
it_brokerreportitemdoc  TYPE STANDARD TABLE OF BAPIBROKREPITEM_DOCS ,
wa_brokerreportitemdoc  LIKE LINE OF it_brokerreportitemdoc,
it_brokerreportclarcases  TYPE STANDARD TABLE OF BAPIBROKREPCLARCASES ,
wa_brokerreportclarcases  LIKE LINE OF it_brokerreportclarcases,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extensionin  LIKE LINE OF it_extensionin,
it_extensionout  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extensionout  LIKE LINE OF it_extensionout,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return.


ld_reportid = some text here

"populate fields of struture and append to itab
append wa_brokerreportdefault to it_brokerreportdefault.

ld_no_auth_check = some text here

"populate fields of struture and append to itab
append wa_brokerreportitem to it_brokerreportitem.

"populate fields of struture and append to itab
append wa_brokerreportselitem to it_brokerreportselitem.

"populate fields of struture and append to itab
append wa_brokerreportitemdoc to it_brokerreportitemdoc.

"populate fields of struture and append to itab
append wa_brokerreportclarcases to it_brokerreportclarcases.

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin.

"populate fields of struture and append to itab
append wa_extensionout to it_extensionout.

"populate fields of struture and append to itab
append wa_return to it_return.

SAP Documentation for FM BAPI_BROKERREP_GETDETAIL


The method delivers all data for a broker report:

  • Header data in the BROKERREPORTHEADER parameter ...See here for full SAP fm documentation

  • Contribute (Add Comments)

    Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_BROKERREP_GETDETAIL or its description.