SAP Function Modules

CNIS_GET_PROFIDS SAP Function module







CNIS_GET_PROFIDS 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_PROFIDS 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_PROFIDS - CNIS GET PROFIDS





CALL FUNCTION 'CNIS_GET_PROFIDS' "
* EXPORTING
*   i_flg_tcnt = SPACE          " xfeld         Flag, Display PS Info profile
*   i_flg_tcnu = SPACE          " xfeld         Flag, Datenbankprofil anzeigen
*   i_flg_tcndb = SPACE         " xfeld         Flag, Display database profile
*   i_flg_tcnds = SPACE         " xfeld         Flag, Datenbankprofil anzeigen
*   i_flg_tcns = SPACE          " xfeld         Flag, Display sort criteria profile
*   i_flg_tcneg = SPACE         " xfeld
*   i_flg_tcna = SPACE          " xfeld         Flag, Profil: Verdichtungskriterien anzeigen
*   i_flg_tcnp = SPACE          " xfeld         Flag, Display grouping criteria profile
*   i_flg_tcnvg = SPACE         " xfeld         Flag, Profil: Vergleichskriterien Filter anzeig.
*   i_flg_tcnvg1 = SPACE        " xfeld         Flag, Profil: Vergleichskriterien Hervorhebung 1
*   i_flg_tcnvg2 = SPACE        " xfeld         Flag, Profil: Vergleichskriterien Hervorhebung 2
  IMPORTING
    e_flg_save_tcnt =           " xfeld         Flag, Retrieve overall profile
    e_flg_save_tcnu =           " xfeld         Flag, Einheitenumrechnungprofil holen
    e_flg_save_tcndb =          " xfeld         Flag, Retrieve database profile
    e_flg_save_tcnds =          " xfeld         Flag: retrieve database view profile
    e_flg_save_tcnd =           " xfeld         Flag, Retrieve overview profile
    e_flg_save_tcnf =           " xfeld         Flag, Profile: Retrieve displayed fields
    e_flg_save_tcneg =          " xfeld
    e_flg_save_tcns =           " xfeld         Flag, profile: Retrieve sorting criteria
    e_flg_save_tcna =           " xfeld         Flag, Profil: Verdichtungskriterien hole
    e_flg_save_tcnp =           " xfeld         Flag, Profile: Retrieve grouping criteria
    e_flg_save_tcnvg =          " xfeld         Flag, Profil: Vergleichskriterien Filter holen
    e_flg_save_tcnvg1 =         " xfeld         Flag, Profil: Vergleichskriterien Hervorhebung 1
    e_flg_save_tcnvg2 =         " xfeld         Flag, Profil: Vergleichskriterien Hervorhebung 2
* CHANGING
*   c_tcnt =                    " tcnt          PS Info Profile
*   c_tcnu =                    " tcnu          Einheitenumrechnungprofil
*   c_tcndb =                   " tcndb         Database profile
*   c_tcnds =                   " tcnds         Database view profile
*   c_tcnd =                    " tcnd          Settings profile
*   c_tcnf =                    " tcnf          Profile: Displayed fields
*   c_tcneg =                   " tcneg
*   c_tcns =                    " tcns          Profile: Sort criteria
*   c_tcna =                    " tcna          Profil: Verdichtungskriterien
*   c_tcnp =                    " tcnp          Profile: Grouping criteria
*   c_tcnvg =                   " tcnvg         Profil: Vergleichskriterien Filter
*   c_tcnvg1 =                  " tcnvg         Profil: Vergleichskriterien Hervorhebung 1
*   c_tcnvg2 =                  " tcnvg         Profil: Vergleichskriterien Hervorhebung 2
*   c_tcntt =                   " tcntt         Texts for overall profile
*   c_tcnut =                   " tcnut         Texte zum Einheitenumrechnungprofil
*   c_tcndbt =                  " tcndbt        Texts for database profile
*   c_tcndst =                  " tcndst        Texts for database view profile
*   c_tcndt =                   " tcndt         Texts for settings profile
*   c_tcnft =                   " tcnft         Texts for profile: Displayed fields
*   c_tcnegt =                  " tcnegt
*   c_tcnst =                   " tcnst         Texts for profile: Sort criteria
*   c_tcnat =                   " tcnat         Texte zum Profil: Verdichtungskriterien
*   c_tcnpt =                   " tcnpt         Texts for profile: Grouping criteria
*   c_tcnvgt =                  " tcnvgt        Texte zum Profil: Vergleichskriterien Filter
*   c_tcnvg1t =                 " tcnvgt        Texte zum Profil: Vergleichskriterien Hervorh. 1
*   c_tcnvg2t =                 " tcnvgt        Texte zum Profil: Vergleichskriterien Hervorh. 2
  EXCEPTIONS
    CANCEL = 1                  "               Cancel
    .  "  CNIS_GET_PROFIDS

