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

Former Member
0 Likes
830

Hello All,

I have a requirement. There is a field which has search help associated to it; Now the current scenario is that on screen processing if field F1 has a specific value , then field F2 , field that has search help built, shud display only few values depending on F1. I have made the changes in the search help, added column to compare that the values should match, but issue is that I dont knw how to fetch up the value from screen into search help so that I can compare. I have implemented the search help exit but i have no idea how to take up the value of field from screen to compare it in search help. I have used a search help exit but i dont knwo how to implement in such a manner that it takes value from screen and puts it in field of search help.

Please revert back if anything is not clear.

thanks,

Gaurav

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
738

Hi Garuav,

Why dont you export the field value F1 to a parameter ID and import it in the search help exit and delete all entries where the values dont belong to F1.

SET PARAMETER ID 'ABC' FIELD F1.

and in the search help exit

GET PARAMETER ID 'ABC' FIELD <local_var>.

Hope this helps.

Regards,

Aditya

Message was edited by:

Aditya

Hello All,

I have a requirement. There is a field which has search help associated to it; Now the current scenario is that on screen processing if field F1 has a specific value , then field F2 , field that has search help built, shud display only few values depending on F1. I have made the changes in the search help, added column to compare that the values should match, but issue is that I dont knw how to fetch up the value from screen into search help so that I can compare. I have implemented the search help exit but i have no idea how to take up the value of field from screen to compare it in search help. I have used a search help exit but i dont knwo how to implement in such a manner that it takes value from screen and puts it in field of search help.

Please revert back if anything is not clear.

thanks,

Gaurav

6 REPLIES 6
Read only

Former Member
0 Likes
739

Hi Garuav,

Why dont you export the field value F1 to a parameter ID and import it in the search help exit and delete all entries where the values dont belong to F1.

SET PARAMETER ID 'ABC' FIELD F1.

and in the search help exit

GET PARAMETER ID 'ABC' FIELD <local_var>.

Hope this helps.

Regards,

Aditya

Message was edited by:

Aditya

Read only

0 Likes
738

Thanks Aditya,

Can you elaborate a bit more? I understand that I set paramater in module pool of my screen then i get it in search help exit . Then what, what records do i need to delete or how do i change it, i mean the table record_tab does not contain the value, where do i need to make comparison, ne idea?

thanks and regards,

Gaurav

Read only

0 Likes
738

Hi Gaurav,

Please have a look at the example search help exit function module F4IF_SHLP_EXIT_EXAMPLE which elaborates how we can code.

Normally, I would expect ur search help say pops upt he following values in a search help for F2 field:

F1 F2

-


10 20

10 21

11 30

hence the record_tab table in the step IF CALLCONTROL-STEP = 'DISP'. would have the above three records.

Now say you entered F1 as 11 in the screen and then pressed F4, then what u need to do is following:

IF CALLCONTROL-STEP = 'DISP'.

GET PARAMETER ID 'ABC' FIELD V_F1.

DELETE RECORD_TAB WHERE record_tab-string+(2) NE V_F1.

ENDIF.

All the record fields in the RECORD_TAB are concatenated into the STRING field of the table. We have the assurity of the structure and hence can know where the F1 field appears and hence deleted the unwanted records.

Do let me know incase of any more doubts.

Regards,

Aditya

Read only

0 Likes
738

thanks Aditya,

Let me explain you a bit more,

I have fields F1 F3 F4 coming up in the dialog box, and F3 wud be the field that user enters and lets say if user enters 'AA' then i dont want entries that are not 'AA'. So in table record_tab how would i knw its offest 2, like u mentioned

DELETE RECORD_TAB WHERE record_tab-string+(2)NE V_F1.

how would i knw that i need to compare it from the offset 2.

thanks and regards,

Gaurav

Read only

0 Likes
738

Hi Gaurav,

Is your problem solved?

-Aditya

Read only

0 Likes
738

Not exactly Aditya, I am not able to find out how to write a query and select field.