SAP CI_DB_PLWP_READ Function Module for Read maintenance package allocations of database









CI_DB_PLWP_READ is a standard ci db plwp read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read maintenance package allocations of database 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 ci db plwp read FM, simply by entering the name CI_DB_PLWP_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function CI_DB_PLWP_READ 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 'CI_DB_PLWP_READ'"Read maintenance package allocations of database
EXPORTING
* DATUB = 0 "Date valid-to for DB selection
* DATUV = 0 "Date valid-from for DB selection
* PLNAL = ' ' "Alternative task list
PLNNR = "Task list number
PLNTY = "Task list type

IMPORTING
ZAEHL_MAX = "max. change counter reading

TABLES
PLANWP = "Table of valid records

EXCEPTIONS
NO_RECORDS = 1
.



IMPORTING Parameters details for CI_DB_PLWP_READ

DATUB - Date valid-to for DB selection

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

DATUV - Date valid-from for DB selection

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

PLNAL - Alternative task list

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

PLNNR - Task list number

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

PLNTY - Task list type

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

EXPORTING Parameters details for CI_DB_PLWP_READ

ZAEHL_MAX - max. change counter reading

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

TABLES Parameters details for CI_DB_PLWP_READ

PLANWP - Table of valid records

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

EXCEPTIONS details

NO_RECORDS -

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

Copy and paste ABAP code example for CI_DB_PLWP_READ 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_datub  TYPE PLKO-DATUV, "   0
lt_planwp  TYPE STANDARD TABLE OF PLWPB, "   
lv_zaehl_max  TYPE PLWP-ZAEHL, "   
lv_no_records  TYPE PLWP, "   
lv_datuv  TYPE PLKO-DATUV, "   0
lv_plnal  TYPE PLAS-PLNAL, "   SPACE
lv_plnnr  TYPE PLAS-PLNNR, "   
lv_plnty  TYPE PLAS-PLNTY. "   

  CALL FUNCTION 'CI_DB_PLWP_READ'  "Read maintenance package allocations of database
    EXPORTING
         DATUB = lv_datub
         DATUV = lv_datuv
         PLNAL = lv_plnal
         PLNNR = lv_plnnr
         PLNTY = lv_plnty
    IMPORTING
         ZAEHL_MAX = lv_zaehl_max
    TABLES
         PLANWP = lt_planwp
    EXCEPTIONS
        NO_RECORDS = 1
. " CI_DB_PLWP_READ




ABAP code using 7.40 inline data declarations to call FM CI_DB_PLWP_READ

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 DATUV FROM PLKO INTO @DATA(ld_datub).
 
 
"SELECT single ZAEHL FROM PLWP INTO @DATA(ld_zaehl_max).
 
 
"SELECT single DATUV FROM PLKO INTO @DATA(ld_datuv).
 
"SELECT single PLNAL FROM PLAS INTO @DATA(ld_plnal).
DATA(ld_plnal) = ' '.
 
"SELECT single PLNNR FROM PLAS INTO @DATA(ld_plnnr).
 
"SELECT single PLNTY FROM PLAS INTO @DATA(ld_plnty).
 


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!