SAP Function Modules

CNIS_GET_VALUES SAP Function module







CNIS_GET_VALUES is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CNIS_GET_VALUES into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CNIS
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CNIS_GET_VALUES - CNIS GET VALUES





CALL FUNCTION 'CNIS_GET_VALUES' "
  EXPORTING
    i_titlebar =                " clike         Text for title
*   i_tabname = SPACE           " tcnd-tabname  Name of the reporting structure
*   i_flg_call = SPACE          " xfeld         Flag: display function key for "Execute"
*   i_flg_titletext = SPACE     " xfeld         Flag, Display text module for title
*   i_flg_toptext = SPACE       " xfeld         Flag, Display text module for header
*   i_flg_pickup = SPACE        " xfeld         Flag, Display pickup fields
*   i_flg_arnummer = SPACE      " xfeld         Flag: display archive number
*   i_flg_vsnummer = SPACE      " xfeld         Flag, Display version number
*   i_flg_version = SPACE       " xfeld         Flag, Display more version fields
*   i_vskat = SPACE             " vskopf-vskat  Flag, Simulationsversion
*   i_flg_co_versionen = SPACE  " xfeld         Flag, Display plan versions
*   i_flg_ev_versionen = SPACE  " xfeld         Flag, EV-Planversionen anzeigen
*   i_flg_tcnt = SPACE          " xfeld         Flag, Display PS Info profile
*   i_flg_tcnu = SPACE          " xfeld         Flag, Einheitenumrechnungsprofil anzeigen
*   i_flg_tcndb = SPACE         " xfeld         Flag, Display database profile
*   i_flg_tcnds = SPACE         " xfeld         Flag, Display hierarchy profile
*   i_flg_tcnd = SPACE          " xfeld         Flag, Display overview profile
*   i_flg_tcnf = SPACE          " xfeld         Flag, Display field profile
*   i_flg_tcns = SPACE          " xfeld         Flag, Display sort criteria profile
*   i_flg_tcna = SPACE          " xfeld         Flag, Verdichtungskriterienprofil anzeigen
*   i_flg_tcnp = SPACE          " xfeld         Flag, Display grouping criteria profile
*   i_flg_tcnvg = SPACE         " xfeld         Flag, Vergleichskriterienprofil anzeigen
*   i_flg_slwid = SPACE         " xfeld         Flag: display key work ID for user-defined fields
*   i_flg_profidproj = SPACE    " xfeld         Flag: display project hierarchy graphic profile
*   i_flg_profidnetz = SPACE    " xfeld         Flag: display network graphic profile
*   i_flg_profidbalk = SPACE    " xfeld         Flag: display Gantt chart profile
*   i_flg_psrlv = SPACE         " xfeld         Flag: display cost plan version
*   i_flg_profil_id = SPACE     " xfeld         Flag: display overall profile for capacity reporting
*   i_flg_eis_repid = SPACE     " xfeld         Flag: display EIS report name
*   i_flg_hierarchie = SPACE    " xfeld         Flag: display fields for hierarchy selection
*   i_flg_stufen = SPACE        " xfeld         Flag: display hierarchy levels (WBS elements)
*   i_flg_beschriftung = SPACE  " xfeld         Flag: display bar text parameters
*   i_flg_mail = SPACE          " xfeld         Flag: display flags for mail transfer
*   i_flg_change_documents = SPACE  " xfeld     Flag: display parameters for change documents
  IMPORTING
    e_flg_call =                " xfeld         Flag: "Execute" selected
