SAP Function Modules

L_PRINT_TO_MULTIPLE_REF SAP Function module







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

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


Pattern for FM L_PRINT_TO_MULTIPLE_REF - L PRINT TO MULTIPLE REF





CALL FUNCTION 'L_PRINT_TO_MULTIPLE_REF' "
  EXPORTING
    i_druck =                   " rldru-druck
    i_t312s =                   " t312s
    i_refmin =                  " ltak-refnr
    i_refmax =                  " ltak-refnr
  IMPORTING
    e_return =                  " sy-subrc
  TABLES
    xrldrc =                    " rldrc
    xvblkk =                    " vblkk
    xvblkp =                    " vblkp
    xsernr =                    " riserls
    xrldrh =                    " rldrh
    xrldri =                    " rldri
    xrldrp =                    " rldrp
    xrldru =                    " rldru
    xt329p =                    " t329p
    xresb =                     " resb
    xrlvek =                    " rlvek
    xlthu =                     " lthu
    .  "  L_PRINT_TO_MULTIPLE_REF

ABAP code example for Function Module L_PRINT_TO_MULTIPLE_REF





The ABAP code below is a full code listing to execute function module L_PRINT_TO_MULTIPLE_REF 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_return  TYPE SY-SUBRC ,
it_xrldrc  TYPE STANDARD TABLE OF RLDRC,"TABLES PARAM
wa_xrldrc  LIKE LINE OF it_xrldrc ,
it_xvblkk  TYPE STANDARD TABLE OF VBLKK,"TABLES PARAM
wa_xvblkk  LIKE LINE OF it_xvblkk ,
it_xvblkp  TYPE STANDARD TABLE OF VBLKP,"TABLES PARAM
wa_xvblkp  LIKE LINE OF it_xvblkp ,
it_xsernr  TYPE STANDARD TABLE OF RISERLS,"TABLES PARAM
wa_xsernr  LIKE LINE OF it_xsernr ,
it_xrldrh  TYPE STANDARD TABLE OF RLDRH,"TABLES PARAM
wa_xrldrh  LIKE LINE OF it_xrldrh ,
it_xrldri  TYPE STANDARD TABLE OF RLDRI,"TABLES PARAM
wa_xrldri  LIKE LINE OF it_xrldri ,
it_xrldrp  TYPE STANDARD TABLE OF RLDRP,"TABLES PARAM
wa_xrldrp  LIKE LINE OF it_xrldrp ,
it_xrldru  TYPE STANDARD TABLE OF RLDRU,"TABLES PARAM
wa_xrldru  LIKE LINE OF it_xrldru ,
it_xt329p  TYPE STANDARD TABLE OF T329P,"TABLES PARAM
wa_xt329p  LIKE LINE OF it_xt329p ,
it_xresb  TYPE STANDARD TABLE OF RESB,"TABLES PARAM
wa_xresb  LIKE LINE OF it_xresb ,
it_xrlvek  TYPE STANDARD TABLE OF RLVEK,"TABLES PARAM
wa_xrlvek  LIKE LINE OF it_xrlvek ,
it_xlthu  TYPE STANDARD TABLE OF LTHU,"TABLES PARAM
wa_xlthu  LIKE LINE OF it_xlthu .


DATA(ld_i_druck) = some text here
DATA(ld_i_t312s) = 'Check type of data required'.

SELECT single REFNR
FROM LTAK
INTO @DATA(ld_i_refmin).


SELECT single REFNR
FROM LTAK
INTO @DATA(ld_i_refmax).


"populate fields of struture and append to itab
append wa_xrldrc to it_xrldrc.

"populate fields of struture and append to itab
append wa_xvblkk to it_xvblkk.

"populate fields of struture and append to itab
append wa_xvblkp to it_xvblkp.

"populate fields of struture and append to itab
append wa_xsernr to it_xsernr.

"populate fields of struture and append to itab
append wa_xrldrh to it_xrldrh.

"populate fields of struture and append to itab
append wa_xrldri to it_xrldri.

"populate fields of struture and append to itab
append wa_xrldrp to it_xrldrp.

"populate fields of struture and append to itab
append wa_xrldru to it_xrldru.

