SAP ALE_INB_DELIVERY_SAVEREPLICA Function Module for BAPI -> IDoc: ALE_INB_DELIVERY_SAVEREPLICA









ALE_INB_DELIVERY_SAVEREPLICA is a standard ale inb delivery savereplica SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI -> IDoc: ALE_INB_DELIVERY_SAVEREPLICA processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for ale inb delivery savereplica FM, simply by entering the name ALE_INB_DELIVERY_SAVEREPLICA into the relevant SAP transaction such as SE37 or SE38.

Function Group: V50I
Program Name: SAPLV50I
Main Program: SAPLV50I
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ALE_INB_DELIVERY_SAVEREPLICA pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'ALE_INB_DELIVERY_SAVEREPLICA'"BAPI -> IDoc: ALE_INB_DELIVERY_SAVEREPLICA
EXPORTING
HEADERDATA = "
* HEADERORG = "
SENDERSYSTEM = "
* TECHNCONTROL = "
* OBJ_TYPE = 'BUS2015' "
* SERIAL_ID = '0' "

TABLES
HEADERPARTNER = "
* TEXTHEADER = "
* TEXTLINES = "
* HANDLINGUNITHEADER = "
* HANDLINGUNITITEM = "
* HANDLINGUNITSERNO = "
* EXTENSION1 = "Data Container (Unstructured)
* EXTENSION2 = "Data Container (Structured)
* TOKENREFERENCE = "Reference for CSL Token (CSL_TR_EXS)
* ITEMPROCESSDATA = "
RECEIVERS = "
* HEADERPARTNERADDR = "
* COMMUNICATION_DOCUMENTS = "
* APPLICATION_OBJECTS = "
HEADERDEADLINES = "
ITEMDATA = "
ITEMORG = "
* ITEMSTOCKTRANS = "
* ITEMCODINGBLOCK = "
* ITEMREFPURCHASEORDER = "
* ITEMSERIALNO = "

EXCEPTIONS
ERROR_CREATING_IDOCS = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLV50I_001 User Exit BAPI Inbound Delivery Replication
EXIT_SAPLV50I_002 User Exit BAPI Inbound Delivery Confirmation
EXIT_SAPLV50I_003 User Exit BAPI Outbound Delivery Replication
EXIT_SAPLV50I_004 User Exit BAPI Outbound Delivery Confirmation
EXIT_SAPLV50I_009 User Exit BAPI for Changing Inbound Deliveries
EXIT_SAPLV50I_010 User Exit BAPI for Changing Outbound Deliveries

IMPORTING Parameters details for ALE_INB_DELIVERY_SAVEREPLICA

HEADERDATA -

Data type: BAPIIBDLVHDR
Optional: No
Call by Reference: No ( called with pass by value option)

HEADERORG -

Data type: BAPIIBDLVHDRORG
Optional: Yes
Call by Reference: No ( called with pass by value option)

SENDERSYSTEM -

Data type: TBDLS-LOGSYS
Optional: No
Call by Reference: No ( called with pass by value option)

TECHNCONTROL -

Data type: BAPIDLVCONTROL
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJ_TYPE -

Data type: SERIAL-OBJ_TYPE
Default: 'BUS2015'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SERIAL_ID -

Data type: SERIAL-CHNUM
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ALE_INB_DELIVERY_SAVEREPLICA

HEADERPARTNER -

Data type: BAPIDLVPARTNER
Optional: No
Call by Reference: No ( called with pass by value option)

TEXTHEADER -

Data type: BAPIDLVTXTHDR
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEXTLINES -

Data type: BAPIDLVTXTITEM
Optional: Yes
Call by Reference: No ( called with pass by value option)

HANDLINGUNITHEADER -

Data type: BAPIDLVHDUNHDR
Optional: Yes
Call by Reference: No ( called with pass by value option)

HANDLINGUNITITEM -

Data type: BAPIDLVHDUNITM
Optional: Yes
Call by Reference: No ( called with pass by value option)

HANDLINGUNITSERNO -

Data type: BAPIDLVHDUNSERNO
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXTENSION1 - Data Container (Unstructured)

Data type: BAPIEXTC
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXTENSION2 - Data Container (Structured)

Data type: BAPIEXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TOKENREFERENCE - Reference for CSL Token (CSL_TR_EXS)

Data type: BAPITOKENREFERENCE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ITEMPROCESSDATA -

Data type: BAPIIBDLVITEMWMD
Optional: Yes
Call by Reference: No ( called with pass by value option)

RECEIVERS -

Data type: BDI_LOGSYS
Optional: No
Call by Reference: No ( called with pass by value option)

HEADERPARTNERADDR -

Data type: BAPIADDR1
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMMUNICATION_DOCUMENTS -

Data type: SWOTOBJID
Optional: Yes
Call by Reference: No ( called with pass by value option)

APPLICATION_OBJECTS -

Data type: SWOTOBJID
Optional: Yes
Call by Reference: No ( called with pass by value option)

HEADERDEADLINES -

Data type: BAPIDLVDEADLN
Optional: No
Call by Reference: No ( called with pass by value option)

ITEMDATA -

Data type: BAPIIBDLVITEM
Optional: No
Call by Reference: No ( called with pass by value option)

ITEMORG -

Data type: BAPIIBDLVITEMORG
Optional: No
Call by Reference: No ( called with pass by value option)

ITEMSTOCKTRANS -

Data type: BAPIDLVITEMSTTR
Optional: Yes
Call by Reference: No ( called with pass by value option)

