SAP CNIS_GET_FILENAME_ETC Function Module for NOTRANSL: Projekt-Infosystem: Popup zur Eingabe eines Dateinamens etc.









CNIS_GET_FILENAME_ETC is a standard cnis get filename etc 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: Projekt-Infosystem: Popup zur Eingabe eines Dateinamens etc. 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 get filename etc FM, simply by entering the name CNIS_GET_FILENAME_ETC 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_GET_FILENAME_ETC 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_GET_FILENAME_ETC'"NOTRANSL: Projekt-Infosystem: Popup zur Eingabe eines Dateinamens etc.
EXPORTING
* I_TITLEBAR = ' ' "Dialog box title
* I_FLG_EXECUTE = ' ' "Kennzeichen ob Drucktaste anzuzeigen
* I_EXTENSION = ' ' "PC file extension
* I_FLG_SPRACHE = ' ' "Kennzeichen, ob Sprache anzuzeigen ist
* I_FLG_KALENDER = ' ' "Indicator whether calendar field is to be displayed
* I_FLG_TERMINKREIS = ' ' "Indicator whether set of dates flags are to be displayed
* I_FLG_DESTINATION = ' ' "Indicator whether destination is to be displayed
* I_FLG_MIT_PS_STRUKTUR = ' ' "Kennzeichen, ob Flag für Struktur anzuzeigen ist
* I_FLG_MIT_STAMMDATEN = ' ' "Indicator whether flag is to be displayed for mstr. data
* I_FLG_TABELLEN_ANLEGEN = ' ' "Indicator whether table creation flag is to be displayed

IMPORTING
E_FLG_EXECUTE = " Kennzeichen, ob gewählt

CHANGING
C_PCFILENAME = "Name der PC-Datei
* C_SPRACHE = ' ' "Sprache der Einträge der PC-Datei
* C_KALENDER_VON = ' ' "Kalender-Startdatum
* C_KALENDER_BIS = ' ' "Kalender-Endedatum
* C_TERMINKREIS = ' ' "Terminkreis (1 = Eck, 2 = Prognose)
* C_DESTINATION = ' ' "Destination für den Datentransfer
* C_MIT_PS_STRUKTUR = ' ' "Kennzeichen, ob Übertragung mit Projektstruktur
* C_MIT_STAMMDATEN = ' ' "Kennzeichen, ob Übertragung mit Stammdaten
* C_TABELLEN_ANLEGEN = ' ' "Kennzeichen, ob Tabellen angelegt werden sollen

EXCEPTIONS
CANCEL = 1
.



IMPORTING Parameters details for CNIS_GET_FILENAME_ETC

I_TITLEBAR - Dialog box title

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

I_FLG_EXECUTE - Kennzeichen ob Drucktaste anzuzeigen

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

I_EXTENSION - PC file extension

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

I_FLG_SPRACHE - Kennzeichen, ob Sprache anzuzeigen ist

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

I_FLG_KALENDER - Indicator whether calendar field is to be displayed

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

I_FLG_TERMINKREIS - Indicator whether set of dates flags are to be displayed

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

I_FLG_DESTINATION - Indicator whether destination is to be displayed

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

I_FLG_MIT_PS_STRUKTUR - Kennzeichen, ob Flag für Struktur anzuzeigen ist

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

I_FLG_MIT_STAMMDATEN - Indicator whether flag is to be displayed for mstr. data

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

I_FLG_TABELLEN_ANLEGEN - Indicator whether table creation flag is to be displayed

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

EXPORTING Parameters details for CNIS_GET_FILENAME_ETC

E_FLG_EXECUTE - Kennzeichen, ob gewählt

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

CHANGING Parameters details for CNIS_GET_FILENAME_ETC

C_PCFILENAME - Name der PC-Datei

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

C_SPRACHE - Sprache der Einträge der PC-Datei

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

C_KALENDER_VON - Kalender-Startdatum

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

C_KALENDER_BIS - Kalender-Endedatum

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

C_TERMINKREIS - Terminkreis (1 = Eck, 2 = Prognose)

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

C_DESTINATION - Destination für den Datentransfer

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

C_MIT_PS_STRUKTUR - Kennzeichen, ob Übertragung mit Projektstruktur

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

C_MIT_STAMMDATEN - Kennzeichen, ob Übertragung mit Stammdaten

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

C_TABELLEN_ANLEGEN - Kennzeichen, ob Tabellen angelegt werden sollen

