cancel
Showing results for 
Search instead for 
Did you mean: 

The ASSERT condition was violated.

Former Member
0 Kudos

HI,

While i am executing an Webdynpro component it trowing a dump.

Please find the below dump.

In the running application program, the ASSERT statement recognized a

situation that should not have occurred.

The runtime error was triggered for one of these reasons:

- For the checkpoint group specified with the ASSERT statement, the

   activation mode is set to "abort".

- Via a system variant, the activation mode is globally set to "abort"

   for checkpoint groups in this system.

- The activation mode is set to "abort" on program level.

- The ASSERT statement is not assigned to any checkpoint group.

what can you do?

Note down which actions and inputs caused the error.

To process the problem further, contact you SAP system

administrator.

    Using Transaction ST22 for ABAP Dump Analysis, you can look

    at and manage termination messages, and you can also

    keep them for a long time.

Error analysis

    The following checkpoint group was used: "No checkpoint group specified"

    If in the ASSERT statement the addition FIELDS was used, you can find

    the content of the first 8 specified fields in the following overview:

    " (not used) "

    " (not used) "

    " (not used) "

    " (not used) "

    " (not used) "

    " (not used) "

    " (not used) "

    " (not used) "

How to correct the error

    Probably the only way to eliminate the error is to correct the program.

    -

    If the error occures in a non-modified SAP program, you may be able to

    find an interim solution in an SAP Note.

    If you have access to SAP Notes, carry out a search with the following

    keywords:

    "ASSERTION_FAILED" " "

    "CL_WDR_TABLE_DATA_PROVIDER====CP" or "CL_WDR_TABLE_DATA_PROVIDER====CM00A"

    "GET_VISIBLE_TABLE_DATA"

    If you cannot solve the problem yourself and want to send an error

    notification to SAP, include the following information:

    1. The description of the current problem (short dump)

       To save the description, choose "System->List->Save->Local File

    (Unconverted)".

    2. Corresponding system log

       Display the system log by calling transaction SM21.

       Restrict the time interval to 10 minutes before and five minutes

    after the short dump. Then choose "System->List->Save->Local File

    (Unconverted)".

    3. If the problem occurs in a problem of your own or a modified SAP

    program: The source code of the program

       In the editor, choose "Utilities->More

    Utilities->Upload/Download->Download".

    4. Details about the conditions under which the error occurred or which

    actions and input led to the error.

Source Code Extract (Source code has changed)

Line  SourceCde

   58       call method get_table_data

   59         exporting

   60           i_first_row_index         = first_row_index

   61           i_last_row_index          = last_row_index

   62         importing

   63           e_row_data_tab            = e_row_data_tab

   64           e_row_count               = e_row_count.

   65     endif.

   66   endif.

   67

   68

   69   if m_fixed_row_count <> c_no_fixed_row_count.

   70     data row_count type i.

   71

   72     " Rows that are in the table from FIRST_VISIBLE_ROW

   73     row_count = m_fixed_row_count - e_first_visible_row.

   74     " but max. the number of rows that can be displayed at one time

   75     if m_visible_row_count <> -1 and

   76        m_visible_row_count < row_count.

   77

   78       row_count = m_visible_row_count.

   79     endif.

   80

   81     " Check if RowCount > FirstActualRow + # of Context Elements

   82     " * m_wd_table

   83     "   * ROW_COUNT

   84     "   * DATA_SOURCE

   85     "   * FIRST_ACTUAL_ROW

   86

   87 *   assert lines( e_row_data_tab ) = row_count.

>>>>>     assert lines( e_row_data_tab ) >= row_count.

   89   endif.

   90

   91   if m_show_lead_selection = abap_true.

   92     e_lead_selection = get_lead_selection( ).

   93   else.

   94     clear e_lead_selection.

   95   endif.

   96

   97   if m_range_select_start_index = -2147483648.

   98     e_rowselectionreferenceindex = -2147483648.

   99   elseif m_range_select_start_index < first_row_index.

  100     e_rowselectionreferenceindex = first_row_index.

  101   elseif m_range_select_start_index > last_row_index and last_row_index > -1.

  102     e_rowselectionreferenceindex = last_row_index.

  103   else.

  104     e_rowselectionreferenceindex = m_range_select_start_index.

  105   endif.

  106 endmethod.                    "get_visible_table_data####

Please help me in solving the issue.

Thanks,

Vijay.

Accepted Solutions (0)

Answers (1)

Answers (1)

Szczerbowski
Active Participant
0 Kudos

Maybe you should give some more details.

What is this WDA custom or standard, when does it dump, what action is performed, what is the call stack that triggers this method before, etc..