on 05-04-2015 1:48 PM
Hi,
I am creating a Web Dynpro JAVA application which deals with RFC. I have created table and function module in the backend, and imported adaptive RFC model too, then created component controller by applying template as service conttroller, and model binding. In the search view there are 5 input fields and a radio button and a submit button. the model node attributed are mapped to the input fields. But when I am deploying the application on J2EE server, all the input fields are coming as read only, and I am not able to input any value in it. I checked the read only property field of all the input field UI elements, but they are false.
Please suggest what is the problem? As the application is completely OK according to the sample applications given on SAP help.Also when I am trying to set the value of a model attribute received from "selected key" value attribute, in run time it gives Null Pointer Exception.
Thanks in advance for help.
Hi,
Have a seperate node(Inputs-->Name,Location,Id,etc) for the input elements of the search view screen with cardinality 1..1.
Set this Input node values to the model node input attributes of RFC, that you imported on Submit action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
Thanks for the help.
I created a model node with cradinality 1..1 in search view and model attributes also in that node. But when I map it to the attributes of component controller it gives me error message "Mapping of origin parent context node missing".
The component controller has model node with 1..1 cardinality but the inner node has default cardinality of 0..1 which I am not able to edit also.
Hi,
After importing the RFC, if u have selected only relevant fields needed for your requirement.
You would be having model node like below with cardinality 0..1
ZRFCNode
Output Node -Output1,Output2
Input1
Input2
So, in the Search View,you can create model node with cardinality 0..1 only, with input1 and input2 context attributes. This can be mapped input1 and input2 of RFC node for context mapping to controller model node(ZRFCNode).This context attributes can be bind to UI inputs elements
Another Table node, can be mapped to Output Node for Context mapping to controller model node(ZRFCNode->Output Node).
Hi,
Once you change the RFC, you need to re-import the model to see the changes you made.
Hope you have gone through this link,if not check again
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.