SAP FLEET_GET_CONSUMP_INFO Function Module for NOTRANSL: Fleet_consumption_information









FLEET_GET_CONSUMP_INFO is a standard fleet get consump info 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: Fleet_consumption_information 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 fleet get consump info FM, simply by entering the name FLEET_GET_CONSUMP_INFO into the relevant SAP transaction such as SE37 or SE38.

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



Function FLEET_GET_CONSUMP_INFO 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 'FLEET_GET_CONSUMP_INFO'"NOTRANSL: Fleet_consumption_information
EXPORTING
I_ITOB = "Generated Table for View
I_T370CLC = "Fleet Consumption Calculation Keys
I_FLEET = "Fleet Attributes

CHANGING
C_FLEET_INFO = "Fleet Information
E_CODE = "Error Code

TABLES
* ITAB_IMPTT = "Measuring Point (Table)

EXCEPTIONS
NO_FLEET_DATA = 1 NO_CALC_KEY_DATA = 2
.



IMPORTING Parameters details for FLEET_GET_CONSUMP_INFO

I_ITOB - Generated Table for View

Data type: ITOB
Optional: No
Call by Reference: Yes

I_T370CLC - Fleet Consumption Calculation Keys

Data type: T370CLC
Optional: No
Call by Reference: Yes

I_FLEET - Fleet Attributes

Data type: FLEET
Optional: No
Call by Reference: Yes

CHANGING Parameters details for FLEET_GET_CONSUMP_INFO

C_FLEET_INFO - Fleet Information

Data type: FLEET_INFO
Optional: No
Call by Reference: Yes

E_CODE - Error Code

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

TABLES Parameters details for FLEET_GET_CONSUMP_INFO

ITAB_IMPTT - Measuring Point (Table)

Data type: IMPTT
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_FLEET_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

NO_CALC_KEY_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FLEET_GET_CONSUMP_INFO 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_i_itob  TYPE ITOB, "   
lt_itab_imptt  TYPE STANDARD TABLE OF IMPTT, "   
lv_c_fleet_info  TYPE FLEET_INFO, "   
lv_no_fleet_data  TYPE FLEET_INFO, "   
lv_e_code  TYPE SY-SUBRC, "   
lv_i_t370clc  TYPE T370CLC, "   
lv_no_calc_key_data  TYPE T370CLC, "   
lv_i_fleet  TYPE FLEET. "   

  CALL FUNCTION 'FLEET_GET_CONSUMP_INFO'  "NOTRANSL: Fleet_consumption_information
    EXPORTING
         I_ITOB = lv_i_itob
         I_T370CLC = lv_i_t370clc
         I_FLEET = lv_i_fleet
    CHANGING
         C_FLEET_INFO = lv_c_fleet_info
         E_CODE = lv_e_code
    TABLES
         ITAB_IMPTT = lt_itab_imptt
    EXCEPTIONS
        NO_FLEET_DATA = 1
        NO_CALC_KEY_DATA = 2
. " FLEET_GET_CONSUMP_INFO




ABAP code using 7.40 inline data declarations to call FM FLEET_GET_CONSUMP_INFO

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 SUBRC FROM SY INTO @DATA(ld_e_code).
 
 
 
 


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!