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
993

Hi

I've created a screen with a grid .

i have 2 columns in the table - City_Code and City_Desc.

i created search help which contains this 2 columns and and conected it in the screen layout to the column City_Desc.

i want that when the user choose a city_desc it will fill both of the columns in the grid - i mean it will add City_Code and City_Desc.

is there a way to do that ?

thanks

Ami

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
953

Hi Ami,

Use the events for this requirement.

Event:AT SELECTION-SCREEN ON HELP/VALUE REQUEST FOR

Put your coding to select the values to the selection screen under this event.

Hope it works.

Regards,

Akhil

9 REPLIES 9
Read only

Former Member
0 Likes
953

Hi Ami,

  Check the value of the "EXP" field in the search help.

i.e. check only those parameter which you want to export.

Regards,

Ragavendra

Read only

0 Likes
953

i did that already, but i want that the values that i chose will get into the fields in screen but when i press F4 on column city_desc and chose the value i want on this column get the value and the column city_code remains empty, how can i fix it ?

Read only

0 Likes
953

I hope this code helpfull for you .

After create the search help  related field  (city_field) of table .

then u need to write the code on abab  workbench  se38.

by using this code u wil get value on the screen wen u press f4 .

parameters:  p_fieldcity type  tablename-fieldname matchcodeobject searchhelpname .

thanks and regards

suraj singh

Read only

Former Member
0 Likes
954

Hi Ami,

Use the events for this requirement.

Event:AT SELECTION-SCREEN ON HELP/VALUE REQUEST FOR

Put your coding to select the values to the selection screen under this event.

Hope it works.

Regards,

Akhil

Read only

0 Likes
953

i dont have this even cause i am creating a dialogh screen

Read only

0 Likes
953

You can use process on value-request and generate the search help using F4IF_INT_TABLE_VALUE_REQUEST fm then use dynp_values_update to update the Code. Check for FM documentation for more details.

Or, you can create a collective search help( Which will be attached to your desc) and include your elementary search help in the included tab and use "Param. assignment" button to assign both the field and it should work. Check standard collective search help "DEBI" and included search help "DEBID".

Hope it helps.

Regards, R

Read only

0 Likes
953

Thanks for your help but it didnt work.

i've created a collective search help and added my elementry shearch help and checked it in test run and it worked but when i connected it to the dialog screen (i connected it to the field in the grid - by using the layout editor ) it didnt worked - i only got value into the field i connected to the search help and the second field remained empty.

what i mean is that i got value to the fiels CITY_DESC and nothing to field CITY_CODE althoug i put the both in EXP status (both in collective and elementry search help)

thanks

Read only

Former Member
0 Likes
953

I hope this code helpfull for you .

After create the search help  related field  (city_field) of table .

then u need to write the code on abab  workbench  se38.

by using this code u wil get value on the screen wen u press f4 .

parameters:  p_fieldcity type  tablename-fieldname matchcodeobject searchhelpname .

thanks and regards

suraj singh

Read only

Former Member
0 Likes
953

Create structure YADR_CITYT
with 2 fields and attach to them search help CITY_NAME


  Define parameters.

PARAMETERS: p_cityc TYPE yadr_cityt-city_code,

            p_cityn
TYPE yadr_cityt-city_name.

This work.