* TABLES
*   t_range_aufnr =             " standard table  Range for networks
*   t_range_posid =             " standard table  Range for WBS elements
*   t_range_pspid =             " standard table  Range for project definitions
* CHANGING
*   c_titletext = SPACE         " tcnt-titletext  Text for title
*   c_toptext = SPACE           " tcnt-toptext  Text module for header
*   c_pickup_key = SPACE        " tcnt-pickup_key  Action during pickup on key column
*   c_pickup_feld = SPACE       " tcnt-pickup_fld  Action with pickup on field column
*   c_cursor_vor_mark = SPACE   " tcnt-flg_csvrmk  Flag, Cursor has higher priority than select
*   c_arnummer = SPACE          " admi_run-document  Archive number
*   c_vsnummer = SPACE          " vskopf-vsnmr  Version number
*   c_vstext = SPACE            " vskopf-vstext  Text for version number
*   c_vsgruppe = SPACE          " vskopf-vsgruppe  Version group
*   c_vsmta = SPACE             " vskopf-vsmta  Flag, relevant für Meilensteintrendanalyse
*   c_co_vsnummer_1 = SPACE     " rpsco_x-versn  Number of the 1st plan version
*   c_co_vsnummer_2 = SPACE     " rpsco_x-versn  Number of the 2nd plan version
*   c_ev_vsnummer_1 = SPACE     " evop-versn_ev  Nummer der 1. EV-Planversion
*   c_tcnt_profid = SPACE       " tcnt-profid   PS Info Profile
*   c_tcnt_prof_uc = SPACE      " tcnt-prof_uc  Einheitenumrechnungsprofil
*   c_tcnt_prof_db = SPACE      " tcnt-prof_db  Database profile
*   c_tcndb_db_view = SPACE     " tcndb-db_view  Hierarchy profile
*   c_tcnd_profid = SPACE       " tcnd-profid   Overview profile
*   c_tcnd_prof_fd = SPACE      " tcnd-prof_fd  Field profile
*   c_tcnd_prof_sr = SPACE      " tcnd-prof_sr  Sort criteria profile
*   c_tcnd_prof_ag = SPACE      " tcnd-prof_ag  Verdichtungskriterienprofil
*   c_tcnd_prof_gp = SPACE      " tcnd-prof_gp  Grouping criteria profile
*   c_tcnd_prof_vgl = SPACE     " tcnd-prof_vgl  Vergleichskriterienprofil
*   c_slwid = SPACE             " tcn01-slwid   Key word ID
*   c_profidproj = SPACE        " tcj41-profidproj  Project hierarchy graphic profile
*   c_plnaw = SPACE             " tcn41-plnaw   Task list usage
*   c_profidnetz = SPACE        " tcn41-profidnetz  Network graphic profile
*   c_profidbalk = SPACE        " tcbp-profile  Gantt chart profile
*   c_profil_id = SPACE         " tcy10-profil_id  Overall profile of capacity planning
*   c_eis_repid = SPACE         " rkb1d-repid   EIS report name
*   c_ps_hierart = SPACE        " tcnds-ps_hierart  Hierarchy type of structure view for project info
*   c_hierar = SPACE            " tcnds-hierar  Hierarchy type / costing
*   c_hierid = SPACE            " tcnds-hierid  Hierarchy ID / costing
*   c_hienm = SPACE             " tcnds-hienm   Set name
*   c_stufe_von = SPACE         " kkhie-stufe   Hierarchy level from
*   c_stufe_bis = SPACE         " kkhie-stufe   Hierarchy level to
*   c_cmpos = SPACE             " tcbp-cmpos    Text position on time bar
*   c_cmart = SPACE             " tcbp-cmart    Text or date on the time bar
*   c_flg_einst = SPACE         " cnisfields-flg_einst  Flag: send mail with settings
*   c_flg_auth = SPACE          " cnisfields-flg_auth  Flag: send mail with authorizations
*   c_flg_daten = SPACE         " cnisfields-flg_daten  Flag: send mail with selected data
*   c_username = SPACE          " cdhdr-username  User name
*   c_changedate = SPACE        " cdhdr-udate   Change date
*   c_changetime = SPACE        " cdhdr-utime   Changed at
  EXCEPTIONS
    CANCEL = 1                  "               Cancel
    .  "  CNIS_GET_VALUES

ABAP code example for Function Module CNIS_GET_VALUES





