SAP Function Modules

BAPI_BL_RECEIVEDETAIL SAP Function module - IS-Oil SSR Business location detail data







BAPI_BL_RECEIVEDETAIL 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_BL_RECEIVEDETAIL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: OIRH_BL_BAPI
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_BL_RECEIVEDETAIL - BAPI BL RECEIVEDETAIL





CALL FUNCTION 'BAPI_BL_RECEIVEDETAIL' "IS-Oil SSR Business location detail data
  EXPORTING
    locationid =                " oif_pblnr     Business location identifier (IS-Oil MRN)
*   address =                   " bapiaddr1     BAPI Reference Structure for Addresses (Org./Company)
  IMPORTING
    return =                    " bapiret2      Return
* TABLES
*   businesstypedata =          " bapibuloc03   Business types and Convenience stores
*   openinghours =              " bapibuloc04   Opening hours
*   competitors =               " bapibuloc05   Competitor loctions
*   allocatedmaterials =        " bapibuloc06   Materials and Service types
*   acceptedpaymentcards =      " bapibuloc07   Accepted payment cards
*   communication_tel =         " bapiadtel     Telephone numbers
*   communication_fax =         " bapiadfax     Fax numbers
*   communication_tlx =         " bapiadtlx     Telex numbers
*   communication_ttx =         " bapiadttx     Teletext numbers
*   communication_x400 =        " bapiadx400     X.400 adresses
*   communication_smtp =        " bapiadsmtp    e-mail addresses
*   communication_rml =         " bapiadrml     R/Mail addresses
*   communication_rfc =         " bapiadrfc     RFC addresses
*   communication_prt =         " bapiadprt     PRT addresses
*   communication_ssf =         " bapiadssf     SSF addresses
*   communication_uri =         " bapiaduri     URI addresses
*   communication_pag =         " bapiadpag     Pager numbers
*   communication_rem =         " bapiad_rem    Address comments
*   communication_comrem =      " bapicomrem    Communication type comments
*   extensionout =              " bapiparex     Extension parameter for customer data
    .  "  BAPI_BL_RECEIVEDETAIL

ABAP code example for Function Module BAPI_BL_RECEIVEDETAIL





The ABAP code below is a full code listing to execute function module BAPI_BL_RECEIVEDETAIL 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_return  TYPE BAPIRET2 ,
it_businesstypedata  TYPE STANDARD TABLE OF BAPIBULOC03,"TABLES PARAM
wa_businesstypedata  LIKE LINE OF it_businesstypedata ,
it_openinghours  TYPE STANDARD TABLE OF BAPIBULOC04,"TABLES PARAM
wa_openinghours  LIKE LINE OF it_openinghours ,
it_competitors  TYPE STANDARD TABLE OF BAPIBULOC05,"TABLES PARAM
wa_competitors  LIKE LINE OF it_competitors ,
it_allocatedmaterials  TYPE STANDARD TABLE OF BAPIBULOC06,"TABLES PARAM
wa_allocatedmaterials  LIKE LINE OF it_allocatedmaterials ,
it_acceptedpaymentcards  TYPE STANDARD TABLE OF BAPIBULOC07,"TABLES PARAM
wa_acceptedpaymentcards  LIKE LINE OF it_acceptedpaymentcards ,
it_communication_tel  TYPE STANDARD TABLE OF BAPIADTEL,"TABLES PARAM
wa_communication_tel  LIKE LINE OF it_communication_tel ,
it_communication_fax  TYPE STANDARD TABLE OF BAPIADFAX,"TABLES PARAM
wa_communication_fax  LIKE LINE OF it_communication_fax ,
it_communication_tlx  TYPE STANDARD TABLE OF BAPIADTLX,"TABLES PARAM
wa_communication_tlx  LIKE LINE OF it_communication_tlx ,
it_communication_ttx  TYPE STANDARD TABLE OF BAPIADTTX,"TABLES PARAM
wa_communication_ttx  LIKE LINE OF it_communication_ttx ,
it_communication_x400  TYPE STANDARD TABLE OF BAPIADX400,"TABLES PARAM
wa_communication_x400  LIKE LINE OF it_communication_x400 ,
it_communication_smtp  TYPE STANDARD TABLE OF BAPIADSMTP,"TABLES PARAM
wa_communication_smtp  LIKE LINE OF it_communication_smtp ,
it_communication_rml  TYPE STANDARD TABLE OF BAPIADRML,"TABLES PARAM
wa_communication_rml  LIKE LINE OF it_communication_rml ,
it_communication_rfc  TYPE STANDARD TABLE OF BAPIADRFC,"TABLES PARAM
wa_communication_rfc  LIKE LINE OF it_communication_rfc ,
it_communication_prt  TYPE STANDARD TABLE OF BAPIADPRT,"TABLES PARAM
wa_communication_prt  LIKE LINE OF it_communication_prt ,
it_communication_ssf  TYPE STANDARD TABLE OF BAPIADSSF,"TABLES PARAM
wa_communication_ssf  LIKE LINE OF it_communication_ssf ,
it_communication_uri  TYPE STANDARD TABLE OF BAPIADURI,"TABLES PARAM
wa_communication_uri  LIKE LINE OF it_communication_uri ,
it_communication_pag  TYPE STANDARD TABLE OF BAPIADPAG,"TABLES PARAM
wa_communication_pag  LIKE LINE OF it_communication_pag ,
it_communication_rem  TYPE STANDARD TABLE OF BAPIAD_REM,"TABLES PARAM
wa_communication_rem  LIKE LINE OF it_communication_rem ,
it_communication_comrem  TYPE STANDARD TABLE OF BAPICOMREM,"TABLES PARAM
wa_communication_comrem  LIKE LINE OF it_communication_comrem ,
it_extensionout  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extensionout  LIKE LINE OF it_extensionout .

