cancel
Showing results for 
Search instead for 
Did you mean: 

Value Help for Model in java webdynpro

0 Kudos

I have created an OVS in web dynpro. I would like to query the database(ABAP Table in SAP R/3).

How do I do it in webdynpro.

Thanks and Regards,

Narayani

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Narayani,

Follow this tutorial <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/5dcbe990-0201-0010-2c99-a2bc9e61acfc">advanced Value Help: Object Value Selector (9)</a>

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

0 Kudos

Hi,

Thanks for the reply but in this pdf it mentions about the adaptive rfc layer model binding to a custom controller.

I am actually in the test team for Mobile applications. We have a new model called Mobile business object(MBO) in which we have the MBO at the middleware which we import and then create an aplication on that.

So my question :Can I have a Mobile Business Object as well as an adaptive rfc model for a custom controller?

Regards,

Narayani

Former Member
0 Kudos

Narayani,

If MBO has some class that implements ICMIQuery then you can do it easiely with OVS over ICMIQuery.

If not you have to map your MBO hierarchy to context nodes, then use OVS over context nodes and implement query logic in OVS listener.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

0 Kudos

Hi Valery ,

I tried using the ICMIQuery but there seems to be a problem. I am getting the following exception:

"java.lang.UnsupportedOperationException: Not supported for generic queries"


This is the code that I tried for query.
Selectquery is the query model class that I have created.
I have even tried without the wdcontext also.

SelectQuery query = new SelectQuery();

wdContext.nodeSelectQuery().bind(query);

WDValueServices.addOVSExtension("OVSTEST",attributes,query,listener);

Thanks.

Narayani

Former Member
0 Kudos

Narayani,

There is something wrong with your implementation. For example, both input of query and every row in result must be ICMIGenericModelClass. You can only partly implement it.

See my blog posts for examples of custom ICMIQuery:

<a href="/people/valery.silaev/blog/2005/08/15/ovs-reloaded, Reloaded -- OVS over UME Search</a>

<a href="/people/valery.silaev/blog/2006/07/18/ovs-rfc + RFC...</a>

First one will be enough to got the idea

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

0 Kudos

I tried the WDVALUESSERVICES with query without the model class: It gives this error:

Error loading structure-type for .

[EXCEPTION]

#2#Perfmodel/SAL_ORD$SAL_ORD_ROOT#com.sap.dictionary.runtime.DdException: Dictionary Type Perfmodel.SAL_ORD$SAL_ORD_ROOT does notExist

Is it because I have not used the ICMIGenericModelClass.

Regards,

Narayani

Answers (2)

Answers (2)

0 Kudos

Solved on my own

former_member85655
Active Participant
0 Kudos

Hi Narayani,

You should be able to use the MBO model instead of the adaptive RFC. After the import it's after all only a model and shouldnt really matter..So you can apply the same logic from the tutorial.

Regards,

Arun