09-10-2009 11:24 AM
Hi,
I have attached a Search help on a screen field and when I press it displays all the possible values from its source table. For example my search help shows all the Employee Names with their designation when I press F4. Then I select the employee name and I see the value in the screen field. Now, I want their designation to be displayed next to that screen field also. How can we achive this ?
In my search help I have two fields,
Employee Name (mytable-ename)
Designation (mytable-edesig).
Thanks
-Sid
09-10-2009 11:39 AM
Hi,
In the search add the field and mark that field also as a export parameter (check the checkbox under EXP).
Regards,
Himanshu
09-10-2009 11:56 AM
you must manage it by yourself, unfortunately. It means that you have to do a SELECT with the value returned by the F4, to get the description, you add an output only description field on the screen, and you fill it.
As you don't have control when search helps are called implicitly, you have to use a PVR event on that field : in the PVR, call the search help, get the returned value (here you have the possibility to get the description also as Himanshu says), and fill the description field using DYNP_VALUES_UPDATE function module. You will find information what are PVR, how to call a search help explicitly, in the forum and in sap library.
09-10-2009 1:31 PM
Sandra,
Thanks for writing back. I also ended up on the same solution what you suggested, which unfortunately I was trying to avoid.
-Sid
09-10-2009 1:31 PM
Sandra,
Thanks for writing back. I also ended up on the same solution what you suggested, which unfortunately I was trying to avoid.
Closing the thread.
-Sid
09-10-2009 12:44 PM
Hi ,
There are 2 ways you can achive this. One you can add the designation field in the search help what you have created in SE11. Else you can use AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file. under this event you can use the function module 'DYNP_VALUES_READ' if your search help is dynaic else you can directly populate the fuction module 'F4_IF_INT_TABLE_VALUE_REQUEST' to display the desired fields.
Regards,
S.Mahanta.