The ABAP code below is a full code listing to execute function module CNIS_GET_VALUES including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_flg_call  TYPE XFELD ,
it_t_range_aufnr  TYPE STANDARD TABLE OF STANDARD TABLE,"TABLES PARAM
wa_t_range_aufnr  LIKE LINE OF it_t_range_aufnr ,
it_t_range_posid  TYPE STANDARD TABLE OF STANDARD TABLE,"TABLES PARAM
wa_t_range_posid  LIKE LINE OF it_t_range_posid ,
it_t_range_pspid  TYPE STANDARD TABLE OF STANDARD TABLE,"TABLES PARAM
wa_t_range_pspid  LIKE LINE OF it_t_range_pspid .


SELECT single TITLETEXT
FROM TCNT
INTO @DATA(ld_c_titletext).


SELECT single TOPTEXT
FROM TCNT
INTO @DATA(ld_c_toptext).


SELECT single PICKUP_KEY
FROM TCNT
INTO @DATA(ld_c_pickup_key).


SELECT single PICKUP_FLD
FROM TCNT
INTO @DATA(ld_c_pickup_feld).


SELECT single FLG_CSVRMK
FROM TCNT
INTO @DATA(ld_c_cursor_vor_mark).


SELECT single DOCUMENT
FROM ADMI_RUN
INTO @DATA(ld_c_arnummer).


SELECT single VSNMR
FROM VSKOPF
INTO @DATA(ld_c_vsnummer).


SELECT single VSTEXT
FROM VSKOPF
INTO @DATA(ld_c_vstext).


SELECT single VSGRUPPE
FROM VSKOPF
INTO @DATA(ld_c_vsgruppe).


SELECT single VSMTA
FROM VSKOPF
INTO @DATA(ld_c_vsmta).


DATA(ld_c_co_vsnummer_1) = some text here

DATA(ld_c_co_vsnummer_2) = some text here

SELECT single VERSN_EV
FROM EVOP
INTO @DATA(ld_c_ev_vsnummer_1).


SELECT single PROFID
FROM TCNT
INTO @DATA(ld_c_tcnt_profid).


SELECT single PROF_UC
FROM TCNT
INTO @DATA(ld_c_tcnt_prof_uc).


SELECT single PROF_DB
FROM TCNT
INTO @DATA(ld_c_tcnt_prof_db).


SELECT single DB_VIEW
FROM TCNDB
INTO @DATA(ld_c_tcndb_db_view).


SELECT single PROFID
FROM TCND
INTO @DATA(ld_c_tcnd_profid).


SELECT single PROF_FD
FROM TCND
INTO @DATA(ld_c_tcnd_prof_fd).


SELECT single PROF_SR
FROM TCND
INTO @DATA(ld_c_tcnd_prof_sr).


SELECT single PROF_AG
FROM TCND
INTO @DATA(ld_c_tcnd_prof_ag).


SELECT single PROF_GP
FROM TCND
INTO @DATA(ld_c_tcnd_prof_gp).


SELECT single PROF_VGL
FROM TCND
INTO @DATA(ld_c_tcnd_prof_vgl).


SELECT single SLWID
FROM TCN01
INTO @DATA(ld_c_slwid).


SELECT single PROFIDPROJ
FROM TCJ41
INTO @DATA(ld_c_profidproj).


SELECT single PLNAW
FROM TCN41
INTO @DATA(ld_c_plnaw).


SELECT single PROFIDNETZ
FROM TCN41
INTO @DATA(ld_c_profidnetz).


SELECT single PROFILE
FROM TCBP
INTO @DATA(ld_c_profidbalk).


SELECT single PROFIL_ID
FROM TCY10
INTO @DATA(ld_c_profil_id).


DATA(ld_c_eis_repid) = some text here

SELECT single PS_HIERART
FROM TCNDS
INTO @DATA(ld_c_ps_hierart).


SELECT single HIERAR
FROM TCNDS
INTO @DATA(ld_c_hierar).


SELECT single HIERID
FROM TCNDS
INTO @DATA(ld_c_hierid).


SELECT single HIENM
FROM TCNDS
INTO @DATA(ld_c_hienm).


