SAP Function Modules

FC_ENCODING_INFO_READ SAP Function module







FC_ENCODING_INFO_READ 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 FC_ENCODING_INFO_READ into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FC_ENCODING_INFO_READ - FC ENCODING INFO READ





CALL FUNCTION 'FC_ENCODING_INFO_READ' "
* EXPORTING
*   i_flg_streams_read = 'X'    " fc_flg
*   i_flg_active_only = 'X'     " fc_flg
*   i_flg_rules_read = 'X'      " fc_flg
* TABLES
*   i_t_ra_contp =              " fcin_t_ra_contp
*   i_t_ra_dimen =              " fc00_t_ra_dimen
*   i_t_ra_itclg =              " fc00_t_ra_itclg
*   i_t_ra_rvers =              " fc00_t_ra_rvers
*   i_t_ra_csorgun =            " fcin_t_ra_csorgun
*   e_t_tfin000 =               " fcin_t_tfin000
*   e_t_tfin001 =               " fcin_t_tfin001
*   e_t_act_contp =             " fcin_t_contp
*   e_t_ctp =                   " fcin_t_ctp
  EXCEPTIONS
    NO_DATA_STREAM = 1          "
    NO_ACT_DATA_STREAM = 2      "
    NO_RULES = 3                "
    NO_ACT_RULES = 4            "
    .  "  FC_ENCODING_INFO_READ

ABAP code example for Function Module FC_ENCODING_INFO_READ





The ABAP code below is a full code listing to execute function module FC_ENCODING_INFO_READ 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:
it_i_t_ra_contp  TYPE STANDARD TABLE OF FCIN_T_RA_CONTP,"TABLES PARAM
wa_i_t_ra_contp  LIKE LINE OF it_i_t_ra_contp ,
it_i_t_ra_dimen  TYPE STANDARD TABLE OF FC00_T_RA_DIMEN,"TABLES PARAM
wa_i_t_ra_dimen  LIKE LINE OF it_i_t_ra_dimen ,
it_i_t_ra_itclg  TYPE STANDARD TABLE OF FC00_T_RA_ITCLG,"TABLES PARAM
wa_i_t_ra_itclg  LIKE LINE OF it_i_t_ra_itclg ,
it_i_t_ra_rvers  TYPE STANDARD TABLE OF FC00_T_RA_RVERS,"TABLES PARAM
wa_i_t_ra_rvers  LIKE LINE OF it_i_t_ra_rvers ,
it_i_t_ra_csorgun  TYPE STANDARD TABLE OF FCIN_T_RA_CSORGUN,"TABLES PARAM
wa_i_t_ra_csorgun  LIKE LINE OF it_i_t_ra_csorgun ,
it_e_t_tfin000  TYPE STANDARD TABLE OF FCIN_T_TFIN000,"TABLES PARAM
wa_e_t_tfin000  LIKE LINE OF it_e_t_tfin000 ,
it_e_t_tfin001  TYPE STANDARD TABLE OF FCIN_T_TFIN001,"TABLES PARAM
wa_e_t_tfin001  LIKE LINE OF it_e_t_tfin001 ,
it_e_t_act_contp  TYPE STANDARD TABLE OF FCIN_T_CONTP,"TABLES PARAM
wa_e_t_act_contp  LIKE LINE OF it_e_t_act_contp ,
it_e_t_ctp  TYPE STANDARD TABLE OF FCIN_T_CTP,"TABLES PARAM
wa_e_t_ctp  LIKE LINE OF it_e_t_ctp .

DATA(ld_i_flg_streams_read) = 'Check type of data required'.
DATA(ld_i_flg_active_only) = 'Check type of data required'.
DATA(ld_i_flg_rules_read) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_ra_contp to it_i_t_ra_contp.

"populate fields of struture and append to itab
append wa_i_t_ra_dimen to it_i_t_ra_dimen.

"populate fields of struture and append to itab
append wa_i_t_ra_itclg to it_i_t_ra_itclg.

"populate fields of struture and append to itab
append wa_i_t_ra_rvers to it_i_t_ra_rvers.

"populate fields of struture and append to itab
append wa_i_t_ra_csorgun to it_i_t_ra_csorgun.

