on 06-03-2009 2:57 PM
hi everybody
ive built a webdynpro consisting of a hierarchical ALV but im getting the error:
Number of Elements of the Collection of Node COMPONENTCONTROLLER.1.DATA Violates the Cardinality.
does anybody know why
Hi Anjali,
Go to the node DATA which you have created in your COMPONENTCONTROLLER. Select the node & change the cardinality to 0..n or 1..n.
Since you are displaying multiple rows of data you should go for 1 of the 2 values. Select 0..n if your ALV may at a point contain no data at all or 1..n if you expect it to contain at least 1 row at any point of time.
Regards,
Uday
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 context and change the to 0..n.and update the mapping in component .
Select 0..n because your ALV may not contain data at all .
and 1..n if we should get atleast one record.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anjali,
Basically, if you are designing an ALV, the data mapping is done and hence the context node cardinality under the COMPONENTCONTROLLER should be 0..n. Because, ALV will have multiple data and while processing the data at runtime it is stored under an internal table and so when it comes to the matter of Internal Table, the cardinality has to be 0..n.
Check this link:
[Cardinality|http://help.sap.com/saphelp_erp2005/helpdata/EN/7a/787e40417c6d1de10000000a1550b0/content.htm]
Regards,
-Syed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anjali,
Please check the cardinality property of context node of your ALV table that u bind to Data context of ALV
The cardinality must be 0:N or 1:N.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.