SAP PM_DELETE_PRINT_LOG Function Module for NOTRANSL: PM: Löschen des Druckprotokolls









PM_DELETE_PRINT_LOG is a standard pm delete print log 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: PM: Löschen des Druckprotokolls 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 pm delete print log FM, simply by entering the name PM_DELETE_PRINT_LOG into the relevant SAP transaction such as SE37 or SE38.

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



Function PM_DELETE_PRINT_LOG 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 'PM_DELETE_PRINT_LOG'"NOTRANSL: PM: Löschen des Druckprotokolls
EXPORTING
* AFVGD = ' ' "Order: Dialog table for Table AFVG (order operation)
* CAUFVD = ' ' "Dialog Structure for Order Headers and Items
PM_APPL = "Application Area
PRT_DEPTH = "Print Level
* VIQMEL = ' ' "Generated Table for View
* WQMFE = ' ' "Work table for notification item

EXCEPTIONS
INVALID_APPLICATION = 1 NO_WORK_AREA_PASSED = 2
.



IMPORTING Parameters details for PM_DELETE_PRINT_LOG

AFVGD - Order: Dialog table for Table AFVG (order operation)

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

CAUFVD - Dialog Structure for Order Headers and Items

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

PM_APPL - Application Area

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

PRT_DEPTH - Print Level

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

VIQMEL - Generated Table for View

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

WQMFE - Work table for notification item

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

EXCEPTIONS details

INVALID_APPLICATION -

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

NO_WORK_AREA_PASSED -

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

Copy and paste ABAP code example for PM_DELETE_PRINT_LOG 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_afvgd  TYPE AFVGD, "   SPACE
lv_invalid_application  TYPE AFVGD, "   
lv_caufvd  TYPE CAUFVD, "   SPACE
lv_no_work_area_passed  TYPE CAUFVD, "   
lv_pm_appl  TYPE IPRT_WA-PM_APPL, "   
lv_prt_depth  TYPE IPRT_WA-PRT_DEPTH, "   
lv_viqmel  TYPE VIQMEL, "   SPACE
lv_wqmfe  TYPE WQMFE. "   SPACE

  CALL FUNCTION 'PM_DELETE_PRINT_LOG'  "NOTRANSL: PM: Löschen des Druckprotokolls
    EXPORTING
         AFVGD = lv_afvgd
         CAUFVD = lv_caufvd
         PM_APPL = lv_pm_appl
         PRT_DEPTH = lv_prt_depth
         VIQMEL = lv_viqmel
         WQMFE = lv_wqmfe
    EXCEPTIONS
        INVALID_APPLICATION = 1
        NO_WORK_AREA_PASSED = 2
. " PM_DELETE_PRINT_LOG




ABAP code using 7.40 inline data declarations to call FM PM_DELETE_PRINT_LOG

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.

DATA(ld_afvgd) = ' '.
 
 
DATA(ld_caufvd) = ' '.
 
 
"SELECT single PM_APPL FROM IPRT_WA INTO @DATA(ld_pm_appl).
 
"SELECT single PRT_DEPTH FROM IPRT_WA INTO @DATA(ld_prt_depth).
 
DATA(ld_viqmel) = ' '.
 
DATA(ld_wqmfe) = ' '.
 


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!