DATA(ld_locationid) = 'Check type of data required'.
DATA(ld_address) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_businesstypedata to it_businesstypedata.

"populate fields of struture and append to itab
append wa_openinghours to it_openinghours.

"populate fields of struture and append to itab
append wa_competitors to it_competitors.

"populate fields of struture and append to itab
append wa_allocatedmaterials to it_allocatedmaterials.

"populate fields of struture and append to itab
append wa_acceptedpaymentcards to it_acceptedpaymentcards.

"populate fields of struture and append to itab
append wa_communication_tel to it_communication_tel.

"populate fields of struture and append to itab
append wa_communication_fax to it_communication_fax.

"populate fields of struture and append to itab
append wa_communication_tlx to it_communication_tlx.

"populate fields of struture and append to itab
append wa_communication_ttx to it_communication_ttx.

"populate fields of struture and append to itab
append wa_communication_x400 to it_communication_x400.

"populate fields of struture and append to itab
append wa_communication_smtp to it_communication_smtp.

"populate fields of struture and append to itab
append wa_communication_rml to it_communication_rml.

"populate fields of struture and append to itab
append wa_communication_rfc to it_communication_rfc.

"populate fields of struture and append to itab
append wa_communication_prt to it_communication_prt.

"populate fields of struture and append to itab
append wa_communication_ssf to it_communication_ssf.

"populate fields of struture and append to itab
append wa_communication_uri to it_communication_uri.

"populate fields of struture and append to itab
append wa_communication_pag to it_communication_pag.

"populate fields of struture and append to itab
append wa_communication_rem to it_communication_rem.

"populate fields of struture and append to itab
append wa_communication_comrem to it_communication_comrem.

