SAP CNIS_POPUP_GET_OK_CODE Function Module for NOTRANSL: Project Info System: Determine next object to be found









CNIS_POPUP_GET_OK_CODE is a standard cnis popup get ok code 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: Project Info System: Determine next object to be found 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 cnis popup get ok code FM, simply by entering the name CNIS_POPUP_GET_OK_CODE into the relevant SAP transaction such as SE37 or SE38.

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



Function CNIS_POPUP_GET_OK_CODE 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 'CNIS_POPUP_GET_OK_CODE'"NOTRANSL: Project Info System: Determine next object to be found
EXPORTING
* I_TITLEBAR = ' ' "Title line
* I_FLG_SICHERN = ' ' "Flag, Tasten für Sichern anzeigen
* I_FLG_EXPORT = ' ' "Flag: display keys for data export
* I_AKT_OBJEKT = ' ' "Current object for navigation
* I_FLG_NAVIGATION = ' ' "Flag: display keys for previous/next, etc.
* I_FLG_HIERARCHIE = ' ' "Flag: display keys for hierarchy
* I_FLG_FILTER = ' ' "Flag: display keys for filter
* I_FLG_HERVORHEBUNG_1 = ' ' "Flag, Tasten für Hervorhebung_1 anzeigen
* I_FLG_HERVORHEBUNG_2 = ' ' "Flag, Tasten für Hervorhebung_2 anzeigen
* I_FLG_HERVORHEBUNG = ' ' "Flag: display keys for highlighting
* I_FLG_GRAFIK = ' ' "Flag: display keys for graphic

CHANGING
* C_UCOMM = 'NEXT' "User command

TABLES
* T_EXCL_FCODES = "Excluded function codes

EXCEPTIONS
CANCEL = 1
.



IMPORTING Parameters details for CNIS_POPUP_GET_OK_CODE

I_TITLEBAR - Title line

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

I_FLG_SICHERN - Flag, Tasten für Sichern anzeigen

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

I_FLG_EXPORT - Flag: display keys for data export

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

I_AKT_OBJEKT - Current object for navigation

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

I_FLG_NAVIGATION - Flag: display keys for previous/next, etc.

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

I_FLG_HIERARCHIE - Flag: display keys for hierarchy

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

I_FLG_FILTER - Flag: display keys for filter

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

I_FLG_HERVORHEBUNG_1 - Flag, Tasten für Hervorhebung_1 anzeigen

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

I_FLG_HERVORHEBUNG_2 - Flag, Tasten für Hervorhebung_2 anzeigen

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

I_FLG_HERVORHEBUNG - Flag: display keys for highlighting

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

I_FLG_GRAFIK - Flag: display keys for graphic

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

CHANGING Parameters details for CNIS_POPUP_GET_OK_CODE

C_UCOMM - User command

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

TABLES Parameters details for CNIS_POPUP_GET_OK_CODE

T_EXCL_FCODES - Excluded function codes

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

EXCEPTIONS details

CANCEL - Cancel

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

Copy and paste ABAP code example for CNIS_POPUP_GET_OK_CODE 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_cancel  TYPE STRING, "   
lv_c_ucomm  TYPE SY-UCOMM, "   'NEXT'
lv_i_titlebar  TYPE CLIKE, "   SPACE
lt_t_excl_fcodes  TYPE STANDARD TABLE OF CLIKE, "   
lv_i_flg_sichern  TYPE RC27X-FLG_SEL, "   SPACE
lv_i_flg_export  TYPE RC27X-FLG_SEL, "   SPACE
lv_i_akt_objekt  TYPE CLIKE, "   SPACE
lv_i_flg_navigation  TYPE RC27X-FLG_SEL, "   SPACE
lv_i_flg_hierarchie  TYPE RC27X-FLG_SEL, "   SPACE
lv_i_flg_filter  TYPE RC27X-FLG_SEL, "   SPACE
lv_i_flg_hervorhebung_1  TYPE RC27X-FLG_SEL, "   SPACE
lv_i_flg_hervorhebung_2  TYPE RC27X-FLG_SEL, "   SPACE
lv_i_flg_hervorhebung  TYPE RC27X-FLG_SEL, "   SPACE
lv_i_flg_grafik  TYPE RC27X-FLG_SEL. "   SPACE

  CALL FUNCTION 'CNIS_POPUP_GET_OK_CODE'  "NOTRANSL: Project Info System: Determine next object to be found
    EXPORTING
         I_TITLEBAR = lv_i_titlebar
         I_FLG_SICHERN = lv_i_flg_sichern
         I_FLG_EXPORT = lv_i_flg_export
         I_AKT_OBJEKT = lv_i_akt_objekt
         I_FLG_NAVIGATION = lv_i_flg_navigation
         I_FLG_HIERARCHIE = lv_i_flg_hierarchie
         I_FLG_FILTER = lv_i_flg_filter
         I_FLG_HERVORHEBUNG_1 = lv_i_flg_hervorhebung_1
         I_FLG_HERVORHEBUNG_2 = lv_i_flg_hervorhebung_2
         I_FLG_HERVORHEBUNG = lv_i_flg_hervorhebung
         I_FLG_GRAFIK = lv_i_flg_grafik
    CHANGING
         C_UCOMM = lv_c_ucomm
    TABLES
         T_EXCL_FCODES = lt_t_excl_fcodes
    EXCEPTIONS
        CANCEL = 1
. " CNIS_POPUP_GET_OK_CODE




ABAP code using 7.40 inline data declarations to call FM CNIS_POPUP_GET_OK_CODE

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 UCOMM FROM SY INTO @DATA(ld_c_ucomm).
DATA(ld_c_ucomm) = 'NEXT'.
 
DATA(ld_i_titlebar) = ' '.
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_sichern).
DATA(ld_i_flg_sichern) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_export).
DATA(ld_i_flg_export) = ' '.
 
DATA(ld_i_akt_objekt) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_navigation).
DATA(ld_i_flg_navigation) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_hierarchie).
DATA(ld_i_flg_hierarchie) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_filter).
DATA(ld_i_flg_filter) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_hervorhebung_1).
DATA(ld_i_flg_hervorhebung_1) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_hervorhebung_2).
DATA(ld_i_flg_hervorhebung_2) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_hervorhebung).
DATA(ld_i_flg_hervorhebung) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_grafik).
DATA(ld_i_flg_grafik) = ' '.
 


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!