SAP Function Modules

EXIT_SAPML03T_001 SAP Function module - Underdelivery With Customer Exit







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

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


Pattern for FM EXIT_SAPML03T_001 - EXIT SAPML03T 001





CALL FUNCTION 'EXIT_SAPML03T_001' "Underdelivery With Customer Exit
  EXPORTING
    i_ausml =                   " rl03t-ausml   Total Quantity to be Picked
    i_offml =                   " rl03t-offml   Open Unplanned Quantity
    i_sumtl =                   " rl03t-sumtl   Total of Generated TO Items
    i_ausme =                   " rl03t-ausme   Total Active Ingredient Quantity to be Picked
    i_offme =                   " rl03t-offme   Open Unplanned Active Ingredient Quantity
    i_sumtm =                   " rl03t-sumtm   Active Ingredient Total of Generated TO Items
    i_ltak =                    " ltak          Transfer Order Header
    i_ltap =                    " ltap          Transfer Order Item
    i_mlvs =                    " mlvs          Material Master
    i_mgef =                    " mgef          Hazardous Material Data
    i_t333 =                    " t333          Movement Type
    i_t340d =                   " t340d         Warehouse Number Control
    i_vorga =                   " ltap-vorga    Process
  IMPORTING
    e_exit =                    " rl03t-exit    Indicator: Do Not Generate Any Further Items
  TABLES
    t_ltapa =                   " ltapa         TO Items Created Until Now
    .  "  EXIT_SAPML03T_001

ABAP code example for Function Module EXIT_SAPML03T_001





The ABAP code below is a full code listing to execute function module EXIT_SAPML03T_001 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_e_exit  TYPE RL03T-EXIT ,
it_t_ltapa  TYPE STANDARD TABLE OF LTAPA,"TABLES PARAM
wa_t_ltapa  LIKE LINE OF it_t_ltapa .


DATA(ld_i_ausml) = Check type of data required

DATA(ld_i_offml) = Check type of data required

DATA(ld_i_sumtl) = Check type of data required

DATA(ld_i_ausme) = Check type of data required

DATA(ld_i_offme) = Check type of data required

DATA(ld_i_sumtm) = Check type of data required
DATA(ld_i_ltak) = 'Check type of data required'.
DATA(ld_i_ltap) = 'Check type of data required'.
DATA(ld_i_mlvs) = 'Check type of data required'.
DATA(ld_i_mgef) = 'Check type of data required'.
DATA(ld_i_t333) = 'Check type of data required'.
DATA(ld_i_t340d) = 'Check type of data required'.

SELECT single VORGA
FROM LTAP
INTO @DATA(ld_i_vorga).


"populate fields of struture and append to itab
append wa_t_ltapa to it_t_ltapa. . CALL FUNCTION 'EXIT_SAPML03T_001' EXPORTING i_ausml = ld_i_ausml i_offml = ld_i_offml i_sumtl = ld_i_sumtl i_ausme = ld_i_ausme i_offme = ld_i_offme i_sumtm = ld_i_sumtm i_ltak = ld_i_ltak i_ltap = ld_i_ltap i_mlvs = ld_i_mlvs i_mgef = ld_i_mgef i_t333 = ld_i_t333 i_t340d = ld_i_t340d i_vorga = ld_i_vorga IMPORTING e_exit = ld_e_exit TABLES t_ltapa = it_t_ltapa . " EXIT_SAPML03T_001
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_e_exit  TYPE RL03T-EXIT ,
ld_i_ausml  TYPE RL03T-AUSML ,
it_t_ltapa  TYPE STANDARD TABLE OF LTAPA ,
wa_t_ltapa  LIKE LINE OF it_t_ltapa,
ld_i_offml  TYPE RL03T-OFFML ,
ld_i_sumtl  TYPE RL03T-SUMTL ,
ld_i_ausme  TYPE RL03T-AUSME ,
ld_i_offme  TYPE RL03T-OFFME ,
ld_i_sumtm  TYPE RL03T-SUMTM ,
ld_i_ltak  TYPE LTAK ,
ld_i_ltap  TYPE LTAP ,
ld_i_mlvs  TYPE MLVS ,
ld_i_mgef  TYPE MGEF ,
ld_i_t333  TYPE T333 ,
ld_i_t340d  TYPE T340D ,
ld_i_vorga  TYPE LTAP-VORGA .


ld_i_ausml = Check type of data required

"populate fields of struture and append to itab
append wa_t_ltapa to it_t_ltapa.

ld_i_offml = Check type of data required

ld_i_sumtl = Check type of data required

ld_i_ausme = Check type of data required

ld_i_offme = Check type of data required

ld_i_sumtm = Check type of data required
ld_i_ltak = 'Check type of data required'.
ld_i_ltap = 'Check type of data required'.
ld_i_mlvs = 'Check type of data required'.
ld_i_mgef = 'Check type of data required'.
ld_i_t333 = 'Check type of data required'.
ld_i_t340d = 'Check type of data required'.

SELECT single VORGA
FROM LTAP
INTO ld_i_vorga.

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