cancel
Showing results for 
Search instead for 
Did you mean: 

Help on OVS

Former Member
0 Kudos

I am trying to create OVS for an RFC. Ex 9 talks about the OVS Custom Controller. How can I create the OVS enabled Custom Controller ?

Simpler steps are appreciated....

Thank You

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Adi,

I am sorry for not being clear in my question.

My question is not how to create a custom controller but how do I OVS-enable a custom controller.

In other words, how can I implement - Listener interface in Custom Controller?

Thank You

Former Member
0 Kudos

Hi Vivek,

In your Custom Controller have a private inner class which implements the interface IWDOVSContextNotificationListener. This will give you 3 methods onQuery, applyResult and applyInputValues. Implement these 3 methods.

Also for further help go through <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e038cf90-0201-0010-0a9a-ec69262a1564">this</a>.

Regards,

Satyajit.

Former Member
0 Kudos

Satyajit,

Thank You very much for the reply.

I did as you suggested already. I am writing the new inner class under Custom Controller. It implements IWDOVSContextNotificationListener.

I am implementing the applyInputValues() , onQuery() and applyResult() .

I added getOVSListener(), getOVSInputNode() and getOVSOutputNode() methods to the Custom controller[Added these manually from the Methods tab - Pl let me know if this is not right]

I am assuming applyInputValues(), is the first method that calls when we click on the value help icon.

Object initialValue = applicationNodeElement.getAttributeValue("Airlineid");

queryInputNodeElement.setAttributeValue("Airline", initialValue);

Is queryInputNodeElement a BAPI node ? I only have tables and no other input fields in my BAPI though.

But we are setting the BAPI input nodes in onQuery() mehtod though...

So, I am lil bit confused...

Also, I have a issue saying the attribute to set is not found .

Can you please clarify Sathyajit?

Thank You

Answers (2)

Answers (2)

Former Member
0 Kudos

HI

GOOD

The OVS custom controller stores the OVS helper context data, which is requried by the generic OVS UI. It is important to note that the context attributes in this helper context must be appropriately typed with simple data types in a local or logical Data Dictionary. Metadata of these simple types is read by the generic OVS core component for dynamically creating the OVS user interface with field labels, tool tips or column header texts. Without access to this metadata, the generic OVS UI cannot be correctly rendered.

http://help.sap.com/saphelp_nw04s/helpdata/en/41/358442a07b0e53e10000000a155106/content.htm

http://help.sap.com/saphelp_nw04s/helpdata/en/bf/867842fdb70f53e10000000a155106/content.htm

THANKS

MRUTYUN

Former Member
0 Kudos

Hi Vivek,

To create a new custom controller:

1. Double click on the name of your component - it will open the diagram view.

2. In the diagram view - the square in the middle is for custom controllers. right click on that square and choose

"create custom controller".

Give it the name and package as they say in the tutorial.

Does this answer you question?

Adi.