cancel
Showing results for 
Search instead for 
Did you mean: 

The assert condition was violated error message while adding rows in Web Dynpro ALV

Former Member
0 Kudos

Hi,

We have a web dynpro ABAP appication which is accessed from portal. A screen consists of ALV and to add rows into the table, option is provided. Only 1 or 2 users are facing the error message " The assert condition was violated" when clicked Add button in ALV. Checked column settings, language settings of the portal from where they access. Everything is fine.

Thanks,

Vishnu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The user had few column added in ALV field settings. Removed the column names which was not supposed to display during runtime.

The assert condition was violated when Column X was allowed for sorting the column which should not have been really displayed during runtime.

Thanks for all your answers.

Vishnu

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

How is the context node structured for which this ALV is bound to?  Does it have a child node?  Is it a Child itself? This is from the online help:

Important Exception:

Here ALV has to use the entire dataset so that the data records can be arranged in the new order. For this purpose, the ALV component temporarily takes control of the internal data table and invalidates the corresponding context node of your application during this time. This ensures that the application cannot access the context node while the ALV component is editing the internal data table.

Once the internal data table has been resorted, ALV rebuilds the context node, releases it again for the application, and displays the data accordingly.

This ensures that the internal data table is never copied. This is important because large volumes of data would considerably impact performance and memory space.

When you are planning your application, note the following side-effects of this mechanism:

●      When the context node is invalidated, information about current selections, and in particular the lead selection, is lost.

●      If your application has created subnodes for the context node, (master-detail scenario), these subnodes are lost as soon as the ALV component invalidates the context node. If the application then tries to access the subnodes, a runtime error occurs.

Former Member
0 Kudos

Hi Harshith,

Its only one user who is getting the dump, others are successful in adding rows including myself. Could it be a different reason for this case?

Thanks,

Vishnu

former_member210621
Participant
0 Kudos

Hi,

Please check the cardianality of the node which you are binding to that ALV Table.

Former Member
0 Kudos

Ketan,

In my case adding rows was successful. Only one user is having the issue. Is this something else apart from the way application is built?