‎2012 Oct 29 9:18 AM
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
‎2012 Oct 29 11:16 AM
‎2012 Oct 29 9:31 AM
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
‎2012 Oct 29 9:48 AM
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 ?
‎2012 Oct 30 8:55 AM
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
‎2012 Oct 29 11:16 AM
‎2012 Oct 29 11:27 AM
‎2012 Oct 29 12:08 PM
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
‎2012 Oct 30 7:27 AM
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
‎2012 Oct 30 8:58 AM
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
‎2012 Nov 04 10:04 AM
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.