Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dump C_ASSERTION_FAILED in code inspector

jrgkraus
Active Contributor
0 Likes
1,099

I get the above run time error when checking a class with code inspector.

System environment: SAP Release..... 750 SAP Basis level 0013

Here's the coding extract from the dump:

Category               ABAP programming error
Runtime Errors         ASSERTION_FAILED
ABAP Program           CL_SLIN_EXPR==================CP

  1410
  1411       WHEN OTHERS. "c_tag-value_constr.
  1412         ret = node_to_nr( prog = expr->prog idx = idx node_type = node ).
  1413     ENDCASE.
  1414
  1415   ENDMETHOD.
  1416
  1417
  1418   METHOD get_builtin_nr.
  1419
  1420     CASE cl_slin_prog_cache=>get_builtin_functions( vres )->get_return_typ
  1421       WHEN cl_slin_builtin_functions=>return-string.
  1422         ret = slini_typid-string.
  1423       WHEN cl_slin_builtin_functions=>return-xstring.
  1424         ret = slini_typid-xstring.
  1425       WHEN cl_slin_builtin_functions=>return-numeric OR
  1426            cl_slin_builtin_functions=>return-float OR
  1427            cl_slin_builtin_functions=>return-integer.
  1428         ret = slini_typid-decfloat34.
  1429     ENDCASE.
  1430
  1431   ENDMETHOD.
  1432
  1433
  1434   METHOD arr_chain_to_type_nr.
  1435
  1436     DATA(synt) = expr->prog->synt.
  1437     DATA(childs) = expr->get_child_nodes( node-id ).
  1438     READ TABLE childs INDEX 1 INTO DATA(child).
  1439
 >>>>>     ASSERT child-tag EQ c_tag-array_call.
  1441     ret = field_to_nr( synt       = synt
  1442                        field_name = child-str
  1443                        field_idx  = idx ).
  1444     DATA(type) = nr_to_type( synt = synt
  1445                              nr = synt->get_base_type( ret ) ).
  1446     ret = synt->get_base_type( type-ref_offset ).
  1447
  1448     DATA(xenv) = expr->prog->get_xenv_infos( ).
  1449     LOOP AT childs INTO child FROM 2.
  1450       type = nr_to_type( synt = synt

Did anyone encounter this before?

3 REPLIES 3
Read only

Vivek0459
Participant
0 Likes
836

Hey Jorg,

ASSERTION_FAILED error type never gives exact reason , Please take a close look on your ST22 data you will definitely find some hint/data which is trigerring this error.

If you can share your ST22 dump may be i can take a look to help you out .

Thanks

Read only

jrgkraus
Active Contributor
0 Likes
836

I tried to attache the dump in a .txt file. But the site says "can't be uploaded because the file type is invalid". For pasting into the answer the dump is too big. However - a txt file should work as attachment... I'm clueless how to share the dump

Read only

matt
Active Contributor
0 Likes
836

This is in a standard SAP program. You should search on support.sap.com for a note. If none found, raise an issue.