SAP Function Modules

ALE_BL_RECEIVEDETAIL SAP Function module - BAPI -> IDoc: ALE_BL_RECEIVEDETAIL







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

Associated Function Group: OIRH_BL_BAPI
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ALE_BL_RECEIVEDETAIL - ALE BL RECEIVEDETAIL





CALL FUNCTION 'ALE_BL_RECEIVEDETAIL' "BAPI -> IDoc: ALE_BL_RECEIVEDETAIL
  EXPORTING
    locationid =                " oifspbl-pblnr  Business location identifier (IS-Oil MRN)
*   address =                   " bapiaddr1     BAPI Reference Structure for Addresses (Org./Company)
*   serial_id = '0'             " serial-chnum
  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
*   communicationtel =          " bapiadtel
*   communicationfax =          " bapiadfax
*   communicationtlx =          " bapiadtlx
*   communicationttx =          " bapiadttx
*   communicationx400 =         " bapiadx400
*   communicationsmtp =         " bapiadsmtp
*   communicationrml =          " bapiadrml
*   communicationrfc =          " bapiadrfc
*   communicationprt =          " bapiadprt
*   communicationssf =          " bapiadssf
*   communicationuri =          " bapiaduri
*   communicationpag =          " bapiadpag
*   communicationrem =          " bapiad_rem
*   communicationcomrem =       " bapicomrem
*   extensionout =              " bapiparex     Extension parameter for customer data
    receivers =                 " bdi_logsys
*   communication_documents =   " swotobjid
*   application_objects =       " swotobjid
  EXCEPTIONS
    ERROR_CREATING_IDOCS = 1    "
    .  "  ALE_BL_RECEIVEDETAIL

ABAP code example for Function Module ALE_BL_RECEIVEDETAIL





The ABAP code below is a full code listing to execute function module ALE_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:
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_communicationtel  TYPE STANDARD TABLE OF BAPIADTEL,"TABLES PARAM
wa_communicationtel  LIKE LINE OF it_communicationtel ,
it_communicationfax  TYPE STANDARD TABLE OF BAPIADFAX,"TABLES PARAM
wa_communicationfax  LIKE LINE OF it_communicationfax ,
it_communicationtlx  TYPE STANDARD TABLE OF BAPIADTLX,"TABLES PARAM
wa_communicationtlx  LIKE LINE OF it_communicationtlx ,
it_communicationttx  TYPE STANDARD TABLE OF BAPIADTTX,"TABLES PARAM
wa_communicationttx  LIKE LINE OF it_communicationttx ,
it_communicationx400  TYPE STANDARD TABLE OF BAPIADX400,"TABLES PARAM
wa_communicationx400  LIKE LINE OF it_communicationx400 ,
it_communicationsmtp  TYPE STANDARD TABLE OF BAPIADSMTP,"TABLES PARAM
wa_communicationsmtp  LIKE LINE OF it_communicationsmtp ,
it_communicationrml  TYPE STANDARD TABLE OF BAPIADRML,"TABLES PARAM
wa_communicationrml  LIKE LINE OF it_communicationrml ,
it_communicationrfc  TYPE STANDARD TABLE OF BAPIADRFC,"TABLES PARAM
wa_communicationrfc  LIKE LINE OF it_communicationrfc ,
it_communicationprt  TYPE STANDARD TABLE OF BAPIADPRT,"TABLES PARAM
wa_communicationprt  LIKE LINE OF it_communicationprt ,
it_communicationssf  TYPE STANDARD TABLE OF BAPIADSSF,"TABLES PARAM
wa_communicationssf  LIKE LINE OF it_communicationssf ,
it_communicationuri  TYPE STANDARD TABLE OF BAPIADURI,"TABLES PARAM
wa_communicationuri  LIKE LINE OF it_communicationuri ,
it_communicationpag  TYPE STANDARD TABLE OF BAPIADPAG,"TABLES PARAM
wa_communicationpag  LIKE LINE OF it_communicationpag ,
it_communicationrem  TYPE STANDARD TABLE OF BAPIAD_REM,"TABLES PARAM
wa_communicationrem  LIKE LINE OF it_communicationrem ,
it_communicationcomrem  TYPE STANDARD TABLE OF BAPICOMREM,"TABLES PARAM
wa_communicationcomrem  LIKE LINE OF it_communicationcomrem ,
it_extensionout  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extensionout  LIKE LINE OF it_extensionout ,
it_receivers  TYPE STANDARD TABLE OF BDI_LOGSYS,"TABLES PARAM
wa_receivers  LIKE LINE OF it_receivers ,
it_communication_documents  TYPE STANDARD TABLE OF SWOTOBJID,"TABLES PARAM
wa_communication_documents  LIKE LINE OF it_communication_documents ,
it_application_objects  TYPE STANDARD TABLE OF SWOTOBJID,"TABLES PARAM
wa_application_objects  LIKE LINE OF it_application_objects .


