Consuming HANA objects in ABAP Flashcards
SAP HANA procedure exporting parameters are always…
Tables
Source code of HANA procedures are always written in…
SQLscript
What does a parameter being passed to a calculation or analytical view look like?
(‘PLACEHOLDER’ = (‘$$param1$$, ‘param1value’),
‘PLACEHOLDER’ = (‘$$param2$$, ‘param2value’))
the parameter is enclosed in quotes and double dollar signs.
In HANA studio what is the best way to preview the data?
Data preview which has three components
Raw data
Distinct rows
Interactive Graphical analysis
Where are parameter details shown in HANA studio
The properties view
How can a HANA procedure be tested in HANA Studio?
Hit the SQL button and enter the call statement. e.g. CALL "_SYS_BIC"."my400.demo/MY_PROCEDURE"('bobby',null, null) Where _SYS_BIC is the schema my400.demo is the package path MY_PROCEDURE is the actual procedure 'bobby' is an import parameter the two nulls are export parameters
How can a HANA procedure be called in ABAP using HANA native SQL?
–is this a procedure or a view?
e.g. SELECT fld1, fld2,cntflds FROM "my400.demo::COUNT_RECS" WHERE MANDT = sy-mandt
How can a HANA procedure be called from ABAP using HANA native SQL when mandatory parameters exist?
SELECT fld1, fld2,cntflds FROM "my400.demo::COUNT_RECS" (PLACEHOLDER = ('\$\$PAR1\$\$','bob'), PLACEHOLDER =('\$\$PAR2\$\$,fld2)) WHERE MANDT = sy-mandt
How can I call a HANA procedure to just retrieve the results?
CALL “my400.demo::COUNT_RECS” WITH OVERVIEW
When “WITH OVERVIEW” is requested, what is returned to the caller?
A table with two columns of type string
What must happen in the calling program to view the OVERVIEW data?
A table with two columns of type string must be created
The created table must be referenced to a data object
The data object is assigned using the SET_PARAM_TABLE method of the call
The NEXT_PACKAGE method must be called
The CLOSE method must be called
So it looks like this
TYPES: begin of t_overview,
PARAM type string
VALUE type string
end of t_overview.
data lt_overview type table of t_overview,
lr_overview type t_overview.
What is an external view?
A proxy for a HANA view that can easily be consumed in ABAP
Can external views be used as data types in ABAP?
Yes
Looking at the external view in ABAP it is possible to determine the tables being used by the HANA view?
No, the proxy is just a thin wrapper. Only the structure of the results is available
External views can be created in the ABAP workbench?
No, only in ADT