cancel
Showing results for 
Search instead for 
Did you mean: 

Assert Condition Violated dump...

former_member192971
Participant
0 Kudos

Hello Experts ,

When I am trying to Generate Runtime Objects for a Project , I am getting Short dump as "Assert condition was Violated" with the below Source code. Using the transaction /IWBEP/SB(SEGW).

CASE ld_ddobjtype.
       WHEN objecttype-dtel.
         lr_root = analyse_element( is_type = ls_dfiesincl ).

       WHEN objecttype-inttab.
         " structure

         analyse_structure(
           EXPORTING
             iv_fieldname = 'root'
             iv_struname = lv_typename
             iv_position = 0
           IMPORTING
             eo_fielddesc = lo_desc
         ).

         lr_root ?= lo_desc.

       WHEN objecttype-ttyp.
         " table type
         lr_root = analyse_table( iv_fieldname = 'root'
                                  iv_tablename = lv_typename
                                  iv_position = 0 ).

       WHEN objecttype-transp OR objecttype-view.
         " transparent table
         lr_root = analyze_transp_table( iv_fieldname = 'root'
                                  iv_struname = lv_typename
                                  iv_position = 0
                                  it_dfies = lt_dfies_tab ).


       WHEN ''" row is internal type
         lr_root = analyse_coretype( iv_type = ls_dfiesincl ).

     ENDCASE.


     ASSERT  NOT lr_root IS INITIAL.



Could anyone let me know , What could be the possible solution for this error-short dump?


Appreciate your help.


Thanks,

Uday.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member187859
Participant
0 Kudos

The code that is dumping (looks to be from class "/iwbep/cl_ifl_type_analyzer" method "process") is analyzing the different types associated with the FM you're using.  I just tried a real quick test in my environment using that FM BAPI_CUST_SAREAS_MATERIALS_GET and I'm not having any problems.

One thing you could do is look at the dump in ST22, go to the "Chosen variables" section, and look at two things: the value of ld_ddobjtype and the value of lv_typename.  If you post that information I may be able to help more.

Are you using that BAPI FM as the basis for the read/query, or did you write your own FM to wrap around that BAPI call?

former_member192971
Participant
0 Kudos

Hi , Could any one suggest a solution to overcome the above mentioned error. I am getting the "Assert condition was Violated" when I do mapping for Read or Query operation with the back-end data source(Function Modules in my case) .

Function Module internally calling the below BAPI

  • BAPI_CUST_SAREAS_MATERIALS_GET

Short dump states that it is internally having an Abort statement set . So,  how to overcome that ...

Thanks.