SELECT single PBLNR
FROM OIFSPBL
INTO @DATA(ld_locationid).

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

DATA(ld_serial_id) = 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_communicationtel to it_communicationtel.

"populate fields of struture and append to itab
append wa_communicationfax to it_communicationfax.

"populate fields of struture and append to itab
append wa_communicationtlx to it_communicationtlx.

"populate fields of struture and append to itab
append wa_communicationttx to it_communicationttx.

"populate fields of struture and append to itab
append wa_communicationx400 to it_communicationx400.

"populate fields of struture and append to itab
append wa_communicationsmtp to it_communicationsmtp.

"populate fields of struture and append to itab
append wa_communicationrml to it_communicationrml.

"populate fields of struture and append to itab
append wa_communicationrfc to it_communicationrfc.

"populate fields of struture and append to itab
append wa_communicationprt to it_communicationprt.

"populate fields of struture and append to itab
append wa_communicationssf to it_communicationssf.

"populate fields of struture and append to itab
append wa_communicationuri to it_communicationuri.

"populate fields of struture and append to itab
append wa_communicationpag to it_communicationpag.

"populate fields of struture and append to itab
append wa_communicationrem to it_communicationrem.

"populate fields of struture and append to itab
append wa_communicationcomrem to it_communicationcomrem.

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

"populate fields of struture and append to itab
append wa_receivers to it_receivers.

"populate fields of struture and append to itab
append wa_communication_documents to it_communication_documents.

