TAW_12 Chapter 11, Dynamic programming Flashcards

1
Q

Fully generic types are

A

DATA and ANY

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

Generic type SIMPLE is for

A

Elementary data types or flat structures

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

There are two ways to type generic object refferences. What are they

A

Type ref to object

Type ref to data

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

The two numeric generic types are

A

DECFLOAT and NUMERIC

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

The two character like generics are

A

CLIKE and CSEQUENCE

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

The single generic hex type is

A

xsequence

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

What are the two variants of CASTING

A
If the type is defined
FIELD-SYMBOLS  TYPE mystruct.
ASSIGN mydata to  CASTING.
If the field symbol is type ANY
ASSIGN mydata to  CASTING TYPE MYSTRUCT
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the only statement which can dereference a generically typed reference variable

A

Assign fld1->* to

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

What is the superclass RTTI class hierarchy?

A

CL_ABAP_TYPEDESCR

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

How many classes are part of the RTTI Class hierarchy?

A

10 (4 of which are abstract)

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

There are two main subclasses under cl_bap_typedescr. Name them

A

cl_abap_datadescr

cl_abap_objectdescr

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

Under cl_abap_datadescr there are three subclasses. Name them

A

cl_abap_elemdescr
cl_abap_refdescr
cl_abap_complexdescr

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

Under cl_abap_complexdescr there are two subclasses. name them

A

cl_abap_structdescr

cl_abap_tabledescr

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

Under cl_abap_objectdescr there are two subclasses. name them.

A

cl_abap_classdescr

cl_abap_intfdescr

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

Name the 6 instanciable rtti classes

A
cl_abap_elemdescr
cl_abap_refdescr
cl_abap_structdescr
cl_abap_tabledescr
cl_abap_classdescr
cl_abap_intfdescr
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

It is not possible to directly create any RTTI classes. You must use what to do so?

A

data mydata type ref to cl_abap_typedescr

mydata = cl_abap_typedescr=>describe_by_xxx

17
Q

What is used to create dynamic tables?

A

RTTC run time type creation

18
Q

Only create object type (dynamic class) can be used for generic object cereation. NEW cannot be used?

A

Correct

19
Q

How are dynamic parameters and dynamic exceptions passed to dynamic object creation?

A

Thru internal tables of type
abap_parmbind_tab
abap_excpbind_tab