on 11-19-2008 12:38 PM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use Freely Programmed value help.Check the below doc and WIKI.
http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm
https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdabap/freely%252bprogrammed%252binput%252bhelp
Also you can do using the search help exit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.