DATA(ld_c_stufe_von) = Check type of data required

DATA(ld_c_stufe_bis) = Check type of data required

SELECT single CMPOS
FROM TCBP
INTO @DATA(ld_c_cmpos).


SELECT single CMART
FROM TCBP
INTO @DATA(ld_c_cmart).


DATA(ld_c_flg_einst) = some text here

DATA(ld_c_flg_auth) = some text here

DATA(ld_c_flg_daten) = some text here

SELECT single USERNAME
FROM CDHDR
INTO @DATA(ld_c_username).


SELECT single UDATE
FROM CDHDR
INTO @DATA(ld_c_changedate).


SELECT single UTIME
FROM CDHDR
INTO @DATA(ld_c_changetime).

DATA(ld_i_titlebar) = 'Check type of data required'.

SELECT single TABNAME
FROM TCND
INTO @DATA(ld_i_tabname).

DATA(ld_i_flg_call) = 'Check type of data required'.
DATA(ld_i_flg_titletext) = 'Check type of data required'.
DATA(ld_i_flg_toptext) = 'Check type of data required'.
DATA(ld_i_flg_pickup) = 'Check type of data required'.
DATA(ld_i_flg_arnummer) = 'Check type of data required'.
DATA(ld_i_flg_vsnummer) = 'Check type of data required'.
DATA(ld_i_flg_version) = 'Check type of data required'.

SELECT single VSKAT
FROM VSKOPF
INTO @DATA(ld_i_vskat).

DATA(ld_i_flg_co_versionen) = 'Check type of data required'.
DATA(ld_i_flg_ev_versionen) = 'Check type of data required'.
DATA(ld_i_flg_tcnt) = 'Check type of data required'.
DATA(ld_i_flg_tcnu) = 'Check type of data required'.
DATA(ld_i_flg_tcndb) = 'Check type of data required'.
DATA(ld_i_flg_tcnds) = 'Check type of data required'.
DATA(ld_i_flg_tcnd) = 'Check type of data required'.
DATA(ld_i_flg_tcnf) = 'Check type of data required'.
DATA(ld_i_flg_tcns) = 'Check type of data required'.
DATA(ld_i_flg_tcna) = 'Check type of data required'.
DATA(ld_i_flg_tcnp) = 'Check type of data required'.
DATA(ld_i_flg_tcnvg) = 'Check type of data required'.
DATA(ld_i_flg_slwid) = 'Check type of data required'.
DATA(ld_i_flg_profidproj) = 'Check type of data required'.
DATA(ld_i_flg_profidnetz) = 'Check type of data required'.
DATA(ld_i_flg_profidbalk) = 'Check type of data required'.
DATA(ld_i_flg_psrlv) = 'Check type of data required'.
DATA(ld_i_flg_profil_id) = 'Check type of data required'.
DATA(ld_i_flg_eis_repid) = 'Check type of data required'.
DATA(ld_i_flg_hierarchie) = 'Check type of data required'.
DATA(ld_i_flg_stufen) = 'Check type of data required'.
DATA(ld_i_flg_beschriftung) = 'Check type of data required'.
DATA(ld_i_flg_mail) = 'Check type of data required'.
DATA(ld_i_flg_change_documents) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_range_aufnr to it_t_range_aufnr.

"populate fields of struture and append to itab
append wa_t_range_posid to it_t_range_posid.

