SAP LDPS_OPR_PRINT Function Module for NOTRANSL: Process Sheet für einen Vorgang drucken









LDPS_OPR_PRINT is a standard ldps opr print 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: Process Sheet für einen Vorgang drucken 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 ldps opr print FM, simply by entering the name LDPS_OPR_PRINT into the relevant SAP transaction such as SE37 or SE38.

Function Group: LDPS
Program Name: SAPLLDPS
Main Program: SAPLLDPS
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LDPS_OPR_PRINT 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 'LDPS_OPR_PRINT'"NOTRANSL: Process Sheet für einen Vorgang drucken
EXPORTING
* TEMPLATE_OPR = "Template for work instruction
* TEMPLATE_TITLE = "Template for work instruction
* FLAG_POP_UP = "General Flag

IMPORTING
FLG_EXIT = "General Flag

TABLES
* T_COM_CLASS_DATA = "Data for the class of component allocations
* T_ITM_CLASS_DATA = "Data for the BOM item class
T_OPR_CLASS_DATA = "Process data
* T_PRT_CLASS_DATA = "Dat for class of PRTs
* T_CHA_CLASS_DATA = "Transfer Inspection Characteristics to Print Module
T_TSK_CLASS_DATA = "Data for the class of task lists
* T_MAT_DATA = "OMS: Material
* T_TXT_DATA = "Structure to Transfer Long Text Data

EXCEPTIONS
NO_OPR_DATA = 1 OI_ERROR = 2 NO_DDIC = 3 NO_TEMPLATE = 4
.



IMPORTING Parameters details for LDPS_OPR_PRINT

TEMPLATE_OPR - Template for work instruction

Data type: TLDPS_LAYOUT-PS_LAYOUT_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEMPLATE_TITLE - Template for work instruction

Data type: TLDPS_LAYOUT-PS_LAYOUT_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLAG_POP_UP - General Flag

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

EXPORTING Parameters details for LDPS_OPR_PRINT

FLG_EXIT - General Flag

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

TABLES Parameters details for LDPS_OPR_PRINT

T_COM_CLASS_DATA - Data for the class of component allocations

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

T_ITM_CLASS_DATA - Data for the BOM item class

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

T_OPR_CLASS_DATA - Process data

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

T_PRT_CLASS_DATA - Dat for class of PRTs

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

T_CHA_CLASS_DATA - Transfer Inspection Characteristics to Print Module

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

T_TSK_CLASS_DATA - Data for the class of task lists

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

T_MAT_DATA - OMS: Material

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

T_TXT_DATA - Structure to Transfer Long Text Data

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

EXCEPTIONS details

NO_OPR_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

OI_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

NO_DDIC - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

NO_TEMPLATE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for LDPS_OPR_PRINT 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:
lv_flg_exit  TYPE FLAG, "   
lv_no_opr_data  TYPE FLAG, "   
lv_template_opr  TYPE TLDPS_LAYOUT-PS_LAYOUT_ID, "   
lt_t_com_class_data  TYPE STANDARD TABLE OF COM_CLASS_DATA, "   
lv_oi_error  TYPE COM_CLASS_DATA, "   
lv_template_title  TYPE TLDPS_LAYOUT-PS_LAYOUT_ID, "   
lt_t_itm_class_data  TYPE STANDARD TABLE OF ITM_CLASS_DATA, "   
lv_no_ddic  TYPE ITM_CLASS_DATA, "   
lv_flag_pop_up  TYPE FLAG, "   
lt_t_opr_class_data  TYPE STANDARD TABLE OF OPR_CLASS_DATA, "   
lv_no_template  TYPE OPR_CLASS_DATA, "   
lt_t_prt_class_data  TYPE STANDARD TABLE OF PRT_CLASS_DATA, "   
lt_t_cha_class_data  TYPE STANDARD TABLE OF LDPS_CHA_ALL, "   
lt_t_tsk_class_data  TYPE STANDARD TABLE OF TSK_CLASS_DATA, "   
lt_t_mat_data  TYPE STANDARD TABLE OF LDPS_MAT_DATA, "   
lt_t_txt_data  TYPE STANDARD TABLE OF LDPS_LANGTEXT. "   

  CALL FUNCTION 'LDPS_OPR_PRINT'  "NOTRANSL: Process Sheet für einen Vorgang drucken
    EXPORTING
         TEMPLATE_OPR = lv_template_opr
         TEMPLATE_TITLE = lv_template_title
         FLAG_POP_UP = lv_flag_pop_up
    IMPORTING
         FLG_EXIT = lv_flg_exit
    TABLES
         T_COM_CLASS_DATA = lt_t_com_class_data
         T_ITM_CLASS_DATA = lt_t_itm_class_data
         T_OPR_CLASS_DATA = lt_t_opr_class_data
         T_PRT_CLASS_DATA = lt_t_prt_class_data
         T_CHA_CLASS_DATA = lt_t_cha_class_data
         T_TSK_CLASS_DATA = lt_t_tsk_class_data
         T_MAT_DATA = lt_t_mat_data
         T_TXT_DATA = lt_t_txt_data
    EXCEPTIONS
        NO_OPR_DATA = 1
        OI_ERROR = 2
        NO_DDIC = 3
        NO_TEMPLATE = 4
. " LDPS_OPR_PRINT




ABAP code using 7.40 inline data declarations to call FM LDPS_OPR_PRINT

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 PS_LAYOUT_ID FROM TLDPS_LAYOUT INTO @DATA(ld_template_opr).
 
 
 
"SELECT single PS_LAYOUT_ID FROM TLDPS_LAYOUT INTO @DATA(ld_template_title).
 
 
 
 
 
 
 
 
 
 
 


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!