‎2021 Jun 01 3:44 PM
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'
‎2021 Jun 01 4:38 PM
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
‎2021 Jun 01 4:11 PM
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.
‎2021 Jun 01 4:38 PM
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
‎2021 Jun 01 4:52 PM
Hi Mohit,
Thanks a lot for your reply and explanation. That really helps.
Regards,
Pavan.