"populate fields of struture and append to itab
append wa_t_range_pspid to it_t_range_pspid. . CALL FUNCTION 'CNIS_GET_VALUES' EXPORTING i_titlebar = ld_i_titlebar * i_tabname = ld_i_tabname * i_flg_call = ld_i_flg_call * i_flg_titletext = ld_i_flg_titletext * i_flg_toptext = ld_i_flg_toptext * i_flg_pickup = ld_i_flg_pickup * i_flg_arnummer = ld_i_flg_arnummer * i_flg_vsnummer = ld_i_flg_vsnummer * i_flg_version = ld_i_flg_version * i_vskat = ld_i_vskat * i_flg_co_versionen = ld_i_flg_co_versionen * i_flg_ev_versionen = ld_i_flg_ev_versionen * i_flg_tcnt = ld_i_flg_tcnt * i_flg_tcnu = ld_i_flg_tcnu * i_flg_tcndb = ld_i_flg_tcndb * i_flg_tcnds = ld_i_flg_tcnds * i_flg_tcnd = ld_i_flg_tcnd * i_flg_tcnf = ld_i_flg_tcnf * i_flg_tcns = ld_i_flg_tcns * i_flg_tcna = ld_i_flg_tcna * i_flg_tcnp = ld_i_flg_tcnp * i_flg_tcnvg = ld_i_flg_tcnvg * i_flg_slwid = ld_i_flg_slwid * i_flg_profidproj = ld_i_flg_profidproj * i_flg_profidnetz = ld_i_flg_profidnetz * i_flg_profidbalk = ld_i_flg_profidbalk * i_flg_psrlv = ld_i_flg_psrlv * i_flg_profil_id = ld_i_flg_profil_id * i_flg_eis_repid = ld_i_flg_eis_repid * i_flg_hierarchie = ld_i_flg_hierarchie * i_flg_stufen = ld_i_flg_stufen * i_flg_beschriftung = ld_i_flg_beschriftung * i_flg_mail = ld_i_flg_mail * i_flg_change_documents = ld_i_flg_change_documents IMPORTING e_flg_call = ld_e_flg_call * TABLES * t_range_aufnr = it_t_range_aufnr * t_range_posid = it_t_range_posid * t_range_pspid = it_t_range_pspid * CHANGING * c_titletext = ld_c_titletext * c_toptext = ld_c_toptext * c_pickup_key = ld_c_pickup_key * c_pickup_feld = ld_c_pickup_feld * c_cursor_vor_mark = ld_c_cursor_vor_mark * c_arnummer = ld_c_arnummer * c_vsnummer = ld_c_vsnummer * c_vstext = ld_c_vstext * c_vsgruppe = ld_c_vsgruppe * c_vsmta = ld_c_vsmta * c_co_vsnummer_1 = ld_c_co_vsnummer_1 * c_co_vsnummer_2 = ld_c_co_vsnummer_2 * c_ev_vsnummer_1 = ld_c_ev_vsnummer_1 * c_tcnt_profid = ld_c_tcnt_profid * c_tcnt_prof_uc = ld_c_tcnt_prof_uc * c_tcnt_prof_db = ld_c_tcnt_prof_db * c_tcndb_db_view = ld_c_tcndb_db_view * c_tcnd_profid = ld_c_tcnd_profid * c_tcnd_prof_fd = ld_c_tcnd_prof_fd * c_tcnd_prof_sr = ld_c_tcnd_prof_sr * c_tcnd_prof_ag = ld_c_tcnd_prof_ag * c_tcnd_prof_gp = ld_c_tcnd_prof_gp * c_tcnd_prof_vgl = ld_c_tcnd_prof_vgl * c_slwid = ld_c_slwid * c_profidproj = ld_c_profidproj * c_plnaw = ld_c_plnaw * c_profidnetz = ld_c_profidnetz * c_profidbalk = ld_c_profidbalk * c_profil_id = ld_c_profil_id * c_eis_repid = ld_c_eis_repid * c_ps_hierart = ld_c_ps_hierart * c_hierar = ld_c_hierar * c_hierid = ld_c_hierid * c_hienm = ld_c_hienm * c_stufe_von = ld_c_stufe_von * c_stufe_bis = ld_c_stufe_bis * c_cmpos = ld_c_cmpos * c_cmart = ld_c_cmart * c_flg_einst = ld_c_flg_einst * c_flg_auth = ld_c_flg_auth * c_flg_daten = ld_c_flg_daten * c_username = ld_c_username * c_changedate = ld_c_changedate * c_changetime = ld_c_changetime EXCEPTIONS CANCEL = 1 . " CNIS_GET_VALUES
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
it_t_range_aufnr  TYPE STANDARD TABLE OF STANDARD TABLE ,
wa_t_range_aufnr  LIKE LINE OF it_t_range_aufnr,
ld_e_flg_call  TYPE XFELD ,
ld_i_titlebar  TYPE CLIKE ,
ld_c_titletext  TYPE TCNT-TITLETEXT ,
ld_c_toptext  TYPE TCNT-TOPTEXT ,
it_t_range_posid  TYPE STANDARD TABLE OF STANDARD TABLE ,
wa_t_range_posid  LIKE LINE OF it_t_range_posid,
ld_i_tabname  TYPE TCND-TABNAME ,
ld_i_flg_call  TYPE XFELD ,
it_t_range_pspid  TYPE STANDARD TABLE OF STANDARD TABLE ,
wa_t_range_pspid  LIKE LINE OF it_t_range_pspid,
ld_c_pickup_key  TYPE TCNT-PICKUP_KEY ,
ld_i_flg_titletext  TYPE XFELD ,
ld_c_pickup_feld  TYPE TCNT-PICKUP_FLD ,
ld_i_flg_toptext  TYPE XFELD ,
ld_c_cursor_vor_mark  TYPE TCNT-FLG_CSVRMK ,
ld_c_arnummer  TYPE ADMI_RUN-DOCUMENT ,
ld_i_flg_pickup  TYPE XFELD ,
ld_c_vsnummer  TYPE VSKOPF-VSNMR ,
ld_i_flg_arnummer  TYPE XFELD ,
ld_c_vstext  TYPE VSKOPF-VSTEXT ,
ld_i_flg_vsnummer  TYPE XFELD ,
ld_c_vsgruppe  TYPE VSKOPF-VSGRUPPE ,
ld_i_flg_version  TYPE XFELD ,
ld_c_vsmta  TYPE VSKOPF-VSMTA ,
ld_i_vskat  TYPE VSKOPF-VSKAT ,
ld_c_co_vsnummer_1  TYPE RPSCO_X-VERSN ,
ld_i_flg_co_versionen  TYPE XFELD ,
ld_i_flg_ev_versionen  TYPE XFELD ,
ld_c_co_vsnummer_2  TYPE RPSCO_X-VERSN ,
ld_c_ev_vsnummer_1  TYPE EVOP-VERSN_EV ,
ld_i_flg_tcnt  TYPE XFELD ,
ld_c_tcnt_profid  TYPE TCNT-PROFID ,
ld_i_flg_tcnu  TYPE XFELD ,
ld_c_tcnt_prof_uc  TYPE TCNT-PROF_UC ,
ld_i_flg_tcndb  TYPE XFELD ,
ld_i_flg_tcnds  TYPE XFELD ,
ld_c_tcnt_prof_db  TYPE TCNT-PROF_DB ,
ld_i_flg_tcnd  TYPE XFELD ,
ld_c_tcndb_db_view  TYPE TCNDB-DB_VIEW ,
ld_i_flg_tcnf  TYPE XFELD ,
ld_c_tcnd_profid  TYPE TCND-PROFID ,
ld_i_flg_tcns  TYPE XFELD ,
ld_c_tcnd_prof_fd  TYPE TCND-PROF_FD ,
ld_i_flg_tcna  TYPE XFELD ,
ld_c_tcnd_prof_sr  TYPE TCND-PROF_SR ,
ld_i_flg_tcnp  TYPE XFELD ,
ld_c_tcnd_prof_ag  TYPE TCND-PROF_AG ,
ld_i_flg_tcnvg  TYPE XFELD ,
ld_c_tcnd_prof_gp  TYPE TCND-PROF_GP ,
ld_i_flg_slwid  TYPE XFELD ,
ld_c_tcnd_prof_vgl  TYPE TCND-PROF_VGL ,
ld_i_flg_profidproj  TYPE XFELD ,
ld_c_slwid  TYPE TCN01-SLWID ,
ld_i_flg_profidnetz  TYPE XFELD ,
ld_c_profidproj  TYPE TCJ41-PROFIDPROJ ,
ld_i_flg_profidbalk  TYPE XFELD ,
ld_c_plnaw  TYPE TCN41-PLNAW ,
ld_i_flg_psrlv  TYPE XFELD ,
ld_c_profidnetz  TYPE TCN41-PROFIDNETZ ,
ld_i_flg_profil_id  TYPE XFELD ,
ld_c_profidbalk  TYPE TCBP-PROFILE ,
ld_i_flg_eis_repid  TYPE XFELD ,
ld_c_profil_id  TYPE TCY10-PROFIL_ID ,
ld_i_flg_hierarchie  TYPE XFELD ,
ld_c_eis_repid  TYPE RKB1D-REPID ,
ld_i_flg_stufen  TYPE XFELD ,
ld_c_ps_hierart  TYPE TCNDS-PS_HIERART ,
ld_i_flg_beschriftung  TYPE XFELD ,
ld_c_hierar  TYPE TCNDS-HIERAR ,
ld_i_flg_mail  TYPE XFELD ,
ld_c_hierid  TYPE TCNDS-HIERID ,
ld_i_flg_change_documents  TYPE XFELD ,
ld_c_hienm  TYPE TCNDS-HIENM ,
ld_c_stufe_von  TYPE KKHIE-STUFE ,
ld_c_stufe_bis  TYPE KKHIE-STUFE ,
ld_c_cmpos  TYPE TCBP-CMPOS ,
ld_c_cmart  TYPE TCBP-CMART ,
ld_c_flg_einst  TYPE CNISFIELDS-FLG_EINST ,
ld_c_flg_auth  TYPE CNISFIELDS-FLG_AUTH ,
ld_c_flg_daten  TYPE CNISFIELDS-FLG_DATEN ,
ld_c_username  TYPE CDHDR-USERNAME ,
ld_c_changedate  TYPE CDHDR-UDATE ,
ld_c_changetime  TYPE CDHDR-UTIME .


