SAP Function Modules

L_REF_MULTIPLE_PROCESS_RELEASE SAP Function module - Initiate release of one or several multiple processing sessions







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

Associated Function Group: LSAM
Released Date: 24.04.1995
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM L_REF_MULTIPLE_PROCESS_RELEASE - L REF MULTIPLE PROCESS RELEASE





CALL FUNCTION 'L_REF_MULTIPLE_PROCESS_RELEASE' "Initiate release of one or several multiple processing sessions
  EXPORTING
    i_lgnum =                   " t311-lgnum    Warehouse number
*   i_dunkl = 'D'               " rl05s-dunkl   Release mult.proc. bckgrnd/frgrnd (D/H)
*   i_liste = 'X'               " rl05s-liste   Output of final log for pick list
*   i_commit_work = 'X'         " rl05s-comit   Commit in functionmodule
*   i_drukz = SPACE             " rl05s-drukz   Print code
*   i_ldest = SPACE             " rl05s-ldest   Logical destination
*   i_spool = SPACE             " rl05s-spool   Spool code
*   i_aufte = 'X'               " rlist-aufte
*   i_direk = 'X'               " rlist-direk
  IMPORTING
    o_to_printed =              " t311-kzdru
    o_to_sent_to_sub =          " t311-kzdru
  TABLES
    t_t311 =                    " t311          Table of reference numbers              - Import
  EXCEPTIONS
    CANCEL_FROM_USER = 1        "               Abnormal end by user
    WRONG_DATA = 2              "               Incorrect data transmitted
    TO_NOT_FOUND = 3            "
    WRONG_DATA_FOR_2_STEP_PICKING = 4  "
    .  "  L_REF_MULTIPLE_PROCESS_RELEASE

ABAP code example for Function Module L_REF_MULTIPLE_PROCESS_RELEASE





The ABAP code below is a full code listing to execute function module L_REF_MULTIPLE_PROCESS_RELEASE 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_o_to_printed  TYPE T311-KZDRU ,
ld_o_to_sent_to_sub  TYPE T311-KZDRU ,
it_t_t311  TYPE STANDARD TABLE OF T311,"TABLES PARAM
wa_t_t311  LIKE LINE OF it_t_t311 .


SELECT single LGNUM
FROM T311
INTO @DATA(ld_i_lgnum).


DATA(ld_i_dunkl) = some text here

DATA(ld_i_liste) = some text here

DATA(ld_i_commit_work) = some text here

DATA(ld_i_drukz) = some text here

DATA(ld_i_ldest) = some text here

DATA(ld_i_spool) = some text here

DATA(ld_i_aufte) = some text here

DATA(ld_i_direk) = some text here

"populate fields of struture and append to itab
append wa_t_t311 to it_t_t311. . CALL FUNCTION 'L_REF_MULTIPLE_PROCESS_RELEASE' EXPORTING i_lgnum = ld_i_lgnum * i_dunkl = ld_i_dunkl * i_liste = ld_i_liste * i_commit_work = ld_i_commit_work * i_drukz = ld_i_drukz * i_ldest = ld_i_ldest * i_spool = ld_i_spool * i_aufte = ld_i_aufte * i_direk = ld_i_direk IMPORTING o_to_printed = ld_o_to_printed o_to_sent_to_sub = ld_o_to_sent_to_sub TABLES t_t311 = it_t_t311 EXCEPTIONS CANCEL_FROM_USER = 1 WRONG_DATA = 2 TO_NOT_FOUND = 3 WRONG_DATA_FOR_2_STEP_PICKING = 4 . " L_REF_MULTIPLE_PROCESS_RELEASE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "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_o_to_printed  TYPE T311-KZDRU ,
ld_i_lgnum  TYPE T311-LGNUM ,
it_t_t311  TYPE STANDARD TABLE OF T311 ,
wa_t_t311  LIKE LINE OF it_t_t311,
ld_o_to_sent_to_sub  TYPE T311-KZDRU ,
ld_i_dunkl  TYPE RL05S-DUNKL ,
ld_i_liste  TYPE RL05S-LISTE ,
ld_i_commit_work  TYPE RL05S-COMIT ,
ld_i_drukz  TYPE RL05S-DRUKZ ,
ld_i_ldest  TYPE RL05S-LDEST ,
ld_i_spool  TYPE RL05S-SPOOL ,
ld_i_aufte  TYPE RLIST-AUFTE ,
ld_i_direk  TYPE RLIST-DIREK .


SELECT single LGNUM
FROM T311
INTO ld_i_lgnum.


"populate fields of struture and append to itab
append wa_t_t311 to it_t_t311.

ld_i_dunkl = some text here

ld_i_liste = some text here

ld_i_commit_work = some text here

ld_i_drukz = some text here

ld_i_ldest = some text here

ld_i_spool = some text here

ld_i_aufte = some text here

ld_i_direk = some text here

SAP Documentation for FM L_REF_MULTIPLE_PROCESS_RELEASE


With this function module you call up the release of one or several reference numbers. ...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 L_REF_MULTIPLE_PROCESS_RELEASE or its description.