Return Multiple value from search help in Webdynpro
Scenario: You have two fields on the View i.e Material and Plant. When you do F4 help on Material it should also populate the Plant.
Step 1: Create a Search help with required field. Field which need to be return on the screen should be marked as Exporting.
Step 2: Create a structure with ZTEST_SY1 with the fields that need to be displayed on the view. In our case we are creating structure with only two fields.
Now the most important step is to assign the search help which we created to the field MATNR. Go to the table Entry help/Check.
Select the field and click on Search Help. It will ask for the name of search help. Here give the name of search help which we created and click on OK.
In table name give the name of the structure and in filed name give the name of field of structure. Click on copy. This is the mapping of search help fields with the structure fields.
Save the structure and activate it.
Step 3 : Create a Web dynpro application. Create a context node.
Create a view.
Create a application. Save the application and run the application.
On selection of material plant will be populated automatically. No need for coding.
I found some post of SDN with same data but they were bit confusing. (Step 2 Were not clearly mentioned in those post )
This is my first post in SDN. All feedback are welcome.
Thanks & Regards
Sachin Yadav
THX a lot! I solved my problem with your post! It works fine, I needed the explanation in step 2!
gr,
Helga