ECRM_READ_GRIDUSAGE_DATA 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 ECRM_READ_GRIDUSAGE_DATA into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
ECRM_ISU_GRID
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'ECRM_READ_GRIDUSAGE_DATA' "Read Grid Usage Data
EXPORTING
iv_pod_int_ui = SPACE " int_ui Internal Key for Point of Delivery
iv_grid_id = " grid_id Grid
iv_grid_level = " grid_level Grid Level
iv_langu = SY-LANGU " sy-langu SAP System, Current Language
* iv_date = SY-DATUM " sy-datum Date and Time, Current (Application Server) Date
iv_from = " abzeitsch Date from Which a Time Slice is Valid
iv_to = " biszeitsch Date at Which a Time Slice Expires
IMPORTING
ev_grid_id = " grid_id Grid
ev_grid_name = " grid_name Grid Description
ev_service_prov = " service_prov Service Providers
ev_sp_name = " service_prov_text Name of Vendor
et_gridusage_data = " ecrm_gridusage_data_tab Rate Data and Prices for Grid, Including Price Categories
EXCEPTIONS
NOT_FOUND = 1 "
NO_RATES_FOUND = 2 "
. " ECRM_READ_GRIDUSAGE_DATA
The ABAP code below is a full code listing to execute function module ECRM_READ_GRIDUSAGE_DATA 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_ev_grid_id | TYPE GRID_ID , |
| ld_ev_grid_name | TYPE GRID_NAME , |
| ld_ev_service_prov | TYPE SERVICE_PROV , |
| ld_ev_sp_name | TYPE SERVICE_PROV_TEXT , |
| ld_et_gridusage_data | TYPE ECRM_GRIDUSAGE_DATA_TAB . |
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_ev_grid_id | TYPE GRID_ID , |
| ld_iv_pod_int_ui | TYPE INT_UI , |
| ld_ev_grid_name | TYPE GRID_NAME , |
| ld_iv_grid_id | TYPE GRID_ID , |
| ld_ev_service_prov | TYPE SERVICE_PROV , |
| ld_iv_grid_level | TYPE GRID_LEVEL , |
| ld_ev_sp_name | TYPE SERVICE_PROV_TEXT , |
| ld_iv_langu | TYPE SY-LANGU , |
| ld_et_gridusage_data | TYPE ECRM_GRIDUSAGE_DATA_TAB , |
| ld_iv_date | TYPE SY-DATUM , |
| ld_iv_from | TYPE ABZEITSCH , |
| ld_iv_to | TYPE BISZEITSCH . |
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 ECRM_READ_GRIDUSAGE_DATA or its description.
ECRM_READ_GRIDUSAGE_DATA - Read Grid Usage Data ECRM_READ_CUSTOMIZINGTABLES - ECRM_POD_SELECT_NEXT_ID - Module for Block Reading of PoD key ECRM_POD_SELECT_DATA_WITH_CO - Select for PoD object - INT_UI ECRM_POD_ISU_SELECTVIACON - Selector for point of delivery - get BAPIMTCS structure ECRM_POD_ISU_MAPBAPI_VIACON - Mapping POD Structures in BAPI Structures