cancel
Showing results for 
Search instead for 
Did you mean: 

error when executing webdynpro application

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

uday_gubbala2
Active Contributor

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

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.