cancel
Showing results for 
Search instead for 
Did you mean: 

Customize Valuehelp of InputField

Former Member
0 Kudos

the inputfield is bound to the context. Here a value help will be delivered for that context automatically.

Now i want to have a value help that depends on an other context attribute.

does someone have a code snippet how to change the attribute behind my valuehelp, to deliver other values?

Accepted Solutions (1)

Accepted Solutions (1)

bryan_cain
Contributor
0 Kudos

When you say "depends on another context attribute" do you mean that the result set for the second field field value help should be driven by the value of the first field, or do you mean that the search help that is executed for the second field will be driven by the value of the first field?

Example 1:

Field 1) VBAP-VBELN - Field 2) VBAP-POSNR.

In this scenario, once you've specified the sales order, you might only want to see items that already exist on that sales order, so when you press F4 on field 2, only valid items would be displayed.

In this example, you could do it one of two ways. You could implement an [OVS|http://help.sap.com/saphelp_nw70/helpdata/EN/47/9ef8c99b5e3c5ce10000000a421937/content.htm].

Alternatively, if both fields are part the same DDIC structure, you can create a custom search help that will reference field one when showing a result list for field 2. Make sure the field names in your search help match the fields on your ddic structure. Then assign the search help the the DDIC structure in SE11 (this may require a custom structure)

Example 2:

Field 1) IHPA-PARVW - Field 2) IHPA-PARNR

In this scenario, you choose the partner type for field one, and you might want to call an entirely different search help on field two depending of if you specified User or Department or Vendor, etc, in field 1.

The solution to this is to modify the context at runtime. Use method set_search_help of the context node to dynamically modify the search help.

Former Member
0 Kudos

ok, the problem is that my search values in the popup are not commited to the f4valuehelp.

have to find out how to bind them anyway...

Answers (3)

Answers (3)

pranav_nagpal2
Contributor
0 Kudos

Hi Ezachiael,

if you want to use freely programable search help you have to implement IWD_VALUE_HELP interface.

just double click on the component controller and click on tab implemented interface and right IWD_VALUE_HELP there. activate it. now when you save a new window will appear embed your view in it (for which you want to have search help).

regards

Pranav

Edited by: Pranav Nagpal on Nov 20, 2008 12:59 PM

Former Member
0 Kudos

you can create a search help ( Say SH1) which will use the search help exit . ( Of course you have to create a search help exit also )

Now you have two ways to use the search help in WD .

1 . you can attach the search help to the data element of the attribute . In this case webdynpro will automatcially identifies the search help .

OR

2 . Go to the Properties of attribute in WD node and select "Dictionary search help " for the property

"Input help mode ". And then enter the search help name (SH1) in the row below .

I did that now.. I implemented a search help and an exit. This works fine, but in webdynpro it delivers no data at all!?

Former Member
0 Kudos

Hello ,

you can create a search help ( Say SH1) which will use the search help exit . ( Of course you have to create a search help exit also )

Now you have two ways to use the search help in WD .

1 . you can attach the search help to the data element of the attribute . In this case webdynpro will automatcially identifies the search help .

OR

2 . Go to the Properties of attribute in WD node and select "Dictionary search help " for the property

"Input help mode ". And then enter the search help name (SH1) in the row below .

I hope this will help you .

Regards

Vivek

PS: please provide the points if answer is helpful.

Former Member
0 Kudos