on 07-15-2010 3:42 PM
Hello,
a little help please... Just started with WebDynpro...
I have defined a custom DDIC input help on a input field 'Field1' (that returns fields from Z table).
How is it possible (upon selection of a row in input help) to pass values ('Field2' & 'Field3') to their respective input fields on the screen automatically?
Example of input help return:
Field1 - Field2 - Field3
01 V1 2010
01 V2 2010
02 V1 2011
03 V1 2012
Example of screen input fields:
Field1: 01 (does get populated)
Field2: V2 (would like to populate it automatically based on a selection of 'Field1' in input help)
Field3: 2010 (would like to populate it automatically based on a selection of 'Field1' in input help)
Kind regards,
Tom
Hello,
there are many useful links on SDN to refer :
http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/frameset.htm
/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
http://help.sap.com/saphelp_nw70/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/content.htm
1.Goto Your ComponentController and in properties tab add WDR_OVS
and Name the Usage Name as OVS_USAGE_1
2. In your View in Properties tab Add the Usage OVS_USAGE_1 along with InterfaceController
3. Create a Context Attribute and see the Properties of this Attributes Below.
Change the Properties
Input Help Mode : Object Value Selector
OVS Component Usage : OVS_USAGE_1
4. In Layout of the View Place an InputField and Assign the Value property to the
Context Attribute.
5. Goto Methods Tab Add a method called ON_OVS choose the Method Type as Event Handler and Enter The Event OVS automatically picked.
6. ON_OVS Method will have a parameter OVS_CALLBACK_OBJECT
It has a ovs_callback_object->phase_indicator attribute this holds different values during your Selection.
different values for phase indicator what it means you can check from the documentation and now
you go to WDR_TEST_OVS application and see the coding in V3 View Method
ON_OVS
regards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
thak you all for valuable links & steps for OVS implementation...
Answered & solved...
Cheers,
Tom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tom,
I think you need to create Object Value selector(OVS) for this.Please search scn and google for more on this
Thanks
Bala Duvvuri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tom,
You have to use OVS.
I will just mention the points to remember when using OVS. Sample programs are available in net and you can google it and find easily.
1. You have to add the component ZWA_OVS_JOB in your view's properties. (component controller).
2. Create Event handler for OVS as mentioned in the sample programs.
3. You have to modify the generated code as per your requirement.
4. Bind the OVS to your input field.
I'm a little tired of people giving out the incorrect information that the only way to acomplish this requirement is with OVS. It can be done (quite easily) with Data Dictionary based Search Helps as well. You need only use a DDic Structure/table and do your Search Help parameter mapping within this structure/table definition. Then in your WD Context, use this same Structure/Table as the source defintion of the context node. The framework will then perform the same automatic mapping of parameters of the search help to the matching Context Attributes.
From the online help:
If an input help structure is stored in a field in the ABAP Dictionary, and if you want to use the field mapping of search help parameters stored in the ABAP Dictionary as the field name for the structure for your Web Dynpro input help, then map your context nodes to this structure. This ensures that all components of the structure are available dynamically at runtime as attributes of the node.
If the context node is not mapped to the structure, the data element's input help can be used if there is one.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.