cancel
Showing results for 
Search instead for 
Did you mean: 

need infn about ovs

Former Member
0 Kudos

hi

i will take some details of asset from back end

i need to get all details if i enter asset no

for that

which contol

how can i use ovs

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

Check these links they maybe helpful to you

/people/valery.silaev/blog/2005/08/15/ovs-reloaded

/people/valery.silaev/blog/2006/03/10/minus-evs-plus-ovs-value-help-smart-input

/people/valery.silaev/blog/2006/07/18/ovs-rfc

Regards

SURYA

Former Member
0 Kudos

hi i got simple svs

i have svs which dis.. empid n empname

i made inputfield as svs

my req is when i type any empname ,or id it shold automatically highlight that row

how can i achieve that

i am populating values from rfc

i.e backend

Former Member
0 Kudos

Hi! vani,

use the following link.you will get an example of svs,evs and ovs.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#51">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#51</a>

regards,

Mithileshwar

Former Member
0 Kudos

Hi Vani...

Check these links below.. this provides u with needed information...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e038cf90-0201-0010-0a9a-ec69262a...

http://help.sap.com/saphelp_nw04s/helpdata/en/30/d7fa41c915da6fe10000000a1550b0/frameset.htm

/people/valery.silaev/blog/2006/07/18/ovs-rfc

Regards,

Arun

former_member751941
Active Contributor
0 Kudos

Hi Vani,

Follow the steps to create OVS.

Step 1: Create a WebDynpro project.

Step2 : Right click on the model =>create Model => Import Adaptive Web Service Model=>Next=>Give Model Name(say FlightDetails)/PackageName/Model Instances/RFC Meta Data =>Next => Give SAP logon information for single server(Host Name/System Number/client/logon name/password/language)=>Next=>Give the Function Name(Bapi_Flight_Getlist) =>Next=>Finished

Step3 : Create a Webdynpro component(say FlightDetailsComp).

Step4: Right Click on the Used Model add the model(FlightDetails) that you have created using RFC.

Step 4 : Double-Clicks on the Component controller and Create a Value node(FlightInput) set Cardinality(0..1) and a Value Attribute(airlineid) under the node.

FlightInput

|_ airlineid

Step5 : Double-Clicks on the ComponentName(FlightDetailsComp) and open the the Diagram view and do the Mapping between component controller and used model (FlightDetails), views and component controller.

[In the context Model node structure will be like

Bapi_Flight_Getlist_Input

|---Output

|------ Flight_List

|--- Airline

]

Step6: Go to the Component Controller then select “Method” Tab and create the following three methods.

i> getOVSInputNode return type com.sap.tc.webdynpro.progmodel.api.IWDNode

ii> getOVSListener return type com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener

iii> getOVSOutputNode retun type

com.sap.tc.webdynpro.progmodel.api.IWDNode

Step7:

Go to the Implementation tab and provide the following implementation for the functions

1> public void wdDoInit()

{

//@@begin wdDoInit()

wdContext.nodeFlightInput().bind(wdContext.createFlightInputElement());

Bapi_Flight_Getlist_Input bapiInput = new Bapi_Flight_Getlist_Input();

wdContext.nodeBapi_Flight_Getlist_Input().bind(bapiInput);

//@@end

}

2> public com.sap.tc.webdynpro.progmodel.api.IWDNode getOVSInputNode( )

{

//@@begin getOVSInputNode()

return wdContext.nodeBapi_Flight_Getlist_Input();

//@@end

}

3> public com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener getOVSListener( )

{

//@@begin getOVSListener()

return ovsListener;

//@@end

}

4> public com.sap.tc.webdynpro.progmodel.api.IWDNode getOVSOutputNode( )

{

//@@begin getOVSOutputNode()

return wdContext.nodeFlight_List();

//@@end

}

5>

//@@begin others

private IWDOVSContextNotificationListener ovsListener = new OVSNotificationListener();

private class OVSNotificationListener implements IWDOVSContextNotificationListener {

public void onQuery(

IWDNodeElement queryInputNodeElement,

IWDNode queryOutputNode) {

//Type custing of node element

IPublicFilghtDetailsComp

.IBapi_Flight_Getlist_InputElement ovsInput =

( IPublicFilghtDetailsComp

.IBapi_Flight_Getlist_InputElement) queryInputNodeElement;

IPublicFilghtDetailsComp.IFlight_ListNode ovsOutput =

(IPublicFilghtDetailsComp.IFlight_ListNode) queryOutputNode;

try {

ovsInput.modelObject().execute();

ovsInput.node().getChildNode("Output", 0).invalidate();

} catch (Exception e) {

IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();

msgMgr.reportException(e.getLocalizedMessage(), false);

}

}

// Setting result to Value node elwment

public void applyResult(IWDNodeElement applicationNodeElement,IWDNodeElement queryOutputNodeElement)

{

IWDMessageManager msg = wdControllerAPI.getMessageManager();

IPrivateFlightDetailsView.IFlightInputElement flightElement = (IPrivateFlightDetailsView.IFlightInputElement) applicationNodeElement;

IPublicFilghtDetailsComp.IFlight_ListElement outputElm = (IPublicFilghtDetailsComp.IFlight_ListElement)queryOutputNodeElement;

flightElement.setAirlineid(outputElm.getAirlineid());

}

//Setting Input for search

public void applyInputValues(IWDNodeElement applicationNodeElement,IWDNodeElement queryInputNodeElement)

{

}

}

Step7: Go to the View(FilightDetailsView) then select “Layout” Tab and design the layout.

Like Airline : FlightInput.airlineid

Take a ToolbarInputField and give the “labelText” value Airline and “value” property value “value FlightInput.airlineid.

Step8: Go to the Implementation and provide the code.

public void wdDoInit()

{

//@@begin wdDoInit()

IWDAttributeInfo[] ovsStartUpAttributes =

{

wdContext.nodeFlightInput()

.getNodeInfo()

.getAttribute("airlineid")

};

IWDOVSContextNotificationListener listener =

wdThis.wdGetFilghtDetailsCompController().getOVSListener();

if (listener != null) {

WDValueServices.addOVSExtension(

"Flight Details",

ovsStartUpAttributes,

wdThis.wdGetFilghtDetailsCompController().getOVSInputNode(),

wdThis

.wdGetFilghtDetailsCompController()

.getOVSOutputNode(),

listener);

}

//@@end

}

Step9: Create an Application(say FilghtApp) .

Step10 : Configure JCo, Build and Deploy.

Regards,

Mithu

Former Member
0 Kudos

i am not using model

how can i use ovs

former_member751941
Active Contributor
0 Kudos

Hi Vani,

I think you have the "BAPI" using which you are getting the Back-End data.

you create a model using that "BAPI".If you don't have "BAPI" you can use caf model also.

Would you post the exact requirement??

Regards,

Mithu

Former Member
0 Kudos

Hi ,,

Thanks

Message was edited by:

Portal Newbie

Former Member
0 Kudos
Former Member
0 Kudos