"populate fields of struture and append to itab
append wa_e_t_tfin000 to it_e_t_tfin000.

"populate fields of struture and append to itab
append wa_e_t_tfin001 to it_e_t_tfin001.

"populate fields of struture and append to itab
append wa_e_t_act_contp to it_e_t_act_contp.

"populate fields of struture and append to itab
append wa_e_t_ctp to it_e_t_ctp. . CALL FUNCTION 'FC_ENCODING_INFO_READ' * EXPORTING * i_flg_streams_read = ld_i_flg_streams_read * i_flg_active_only = ld_i_flg_active_only * i_flg_rules_read = ld_i_flg_rules_read * TABLES * i_t_ra_contp = it_i_t_ra_contp * i_t_ra_dimen = it_i_t_ra_dimen * i_t_ra_itclg = it_i_t_ra_itclg * i_t_ra_rvers = it_i_t_ra_rvers * i_t_ra_csorgun = it_i_t_ra_csorgun * e_t_tfin000 = it_e_t_tfin000 * e_t_tfin001 = it_e_t_tfin001 * e_t_act_contp = it_e_t_act_contp * e_t_ctp = it_e_t_ctp EXCEPTIONS NO_DATA_STREAM = 1 NO_ACT_DATA_STREAM = 2 NO_RULES = 3 NO_ACT_RULES = 4 . " FC_ENCODING_INFO_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "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_i_flg_streams_read  TYPE FC_FLG ,
it_i_t_ra_contp  TYPE STANDARD TABLE OF FCIN_T_RA_CONTP ,
wa_i_t_ra_contp  LIKE LINE OF it_i_t_ra_contp,
ld_i_flg_active_only  TYPE FC_FLG ,
it_i_t_ra_dimen  TYPE STANDARD TABLE OF FC00_T_RA_DIMEN ,
wa_i_t_ra_dimen  LIKE LINE OF it_i_t_ra_dimen,
ld_i_flg_rules_read  TYPE FC_FLG ,
it_i_t_ra_itclg  TYPE STANDARD TABLE OF FC00_T_RA_ITCLG ,
wa_i_t_ra_itclg  LIKE LINE OF it_i_t_ra_itclg,
it_i_t_ra_rvers  TYPE STANDARD TABLE OF FC00_T_RA_RVERS ,
wa_i_t_ra_rvers  LIKE LINE OF it_i_t_ra_rvers,
it_i_t_ra_csorgun  TYPE STANDARD TABLE OF FCIN_T_RA_CSORGUN ,
wa_i_t_ra_csorgun  LIKE LINE OF it_i_t_ra_csorgun,
it_e_t_tfin000  TYPE STANDARD TABLE OF FCIN_T_TFIN000 ,
wa_e_t_tfin000  LIKE LINE OF it_e_t_tfin000,
it_e_t_tfin001  TYPE STANDARD TABLE OF FCIN_T_TFIN001 ,
wa_e_t_tfin001  LIKE LINE OF it_e_t_tfin001,
it_e_t_act_contp  TYPE STANDARD TABLE OF FCIN_T_CONTP ,
wa_e_t_act_contp  LIKE LINE OF it_e_t_act_contp,
it_e_t_ctp  TYPE STANDARD TABLE OF FCIN_T_CTP ,
wa_e_t_ctp  LIKE LINE OF it_e_t_ctp.

ld_i_flg_streams_read = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_ra_contp to it_i_t_ra_contp.
ld_i_flg_active_only = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_ra_dimen to it_i_t_ra_dimen.
ld_i_flg_rules_read = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_ra_itclg to it_i_t_ra_itclg.

"populate fields of struture and append to itab
append wa_i_t_ra_rvers to it_i_t_ra_rvers.

"populate fields of struture and append to itab
append wa_i_t_ra_csorgun to it_i_t_ra_csorgun.

"populate fields of struture and append to itab
append wa_e_t_tfin000 to it_e_t_tfin000.

"populate fields of struture and append to itab
append wa_e_t_tfin001 to it_e_t_tfin001.

"populate fields of struture and append to itab
append wa_e_t_act_contp to it_e_t_act_contp.

"populate fields of struture and append to itab
append wa_e_t_ctp to it_e_t_ctp.

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