SAP DATUM_ZUM_ZAEHLERSTAND Function Module for NOTRANSL: ermitteln Plandatum zum Planzaehler
DATUM_ZUM_ZAEHLERSTAND is a standard datum zum zaehlerstand 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: ermitteln Plandatum zum Planzaehler 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 datum zum zaehlerstand FM, simply by entering the name DATUM_ZUM_ZAEHLERSTAND into the relevant SAP transaction such as SE37 or SE38.
Function Group: IPM5
Program Name: SAPLIPM5
Main Program: SAPLIPM5
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DATUM_ZUM_ZAEHLERSTAND 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 'DATUM_ZUM_ZAEHLERSTAND'"NOTRANSL: ermitteln Plandatum zum Planzaehler.
EXPORTING
EXTDATUM = "Next planned date
EXTSTAND = "Next planned counter reading
EXTZSTD = "Next planned counter reading
* PMTGJLST = 12000 "
IMPORTING
EXTZDATU = "Next planned date
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLIPM5_001 Planned Date for Task List Counter Reading (Individual Forecast)
EXIT_SAPLIPM5_002 Determination of Planned Date for Time-Based Maintenance Plans
IMPORTING Parameters details for DATUM_ZUM_ZAEHLERSTAND
EXTDATUM - Next planned date
Data type: MHIS-NPLDAOptional: No
Call by Reference: No ( called with pass by value option)
EXTSTAND - Next planned counter reading
Data type: MHIS-NZAEHOptional: No
Call by Reference: No ( called with pass by value option)
EXTZSTD - Next planned counter reading
Data type: MHIS-NZAEHOptional: No
Call by Reference: No ( called with pass by value option)
PMTGJLST -
Data type:Default: 12000
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DATUM_ZUM_ZAEHLERSTAND
EXTZDATU - Next planned date
Data type: MHIS-NPLDAOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DATUM_ZUM_ZAEHLERSTAND 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_extdatum | TYPE MHIS-NPLDA, " | |||
| lv_extzdatu | TYPE MHIS-NPLDA, " | |||
| lv_extstand | TYPE MHIS-NZAEH, " | |||
| lv_extzstd | TYPE MHIS-NZAEH, " | |||
| lv_pmtgjlst | TYPE MHIS. " 12000 |
|   CALL FUNCTION 'DATUM_ZUM_ZAEHLERSTAND' "NOTRANSL: ermitteln Plandatum zum Planzaehler |
| EXPORTING | ||
| EXTDATUM | = lv_extdatum | |
| EXTSTAND | = lv_extstand | |
| EXTZSTD | = lv_extzstd | |
| PMTGJLST | = lv_pmtgjlst | |
| IMPORTING | ||
| EXTZDATU | = lv_extzdatu | |
| . " DATUM_ZUM_ZAEHLERSTAND | ||
ABAP code using 7.40 inline data declarations to call FM DATUM_ZUM_ZAEHLERSTAND
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 NPLDA FROM MHIS INTO @DATA(ld_extdatum). | ||||
| "SELECT single NPLDA FROM MHIS INTO @DATA(ld_extzdatu). | ||||
| "SELECT single NZAEH FROM MHIS INTO @DATA(ld_extstand). | ||||
| "SELECT single NZAEH FROM MHIS INTO @DATA(ld_extzstd). | ||||
| DATA(ld_pmtgjlst) | = 12000. | |||
Search for further information about these or an SAP related objects