‎2008 Mar 19 4:38 AM
Hi,
Can any one help me how to implement HELP_VALUES_GET_RETURN_VALUES function module. I need help regarding the parameters to be passed.
Thanks in advance.
‎2008 Mar 19 4:42 AM
hi,
go to se37 give the function module name and press where-used-list button to know all the program where the function module is being used.
Regards,
Santosh
‎2008 Mar 19 4:52 AM
Check this.
data: tabelle like help_info-tabname,
field like help_info-fieldname.
data: begin of sel_tab occurs 5.
include structure shvalue.
data: end of sel_tab.
data: begin of all_tab occurs 10.
include structure shvalue.
data: end of all_tab.
data: title(30) type c value 'Demonstration'.
tabelle = 'TSTC'.
field = 'TCODE'.
call function 'HELP_VALUES_GET_RETURN_VALUES'
exporting
cucol = 0
curow = 0
display = ' '
tabname = tabelle
selectfield = field
titel = title
write_selectfield_in_colours = 'X'
tables
selection_tab = sel_tab
all_values_selection_tab = all_tab
exceptions
table_not_in_ddic = 01
no_selectfield_given = 02
error_from_database = 03.
Import parameters:
CUCOL: Cursor position: Column
Meaning: Column in which the cursor will be placed in the
display. Default is column 1.
Value set: None
Initial value: 0
CUROW: Cursor position: Line
Meaning: Line in which the cursor will be placed in the
display. Default is the first displayed value
line.
Value set: None
Initial value: 0
DISPLAY: Display flag
Meaning: If this parameter is set ('X'), the values will
only be displayed. It will not be possible to
choose a value.
Value set: SPACE, 'X'
Initial value: SPACE
TABNAME: Table in Dictionary
Meaning: Name of the table containing field SELECTFIELD.
The table must be active in the Dictionary and
reside in the database under same name.
Value set: None
Default: None
SELECTFIELD: Selected table field
Meaning: Name of field selected for display/Help.
The field must belong the the Dictionary table
TABNAME.
Value set: None
Default: None
TITEL: Title of the F4 dialog box
Meaning: User-defined title of the F4 dialog box. If
nothing is specified, the title will consist
of the domain's short description of the name
of the table field.
Value set: None
Default: None
WRITE_SELECTFIELD_IN_COLOURS: Output color of the F4 key field
Meaning: SPACE will show the values without highlighted
SELECTFIELD, "X" will default to the standard
output.
Value set: SPACE, X.
Default: X.
Table parameters
SELECTION_TAB: Table of selected values
Meaning: This table contains the indeces of the selected
values from the displayed table in field LINE,
and the values in field LOW_VALUE.
With help of the indeces, the user can specify
the values of a line in the internal table.
ALL_VALUES_SELECTION_TAB: All field contents for SELECTION_TAB
Meaning: Table with lines, columns, and values of all
fields in the line of the selected fields.
Value set: None
‎2008 Mar 19 4:54 AM
Hi,
Check out this sample code.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR CAR_TYPE.
PERFORM CARTYPE_F4_HELP USING 'T702E '
'KZPMF'
'Vehicle Type '(001).
FORM CARTYPE_F4_HELP USING TABLE FIELDNAME TABTITLE.
CALL FUNCTION 'HELP_VALUES_GET_RETURN_VALUES'
EXPORTING
CUCOL = 0
CUROW = 0
DISPLAY = ' '
TABNAME = TABLE
SELECTFIELD = FIELDNAME
TITEL = TABTITLE
WRITE_SELECTFIELD_IN_COLOURS = 'X'
TABLES
SELECTION_TAB = SEL_TAB
ALL_VALUES_SELECTION_TAB = ALL_TAB
EXCEPTIONS
OTHERS = 1.
CASE SY-UCOMM.
WHEN 'XBCK'.
MOVE SEL_TAB-LOW_VALUE TO CAR_TYPE.
ENDCASE.
ENDFORM.
Reward if helpful..
Regards,
Ramya