Data type: CNISFIELDS-FLG_CREATB
Default: SPACE
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_GET_FILENAME_ETC 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_i_titlebar  TYPE CLIKE, "   SPACE
lv_c_pcfilename  TYPE PCFIL-PCFNM, "   
lv_e_flg_execute  TYPE RC27X-FLG_SEL, "   
lv_i_flg_execute  TYPE RC27X-FLG_SEL, "   SPACE
lv_c_sprache  TYPE RCNMP-LANGU, "   SPACE
lv_i_extension  TYPE PCFIL-PCEXT, "   SPACE
lv_i_flg_sprache  TYPE RC27X-FLG_SEL, "   SPACE
lv_c_kalender_von  TYPE RCNMP-KAL_VON, "   SPACE
lv_c_kalender_bis  TYPE RCNMP-KAL_BIS, "   SPACE
lv_i_flg_kalender  TYPE RC27X-FLG_SEL, "   SPACE
lv_c_terminkreis  TYPE EVFL-TRMKR, "   SPACE
lv_i_flg_terminkreis  TYPE RC27X-FLG_SEL, "   SPACE
lv_c_destination  TYPE T390D-DEST, "   SPACE
lv_i_flg_destination  TYPE RC27X-FLG_SEL, "   SPACE
lv_c_mit_ps_struktur  TYPE CNISFIELDS-FLG_STRUC, "   SPACE
lv_i_flg_mit_ps_struktur  TYPE RC27X-FLG_SEL, "   SPACE
lv_c_mit_stammdaten  TYPE CNISFIELDS-FLG_STMDAT, "   SPACE
lv_i_flg_mit_stammdaten  TYPE RC27X-FLG_SEL, "   SPACE
lv_c_tabellen_anlegen  TYPE CNISFIELDS-FLG_CREATB, "   SPACE
lv_i_flg_tabellen_anlegen  TYPE RC27X-FLG_SEL. "   SPACE

  CALL FUNCTION 'CNIS_GET_FILENAME_ETC'  "NOTRANSL: Projekt-Infosystem: Popup zur Eingabe eines Dateinamens etc.
    EXPORTING
         I_TITLEBAR = lv_i_titlebar
         I_FLG_EXECUTE = lv_i_flg_execute
         I_EXTENSION = lv_i_extension
         I_FLG_SPRACHE = lv_i_flg_sprache
         I_FLG_KALENDER = lv_i_flg_kalender
         I_FLG_TERMINKREIS = lv_i_flg_terminkreis
         I_FLG_DESTINATION = lv_i_flg_destination
         I_FLG_MIT_PS_STRUKTUR = lv_i_flg_mit_ps_struktur
         I_FLG_MIT_STAMMDATEN = lv_i_flg_mit_stammdaten
         I_FLG_TABELLEN_ANLEGEN = lv_i_flg_tabellen_anlegen
    IMPORTING
         E_FLG_EXECUTE = lv_e_flg_execute
    CHANGING
         C_PCFILENAME = lv_c_pcfilename
         C_SPRACHE = lv_c_sprache
         C_KALENDER_VON = lv_c_kalender_von
         C_KALENDER_BIS = lv_c_kalender_bis
         C_TERMINKREIS = lv_c_terminkreis
         C_DESTINATION = lv_c_destination
         C_MIT_PS_STRUKTUR = lv_c_mit_ps_struktur
         C_MIT_STAMMDATEN = lv_c_mit_stammdaten
         C_TABELLEN_ANLEGEN = lv_c_tabellen_anlegen
    EXCEPTIONS
        CANCEL = 1
. " CNIS_GET_FILENAME_ETC




ABAP code using 7.40 inline data declarations to call FM CNIS_GET_FILENAME_ETC

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_i_titlebar) = ' '.
 
"SELECT single PCFNM FROM PCFIL INTO @DATA(ld_c_pcfilename).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_e_flg_execute).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_execute).
DATA(ld_i_flg_execute) = ' '.
 
"SELECT single LANGU FROM RCNMP INTO @DATA(ld_c_sprache).
DATA(ld_c_sprache) = ' '.
 
"SELECT single PCEXT FROM PCFIL INTO @DATA(ld_i_extension).
DATA(ld_i_extension) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_sprache).
DATA(ld_i_flg_sprache) = ' '.
 
"SELECT single KAL_VON FROM RCNMP INTO @DATA(ld_c_kalender_von).
DATA(ld_c_kalender_von) = ' '.
 
"SELECT single KAL_BIS FROM RCNMP INTO @DATA(ld_c_kalender_bis).
DATA(ld_c_kalender_bis) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_kalender).
DATA(ld_i_flg_kalender) = ' '.
 
"SELECT single TRMKR FROM EVFL INTO @DATA(ld_c_terminkreis).
DATA(ld_c_terminkreis) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_terminkreis).
DATA(ld_i_flg_terminkreis) = ' '.
 
"SELECT single DEST FROM T390D INTO @DATA(ld_c_destination).
DATA(ld_c_destination) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_destination).
DATA(ld_i_flg_destination) = ' '.
 
"SELECT single FLG_STRUC FROM CNISFIELDS INTO @DATA(ld_c_mit_ps_struktur).
DATA(ld_c_mit_ps_struktur) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_mit_ps_struktur).
DATA(ld_i_flg_mit_ps_struktur) = ' '.
 
"SELECT single FLG_STMDAT FROM CNISFIELDS INTO @DATA(ld_c_mit_stammdaten).
DATA(ld_c_mit_stammdaten) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_mit_stammdaten).
DATA(ld_i_flg_mit_stammdaten) = ' '.
 
"SELECT single FLG_CREATB FROM CNISFIELDS INTO @DATA(ld_c_tabellen_anlegen).
DATA(ld_c_tabellen_anlegen) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_tabellen_anlegen).
DATA(ld_i_flg_tabellen_anlegen) = ' '.
 


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!