ABAP code example for Function Module CNIS_GET_PROFIDS





The ABAP code below is a full code listing to execute function module CNIS_GET_PROFIDS 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_save_tcnt  TYPE XFELD ,
ld_e_flg_save_tcnu  TYPE XFELD ,
ld_e_flg_save_tcndb  TYPE XFELD ,
ld_e_flg_save_tcnds  TYPE XFELD ,
ld_e_flg_save_tcnd  TYPE XFELD ,
ld_e_flg_save_tcnf  TYPE XFELD ,
ld_e_flg_save_tcneg  TYPE XFELD ,
ld_e_flg_save_tcns  TYPE XFELD ,
ld_e_flg_save_tcna  TYPE XFELD ,
ld_e_flg_save_tcnp  TYPE XFELD ,
ld_e_flg_save_tcnvg  TYPE XFELD ,
ld_e_flg_save_tcnvg1  TYPE XFELD ,
ld_e_flg_save_tcnvg2  TYPE XFELD .

DATA(ld_c_tcnt) = 'Check type of data required'.
DATA(ld_c_tcnu) = 'Check type of data required'.
DATA(ld_c_tcndb) = 'Check type of data required'.
DATA(ld_c_tcnds) = 'Check type of data required'.
DATA(ld_c_tcnd) = 'Check type of data required'.
DATA(ld_c_tcnf) = 'Check type of data required'.
DATA(ld_c_tcneg) = 'Check type of data required'.
DATA(ld_c_tcns) = 'Check type of data required'.
DATA(ld_c_tcna) = 'Check type of data required'.
DATA(ld_c_tcnp) = 'Check type of data required'.
DATA(ld_c_tcnvg) = 'Check type of data required'.
DATA(ld_c_tcnvg1) = 'Check type of data required'.
DATA(ld_c_tcnvg2) = 'Check type of data required'.
DATA(ld_c_tcntt) = 'Check type of data required'.
DATA(ld_c_tcnut) = 'Check type of data required'.
DATA(ld_c_tcndbt) = 'Check type of data required'.
DATA(ld_c_tcndst) = 'Check type of data required'.
DATA(ld_c_tcndt) = 'Check type of data required'.
DATA(ld_c_tcnft) = 'Check type of data required'.
DATA(ld_c_tcnegt) = 'Check type of data required'.
DATA(ld_c_tcnst) = 'Check type of data required'.
DATA(ld_c_tcnat) = 'Check type of data required'.
DATA(ld_c_tcnpt) = 'Check type of data required'.
DATA(ld_c_tcnvgt) = 'Check type of data required'.
DATA(ld_c_tcnvg1t) = 'Check type of data required'.
DATA(ld_c_tcnvg2t) = '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_tcns) = 'Check type of data required'.
DATA(ld_i_flg_tcneg) = '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_tcnvg1) = 'Check type of data required'.
DATA(ld_i_flg_tcnvg2) = 'Check type of data required'. . CALL FUNCTION 'CNIS_GET_PROFIDS' * EXPORTING * 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_tcns = ld_i_flg_tcns * i_flg_tcneg = ld_i_flg_tcneg * i_flg_tcna = ld_i_flg_tcna * i_flg_tcnp = ld_i_flg_tcnp * i_flg_tcnvg = ld_i_flg_tcnvg * i_flg_tcnvg1 = ld_i_flg_tcnvg1 * i_flg_tcnvg2 = ld_i_flg_tcnvg2 IMPORTING e_flg_save_tcnt = ld_e_flg_save_tcnt e_flg_save_tcnu = ld_e_flg_save_tcnu e_flg_save_tcndb = ld_e_flg_save_tcndb e_flg_save_tcnds = ld_e_flg_save_tcnds e_flg_save_tcnd = ld_e_flg_save_tcnd e_flg_save_tcnf = ld_e_flg_save_tcnf e_flg_save_tcneg = ld_e_flg_save_tcneg e_flg_save_tcns = ld_e_flg_save_tcns e_flg_save_tcna = ld_e_flg_save_tcna e_flg_save_tcnp = ld_e_flg_save_tcnp e_flg_save_tcnvg = ld_e_flg_save_tcnvg e_flg_save_tcnvg1 = ld_e_flg_save_tcnvg1 e_flg_save_tcnvg2 = ld_e_flg_save_tcnvg2 * CHANGING * c_tcnt = ld_c_tcnt * c_tcnu = ld_c_tcnu * c_tcndb = ld_c_tcndb * c_tcnds = ld_c_tcnds * c_tcnd = ld_c_tcnd * c_tcnf = ld_c_tcnf * c_tcneg = ld_c_tcneg * c_tcns = ld_c_tcns * c_tcna = ld_c_tcna * c_tcnp = ld_c_tcnp * c_tcnvg = ld_c_tcnvg * c_tcnvg1 = ld_c_tcnvg1 * c_tcnvg2 = ld_c_tcnvg2 * c_tcntt = ld_c_tcntt * c_tcnut = ld_c_tcnut * c_tcndbt = ld_c_tcndbt * c_tcndst = ld_c_tcndst * c_tcndt = ld_c_tcndt * c_tcnft = ld_c_tcnft * c_tcnegt = ld_c_tcnegt * c_tcnst = ld_c_tcnst * c_tcnat = ld_c_tcnat * c_tcnpt = ld_c_tcnpt * c_tcnvgt = ld_c_tcnvgt * c_tcnvg1t = ld_c_tcnvg1t * c_tcnvg2t = ld_c_tcnvg2t EXCEPTIONS CANCEL = 1 . " CNIS_GET_PROFIDS
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:
ld_c_tcnt  TYPE TCNT ,
ld_e_flg_save_tcnt  TYPE XFELD ,
ld_i_flg_tcnt  TYPE XFELD ,
ld_c_tcnu  TYPE TCNU ,
ld_e_flg_save_tcnu  TYPE XFELD ,
ld_i_flg_tcnu  TYPE XFELD ,
ld_c_tcndb  TYPE TCNDB ,
ld_e_flg_save_tcndb  TYPE XFELD ,
ld_i_flg_tcndb  TYPE XFELD ,
ld_c_tcnds  TYPE TCNDS ,
ld_e_flg_save_tcnds  TYPE XFELD ,
ld_i_flg_tcnds  TYPE XFELD ,
ld_e_flg_save_tcnd  TYPE XFELD ,
ld_i_flg_tcns  TYPE XFELD ,
ld_c_tcnd  TYPE TCND ,
ld_i_flg_tcneg  TYPE XFELD ,
ld_c_tcnf  TYPE TCNF ,
ld_e_flg_save_tcnf  TYPE XFELD ,
ld_i_flg_tcna  TYPE XFELD ,
ld_e_flg_save_tcneg  TYPE XFELD ,
ld_c_tcneg  TYPE TCNEG ,
ld_i_flg_tcnp  TYPE XFELD ,
ld_e_flg_save_tcns  TYPE XFELD ,
ld_c_tcns  TYPE TCNS ,
ld_i_flg_tcnvg  TYPE XFELD ,
ld_e_flg_save_tcna  TYPE XFELD ,
ld_c_tcna  TYPE TCNA ,
ld_i_flg_tcnvg1  TYPE XFELD ,
ld_e_flg_save_tcnp  TYPE XFELD ,
ld_c_tcnp  TYPE TCNP ,
ld_e_flg_save_tcnvg  TYPE XFELD ,
ld_i_flg_tcnvg2  TYPE XFELD ,
ld_c_tcnvg  TYPE TCNVG ,
ld_e_flg_save_tcnvg1  TYPE XFELD ,
ld_c_tcnvg1  TYPE TCNVG ,
ld_e_flg_save_tcnvg2  TYPE XFELD ,
ld_c_tcnvg2  TYPE TCNVG ,
ld_c_tcntt  TYPE TCNTT ,
ld_c_tcnut  TYPE TCNUT ,
ld_c_tcndbt  TYPE TCNDBT ,
ld_c_tcndst  TYPE TCNDST ,
ld_c_tcndt  TYPE TCNDT ,
ld_c_tcnft  TYPE TCNFT ,
ld_c_tcnegt  TYPE TCNEGT ,
ld_c_tcnst  TYPE TCNST ,
ld_c_tcnat  TYPE TCNAT ,
ld_c_tcnpt  TYPE TCNPT ,
ld_c_tcnvgt  TYPE TCNVGT ,
ld_c_tcnvg1t  TYPE TCNVGT ,
ld_c_tcnvg2t  TYPE TCNVGT .

