C2_DB_PLPH_READ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name C2_DB_PLPH_READ into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
C2DB
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'C2_DB_PLPH_READ' "Read PLPH from database
EXPORTING
* datub = 0 " plph-datuv
* datub = 0 " plph-datuv Date upper limit for DB selection
* datuv = 0 " plph-datuv
* datuv = 0 " plph-datuv Date lower limit for DB selection
plnnr = " plph-plnnr
plnnr = " plph-plnnr selected task list number
plnty = " plph-plnty
plnty = " plph-plnty selected task list type
IMPORTING
plnph_max = " rc2bt-plnph_max max. phase counter
zaehl_max = " rc2bt-zaehl_ph Max. change counter
TABLES
planph = " plphb
EXCEPTIONS
NO_RECORDS = 1 " No records exist for selected task list no.
. " C2_DB_PLPH_READ
The ABAP code below is a full code listing to execute function module C2_DB_PLPH_READ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_plnph_max | TYPE RC2BT-PLNPH_MAX , |
| ld_zaehl_max | TYPE RC2BT-ZAEHL_PH , |
| it_planph | TYPE STANDARD TABLE OF PLPHB,"TABLES PARAM |
| wa_planph | LIKE LINE OF it_planph . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_plnph_max | TYPE RC2BT-PLNPH_MAX , |
| ld_datub | TYPE PLPH-DATUV , |
| ld_datub | TYPE PLPH-DATUV , |
| it_planph | TYPE STANDARD TABLE OF PLPHB , |
| wa_planph | LIKE LINE OF it_planph, |
| ld_zaehl_max | TYPE RC2BT-ZAEHL_PH , |
| ld_datuv | TYPE PLPH-DATUV , |
| ld_datuv | TYPE PLPH-DATUV , |
| ld_plnnr | TYPE PLPH-PLNNR , |
| ld_plnnr | TYPE PLPH-PLNNR , |
| ld_plnty | TYPE PLPH-PLNTY , |
| ld_plnty | TYPE PLPH-PLNTY . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name C2_DB_PLPH_READ or its description.
C2_DB_PLPH_READ - Read PLPH from database C2_DB_PLPH_INSERT - Create new PLPH records in database C2_DB_PLPH_DELETE - Delete PLPH records in database C2_DB_PLFV_UPDATE - Change PLFV records in database C2_DB_PLFV_READ_PY_PLPH_EXT - Read PLFV from DB for task list no., type and validation against PLPH C2_DB_PLFV_READ_EXT - Read PLFV from database for planned export