Skip to Content
author's profile photo Former Member
Former Member

Using conditional searchhelp on tablecontrol

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???

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 23, 2004 at 04:53 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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