ld_c_tcnt = 'Check type of data required'.
ld_i_flg_tcnt = 'Check type of data required'.
ld_c_tcnu = 'Check type of data required'.
ld_i_flg_tcnu = 'Check type of data required'.
ld_c_tcndb = 'Check type of data required'.
ld_i_flg_tcndb = 'Check type of data required'.
ld_c_tcnds = 'Check type of data required'.
ld_i_flg_tcnds = 'Check type of data required'.
ld_i_flg_tcns = 'Check type of data required'.
ld_c_tcnd = 'Check type of data required'.
ld_i_flg_tcneg = 'Check type of data required'.
ld_c_tcnf = 'Check type of data required'.
ld_i_flg_tcna = 'Check type of data required'.
ld_c_tcneg = 'Check type of data required'.
ld_i_flg_tcnp = 'Check type of data required'.
ld_c_tcns = 'Check type of data required'.
ld_i_flg_tcnvg = 'Check type of data required'.
ld_c_tcna = 'Check type of data required'.
ld_i_flg_tcnvg1 = 'Check type of data required'.
ld_c_tcnp = 'Check type of data required'.
ld_i_flg_tcnvg2 = 'Check type of data required'.
ld_c_tcnvg = 'Check type of data required'.
ld_c_tcnvg1 = 'Check type of data required'.
ld_c_tcnvg2 = 'Check type of data required'.
ld_c_tcntt = 'Check type of data required'.
ld_c_tcnut = 'Check type of data required'.
ld_c_tcndbt = 'Check type of data required'.
ld_c_tcndst = 'Check type of data required'.
ld_c_tcndt = 'Check type of data required'.
ld_c_tcnft = 'Check type of data required'.
ld_c_tcnegt = 'Check type of data required'.
ld_c_tcnst = 'Check type of data required'.
ld_c_tcnat = 'Check type of data required'.
ld_c_tcnpt = 'Check type of data required'.
ld_c_tcnvgt = 'Check type of data required'.
ld_c_tcnvg1t = 'Check type of data required'.
ld_c_tcnvg2t = 'Check type of data required'.

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_PROFIDS or its description.