SAP Function Modules

HELP_VALUES_GET_WITH_DD_NAME SAP Function module - Use F4IF_INT_TABLE_VALUE_REQUEST







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

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


Pattern for FM HELP_VALUES_GET_WITH_DD_NAME - HELP VALUES GET WITH DD NAME





CALL FUNCTION 'HELP_VALUES_GET_WITH_DD_NAME' "Use F4IF_INT_TABLE_VALUE_REQUEST
  EXPORTING
*   cucol = 0                   " sy-cucol      Cursor position: Column
*   curow = 0                   " sy-curow      Cursor position: Line
*   display = SPACE             "               Display flag: 'X' display only, ' ' with choice
    selectfield =               " help_info-fieldname  Chosen table field
    tablename =                 " help_info-tabname  Name of the Dict.tab.,struct.of the int. table
*   titel = SPACE               "               Title of the F4 popup
*   no_pers_help_select = SPACE  "              Personal help hidden
*   title_in_values_list = SPACE  "             Information line in display popup
*   use_user_selections = SPACE  "              Use specified selection conditions
*   show_all_values_at_first_time = SPACE  "    Ignore 100 values limit for first call
*   no_scroll = SPACE           "               No scrolling of the displayed value list
*   no_marking_of_checkvalue = SPACE  "         Last value cannot be marked
  IMPORTING
    ind =                       " sy-tabix      Index of the selected field
    select_value =              " help_info-fldvalue  Selected value
  TABLES
    full_table =                "               Internal Table
*   user_sel_fields =           " dynpread      Specified selection conditions
*   heading_table =             " f4typ_heading_tab  Field headers
  EXCEPTIONS
    NO_TABLEFIELDS_IN_DICTIONARY = 1  "         No fields available in ABAP Dictionary
    NO_TABLESTRUCTURE_GIVEN = 2  "              No Dictionary table name specified
    MORE_THEN_ONE_SELECTFIELD = 3  "            More than one field selected
    NO_SELECTFIELD = 4          "               No field selected
    .  "  HELP_VALUES_GET_WITH_DD_NAME

ABAP code example for Function Module HELP_VALUES_GET_WITH_DD_NAME





The ABAP code below is a full code listing to execute function module HELP_VALUES_GET_WITH_DD_NAME 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_ind  TYPE SY-TABIX ,
ld_select_value  TYPE HELP_INFO-FLDVALUE ,
it_full_table  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_full_table  LIKE LINE OF it_full_table ,
it_user_sel_fields  TYPE STANDARD TABLE OF DYNPREAD,"TABLES PARAM
wa_user_sel_fields  LIKE LINE OF it_user_sel_fields ,
it_heading_table  TYPE STANDARD TABLE OF F4TYP_HEADING_TAB,"TABLES PARAM
wa_heading_table  LIKE LINE OF it_heading_table .

DATA(ld_cucol) = '123 '.
DATA(ld_curow) = '123 '.
DATA(ld_display) = 'some text here'.

DATA(ld_selectfield) = some text here

DATA(ld_tablename) = some text here
DATA(ld_titel) = 'some text here'.
DATA(ld_no_pers_help_select) = 'some text here'.
DATA(ld_title_in_values_list) = 'some text here'.
DATA(ld_use_user_selections) = 'some text here'.
DATA(ld_show_all_values_at_first_time) = 'some text here'.
DATA(ld_no_scroll) = 'some text here'.
DATA(ld_no_marking_of_checkvalue) = 'some text here'.

"populate fields of struture and append to itab
append wa_full_table to it_full_table.

"populate fields of struture and append to itab
append wa_user_sel_fields to it_user_sel_fields.

"populate fields of struture and append to itab
append wa_heading_table to it_heading_table. . CALL FUNCTION 'HELP_VALUES_GET_WITH_DD_NAME' EXPORTING * cucol = ld_cucol * curow = ld_curow * display = ld_display selectfield = ld_selectfield tablename = ld_tablename * titel = ld_titel * no_pers_help_select = ld_no_pers_help_select * title_in_values_list = ld_title_in_values_list * use_user_selections = ld_use_user_selections * show_all_values_at_first_time = ld_show_all_values_at_first_time * no_scroll = ld_no_scroll * no_marking_of_checkvalue = ld_no_marking_of_checkvalue IMPORTING ind = ld_ind select_value = ld_select_value TABLES full_table = it_full_table * user_sel_fields = it_user_sel_fields * heading_table = it_heading_table EXCEPTIONS NO_TABLEFIELDS_IN_DICTIONARY = 1 NO_TABLESTRUCTURE_GIVEN = 2 MORE_THEN_ONE_SELECTFIELD = 3 NO_SELECTFIELD = 4 . " HELP_VALUES_GET_WITH_DD_NAME
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_ind  TYPE SY-TABIX ,
ld_cucol  TYPE SY-CUCOL ,
it_full_table  TYPE STANDARD TABLE OF STRING ,
wa_full_table  LIKE LINE OF it_full_table,
ld_select_value  TYPE HELP_INFO-FLDVALUE ,
ld_curow  TYPE SY-CUROW ,
it_user_sel_fields  TYPE STANDARD TABLE OF DYNPREAD ,
wa_user_sel_fields  LIKE LINE OF it_user_sel_fields,
ld_display  TYPE STRING ,
it_heading_table  TYPE STANDARD TABLE OF F4TYP_HEADING_TAB ,
wa_heading_table  LIKE LINE OF it_heading_table,
ld_selectfield  TYPE HELP_INFO-FIELDNAME ,
ld_tablename  TYPE HELP_INFO-TABNAME ,
ld_titel  TYPE STRING ,
ld_no_pers_help_select  TYPE STRING ,
ld_title_in_values_list  TYPE STRING ,
ld_use_user_selections  TYPE STRING ,
ld_show_all_values_at_first_time  TYPE STRING ,
ld_no_scroll  TYPE STRING ,
ld_no_marking_of_checkvalue  TYPE STRING .

ld_cucol = '123 '.

"populate fields of struture and append to itab
append wa_full_table to it_full_table.
ld_curow = '123 '.

"populate fields of struture and append to itab
append wa_user_sel_fields to it_user_sel_fields.
ld_display = 'some text here'.

"populate fields of struture and append to itab
append wa_heading_table to it_heading_table.

ld_selectfield = some text here

ld_tablename = some text here
ld_titel = 'some text here'.
ld_no_pers_help_select = 'some text here'.
ld_title_in_values_list = 'some text here'.
ld_use_user_selections = 'some text here'.
ld_show_all_values_at_first_time = 'some text here'.
ld_no_scroll = 'some text here'.
ld_no_marking_of_checkvalue = 'some text here'.

SAP Documentation for FM HELP_VALUES_GET_WITH_DD_NAME


Documentation

Functionality ...See here for full SAP fm documentation

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