SAP RK_F4_ALLOCATION_SEGMENTS Function Module for









RK_F4_ALLOCATION_SEGMENTS is a standard rk f4 allocation segments SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rk f4 allocation segments FM, simply by entering the name RK_F4_ALLOCATION_SEGMENTS into the relevant SAP transaction such as SE37 or SE38.

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



Function RK_F4_ALLOCATION_SEGMENTS 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 'RK_F4_ALLOCATION_SEGMENTS'"
EXPORTING
* ALART = ' ' "
* IPKNZ = ' ' "
* LIST_TITLE = ' ' "
* MAX_SDATE = 00000000 "
* MIN_EDATE = 00000000 "
* ORIGINX = 0 "
* ORIGINY = 0 "
* SDATE = 00000000 "
* SHOW_ONE_ENTRY = 'X' "
* TABLE = ' ' "
* APPL = ' ' "
* SEGMENT = ' ' "
* CYCLE = ' ' "
* DISPLAY = ' ' "
* FIX_CYCLE = ' ' "
* FIX_GROUP = ' ' "
* FIX_SDATE = ' ' "
* GROUP = ' ' "

IMPORTING
EX_CYCLE = "
EX_GROUP = "
SDATE = "
TABLE = "
SEGMENT = "

EXCEPTIONS
NOTHING_SELECTED = 1 NO_CYCLE = 2 NO_SEGMENT = 3
.



IMPORTING Parameters details for RK_F4_ALLOCATION_SEGMENTS

ALART -

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

IPKNZ -

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

LIST_TITLE -

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

MAX_SDATE -

Data type: T811C-SDATE
Default: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

MIN_EDATE -

Data type: T811C-EDATE
Default: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

ORIGINX -

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

ORIGINY -

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

SDATE -

Data type: T811C-SDATE
Default: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

SHOW_ONE_ENTRY -

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

TABLE -

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

APPL -

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

SEGMENT -

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

CYCLE -

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

DISPLAY -

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

FIX_CYCLE -

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

FIX_GROUP -

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

FIX_SDATE -

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

GROUP -

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

EXPORTING Parameters details for RK_F4_ALLOCATION_SEGMENTS

EX_CYCLE -

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

EX_GROUP -

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

SDATE -

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

TABLE -

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

SEGMENT -

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

EXCEPTIONS details

NOTHING_SELECTED -

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

NO_CYCLE -

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

NO_SEGMENT -

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

Copy and paste ABAP code example for RK_F4_ALLOCATION_SEGMENTS 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_alart  TYPE T811C-ALART, "   SPACE
lv_ex_cycle  TYPE T811C, "   
lv_nothing_selected  TYPE T811C, "   
lv_ipknz  TYPE T811C-IPKNZ, "   SPACE
lv_list_title  TYPE SY-TITLE, "   SPACE
lv_max_sdate  TYPE T811C-SDATE, "   00000000
lv_min_edate  TYPE T811C-EDATE, "   00000000
lv_originx  TYPE SY-WINX1, "   0
lv_originy  TYPE SY-WINY1, "   0
lv_sdate  TYPE T811C-SDATE, "   00000000
lv_show_one_entry  TYPE T811C, "   'X'
lv_table  TYPE T811C-TAB, "   SPACE
lv_appl  TYPE T811C, "   SPACE
lv_ex_group  TYPE T811C, "   
lv_no_cycle  TYPE T811C, "   
lv_sdate  TYPE T811C-SDATE, "   
lv_segment  TYPE T811S-NAME, "   SPACE
lv_no_segment  TYPE T811S, "   
lv_cycle  TYPE T811S, "   SPACE
lv_table  TYPE T811C-TAB, "   
lv_display  TYPE T811C, "   SPACE
lv_segment  TYPE T811S-NAME, "   
lv_fix_cycle  TYPE T811S, "   SPACE
lv_fix_group  TYPE T811S, "   SPACE
lv_fix_sdate  TYPE T811S, "   SPACE
lv_group  TYPE T811S. "   SPACE

  CALL FUNCTION 'RK_F4_ALLOCATION_SEGMENTS'  "
    EXPORTING
         ALART = lv_alart
         IPKNZ = lv_ipknz
         LIST_TITLE = lv_list_title
         MAX_SDATE = lv_max_sdate
         MIN_EDATE = lv_min_edate
         ORIGINX = lv_originx
         ORIGINY = lv_originy
         SDATE = lv_sdate
         SHOW_ONE_ENTRY = lv_show_one_entry
         TABLE = lv_table
         APPL = lv_appl
         SEGMENT = lv_segment
         CYCLE = lv_cycle
         DISPLAY = lv_display
         FIX_CYCLE = lv_fix_cycle
         FIX_GROUP = lv_fix_group
         FIX_SDATE = lv_fix_sdate
         GROUP = lv_group
    IMPORTING
         EX_CYCLE = lv_ex_cycle
         EX_GROUP = lv_ex_group
         SDATE = lv_sdate
         TABLE = lv_table
         SEGMENT = lv_segment
    EXCEPTIONS
        NOTHING_SELECTED = 1
        NO_CYCLE = 2
        NO_SEGMENT = 3
. " RK_F4_ALLOCATION_SEGMENTS




ABAP code using 7.40 inline data declarations to call FM RK_F4_ALLOCATION_SEGMENTS

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 ALART FROM T811C INTO @DATA(ld_alart).
DATA(ld_alart) = ' '.
 
 
 
"SELECT single IPKNZ FROM T811C INTO @DATA(ld_ipknz).
DATA(ld_ipknz) = ' '.
 
"SELECT single TITLE FROM SY INTO @DATA(ld_list_title).
DATA(ld_list_title) = ' '.
 
"SELECT single SDATE FROM T811C INTO @DATA(ld_max_sdate).
DATA(ld_max_sdate) = 00000000.
 
"SELECT single EDATE FROM T811C INTO @DATA(ld_min_edate).
DATA(ld_min_edate) = 00000000.
 
"SELECT single WINX1 FROM SY INTO @DATA(ld_originx).
 
"SELECT single WINY1 FROM SY INTO @DATA(ld_originy).
 
"SELECT single SDATE FROM T811C INTO @DATA(ld_sdate).
DATA(ld_sdate) = 00000000.
 
DATA(ld_show_one_entry) = 'X'.
 
"SELECT single TAB FROM T811C INTO @DATA(ld_table).
DATA(ld_table) = ' '.
 
DATA(ld_appl) = ' '.
 
 
 
"SELECT single SDATE FROM T811C INTO @DATA(ld_sdate).
 
"SELECT single NAME FROM T811S INTO @DATA(ld_segment).
DATA(ld_segment) = ' '.
 
 
DATA(ld_cycle) = ' '.
 
"SELECT single TAB FROM T811C INTO @DATA(ld_table).
 
DATA(ld_display) = ' '.
 
"SELECT single NAME FROM T811S INTO @DATA(ld_segment).
 
DATA(ld_fix_cycle) = ' '.
 
DATA(ld_fix_group) = ' '.
 
DATA(ld_fix_sdate) = ' '.
 
DATA(ld_group) = ' '.
 


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!