Skip to Content
Author's profile photo Sachinkumar Yadav

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.

Image1.jpg

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.

Image2.jpg

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.

Image3.jpg

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.

Image4.jpg

Image5.jpg

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.

Image6.jpg

Step 3 : Create a Web dynpro application. Create a context node.

Image7.jpg

Image8.jpg

Create a view.

Image9.jpg

Create a application. Save the application and run the application.

Image10.jpg

Image11.jpg

On selection of material plant will be populated automatically. No need for coding.

Image12.jpg

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

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Helga Raemaekers
      Helga Raemaekers

      THX a lot!  I solved my problem with your post!  It works fine, I needed the explanation in step 2!

       

      gr,

      Helga