cancel
Showing results for 
Search instead for 
Did you mean: 

How to provide value help on demand?

Former Member
0 Kudos

Hi,

we use the Extended Value Selector (EVS) to enable SAP value help for input fields in Web-Dynpro applications.

Within the View Controller's wdDoInit() method the value set of the input field is modified. The Web-Dynpro runtime automatically adds the small icon beside the input field to open the value help pop-up.

We use the function module BAPI_HELPVALUES_GET to retrieve help values for certain input fields from the R/3 backend system.

Coding example for View Controller wdDoInit():


  IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("MatGrp");
  ISimpleTypeModifiable matGrpType = attributeInfo.getModifiableSimpleType();
  matGrpType.setFieldLabel("Warengruppe");
  IModifiableSimpleValueSet valueSet =  matGrpType.getSVServices().getModifiableSimpleValueSet();
		
  Map map = wdThis.wdGetHelpValuesCustController().executeBapi_Helpvalues_Get_Input( "PurchaseRequisition", "GETITEMS", "MATGRP" );
  List keys = new ArrayList( map.keySet() );
  Collections.sort( keys );
  Iterator it = keys.iterator();
  while ( it.hasNext() )
  {
    String key = (String) it.next();
    String value = (String) map.get( key );
    valueSet.put( key, value );
  }

<b>Disadvantage</b> of this solution:

The values for the modified value set have to be <b>loaded during creating of the input mask</b> (within wdDoInit). For each input field containing a value help the function module BAPI_HELPVALUES_GET has to be called, even if the user never clicks on the associated icon. If there are many input fields with value helps associated containing many values, the performance of the user interface is slowing down, because all the help values are retrieved before the input mask is built up.

<b>Question</b>:

- Is it possible to fill the value help pop-up on demand (after the user has clicked on it)?

- Is there an event, that can be caught, if the user clicks on the icon beside input fields with an associated value help?

Thanks for each approach to enable value help on demand (after the user has clicked on the value help icon).

Kind Regards

Dirk

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Answer to your first question: yes, but it is quite complex. Read documentation on


com.sap.tc.webdynpro.progmodel.api.
  IWDOnDemandValueSetService
  IWDBoundValueSet 
  IWDValueSupplier
  WDSimpleValueSupplier
  WDValueServices

and related.

Answer to your second question: no, this event is not exposed. What for you planned to use it? Probably there is a more appropriate way to implement your task...

VS

Former Member
0 Kudos

Hi,

well I think that it is possible to fill value up on demand basis.

Though i haven't do it but i have tested such application in which when u click the icon ( that looks vauehelp), pop up opened. with some input fields and a go button.

in these application if u don't fill anything, everthing get filled there but if u fill some input fields, corresponding matches are displayed only.

so it's looks feasible.

for second Q, i have no idea.

Rgds,

Vilish