SAP RESTLAUFZEITSTATISTIK_AUSGEBEN Function Module for Remaining Term Statistics









RESTLAUFZEITSTATISTIK_AUSGEBEN is a standard restlaufzeitstatistik ausgeben SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Remaining Term Statistics 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 restlaufzeitstatistik ausgeben FM, simply by entering the name RESTLAUFZEITSTATISTIK_AUSGEBEN into the relevant SAP transaction such as SE37 or SE38.

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



Function RESTLAUFZEITSTATISTIK_AUSGEBEN 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 'RESTLAUFZEITSTATISTIK_AUSGEBEN'"Remaining Term Statistics
EXPORTING
CLASS_LOW = "untere Laufzeitkategorie
CLASS_HIGH = "obere Laufzeitkategorie
* WHR_KZ = ' ' "Ausgabe auch in Fremdwährung: 'X'
KONT_KZ = "Sortierung nach Sachkonto: 'X'

TABLES
RESULT = "Position information
.



IMPORTING Parameters details for RESTLAUFZEITSTATISTIK_AUSGEBEN

CLASS_LOW - untere Laufzeitkategorie

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

CLASS_HIGH - obere Laufzeitkategorie

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

WHR_KZ - Ausgabe auch in Fremdwährung: 'X'

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

KONT_KZ - Sortierung nach Sachkonto: 'X'

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

TABLES Parameters details for RESTLAUFZEITSTATISTIK_AUSGEBEN

RESULT - Position information

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

Copy and paste ABAP code example for RESTLAUFZEITSTATISTIK_AUSGEBEN 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:
lt_result  TYPE STANDARD TABLE OF REVALE, "   
lv_class_low  TYPE ATRAS-PKUR, "   
lv_class_high  TYPE ATRAS-PKUR, "   
lv_whr_kz  TYPE RFVWLSP-XBWHR, "   SPACE
lv_kont_kz  TYPE RFVWLSP-XSKTOSORT. "   

  CALL FUNCTION 'RESTLAUFZEITSTATISTIK_AUSGEBEN'  "Remaining Term Statistics
    EXPORTING
         CLASS_LOW = lv_class_low
         CLASS_HIGH = lv_class_high
         WHR_KZ = lv_whr_kz
         KONT_KZ = lv_kont_kz
    TABLES
         RESULT = lt_result
. " RESTLAUFZEITSTATISTIK_AUSGEBEN




ABAP code using 7.40 inline data declarations to call FM RESTLAUFZEITSTATISTIK_AUSGEBEN

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 PKUR FROM ATRAS INTO @DATA(ld_class_low).
 
"SELECT single PKUR FROM ATRAS INTO @DATA(ld_class_high).
 
"SELECT single XBWHR FROM RFVWLSP INTO @DATA(ld_whr_kz).
DATA(ld_whr_kz) = ' '.
 
"SELECT single XSKTOSORT FROM RFVWLSP INTO @DATA(ld_kont_kz).
 


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!