SAP Function Modules

PRT_F4_HELP SAP Function module







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

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


Pattern for FM PRT_F4_HELP - PRT F4 HELP





CALL FUNCTION 'PRT_F4_HELP' "
  EXPORTING
    flt_val =                   " /sapcnd/rollname_contextname
*   i_return_value_table =      " /sapcnd/boolean
*   i_maint_context_data =      " data
*   i_instance =                " /sapcnd/if_ex_rollname
*   i_groupname =               " /sapcnd/maint_group
*   it_fieldname_rollname =     " /sapcnd/t_fieldname_rollname
*   is_working_set_item_int =   " any
  IMPORTING
    e_was_executed =            " /sapcnd/boolean
    e_result =                  " sysubrc
    et_value_table =            " data
    e_value_table_structure_name =   " tabname
    et_column_field_mapping =   " /sapcnd/t_mnt_column_field
    et_text_column =            " /sapcnd/t_fieldname
  CHANGING
*   ct_mnt_application_log =    " /sapcnd/t_mnt_application_log
    cs_working_set_item_ext =   " any
  EXCEPTIONS
    EXC_STOP_WORK = 1           "
    .  "  PRT_F4_HELP

ABAP code example for Function Module PRT_F4_HELP





The ABAP code below is a full code listing to execute function module PRT_F4_HELP 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_was_executed  TYPE /SAPCND/BOOLEAN ,
ld_e_result  TYPE SYSUBRC ,
ld_et_value_table  TYPE DATA ,
ld_e_value_table_structure_name  TYPE TABNAME ,
ld_et_column_field_mapping  TYPE /SAPCND/T_MNT_COLUMN_FIELD ,
ld_et_text_column  TYPE /SAPCND/T_FIELDNAME .

DATA(ld_ct_mnt_application_log) = 'Check type of data required'.
DATA(ld_cs_working_set_item_ext) = 'Check type of data required'.
DATA(ld_flt_val) = 'Check type of data required'.
DATA(ld_i_return_value_table) = 'Check type of data required'.
DATA(ld_i_maint_context_data) = 'Check type of data required'.
DATA(ld_i_instance) = 'Check type of data required'.
DATA(ld_i_groupname) = 'Check type of data required'.
DATA(ld_it_fieldname_rollname) = 'Check type of data required'.
DATA(ld_is_working_set_item_int) = 'Check type of data required'. . CALL FUNCTION 'PRT_F4_HELP' EXPORTING flt_val = ld_flt_val * i_return_value_table = ld_i_return_value_table * i_maint_context_data = ld_i_maint_context_data * i_instance = ld_i_instance * i_groupname = ld_i_groupname * it_fieldname_rollname = ld_it_fieldname_rollname * is_working_set_item_int = ld_is_working_set_item_int IMPORTING e_was_executed = ld_e_was_executed e_result = ld_e_result et_value_table = ld_et_value_table e_value_table_structure_name = ld_e_value_table_structure_name et_column_field_mapping = ld_et_column_field_mapping et_text_column = ld_et_text_column CHANGING * ct_mnt_application_log = ld_ct_mnt_application_log cs_working_set_item_ext = ld_cs_working_set_item_ext EXCEPTIONS EXC_STOP_WORK = 1 . " PRT_F4_HELP
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_ct_mnt_application_log  TYPE /SAPCND/T_MNT_APPLICATION_LOG ,
ld_e_was_executed  TYPE /SAPCND/BOOLEAN ,
ld_flt_val  TYPE /SAPCND/ROLLNAME_CONTEXTNAME ,
ld_cs_working_set_item_ext  TYPE ANY ,
ld_e_result  TYPE SYSUBRC ,
ld_i_return_value_table  TYPE /SAPCND/BOOLEAN ,
ld_et_value_table  TYPE DATA ,
ld_i_maint_context_data  TYPE DATA ,
ld_e_value_table_structure_name  TYPE TABNAME ,
ld_i_instance  TYPE /SAPCND/IF_EX_ROLLNAME ,
ld_et_column_field_mapping  TYPE /SAPCND/T_MNT_COLUMN_FIELD ,
ld_i_groupname  TYPE /SAPCND/MAINT_GROUP ,
ld_et_text_column  TYPE /SAPCND/T_FIELDNAME ,
ld_it_fieldname_rollname  TYPE /SAPCND/T_FIELDNAME_ROLLNAME ,
ld_is_working_set_item_int  TYPE ANY .

ld_ct_mnt_application_log = 'Check type of data required'.
ld_flt_val = 'Check type of data required'.
ld_cs_working_set_item_ext = 'Check type of data required'.
ld_i_return_value_table = 'Check type of data required'.
ld_i_maint_context_data = 'Check type of data required'.
ld_i_instance = 'Check type of data required'.
ld_i_groupname = 'Check type of data required'.
ld_it_fieldname_rollname = 'Check type of data required'.
ld_is_working_set_item_int = '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 PRT_F4_HELP or its description.