‎2005 Mar 09 11:19 AM
hi friends,
on my selection screen i have two radio buttons.one for applicant and one for officer.i also have one text field for personnel no.when i click radiobutton for officer all the personnel nos from personnel administration should be incorporated as a f4 search help for field personnel no and similarly when applicant radio button is clicked all the applicant nos from recruitment should be incorporated as f4 search help for field personnel no.how to do this.can anyone of u please provide sample code for this.
thanks.
‎2005 Mar 09 11:31 AM
Hello Murthy,
Instead of trying to dynamically change the search-helps assigned to the field on the screen, I think it is best for you to have two fields on the screen, each of them referring to a suitable data-element.
All you need to do now is to just hide one of these fields and display the other, as according to the radio-button selected on the screen.
Regards,
Anand Mandalika.
‎2005 Mar 09 6:38 PM
If you are determined to do it, you can build a customized search help. In SE11, for search helps, do F1 on Search Help Exit. There is some good help there.
Input to your search help would be one of the radio buttons. It will be 'X' or space. Since you only have 2 buttons, this will let you know which one is 'X'. Or if you want more buttons, then make all the buttons input to the search help. Your search help code can now respond appropriate to the button that is selected.
‎2005 Mar 09 10:39 PM
Hi Murthy
I also recommend Anand's solution.
However, if you insist on just one input field for personel no, then you can program your own F4 help using <b>"AT SELECTION-SCREEN ON VALUE REQUEST..."</b> report event. There you can grab the entered value for a field using the function module <b>"DYNVALUEREAD"</b> and directing the flow according to the input where you can use <b>"F4IFINTTABLE"</b> to popup the F4 help screen.
*--Serdar
ssimsekler@yahoo.com