Quantcast
Channel: SCN: Message List - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 2110

Re: Error creating External view on HANA Live model in CRM

$
0
0

Hi Guys, you're on the right track here alright. I've checked the note and the correction is already implemented in the system however it seems there is still a bug there:

 

METHOD convert_nhi_dbviewname.

     DATA splittable TYPE STANDARD TABLE OF dbviewname.

     DATA wa_splittable LIKE LINE OF splittable.

     DATA no_lines TYPE i.

     DATA level_dbpackage_hierarchy TYPE i.

     " A typical name could be: packHier_1.Pack_hier2.Pack_hier3.VIEWNAME_A

     " This is to be converted to: packHier_1.Pack_hier2.Pack_hier3/VIEWNAME_A

     " Substitute the last '.' by '/'

     SPLIT nhi_dbviewname AT '.' INTO TABLE splittable.

     DESCRIBE TABLE splittable LINES no_lines.

 

     level_dbpackage_hierarchy = no_lines - 1.

 

     DO level_dbpackage_hierarchy TIMES.

       READ TABLE splittable INTO wa_splittable INDEX sy-index.

       IF sy-index < level_dbpackage_hierarchy.

         CONCATENATE dbviewname wa_splittable '.' INTO dbviewname.

       ELSE.

         CONCATENATE dbviewname wa_splittable INTO dbviewname.

       ENDIF.

     ENDDO.

 

     READ TABLE splittable INTO wa_splittable INDEX no_lines.

     TRANSLATE wa_splittable TO UPPER CASE. "To be sure...

     CONCATENATE dbviewname '/' wa_splittable INTO dbviewname.

   ENDMETHOD.                    "convert_nhi_dbviewname



The line I have highlighted is basically converting BusinessTransactionType to BUSINESSTRANSACTIONTYPE and therefore when it tries to look for the view in HANA it can't find it.


I confirmed that it will create the External View if there is no translation by converting the value back to BusinessTransactionType via the debugger.



Jens, do you know if there are any subsequent notes that address this line of code? I was unable to find any.

If not I will go ahead and log an incident to get this addressed.


Thanks

Peter


Viewing all articles
Browse latest Browse all 2110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>