SAP SD_COND_STATISTICS_DISPLAY Function Module for NOTRANSL: Anzeige von Statistiken zu einem Konditionssatz









SD_COND_STATISTICS_DISPLAY is a standard sd cond statistics display 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: Anzeige von Statistiken zu einem Konditionssatz 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 sd cond statistics display FM, simply by entering the name SD_COND_STATISTICS_DISPLAY into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_COND_STATISTICS_DISPLAY 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 'SD_COND_STATISTICS_DISPLAY'"NOTRANSL: Anzeige von Statistiken zu einem Konditionssatz
EXPORTING
* P_BUFFER_READ = 'X' "'X' to display buffer data, ' ' otherwise
* P_PREVIOUS_EXISTS = ' ' "'X' to disp. 'PREVIOUS' button,' ' otherwise
* P_QUANTITY_UNIT = ' ' "Condition unit (-> KONP-KMEIN)
P_CALCULATION_RULE = "Condition calculation rule (-> KONP-KRECH)
P_SCALE_BASE = "
P_CONDITION_ITEM = "Serial number of condition (-> KONP-KOPOS)
P_CONDITION_NUMBER = "Number condition record (-> KONP-KNUMH)
* P_DISPLAY_FIRST = 'A' "1. display:'A' order,'B' last order,'C' bill.
* P_HEADLINE_1 = ' ' "First header line (string)
* P_HEADLINE_2 = ' ' "Second header line (string)
* P_NEXT_EXISTS = ' ' "'X' to display 'NEXT' button, ' ' otherwise

IMPORTING
P_DISPLAY_LAST = "Display code of the list shown last
P_FCODE_LAST = "Last chosen function code
.



IMPORTING Parameters details for SD_COND_STATISTICS_DISPLAY

P_BUFFER_READ - 'X' to display buffer data, ' ' otherwise

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_PREVIOUS_EXISTS - 'X' to disp. 'PREVIOUS' button,' ' otherwise

Data type:
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_QUANTITY_UNIT - Condition unit (-> KONP-KMEIN)

Data type: KONP-KMEIN
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_CALCULATION_RULE - Condition calculation rule (-> KONP-KRECH)

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

P_SCALE_BASE -

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

P_CONDITION_ITEM - Serial number of condition (-> KONP-KOPOS)

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

P_CONDITION_NUMBER - Number condition record (-> KONP-KNUMH)

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

P_DISPLAY_FIRST - 1. display:'A' order,'B' last order,'C' bill.

Data type:
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_HEADLINE_1 - First header line (string)

Data type:
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_HEADLINE_2 - Second header line (string)

Data type:
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_NEXT_EXISTS - 'X' to display 'NEXT' button, ' ' otherwise

Data type:
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SD_COND_STATISTICS_DISPLAY

P_DISPLAY_LAST - Display code of the list shown last

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

P_FCODE_LAST - Last chosen function code

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

Copy and paste ABAP code example for SD_COND_STATISTICS_DISPLAY 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_p_buffer_read  TYPE STRING, "   'X'
lv_p_display_last  TYPE STRING, "   
lv_p_previous_exists  TYPE STRING, "   ' '
lv_p_quantity_unit  TYPE KONP-KMEIN, "   ' '
lv_p_fcode_last  TYPE KONP, "   
lv_p_calculation_rule  TYPE KONP-KRECH, "   
lv_p_scale_base  TYPE KONP-KZBZG, "   
lv_p_condition_item  TYPE KONP-KOPOS, "   
lv_p_condition_number  TYPE KONP-KNUMH, "   
lv_p_display_first  TYPE KONP, "   'A'
lv_p_headline_1  TYPE KONP, "   ' '
lv_p_headline_2  TYPE KONP, "   ' '
lv_p_next_exists  TYPE KONP. "   ' '

  CALL FUNCTION 'SD_COND_STATISTICS_DISPLAY'  "NOTRANSL: Anzeige von Statistiken zu einem Konditionssatz
    EXPORTING
         P_BUFFER_READ = lv_p_buffer_read
         P_PREVIOUS_EXISTS = lv_p_previous_exists
         P_QUANTITY_UNIT = lv_p_quantity_unit
         P_CALCULATION_RULE = lv_p_calculation_rule
         P_SCALE_BASE = lv_p_scale_base
         P_CONDITION_ITEM = lv_p_condition_item
         P_CONDITION_NUMBER = lv_p_condition_number
         P_DISPLAY_FIRST = lv_p_display_first
         P_HEADLINE_1 = lv_p_headline_1
         P_HEADLINE_2 = lv_p_headline_2
         P_NEXT_EXISTS = lv_p_next_exists
    IMPORTING
         P_DISPLAY_LAST = lv_p_display_last
         P_FCODE_LAST = lv_p_fcode_last
. " SD_COND_STATISTICS_DISPLAY




ABAP code using 7.40 inline data declarations to call FM SD_COND_STATISTICS_DISPLAY

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.

DATA(ld_p_buffer_read) = 'X'.
 
 
DATA(ld_p_previous_exists) = ' '.
 
"SELECT single KMEIN FROM KONP INTO @DATA(ld_p_quantity_unit).
DATA(ld_p_quantity_unit) = ' '.
 
 
"SELECT single KRECH FROM KONP INTO @DATA(ld_p_calculation_rule).
 
"SELECT single KZBZG FROM KONP INTO @DATA(ld_p_scale_base).
 
"SELECT single KOPOS FROM KONP INTO @DATA(ld_p_condition_item).
 
"SELECT single KNUMH FROM KONP INTO @DATA(ld_p_condition_number).
 
DATA(ld_p_display_first) = 'A'.
 
DATA(ld_p_headline_1) = ' '.
 
DATA(ld_p_headline_2) = ' '.
 
DATA(ld_p_next_exists) = ' '.
 


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!