cancel
Showing results for 
Search instead for 
Did you mean: 

Search button

Former Member
0 Kudos

Hi Experts,

As part of my project I have designed Web Dynpro screen. I have to provide following functionality in the screen:

User clicks on 'Find WBS Element button' on the Web Dynpro screen. On clicking on this button, one window should pop up. This window should display 10000s records of R/3 table. These records pertain to active WBS Element. There are three fields on this window - WBS Element, Description and Billable Flag. User should be able to search on WBS Element or Description. How we can acheive this?

Regards,

EP

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In your popped up window, give an inputfield with value search property.

ie. Create an input field in popped up view, bind it to a context variable ,say 'wbs'.

then in init() of this poppedup view, after executing the ABAP function to get R/3 data for WBSelements, give

IWDAttributeInfo attrInfo=wdContext.getNodeInfo().getAttribute("wbs");;

IModifiableSimpleValueSet dropValueSetattrInfo.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();

for(int i=0;i< <modelNodecontainingWBSElements>.size();i++)

{

String elem=<modelNodecontainingWBSElements>.get<modelNodecontainingWBSElements>elementAt(i).get<WBSelementID>;

String desc=<modelNodecontainingWBSElements>.get<modelNodecontainingWBSElements>elementAt(i).get<WBSelementDescription>;

dropValueSet.put(elem,desc);

}

When this view is loading it will give an input field, which has a right button ,click there.

It will show a list of all WBS elements from R/3. There you can search by WBS element and by its description.

Let me knoe whether it is useful for you.

Thanks

Smitha