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

Getting short dump when I execute the program after Step 3.

PavanM
Product and Topic Expert
Product and Topic Expert
0 Likes
2,534

Tutorials: https://developers.sap.com/tutorials/abap-dev-adt-use-cds-view.html
--------------------------

Write here what you need help with ...

I am getting a short dump when I executed the program in Step 3 after entering the line

cl_salv_gui_table_ida=>create_for_cds_view( 'Z_Invoice_Items_XXX' )->fullscreen( )->display( ).

My CDS view name is Z_INVOICE_ITEMS_PAVAN and am able to activate it and execute it.

The message in the short dump says

An exception has occurred that was not caught. hat happened? The exception of class "CX_SALV_DB_TABLE_NOT_SUPPORTED" was triggered but not caught anywhere in the call hierarchy. Since exceptions represent error situations, and this error was not adequately responded to, ABAP program "CL_SALV_IDA_SERVICES==========CP" had to be terminated. rror analysis An exception has occurred in class "CX_SALV_DB_TABLE_NOT_SUPPORTED". This exception was not caught in procedure "RUN" "(METHOD)" or propagated by a RAISING clause. Since the caller of the procedure could not have anticipated this exception, the current program was terminated. The reason for the exception occurring was: The reason for the exception is: DB table Z_Invoice_Items_Pavan is not supported The exception is related to the previous exception "CX_SADL_ENTITY" that occurred in program "CL_SADL_ENTITY_PROVIDER_CDS===CP", in line 34 of include "CL_SADL_ENTITY_PROVIDER_CDS===CM00Q". The reason for this exception was: Unknown entity 'Z_INVOICE_ITEMS_PAVAN' type 'CDS'

1 ACCEPTED SOLUTION
Read only

mohit_dev
Contributor
2,063

Hi Pavan,

The name of your CDS view while creating will be different from the one you are actually using after your "define view" statement. Maybe, you have changed the name lately.

You need to use that CDS view name in your report, which is defined next to the "define view" statement in your CDS view.

Regards,
Mohit Sharma

3 REPLIES 3
Read only

VXLozano
Active Contributor
0 Likes
2,063

I have no time to read the tutorial.
If an exception has been raised but not caught, the first step is to catch it. Add a TRY-ENDTRY environment for the line that raises the exception (more about that in the ABAP help section).

And I guess the problem is you are passing your table to the SALV class but it doesn't recognize the data structure. You can change the SALV thing by a classical GUI_ALV or by an even more classical (antique, I would say) REUSE_FM_ function, passing the field catalog in the call.

Hope it helps.

Read only

mohit_dev
Contributor
2,064

Hi Pavan,

The name of your CDS view while creating will be different from the one you are actually using after your "define view" statement. Maybe, you have changed the name lately.

You need to use that CDS view name in your report, which is defined next to the "define view" statement in your CDS view.

Regards,
Mohit Sharma

Read only

PavanM
Product and Topic Expert
Product and Topic Expert
2,063

Hi Mohit,

Thanks a lot for your reply and explanation. That really helps.

Regards,

Pavan.