SAP Function Modules

ALE_OUTB_DELIVERY_CREATENOREF SAP Function module







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

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


Pattern for FM ALE_OUTB_DELIVERY_CREATENOREF - ALE OUTB DELIVERY CREATENOREF





CALL FUNCTION 'ALE_OUTB_DELIVERY_CREATENOREF' "
  EXPORTING
    shippoint =                 " bapidlvcreateheader-ship_point
    dlvtype =                   " bapidlvcreateheader-dlv_type
    salesorg =                  " bapidlvcreateheader-salesorg  Sales Organization
    distrchan =                 " bapidlvcreateheader-distr_chan
    division =                  " bapidlvcreateheader-division  Division
    shipto =                    " bapidlvcreateheader-ship_to
*   dateusage =                 " bapidlvcreateheader-date_usage
*   debugflg =                  " bapidlvcontrol-debug_flg
*   obj_type = 'LIKP'           " serial-obj_type
*   serial_id = '0'             " serial-chnum
  TABLES
    dates =                     " bapidlvdeadln  Delivery Deadlines
    dlvitems =                  " bapidlvnorefitem
*   serialnumbers =             " bapidlvserialnumber
*   extensionin =               " bapiparex
*   deliveries =                " bapishpdelivnumb  Delivery Number
*   createditems =              " bapidlvitemcreated
    receivers =                 " bdi_logsys
*   communication_documents =   " swotobjid
*   application_objects =       " swotobjid
  EXCEPTIONS
    ERROR_CREATING_IDOCS = 1    "
    .  "  ALE_OUTB_DELIVERY_CREATENOREF

ABAP code example for Function Module ALE_OUTB_DELIVERY_CREATENOREF





The ABAP code below is a full code listing to execute function module ALE_OUTB_DELIVERY_CREATENOREF 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_dates  TYPE STANDARD TABLE OF BAPIDLVDEADLN,"TABLES PARAM
wa_dates  LIKE LINE OF it_dates ,
it_dlvitems  TYPE STANDARD TABLE OF BAPIDLVNOREFITEM,"TABLES PARAM
wa_dlvitems  LIKE LINE OF it_dlvitems ,
it_serialnumbers  TYPE STANDARD TABLE OF BAPIDLVSERIALNUMBER,"TABLES PARAM
wa_serialnumbers  LIKE LINE OF it_serialnumbers ,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extensionin  LIKE LINE OF it_extensionin ,
it_deliveries  TYPE STANDARD TABLE OF BAPISHPDELIVNUMB,"TABLES PARAM
wa_deliveries  LIKE LINE OF it_deliveries ,
it_createditems  TYPE STANDARD TABLE OF BAPIDLVITEMCREATED,"TABLES PARAM
wa_createditems  LIKE LINE OF it_createditems ,
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 .


DATA(ld_shippoint) = some text here

DATA(ld_dlvtype) = some text here

DATA(ld_salesorg) = some text here

DATA(ld_distrchan) = some text here

DATA(ld_division) = some text here

DATA(ld_shipto) = some text here

DATA(ld_dateusage) = some text here

DATA(ld_debugflg) = some text here

DATA(ld_obj_type) = some text here

DATA(ld_serial_id) = Check type of data required

"populate fields of struture and append to itab
append wa_dates to it_dates.

"populate fields of struture and append to itab
append wa_dlvitems to it_dlvitems.

"populate fields of struture and append to itab
append wa_serialnumbers to it_serialnumbers.

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

"populate fields of struture and append to itab
append wa_deliveries to it_deliveries.

"populate fields of struture and append to itab
append wa_createditems to it_createditems.

"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_OUTB_DELIVERY_CREATENOREF' EXPORTING shippoint = ld_shippoint dlvtype = ld_dlvtype salesorg = ld_salesorg distrchan = ld_distrchan division = ld_division shipto = ld_shipto * dateusage = ld_dateusage * debugflg = ld_debugflg * obj_type = ld_obj_type * serial_id = ld_serial_id TABLES dates = it_dates dlvitems = it_dlvitems * serialnumbers = it_serialnumbers * extensionin = it_extensionin * deliveries = it_deliveries * createditems = it_createditems receivers = it_receivers * communication_documents = it_communication_documents * application_objects = it_application_objects EXCEPTIONS ERROR_CREATING_IDOCS = 1 . " ALE_OUTB_DELIVERY_CREATENOREF
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_shippoint  TYPE BAPIDLVCREATEHEADER-SHIP_POINT ,
it_dates  TYPE STANDARD TABLE OF BAPIDLVDEADLN ,
wa_dates  LIKE LINE OF it_dates,
ld_dlvtype  TYPE BAPIDLVCREATEHEADER-DLV_TYPE ,
it_dlvitems  TYPE STANDARD TABLE OF BAPIDLVNOREFITEM ,
wa_dlvitems  LIKE LINE OF it_dlvitems,
ld_salesorg  TYPE BAPIDLVCREATEHEADER-SALESORG ,
it_serialnumbers  TYPE STANDARD TABLE OF BAPIDLVSERIALNUMBER ,
wa_serialnumbers  LIKE LINE OF it_serialnumbers,
ld_distrchan  TYPE BAPIDLVCREATEHEADER-DISTR_CHAN ,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extensionin  LIKE LINE OF it_extensionin,
ld_division  TYPE BAPIDLVCREATEHEADER-DIVISION ,
it_deliveries  TYPE STANDARD TABLE OF BAPISHPDELIVNUMB ,
wa_deliveries  LIKE LINE OF it_deliveries,
ld_shipto  TYPE BAPIDLVCREATEHEADER-SHIP_TO ,
it_createditems  TYPE STANDARD TABLE OF BAPIDLVITEMCREATED ,
wa_createditems  LIKE LINE OF it_createditems,
ld_dateusage  TYPE BAPIDLVCREATEHEADER-DATE_USAGE ,
it_receivers  TYPE STANDARD TABLE OF BDI_LOGSYS ,
wa_receivers  LIKE LINE OF it_receivers,
ld_debugflg  TYPE BAPIDLVCONTROL-DEBUG_FLG ,
it_communication_documents  TYPE STANDARD TABLE OF SWOTOBJID ,
wa_communication_documents  LIKE LINE OF it_communication_documents,
ld_obj_type  TYPE SERIAL-OBJ_TYPE ,
it_application_objects  TYPE STANDARD TABLE OF SWOTOBJID ,
wa_application_objects  LIKE LINE OF it_application_objects,
ld_serial_id  TYPE SERIAL-CHNUM .


ld_shippoint = some text here

"populate fields of struture and append to itab
append wa_dates to it_dates.

ld_dlvtype = some text here

"populate fields of struture and append to itab
append wa_dlvitems to it_dlvitems.

ld_salesorg = some text here

"populate fields of struture and append to itab
append wa_serialnumbers to it_serialnumbers.

ld_distrchan = some text here

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

ld_division = some text here

"populate fields of struture and append to itab
append wa_deliveries to it_deliveries.

ld_shipto = some text here

"populate fields of struture and append to itab
append wa_createditems to it_createditems.

ld_dateusage = some text here

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

ld_debugflg = some text here

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

ld_obj_type = some text here

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

ld_serial_id = Check type of data required

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