on 03-02-2007 11:35 PM
Hi -
We have an issue with our forms editable fields are getting disabled (read only, we can not enter data) even though we have proper properties set.
Our developers are looking into a possible cardinality issue i.e. our form fields are test field and have a cardinality of 0..1, where as our bapi structure is showing a cardinality of 0..n for the corresponding field in bapi.
We had internal table as an export parameter so we though may be because of that we are getting 0..n. However we have changed the internal table to a type of structure and recreated a model mapped all the controller and context nodes back to the new structure and still get 0..n cardinality.
We have already researched on SDN logs and did not find any relevant answers.
Any one have any idea please make our weekend happy Developers are really working hard on Friday to close on this before they go home.
Thanks
Shahid
Hi Shahid,
If the context node cardinality is 0...1 or 0...n then you need to first create or bind an element to the node to make the form fields editable to which those nodes are bound to. If it's a model node then you need to instantiate a new model node object and bind it to the node e.g.:
Bapi_xxx_Input input = new Bapi_xxx_Input();
wdContext.nodeBapi_xxx_Input().bind(input);
Or if it's a value node then you need to instantiate the node element as below:
wdContext.nodemyNode().addElement(wdContext.nodemyNode().createElement());
Hope this helps.
thanks,
Dipankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dipankar,
Thanks for your spontanous reply. We are binding the element to the node as described in your email. But when we call the bapi since the cardinality on the form text field is 0..1 and the cardinality on the bapi is 0..n our call to save results to the bapi fails.
Your guidance is really really appreciated.
Have a great weekend
Shahid
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.