"populate fields of struture and append to itab
append wa_t_range_aufnr to it_t_range_aufnr.
ld_i_titlebar = 'Check type of data required'.

SELECT single TITLETEXT
FROM TCNT
INTO ld_c_titletext.


SELECT single TOPTEXT
FROM TCNT
INTO ld_c_toptext.


"populate fields of struture and append to itab
append wa_t_range_posid to it_t_range_posid.

SELECT single TABNAME
FROM TCND
INTO ld_i_tabname.

ld_i_flg_call = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_range_pspid to it_t_range_pspid.

SELECT single PICKUP_KEY
FROM TCNT
INTO ld_c_pickup_key.

ld_i_flg_titletext = 'Check type of data required'.

SELECT single PICKUP_FLD
FROM TCNT
INTO ld_c_pickup_feld.

ld_i_flg_toptext = 'Check type of data required'.

SELECT single FLG_CSVRMK
FROM TCNT
INTO ld_c_cursor_vor_mark.


SELECT single DOCUMENT
FROM ADMI_RUN
INTO ld_c_arnummer.

ld_i_flg_pickup = 'Check type of data required'.

SELECT single VSNMR
FROM VSKOPF
INTO ld_c_vsnummer.

ld_i_flg_arnummer = 'Check type of data required'.

SELECT single VSTEXT
FROM VSKOPF
INTO ld_c_vstext.