"populate fields of struture and append to itab
append wa_extensionout to it_extensionout. . CALL FUNCTION 'BAPI_BL_RECEIVEDETAIL' EXPORTING locationid = ld_locationid * address = ld_address IMPORTING return = ld_return * TABLES * businesstypedata = it_businesstypedata * openinghours = it_openinghours * competitors = it_competitors * allocatedmaterials = it_allocatedmaterials * acceptedpaymentcards = it_acceptedpaymentcards * communication_tel = it_communication_tel * communication_fax = it_communication_fax * communication_tlx = it_communication_tlx * communication_ttx = it_communication_ttx * communication_x400 = it_communication_x400 * communication_smtp = it_communication_smtp * communication_rml = it_communication_rml * communication_rfc = it_communication_rfc * communication_prt = it_communication_prt * communication_ssf = it_communication_ssf * communication_uri = it_communication_uri * communication_pag = it_communication_pag * communication_rem = it_communication_rem * communication_comrem = it_communication_comrem * extensionout = it_extensionout . " BAPI_BL_RECEIVEDETAIL
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_return  TYPE BAPIRET2 ,
ld_locationid  TYPE OIF_PBLNR ,
it_businesstypedata  TYPE STANDARD TABLE OF BAPIBULOC03 ,
wa_businesstypedata  LIKE LINE OF it_businesstypedata,
ld_address  TYPE BAPIADDR1 ,
it_openinghours  TYPE STANDARD TABLE OF BAPIBULOC04 ,
wa_openinghours  LIKE LINE OF it_openinghours,
it_competitors  TYPE STANDARD TABLE OF BAPIBULOC05 ,
wa_competitors  LIKE LINE OF it_competitors,
it_allocatedmaterials  TYPE STANDARD TABLE OF BAPIBULOC06 ,
wa_allocatedmaterials  LIKE LINE OF it_allocatedmaterials,
it_acceptedpaymentcards  TYPE STANDARD TABLE OF BAPIBULOC07 ,
wa_acceptedpaymentcards  LIKE LINE OF it_acceptedpaymentcards,
it_communication_tel  TYPE STANDARD TABLE OF BAPIADTEL ,
wa_communication_tel  LIKE LINE OF it_communication_tel,
it_communication_fax  TYPE STANDARD TABLE OF BAPIADFAX ,
wa_communication_fax  LIKE LINE OF it_communication_fax,
it_communication_tlx  TYPE STANDARD TABLE OF BAPIADTLX ,
wa_communication_tlx  LIKE LINE OF it_communication_tlx,
it_communication_ttx  TYPE STANDARD TABLE OF BAPIADTTX ,
wa_communication_ttx  LIKE LINE OF it_communication_ttx,
it_communication_x400  TYPE STANDARD TABLE OF BAPIADX400 ,
wa_communication_x400  LIKE LINE OF it_communication_x400,
it_communication_smtp  TYPE STANDARD TABLE OF BAPIADSMTP ,
wa_communication_smtp  LIKE LINE OF it_communication_smtp,
it_communication_rml  TYPE STANDARD TABLE OF BAPIADRML ,
wa_communication_rml  LIKE LINE OF it_communication_rml,
it_communication_rfc  TYPE STANDARD TABLE OF BAPIADRFC ,
wa_communication_rfc  LIKE LINE OF it_communication_rfc,
it_communication_prt  TYPE STANDARD TABLE OF BAPIADPRT ,
wa_communication_prt  LIKE LINE OF it_communication_prt,
it_communication_ssf  TYPE STANDARD TABLE OF BAPIADSSF ,
wa_communication_ssf  LIKE LINE OF it_communication_ssf,
it_communication_uri  TYPE STANDARD TABLE OF BAPIADURI ,
wa_communication_uri  LIKE LINE OF it_communication_uri,
it_communication_pag  TYPE STANDARD TABLE OF BAPIADPAG ,
wa_communication_pag  LIKE LINE OF it_communication_pag,
it_communication_rem  TYPE STANDARD TABLE OF BAPIAD_REM ,
wa_communication_rem  LIKE LINE OF it_communication_rem,
it_communication_comrem  TYPE STANDARD TABLE OF BAPICOMREM ,
wa_communication_comrem  LIKE LINE OF it_communication_comrem,
it_extensionout  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extensionout  LIKE LINE OF it_extensionout.

ld_locationid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_businesstypedata to it_businesstypedata.
ld_address = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_openinghours to it_openinghours.

"populate fields of struture and append to itab
append wa_competitors to it_competitors.

"populate fields of struture and append to itab
append wa_allocatedmaterials to it_allocatedmaterials.

"populate fields of struture and append to itab
append wa_acceptedpaymentcards to it_acceptedpaymentcards.

"populate fields of struture and append to itab
append wa_communication_tel to it_communication_tel.

"populate fields of struture and append to itab
append wa_communication_fax to it_communication_fax.

"populate fields of struture and append to itab
append wa_communication_tlx to it_communication_tlx.

"populate fields of struture and append to itab
append wa_communication_ttx to it_communication_ttx.

"populate fields of struture and append to itab
append wa_communication_x400 to it_communication_x400.

"populate fields of struture and append to itab
append wa_communication_smtp to it_communication_smtp.

"populate fields of struture and append to itab
append wa_communication_rml to it_communication_rml.

"populate fields of struture and append to itab
append wa_communication_rfc to it_communication_rfc.

"populate fields of struture and append to itab
append wa_communication_prt to it_communication_prt.

"populate fields of struture and append to itab
append wa_communication_ssf to it_communication_ssf.

"populate fields of struture and append to itab
append wa_communication_uri to it_communication_uri.

"populate fields of struture and append to itab
append wa_communication_pag to it_communication_pag.

"populate fields of struture and append to itab
append wa_communication_rem to it_communication_rem.

"populate fields of struture and append to itab
append wa_communication_comrem to it_communication_comrem.

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

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