ITEMCODINGBLOCK -

Data type: BAPIDLVCOBLITEM
Optional: Yes
Call by Reference: No ( called with pass by value option)

ITEMREFPURCHASEORDER -

Data type: BAPIDLVITEMRPO
Optional: Yes
Call by Reference: No ( called with pass by value option)

ITEMSERIALNO -

Data type: BAPIDLVITMSERNO
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERROR_CREATING_IDOCS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ALE_INB_DELIVERY_SAVEREPLICA Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_headerdata  TYPE BAPIIBDLVHDR, "   
lt_headerpartner  TYPE STANDARD TABLE OF BAPIDLVPARTNER, "   
lv_error_creating_idocs  TYPE BAPIDLVPARTNER, "   
lt_textheader  TYPE STANDARD TABLE OF BAPIDLVTXTHDR, "   
lt_textlines  TYPE STANDARD TABLE OF BAPIDLVTXTITEM, "   
lt_handlingunitheader  TYPE STANDARD TABLE OF BAPIDLVHDUNHDR, "   
lt_handlingunititem  TYPE STANDARD TABLE OF BAPIDLVHDUNITM, "   
lt_handlingunitserno  TYPE STANDARD TABLE OF BAPIDLVHDUNSERNO, "   
lt_extension1  TYPE STANDARD TABLE OF BAPIEXTC, "   
lt_extension2  TYPE STANDARD TABLE OF BAPIEXT, "   
lt_tokenreference  TYPE STANDARD TABLE OF BAPITOKENREFERENCE, "   
lt_itemprocessdata  TYPE STANDARD TABLE OF BAPIIBDLVITEMWMD, "   
lt_receivers  TYPE STANDARD TABLE OF BDI_LOGSYS, "   
lv_headerorg  TYPE BAPIIBDLVHDRORG, "   
lt_headerpartneraddr  TYPE STANDARD TABLE OF BAPIADDR1, "   
lt_communication_documents  TYPE STANDARD TABLE OF SWOTOBJID, "   
lt_application_objects  TYPE STANDARD TABLE OF SWOTOBJID, "   
lv_sendersystem  TYPE TBDLS-LOGSYS, "   
lt_headerdeadlines  TYPE STANDARD TABLE OF BAPIDLVDEADLN, "   
lt_itemdata  TYPE STANDARD TABLE OF BAPIIBDLVITEM, "   
lv_techncontrol  TYPE BAPIDLVCONTROL, "   
lt_itemorg  TYPE STANDARD TABLE OF BAPIIBDLVITEMORG, "   
lv_obj_type  TYPE SERIAL-OBJ_TYPE, "   'BUS2015'
lv_serial_id  TYPE SERIAL-CHNUM, "   '0'
lt_itemstocktrans  TYPE STANDARD TABLE OF BAPIDLVITEMSTTR, "   
lt_itemcodingblock  TYPE STANDARD TABLE OF BAPIDLVCOBLITEM, "   
lt_itemrefpurchaseorder  TYPE STANDARD TABLE OF BAPIDLVITEMRPO, "   
lt_itemserialno  TYPE STANDARD TABLE OF BAPIDLVITMSERNO. "   

  CALL FUNCTION 'ALE_INB_DELIVERY_SAVEREPLICA'  "BAPI -> IDoc: ALE_INB_DELIVERY_SAVEREPLICA
    EXPORTING
         HEADERDATA = lv_headerdata
         HEADERORG = lv_headerorg
         SENDERSYSTEM = lv_sendersystem
         TECHNCONTROL = lv_techncontrol
         OBJ_TYPE = lv_obj_type
         SERIAL_ID = lv_serial_id
    TABLES
         HEADERPARTNER = lt_headerpartner
         TEXTHEADER = lt_textheader
         TEXTLINES = lt_textlines
         HANDLINGUNITHEADER = lt_handlingunitheader
         HANDLINGUNITITEM = lt_handlingunititem
         HANDLINGUNITSERNO = lt_handlingunitserno
         EXTENSION1 = lt_extension1
         EXTENSION2 = lt_extension2
         TOKENREFERENCE = lt_tokenreference
         ITEMPROCESSDATA = lt_itemprocessdata
         RECEIVERS = lt_receivers
         HEADERPARTNERADDR = lt_headerpartneraddr
         COMMUNICATION_DOCUMENTS = lt_communication_documents
         APPLICATION_OBJECTS = lt_application_objects
         HEADERDEADLINES = lt_headerdeadlines
         ITEMDATA = lt_itemdata
         ITEMORG = lt_itemorg
         ITEMSTOCKTRANS = lt_itemstocktrans
         ITEMCODINGBLOCK = lt_itemcodingblock
         ITEMREFPURCHASEORDER = lt_itemrefpurchaseorder
         ITEMSERIALNO = lt_itemserialno
    EXCEPTIONS
        ERROR_CREATING_IDOCS = 1
. " ALE_INB_DELIVERY_SAVEREPLICA




ABAP code using 7.40 inline data declarations to call FM ALE_INB_DELIVERY_SAVEREPLICA

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single LOGSYS FROM TBDLS INTO @DATA(ld_sendersystem).
 
 
 
 
 
"SELECT single OBJ_TYPE FROM SERIAL INTO @DATA(ld_obj_type).
DATA(ld_obj_type) = 'BUS2015'.
 
"SELECT single CHNUM FROM SERIAL INTO @DATA(ld_serial_id).
DATA(ld_serial_id) = '0'.
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!