‎2017 Nov 16 6:39 AM
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,
‎2017 Nov 16 7: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.
‎2017 Nov 16 7: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.
‎2017 Nov 17 4:10 AM
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.
‎2017 Nov 19 8:19 AM
‎2017 Nov 16 2:20 PM