Skip to Content
0

Search help Exit problem,

Nov 16, 2017 at 06:39 AM

109

avatar image
Former Member

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,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Best Answer
Sandra Rossi Nov 16, 2017 at 07:24 AM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

In the debug , the table int_status_desc contain all correct values but when I use this function at the end , some data displayed not correct in the search help result. This data I got in the run time by reading the values from the dictionary search help.

0
Former Member

F4UT_RESULTS_MAP

This function work fine ,

Thanks

0
Raymond Giuseppi
Nov 16, 2017 at 02:20 PM
1

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
Share
10 |10000 characters needed characters left characters exceeded