Search help that populates two fields on a WEB dynpro page
I have created a search help based on a single table ( QPCD ) with two exporting parameters CODEGRUPPE and CODE. When the user selects a their desired entry i would like it to poulate the relevant two fields on the web dynpro screen. I know in a normal dialog screen you could get this to happen automatically, but when implementing it into a web dynpro from abap screen it only returns the first value into the field that the search help was called from. Anyone know how i could get both fields populated?
Thanks in advance
Prashanth B Kumar replied
This can be done without freely programming also if
-> CodeGruppe and Code fields exists in a DDIC structure
-> if exists Strucutre can be changed
In that case, this can be done using field assignment for Search help.
Select the CODEGRUPPE attribute in the structure
goto ENTRYPHELP/CHECK tab
Click on SEARCHHELP button that exists in the tool bar of the table.
Mention the Search help name in the pop up.
Click on PROPOSE which automatically proposes the assignments.
If those assignements are wrong, do it manually. i.e, for CODEGRUPP export parameter select the codegrupp in the structure and for CODE export parameter of search help give CODE attribute of the structure.
In the webdynpro, for the CODEGRUPP and CODE attributes, selecte the search help type as AUTOMATIC.
In this way, corresponding fields will be populated without any coding or without creation of freely programmable search help.
Hope I understood you problem correctly.