Application Development 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: 

Search Help on screen field

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

Hi,

In the search add the field and mark that field also as a export parameter (check the checkbox under EXP).

Regards,

Himanshu

Sandra_Rossi
Active Contributor
0 Kudos

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.

0 Kudos

Sandra,

Thanks for writing back. I also ended up on the same solution what you suggested, which unfortunately I was trying to avoid.

-Sid

0 Kudos

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

Former Member
0 Kudos

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.