SAP RK_AL_SEQ_TEST Function Module for









RK_AL_SEQ_TEST is a standard rk al seq test 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 al seq test FM, simply by entering the name RK_AL_SEQ_TEST into the relevant SAP transaction such as SE37 or SE38.

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



Function RK_AL_SEQ_TEST 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_AL_SEQ_TEST'"
EXPORTING
* ALART = ' ' "Allocation type
* CYCLE = T811C-CYCLE "Name of cycle
* IPKNZ = ' ' "Actual or plan
NAME = "
* SDATE = T811C-SDATE "Start date
* TAB = T811C-TAB "Name of logical table of cycle

IMPORTING
SEQNR = "

EXCEPTIONS
NOT_FOUND = 1 WRONG_ALART = 2 WRONG_IPKNZ = 3
.



IMPORTING Parameters details for RK_AL_SEQ_TEST

ALART - Allocation type

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

CYCLE - Name of cycle

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

IPKNZ - Actual or plan

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

NAME -

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

SDATE - Start date

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

TAB - Name of logical table of cycle

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

EXPORTING Parameters details for RK_AL_SEQ_TEST

SEQNR -

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

EXCEPTIONS details

NOT_FOUND - Cycle was not found

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

WRONG_ALART - found cycle has wrong type

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

WRONG_IPKNZ - IPKNZ of found cycle is wrong

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

Copy and paste ABAP code example for RK_AL_SEQ_TEST 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_seqnr  TYPE T811S-SEQNR, "   
lv_not_found  TYPE T811S, "   
lv_cycle  TYPE T811C-CYCLE, "   T811C-CYCLE
lv_wrong_alart  TYPE T811C, "   
lv_ipknz  TYPE T811C-IPKNZ, "   SPACE
lv_wrong_ipknz  TYPE T811C, "   
lv_name  TYPE T811S-NAME, "   
lv_sdate  TYPE T811C-SDATE, "   T811C-SDATE
lv_tab  TYPE T811C-TAB. "   T811C-TAB

  CALL FUNCTION 'RK_AL_SEQ_TEST'  "
    EXPORTING
         ALART = lv_alart
         CYCLE = lv_cycle
         IPKNZ = lv_ipknz
         NAME = lv_name
         SDATE = lv_sdate
         TAB = lv_tab
    IMPORTING
         SEQNR = lv_seqnr
    EXCEPTIONS
        NOT_FOUND = 1
        WRONG_ALART = 2
        WRONG_IPKNZ = 3
. " RK_AL_SEQ_TEST




ABAP code using 7.40 inline data declarations to call FM RK_AL_SEQ_TEST

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 SEQNR FROM T811S INTO @DATA(ld_seqnr).
 
 
"SELECT single CYCLE FROM T811C INTO @DATA(ld_cycle).
DATA(ld_cycle) = T811C-CYCLE.
 
 
"SELECT single IPKNZ FROM T811C INTO @DATA(ld_ipknz).
DATA(ld_ipknz) = ' '.
 
 
"SELECT single NAME FROM T811S INTO @DATA(ld_name).
 
"SELECT single SDATE FROM T811C INTO @DATA(ld_sdate).
DATA(ld_sdate) = T811C-SDATE.
 
"SELECT single TAB FROM T811C INTO @DATA(ld_tab).
DATA(ld_tab) = T811C-TAB.
 


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!