ld_i_flg_vsnummer = 'Check type of data required'.

SELECT single VSGRUPPE
FROM VSKOPF
INTO ld_c_vsgruppe.

ld_i_flg_version = 'Check type of data required'.

SELECT single VSMTA
FROM VSKOPF
INTO ld_c_vsmta.


SELECT single VSKAT
FROM VSKOPF
INTO ld_i_vskat.


ld_c_co_vsnummer_1 = some text here
ld_i_flg_co_versionen = 'Check type of data required'.
ld_i_flg_ev_versionen = 'Check type of data required'.

ld_c_co_vsnummer_2 = some text here

SELECT single VERSN_EV
FROM EVOP
INTO ld_c_ev_vsnummer_1.

ld_i_flg_tcnt = 'Check type of data required'.

SELECT single PROFID
FROM TCNT
INTO ld_c_tcnt_profid.

ld_i_flg_tcnu = 'Check type of data required'.

SELECT single PROF_UC
FROM TCNT
INTO ld_c_tcnt_prof_uc.

ld_i_flg_tcndb = 'Check type of data required'.
ld_i_flg_tcnds = 'Check type of data required'.

SELECT single PROF_DB
FROM TCNT
INTO ld_c_tcnt_prof_db.

ld_i_flg_tcnd = 'Check type of data required'.

