Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Search help Exit problem,

Former Member
0 Likes
2,857

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,

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,277

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.

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,278

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.

Read only

0 Likes
2,277

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.

Read only

0 Likes
2,277

F4UT_RESULTS_MAP

This function work fine ,

Thanks

Read only

RaymondGiuseppi
Active Contributor
2,277

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