SAP KK_RANGES_ANALZYE_SEL_RELATION Function Module for Analyzes Relationship Between Two Selections









KK_RANGES_ANALZYE_SEL_RELATION is a standard kk ranges analzye sel relation SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Analyzes Relationship Between Two Selections 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 kk ranges analzye sel relation FM, simply by entering the name KK_RANGES_ANALZYE_SEL_RELATION into the relevant SAP transaction such as SE37 or SE38.

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



Function KK_RANGES_ANALZYE_SEL_RELATION 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 'KK_RANGES_ANALZYE_SEL_RELATION'"Analyzes Relationship Between Two Selections
EXPORTING
SELECTION1 = "
SELECTION2 = "
* MAX_SUBSEL = 999999999999 "
* MAX_EQSEL = 999999999999 "
* MAX_OTHERSEL = 999999999999 "

IMPORTING
SUBSEL = "
EQSEL = "
OTHERSEL = "
.



IMPORTING Parameters details for KK_RANGES_ANALZYE_SEL_RELATION

SELECTION1 -

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

SELECTION2 -

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

MAX_SUBSEL -

Data type: SY-TABIX
Default: 999999999999
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAX_EQSEL -

Data type: SY-TABIX
Default: 999999999999
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAX_OTHERSEL -

Data type: SY-TABIX
Default: 999999999999
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for KK_RANGES_ANALZYE_SEL_RELATION

SUBSEL -

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

EQSEL -

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

OTHERSEL -

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

Copy and paste ABAP code example for KK_RANGES_ANALZYE_SEL_RELATION 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_subsel  TYPE KKRAN_T_TAB_FIELD, "   
lv_selection1  TYPE KKRAN_T_SELTAB, "   
lv_eqsel  TYPE KKRAN_T_TAB_FIELD, "   
lv_selection2  TYPE KKRAN_T_SELTAB, "   
lv_othersel  TYPE KKRAN_T_TAB_FIELD, "   
lv_max_subsel  TYPE SY-TABIX, "   999999999999
lv_max_eqsel  TYPE SY-TABIX, "   999999999999
lv_max_othersel  TYPE SY-TABIX. "   999999999999

  CALL FUNCTION 'KK_RANGES_ANALZYE_SEL_RELATION'  "Analyzes Relationship Between Two Selections
    EXPORTING
         SELECTION1 = lv_selection1
         SELECTION2 = lv_selection2
         MAX_SUBSEL = lv_max_subsel
         MAX_EQSEL = lv_max_eqsel
         MAX_OTHERSEL = lv_max_othersel
    IMPORTING
         SUBSEL = lv_subsel
         EQSEL = lv_eqsel
         OTHERSEL = lv_othersel
. " KK_RANGES_ANALZYE_SEL_RELATION




ABAP code using 7.40 inline data declarations to call FM KK_RANGES_ANALZYE_SEL_RELATION

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 TABIX FROM SY INTO @DATA(ld_max_subsel).
DATA(ld_max_subsel) = 999999999999.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_max_eqsel).
DATA(ld_max_eqsel) = 999999999999.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_max_othersel).
DATA(ld_max_othersel) = 999999999999.
 


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!