"populate fields of struture and append to itab
append wa_application_objects to it_application_objects. . CALL FUNCTION 'ALE_BL_RECEIVEDETAIL' EXPORTING locationid = ld_locationid * address = ld_address * serial_id = ld_serial_id TABLES * businesstypedata = it_businesstypedata * openinghours = it_openinghours * competitors = it_competitors * allocatedmaterials = it_allocatedmaterials * acceptedpaymentcards = it_acceptedpaymentcards * communicationtel = it_communicationtel * communicationfax = it_communicationfax * communicationtlx = it_communicationtlx * communicationttx = it_communicationttx * communicationx400 = it_communicationx400 * communicationsmtp = it_communicationsmtp * communicationrml = it_communicationrml * communicationrfc = it_communicationrfc * communicationprt = it_communicationprt * communicationssf = it_communicationssf * communicationuri = it_communicationuri * communicationpag = it_communicationpag * communicationrem = it_communicationrem * communicationcomrem = it_communicationcomrem * extensionout = it_extensionout receivers = it_receivers * communication_documents = it_communication_documents * application_objects = it_application_objects EXCEPTIONS ERROR_CREATING_IDOCS = 1 . " ALE_BL_RECEIVEDETAIL
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_locationid  TYPE OIFSPBL-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,
ld_serial_id  TYPE SERIAL-CHNUM ,
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_communicationtel  TYPE STANDARD TABLE OF BAPIADTEL ,
wa_communicationtel  LIKE LINE OF it_communicationtel,
it_communicationfax  TYPE STANDARD TABLE OF BAPIADFAX ,
wa_communicationfax  LIKE LINE OF it_communicationfax,
it_communicationtlx  TYPE STANDARD TABLE OF BAPIADTLX ,
wa_communicationtlx  LIKE LINE OF it_communicationtlx,
it_communicationttx  TYPE STANDARD TABLE OF BAPIADTTX ,
wa_communicationttx  LIKE LINE OF it_communicationttx,
it_communicationx400  TYPE STANDARD TABLE OF BAPIADX400 ,
wa_communicationx400  LIKE LINE OF it_communicationx400,
it_communicationsmtp  TYPE STANDARD TABLE OF BAPIADSMTP ,
wa_communicationsmtp  LIKE LINE OF it_communicationsmtp,
it_communicationrml  TYPE STANDARD TABLE OF BAPIADRML ,
wa_communicationrml  LIKE LINE OF it_communicationrml,
it_communicationrfc  TYPE STANDARD TABLE OF BAPIADRFC ,
wa_communicationrfc  LIKE LINE OF it_communicationrfc,
it_communicationprt  TYPE STANDARD TABLE OF BAPIADPRT ,
wa_communicationprt  LIKE LINE OF it_communicationprt,
it_communicationssf  TYPE STANDARD TABLE OF BAPIADSSF ,
wa_communicationssf  LIKE LINE OF it_communicationssf,
it_communicationuri  TYPE STANDARD TABLE OF BAPIADURI ,
wa_communicationuri  LIKE LINE OF it_communicationuri,
it_communicationpag  TYPE STANDARD TABLE OF BAPIADPAG ,
wa_communicationpag  LIKE LINE OF it_communicationpag,
it_communicationrem  TYPE STANDARD TABLE OF BAPIAD_REM ,
wa_communicationrem  LIKE LINE OF it_communicationrem,
it_communicationcomrem  TYPE STANDARD TABLE OF BAPICOMREM ,
wa_communicationcomrem  LIKE LINE OF it_communicationcomrem,
it_extensionout  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extensionout  LIKE LINE OF it_extensionout,
it_receivers  TYPE STANDARD TABLE OF BDI_LOGSYS ,
wa_receivers  LIKE LINE OF it_receivers,
it_communication_documents  TYPE STANDARD TABLE OF SWOTOBJID ,
wa_communication_documents  LIKE LINE OF it_communication_documents,
it_application_objects  TYPE STANDARD TABLE OF SWOTOBJID ,
wa_application_objects  LIKE LINE OF it_application_objects.


SELECT single PBLNR
FROM OIFSPBL
INTO ld_locationid.


"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.

ld_serial_id = Check type of data required

"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_communicationtel to it_communicationtel.

"populate fields of struture and append to itab
append wa_communicationfax to it_communicationfax.

"populate fields of struture and append to itab
append wa_communicationtlx to it_communicationtlx.

"populate fields of struture and append to itab
append wa_communicationttx to it_communicationttx.

"populate fields of struture and append to itab
append wa_communicationx400 to it_communicationx400.

"populate fields of struture and append to itab
append wa_communicationsmtp to it_communicationsmtp.

"populate fields of struture and append to itab
append wa_communicationrml to it_communicationrml.

"populate fields of struture and append to itab
append wa_communicationrfc to it_communicationrfc.

"populate fields of struture and append to itab
append wa_communicationprt to it_communicationprt.

"populate fields of struture and append to itab
append wa_communicationssf to it_communicationssf.

"populate fields of struture and append to itab
append wa_communicationuri to it_communicationuri.

"populate fields of struture and append to itab
append wa_communicationpag to it_communicationpag.

"populate fields of struture and append to itab
append wa_communicationrem to it_communicationrem.

"populate fields of struture and append to itab
append wa_communicationcomrem to it_communicationcomrem.

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

"populate fields of struture and append to itab
append wa_receivers to it_receivers.

"populate fields of struture and append to itab
append wa_communication_documents to it_communication_documents.

"populate fields of struture and append to itab
append wa_application_objects to it_application_objects.

SAP Documentation for FM ALE_BL_RECEIVEDETAIL


This function model was generated from the object IF0031 and met RECEIVEDETAIL for the BAPI call via ALE. ...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 ALE_BL_RECEIVEDETAIL or its description.