cancel
Showing results for 
Search instead for 
Did you mean: 

Using conditional searchhelp on tablecontrol

Former Member
0 Kudos
161

I want to define a searchhelp for one of my columns on a tablecontrol.

But in this searchhelp i only want to see values lower than a the value of a specific field.

so i would like to implement some sort of conditioned select method for my search help.

how can i obtain information about how this works???

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Tobias,

One way of doing that is, by manually providing the search help.

make use of the POV event, and you may use

DYNP_VALUES_READ to read the screen values. You will have to set DETERMINE_LOOP_INDEX to X as u are talking about a table control.

Now use whatever logic you want fill up a table and provide to the F4 function module F4IF_INT_TABLE_VALUE_REQUEST.

Else you may use importing exporting in search help, if the field names match database table names.

Regards,

Pavan

Former Member
0 Kudos

Hi Pavan,

using the POV event sounds very interesting so I would like to use it for my problem.

As i have never used POV I was wandering if you could provide me an example of how to use it and where to implement it.

Thanks so far

Tobias

Former Member
0 Kudos

POV goes within the flow logic of the screen and looks something like this:

PROCESS ON VALUE-REQUEST. "F4

FIELD screentab-field1 MODULE display_input_help.

'screentab-field1' being the field on the screen and 'display_input_help' being where the actual processing will go to control what happens when the user presses F4.

Hope this help

Regards

Mart

Former Member
0 Kudos

HI mart,

your hint was very helpful.

what I need furthermore is an example of how to use

the Function F4IF_INT_TABLE_VALUE_REQUEST'

Thanks for help

Tobias

Former Member
0 Kudos

Sorry mate, have never used that function module, but if you do a 'where used' on it there are a few sap programs that use it so could just copy the code. I am interest in how it works as well now so will have a look if i get chance.

Regards

Mart

Former Member
0 Kudos

To use F4IF_INT_TABLE_VALUE_REQUEST

Please try an F1 on the same. You have extensive document but simply put if u want how to call it find below

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = column in internal table whose value to be used for the screen field

dynpprog = Program name

dynpnr = Screen number

dynprofield = screen field which is to accept the value chosen from F4

value_org = 'S' indicating that every line is a structure corresponding to one line of F4 help

tables

value_tab = any table structure whose values are to be displayed on F4.

Hope this is helpful.

Pavan