SAP L_PRINT_TO_MULTIPLE Function Module for NOTRANSL: Sammeldruck: Mehrere Transportauftragspositionen pro Formular









L_PRINT_TO_MULTIPLE is a standard l print to multiple SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Sammeldruck: Mehrere Transportauftragspositionen pro Formular 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 l print to multiple FM, simply by entering the name L_PRINT_TO_MULTIPLE into the relevant SAP transaction such as SE37 or SE38.

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



Function L_PRINT_TO_MULTIPLE 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 'L_PRINT_TO_MULTIPLE'"NOTRANSL: Sammeldruck: Mehrere Transportauftragspositionen pro Formular
EXPORTING
I_DRUCK = "Indicator for printout on this printer

IMPORTING
E_RETURN = "ABAP System Field: Return Code of ABAP Statements

TABLES
XRLDRC = "Fields for Transfer Order Print: Control
XRESB = "Reservation/dependent requirements
XRLVEK = "Fields for Transfer Order Print: Packaging Proposal
XLTHU = "Assignment of Pick-HUs to Transfer Orders
XVBLKK = "Delivery View for Picking
XVBLKP = "Delivery Item View for Picking
XSERNR = "Transfer Table Serial Numbers for Delivery - Printout
XRLDRH = "Fields for Transfer Order Print: Header Information
XRLDRI = "Fields for Transfer Order Print: Items
XRLDRP = "Fields for Transfer Order Print: PP Data
XRLDRU = "Fields for transfer order printout
XT329P = "Transfer Order Print Parameters
.



IMPORTING Parameters details for L_PRINT_TO_MULTIPLE

I_DRUCK - Indicator for printout on this printer

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

EXPORTING Parameters details for L_PRINT_TO_MULTIPLE

E_RETURN - ABAP System Field: Return Code of ABAP Statements

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

TABLES Parameters details for L_PRINT_TO_MULTIPLE

XRLDRC - Fields for Transfer Order Print: Control

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

XRESB - Reservation/dependent requirements

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

XRLVEK - Fields for Transfer Order Print: Packaging Proposal

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

XLTHU - Assignment of Pick-HUs to Transfer Orders

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

XVBLKK - Delivery View for Picking

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

XVBLKP - Delivery Item View for Picking

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

XSERNR - Transfer Table Serial Numbers for Delivery - Printout

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

XRLDRH - Fields for Transfer Order Print: Header Information

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

XRLDRI - Fields for Transfer Order Print: Items

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

XRLDRP - Fields for Transfer Order Print: PP Data

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

XRLDRU - Fields for transfer order printout

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

XT329P - Transfer Order Print Parameters

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

Copy and paste ABAP code example for L_PRINT_TO_MULTIPLE 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:
lt_xrldrc  TYPE STANDARD TABLE OF RLDRC, "   
lv_i_druck  TYPE RLDRU-DRUCK, "   
lv_e_return  TYPE SY-SUBRC, "   
lt_xresb  TYPE STANDARD TABLE OF RESB, "   
lt_xrlvek  TYPE STANDARD TABLE OF RLVEK, "   
lt_xlthu  TYPE STANDARD TABLE OF LTHU, "   
lt_xvblkk  TYPE STANDARD TABLE OF VBLKK, "   
lt_xvblkp  TYPE STANDARD TABLE OF VBLKP, "   
lt_xsernr  TYPE STANDARD TABLE OF RISERLS, "   
lt_xrldrh  TYPE STANDARD TABLE OF RLDRH, "   
lt_xrldri  TYPE STANDARD TABLE OF RLDRI, "   
lt_xrldrp  TYPE STANDARD TABLE OF RLDRP, "   
lt_xrldru  TYPE STANDARD TABLE OF RLDRU, "   
lt_xt329p  TYPE STANDARD TABLE OF T329P. "   

  CALL FUNCTION 'L_PRINT_TO_MULTIPLE'  "NOTRANSL: Sammeldruck: Mehrere Transportauftragspositionen pro Formular
    EXPORTING
         I_DRUCK = lv_i_druck
    IMPORTING
         E_RETURN = lv_e_return
    TABLES
         XRLDRC = lt_xrldrc
         XRESB = lt_xresb
         XRLVEK = lt_xrltek
         XLTHU = lt_xlthu
         XVBLKK = lt_xvblkk
         XVBLKP = lt_xvblkp
         XSERNR = lt_xsernr
         XRLDRH = lt_xrldrh
         XRLDRI = lt_xrldri
         XRLDRP = lt_xrldrp
         XRLDRU = lt_xrldru
         XT329P = lt_xt329p
. " L_PRINT_TO_MULTIPLE




ABAP code using 7.40 inline data declarations to call FM L_PRINT_TO_MULTIPLE

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 DRUCK FROM RLDRU INTO @DATA(ld_i_druck).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_return).
 
 
 
 
 
 
 
 
 
 
 
 


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!