SAP PM_OBJLIST_DELETE_BY_ADK Function Module for NOTRANSL: Löschen von Serialnummernobjektlisten aus Archiv









PM_OBJLIST_DELETE_BY_ADK is a standard pm objlist delete by adk 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: Löschen von Serialnummernobjektlisten aus Archiv 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 objlist delete by adk FM, simply by entering the name PM_OBJLIST_DELETE_BY_ADK into the relevant SAP transaction such as SE37 or SE38.

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



Function PM_OBJLIST_DELETE_BY_ADK 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_OBJLIST_DELETE_BY_ADK'"NOTRANSL: Löschen von Serialnummernobjektlisten aus Archiv
EXPORTING
* P_TEST = 'X' "X = Test Run
* ARCHIVE_OBJECT = 'PM_OBJLIST' "

IMPORTING
INDEX_MAINTAINED = "

EXCEPTIONS
OBJECT_NOT_FOUND = 1 OPEN_ERROR = 2 NOT_AUTHORIZED = 3 FILE_ALREADY_OPEN = 4 FILE_IO_ERROR = 5 NO_FILES_AVAILABLE = 6
.



IMPORTING Parameters details for PM_OBJLIST_DELETE_BY_ADK

P_TEST - X = Test Run

Data type: IREF-IIND
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ARCHIVE_OBJECT -

Data type: ARCH_OBJ-OBJECT
Default: 'PM_OBJLIST'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for PM_OBJLIST_DELETE_BY_ADK

INDEX_MAINTAINED -

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

EXCEPTIONS details

OBJECT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

OPEN_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NOT_AUTHORIZED -

Data type:
Optional: No
Call by Reference: Yes

FILE_ALREADY_OPEN - The System Tried Repeatedly to Open a File

Data type:
Optional: No
Call by Reference: Yes

FILE_IO_ERROR - Archive file access error

Data type:
Optional: No
Call by Reference: Yes

NO_FILES_AVAILABLE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PM_OBJLIST_DELETE_BY_ADK 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_p_test  TYPE IREF-IIND, "   'X'
lv_index_maintained  TYPE ARCH_USR-ARCH_INDEX, "   
lv_object_not_found  TYPE ARCH_USR, "   
lv_open_error  TYPE ARCH_USR, "   
lv_archive_object  TYPE ARCH_OBJ-OBJECT, "   'PM_OBJLIST'
lv_not_authorized  TYPE ARCH_OBJ, "   
lv_file_already_open  TYPE ARCH_OBJ, "   
lv_file_io_error  TYPE ARCH_OBJ, "   
lv_no_files_available  TYPE ARCH_OBJ. "   

  CALL FUNCTION 'PM_OBJLIST_DELETE_BY_ADK'  "NOTRANSL: Löschen von Serialnummernobjektlisten aus Archiv
    EXPORTING
         P_TEST = lv_p_test
         ARCHIVE_OBJECT = lv_archive_object
    IMPORTING
         INDEX_MAINTAINED = lv_index_maintained
    EXCEPTIONS
        OBJECT_NOT_FOUND = 1
        OPEN_ERROR = 2
        NOT_AUTHORIZED = 3
        FILE_ALREADY_OPEN = 4
        FILE_IO_ERROR = 5
        NO_FILES_AVAILABLE = 6
. " PM_OBJLIST_DELETE_BY_ADK




ABAP code using 7.40 inline data declarations to call FM PM_OBJLIST_DELETE_BY_ADK

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 IIND FROM IREF INTO @DATA(ld_p_test).
DATA(ld_p_test) = 'X'.
 
"SELECT single ARCH_INDEX FROM ARCH_USR INTO @DATA(ld_index_maintained).
 
 
 
"SELECT single OBJECT FROM ARCH_OBJ INTO @DATA(ld_archive_object).
DATA(ld_archive_object) = 'PM_OBJLIST'.
 
 
 
 
 


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!