on 06-14-2007 8:44 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi Vani...
Check these links below.. this provides u with needed information...
http://help.sap.com/saphelp_nw04s/helpdata/en/30/d7fa41c915da6fe10000000a1550b0/frameset.htm
/people/valery.silaev/blog/2006/07/18/ovs-rfc
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go to the following link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 | |
6 | |
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.