Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Search help - On Code

Former Member
0 Kudos
105

Hi all.

I'm using HELP_VALUES_GET_WITH_TABLE_EXT FM to call the search help on processing value-request event.

Everything is working fine but I need to open a selection criteria before show the data. I look for some parameter but O found nothing.

Any idea ?

I appreciate all kind of help.

3 REPLIES 3

former_member589029
Active Contributor
0 Kudos
75

Hello Bruno,

Take a look at this, I am using different function modules however in that case you can restrict the values the search help displays without modifying the search help itself.

Hope that helps,

Michael

[;

Former Member
0 Kudos
75

hi

good

Get the cursor value :-->

get cursor field f_fld line f_lin offset f_off.

if f_lin >= 1.

f_lin = f_lin + <tablecontrol>-top_line - 1.

endif.

read table i_dat into i_tablecontrol index v_linno.

here i_tablecontrol is workarea of table i_dat.

Will give you the field name where cursor is positioned right now.

set the cursor on particular line:-->

set cursor field f_fld line f_lin offset f_off.

For popup or help values :

Now you have to create an internal table which will contain the header of F4 pop-up, based on structure HELP_VALUE.

For Ex.

data: begin of fieldtab occurs 0.

include structure help_value.

data: end of fieldtab.

And now as your structure of F4 help is in "fieldtab" and all the respective field values in another internal table(with just one field).

You have populate the values from the cursor position values ie values corresponding to cursor where you have selected.

You have to call function module to pop-up F4 help as follows

call function 'HELP_VALUES_GET_WITH_TABLE_EXT'

exporting

show_all_values_at_first_time = 'X'

tables

fields = fieldt "structure of F4 help/heading

select_values = selval_tab "return values

valuetab = values "Values to be displayed on F4 help

exceptions

field_not_in_ddic = 1

more_then_one_selectfield = 2

no_selectfield = 3

others = 4.

Now the values of selected line from F4 help will be in selval_tab. which is an internal table of structure HELP_VTAB.

thanks

mrutyun^

Former Member
0 Kudos
75

thx all.

But i found the solution.