DOKUMENTATION>Functionality
This function module allows you to display and internal table with itsdictionary reference. You can select more than one value from the listthat the system displays and copy these values. The values that youcopy are returned to a table that contains the tables indices.
data: tabelle like help_info-tabname,
field like help_info-fieldname,
ind like sy-index,
data: begin of itstc occurs 100.
include structure tstct.
data: end of itstc.
data: begin of sel_tab occurs 100.
include structure shvalue.
data: end of sel_tab.
tabelle = 'TSTCT'.
field = 'TCODE'
select * from tstct into table itstct where sprsl eq sy-langu.
call function 'HELP_VALUES_GET_AND_RETURN_TAB'
exporting
cucol = 0
curow = 0
display = ' '
selectfield = 'TCODE'
tablename = tabelle
tables
full_table = itstct
selection_tab = sel_tab
exceptions
no_tablefields_in_dictionary = 01
no_tablestructure_given = 02.
Note
This function module allows you to select more than one table value bydouble-clicking. The system displays the selected values in a differentcolor. By using the appropriate function, you can copy these values totable SELECTION_TAB which contains the selected lines and values. Thefunction module contains the functions ofHELP_VALUES_GET_WITH_DD_NAME>.Parameter Description
Parameter Ref. field/structure Default value
Import Parameters:
CUCOL SY-CUCOL 0
CUROW SY-CUROW 0
DISPLAY SPACE
SELECTFIELD HELP_INFO-FIELDMAME
TABLENAME HELP_INFO-TABNAME
Table Parameters:
FULL_TABLE
SELECTION_TAB
Exceptions:
NO_TABLEFIELDS_IN_DICTIONARY
NO_TABLESTRUCTURE_GIVEN
- Import Parameters
CUCOL: Cursor position: column
Meaning: column where the cursor is placed.
No entry places the cursor in the first column.
Value range: none
Default value: 0
CUROW: Cursor position: line
Meaning: line where the cursor is placed.
No entry places the cursor in the first line.
Value range: none
Default value: 0
DISPLAY: Dispaly indicator
Meaning: if this indicator is set ("X"), the values are only
displayed and you cannot select from them.
Value range: SPACE, 'X'.
Default value: SPACE
SELECTFIELD: selected table field
Meaning: name of field for which the display/help is required.
This field must be a field in an active Dictionary
table.
Value range: none
Default value: none
TABLENAME: name of a table
Meaning: name of the table that contains the field SELECTFIELD.
The table must exist in active form in the Dictionary
and also defines the structure of internal table
FULL_TABLE.
Value range: none
Default value: none
- Table Parameters
FULL_TABLE: internal table
Meaning: internal table that must have the structure
defined by TABLENAME.
Value range: none
SELECTION_TAB: table of selected values
Meaning: this table contains the indices of the selected
values from the displayed table in field LINE
and the values themselves in field LOW_VALUE.
The user can use the indices to assist in
determining the values of a table line from
the internal table.
- Exceptions
NO_TABLEFIELDS_IN_DICTIONARY: no fields exist in the Dictionary
Meaning: the given structure structure is known, but
the field for which help is required is either
inactive or does not exist.
NO_TABLESTRUCTURE_GIVEN: no name of Dictionary table
Meaning: the given table is either inactive or
does not exist in the Dictionary.