Skip to Content
avatar image
Former Member

Search help Exit problem,

Hi Experts ,

I have a requirement to Create search help exit for a custom dictionary search help and , they wanted to have the domain description for some fields from other table. these values will be added at run time , The search help is working fine but one record description is not correct.

the table int_status_desc[] , contain the correct value before coming to the function, but when testing I got one result not correct. Also any attempt to sort the table will mix the data also , what is your advise to solve the problem?

the function is under event callcontrol-step = 'DISP'

CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
parameter = 'STEXT'
* OFF_SOURCE = 0
* LEN_SOURCE = 0
* VALUE =
fieldname = 'STEXT'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = int_status_desc[]
CHANGING
shlp = shlp
callcontrol = callcontrol
* EXCEPTIONS
* PARAMETER_UNKNOWN = 1
* OTHERS = 2

Regards,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 16, 2017 at 07:24 AM

    Calling the function module F4UT_PARAMETER_RESULTS_PUT with parameter PARAMETER/FIELDNAME equal to 'STEXT' will only initialize the column STEXT. Do you have only one export parameter in your search help? Could you explain what is "not correct in one record description" ?

    If you have several export parameters, and the names of export parameters are the same as the components of the internal table, it's more easy to use the function module F4UT_RESULTS_MAP.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 16, 2017 at 02:20 PM

    If you want to:

    • Add new records to result table: Call F4UT_RESULTS_MAP
    • Change some fields in result table: Call F4UT_PARAMETER_VALUE_GET to read some current values (read some key columns) then call F4UT_PARAMETER_RESULTS_PUT to change each column
    Add comment
    10|10000 characters needed characters exceeded