SAP Function Modules

K_ABC_F4_TABLEFIELD_VALUE SAP Function module







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

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


Pattern for FM K_ABC_F4_TABLEFIELD_VALUE - K ABC F4 TABLEFIELD VALUE





CALL FUNCTION 'K_ABC_F4_TABLEFIELD_VALUE' "
  EXPORTING
    act_function =              " tplic_func_new
    act_parameter =             " rsimp-parameter
    f4_interface =              " tpl_f4_interface
    mode =                      "
*   chk_value =                 " tplic_value-string
  IMPORTING
    f4_value =                  " tplic_value-string
    value_exist =               " boolean
  TABLES
    parameter_info =            " tpl_par_f4
    .  "  K_ABC_F4_TABLEFIELD_VALUE

ABAP code example for Function Module K_ABC_F4_TABLEFIELD_VALUE





The ABAP code below is a full code listing to execute function module K_ABC_F4_TABLEFIELD_VALUE 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_f4_value  TYPE TPLIC_VALUE-STRING ,
ld_value_exist  TYPE BOOLEAN ,
it_parameter_info  TYPE STANDARD TABLE OF TPL_PAR_F4,"TABLES PARAM
wa_parameter_info  LIKE LINE OF it_parameter_info .

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

DATA(ld_act_parameter) = some text here
DATA(ld_f4_interface) = 'Check type of data required'.
DATA(ld_mode) = 'some text here'.

DATA(ld_chk_value) = some text here

"populate fields of struture and append to itab
append wa_parameter_info to it_parameter_info. . CALL FUNCTION 'K_ABC_F4_TABLEFIELD_VALUE' EXPORTING act_function = ld_act_function act_parameter = ld_act_parameter f4_interface = ld_f4_interface mode = ld_mode * chk_value = ld_chk_value IMPORTING f4_value = ld_f4_value value_exist = ld_value_exist TABLES parameter_info = it_parameter_info . " K_ABC_F4_TABLEFIELD_VALUE
IF SY-SUBRC EQ 0. "All OK 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_f4_value  TYPE TPLIC_VALUE-STRING ,
ld_act_function  TYPE TPLIC_FUNC_NEW ,
it_parameter_info  TYPE STANDARD TABLE OF TPL_PAR_F4 ,
wa_parameter_info  LIKE LINE OF it_parameter_info,
ld_value_exist  TYPE BOOLEAN ,
ld_act_parameter  TYPE RSIMP-PARAMETER ,
ld_f4_interface  TYPE TPL_F4_INTERFACE ,
ld_mode  TYPE STRING ,
ld_chk_value  TYPE TPLIC_VALUE-STRING .

ld_act_function = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_parameter_info to it_parameter_info.

ld_act_parameter = some text here
ld_f4_interface = 'Check type of data required'.
ld_mode = 'some text here'.

ld_chk_value = some text here

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