"populate fields of struture and append to itab
append wa_xt329p to it_xt329p.

"populate fields of struture and append to itab
append wa_xresb to it_xresb.

"populate fields of struture and append to itab
append wa_xrlvek to it_xrlvek.

"populate fields of struture and append to itab
append wa_xlthu to it_xlthu. . CALL FUNCTION 'L_PRINT_TO_MULTIPLE_REF' EXPORTING i_druck = ld_i_druck i_t312s = ld_i_t312s i_refmin = ld_i_refmin i_refmax = ld_i_refmax IMPORTING e_return = ld_e_return TABLES xrldrc = it_xrldrc xvblkk = it_xvblkk xvblkp = it_xvblkp xsernr = it_xsernr xrldrh = it_xrldrh xrldri = it_xrldri xrldrp = it_xrldrp xrldru = it_xrldru xt329p = it_xt329p xresb = it_xresb xrlvek = it_xrlvek xlthu = it_xlthu . " L_PRINT_TO_MULTIPLE_REF
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_return  TYPE SY-SUBRC ,
ld_i_druck  TYPE RLDRU-DRUCK ,
it_xrldrc  TYPE STANDARD TABLE OF RLDRC ,
wa_xrldrc  LIKE LINE OF it_xrldrc,
ld_i_t312s  TYPE T312S ,
it_xvblkk  TYPE STANDARD TABLE OF VBLKK ,
wa_xvblkk  LIKE LINE OF it_xvblkk,
ld_i_refmin  TYPE LTAK-REFNR ,
it_xvblkp  TYPE STANDARD TABLE OF VBLKP ,
wa_xvblkp  LIKE LINE OF it_xvblkp,
ld_i_refmax  TYPE LTAK-REFNR ,
it_xsernr  TYPE STANDARD TABLE OF RISERLS ,
wa_xsernr  LIKE LINE OF it_xsernr,
it_xrldrh  TYPE STANDARD TABLE OF RLDRH ,
wa_xrldrh  LIKE LINE OF it_xrldrh,
it_xrldri  TYPE STANDARD TABLE OF RLDRI ,
wa_xrldri  LIKE LINE OF it_xrldri,
it_xrldrp  TYPE STANDARD TABLE OF RLDRP ,
wa_xrldrp  LIKE LINE OF it_xrldrp,
it_xrldru  TYPE STANDARD TABLE OF RLDRU ,
wa_xrldru  LIKE LINE OF it_xrldru,
it_xt329p  TYPE STANDARD TABLE OF T329P ,
wa_xt329p  LIKE LINE OF it_xt329p,
it_xresb  TYPE STANDARD TABLE OF RESB ,
wa_xresb  LIKE LINE OF it_xresb,
it_xrlvek  TYPE STANDARD TABLE OF RLVEK ,
wa_xrlvek  LIKE LINE OF it_xrlvek,
it_xlthu  TYPE STANDARD TABLE OF LTHU ,
wa_xlthu  LIKE LINE OF it_xlthu.


ld_i_druck = some text here

"populate fields of struture and append to itab
append wa_xrldrc to it_xrldrc.
ld_i_t312s = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xvblkk to it_xvblkk.

SELECT single REFNR
FROM LTAK
INTO ld_i_refmin.


"populate fields of struture and append to itab
append wa_xvblkp to it_xvblkp.

SELECT single REFNR
FROM LTAK
INTO ld_i_refmax.


"populate fields of struture and append to itab
append wa_xsernr to it_xsernr.

"populate fields of struture and append to itab
append wa_xrldrh to it_xrldrh.

"populate fields of struture and append to itab
append wa_xrldri to it_xrldri.

"populate fields of struture and append to itab
append wa_xrldrp to it_xrldrp.

"populate fields of struture and append to itab
append wa_xrldru to it_xrldru.

"populate fields of struture and append to itab
append wa_xt329p to it_xt329p.

"populate fields of struture and append to itab
append wa_xresb to it_xresb.

"populate fields of struture and append to itab
append wa_xrlvek to it_xrlvek.

"populate fields of struture and append to itab
append wa_xlthu to it_xlthu.

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