SELECT single DB_VIEW
FROM TCNDB
INTO ld_c_tcndb_db_view.

ld_i_flg_tcnf = 'Check type of data required'.

SELECT single PROFID
FROM TCND
INTO ld_c_tcnd_profid.

ld_i_flg_tcns = 'Check type of data required'.

SELECT single PROF_FD
FROM TCND
INTO ld_c_tcnd_prof_fd.

ld_i_flg_tcna = 'Check type of data required'.

SELECT single PROF_SR
FROM TCND
INTO ld_c_tcnd_prof_sr.

ld_i_flg_tcnp = 'Check type of data required'.

SELECT single PROF_AG
FROM TCND
INTO ld_c_tcnd_prof_ag.

ld_i_flg_tcnvg = 'Check type of data required'.

SELECT single PROF_GP
FROM TCND
INTO ld_c_tcnd_prof_gp.

ld_i_flg_slwid = 'Check type of data required'.

SELECT single PROF_VGL
FROM TCND
INTO ld_c_tcnd_prof_vgl.

ld_i_flg_profidproj = 'Check type of data required'.

SELECT single SLWID
FROM TCN01
INTO ld_c_slwid.

ld_i_flg_profidnetz = 'Check type of data required'.

SELECT single PROFIDPROJ
FROM TCJ41
INTO ld_c_profidproj.

ld_i_flg_profidbalk = 'Check type of data required'.

SELECT single PLNAW
FROM TCN41
INTO ld_c_plnaw.

ld_i_flg_psrlv = 'Check type of data required'.

SELECT single PROFIDNETZ
FROM TCN41
INTO ld_c_profidnetz.

ld_i_flg_profil_id = 'Check type of data required'.

SELECT single PROFILE
FROM TCBP
INTO ld_c_profidbalk.

ld_i_flg_eis_repid = 'Check type of data required'.

SELECT single PROFIL_ID
FROM TCY10
INTO ld_c_profil_id.

ld_i_flg_hierarchie = 'Check type of data required'.

ld_c_eis_repid = some text here
ld_i_flg_stufen = 'Check type of data required'.

SELECT single PS_HIERART
FROM TCNDS
INTO ld_c_ps_hierart.

ld_i_flg_beschriftung = 'Check type of data required'.

SELECT single HIERAR
FROM TCNDS
INTO ld_c_hierar.

ld_i_flg_mail = 'Check type of data required'.

SELECT single HIERID
FROM TCNDS
INTO ld_c_hierid.

ld_i_flg_change_documents = 'Check type of data required'.

SELECT single HIENM
FROM TCNDS
INTO ld_c_hienm.


ld_c_stufe_von = Check type of data required

ld_c_stufe_bis = Check type of data required

SELECT single CMPOS
FROM TCBP
INTO ld_c_cmpos.


SELECT single CMART
FROM TCBP
INTO ld_c_cmart.


ld_c_flg_einst = some text here

ld_c_flg_auth = some text here

ld_c_flg_daten = some text here

SELECT single USERNAME
FROM CDHDR
INTO ld_c_username.


SELECT single UDATE
FROM CDHDR
INTO ld_c_changedate.


SELECT single UTIME
FROM CDHDR
INTO ld_c_changetime.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CNIS_GET_VALUES or its description.