Consuming HANA objects in ABAP Flashcards

1
Q

SAP HANA procedure exporting parameters are always…

A

Tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Source code of HANA procedures are always written in…

A

SQLscript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does a parameter being passed to a calculation or analytical view look like?

A

(‘PLACEHOLDER’ = (‘$$param1$$, ‘param1value’),
‘PLACEHOLDER’ = (‘$$param2$$, ‘param2value’))
the parameter is enclosed in quotes and double dollar signs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In HANA studio what is the best way to preview the data?

A

Data preview which has three components
Raw data
Distinct rows
Interactive Graphical analysis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where are parameter details shown in HANA studio

A

The properties view

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can a HANA procedure be tested in HANA Studio?

A
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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can a HANA procedure be called in ABAP using HANA native SQL?
–is this a procedure or a view?

A
e.g.
SELECT fld1, fld2,cntflds
FROM
"my400.demo::COUNT_RECS"
WHERE MANDT = sy-mandt
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can a HANA procedure be called from ABAP using HANA native SQL when mandatory parameters exist?

A
SELECT fld1, fld2,cntflds
FROM
"my400.demo::COUNT_RECS"
(PLACEHOLDER = ('\$\$PAR1\$\$','bob'), 
 PLACEHOLDER =('\$\$PAR2\$\$,fld2))
WHERE MANDT = sy-mandt
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can I call a HANA procedure to just retrieve the results?

A

CALL “my400.demo::COUNT_RECS” WITH OVERVIEW

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When “WITH OVERVIEW” is requested, what is returned to the caller?

A

A table with two columns of type string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What must happen in the calling program to view the OVERVIEW data?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is an external view?

A

A proxy for a HANA view that can easily be consumed in ABAP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Can external views be used as data types in ABAP?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Looking at the external view in ABAP it is possible to determine the tables being used by the HANA view?

A

No, the proxy is just a thin wrapper. Only the structure of the results is available

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

External views can be created in the ABAP workbench?

A

No, only in ADT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly