TAW_10_1 chapter 11, complex objects Flashcards
What are recommended naming conventions for structure types
ts_ for structure types
gs_ for global structures
ls_ for local structures
Can begin and end of structure be used instead of begin and end of type?
Yes, provided the type is only used once
Can a hyphen be used as part of a field name?
Yes, but it should be avoided as it looks like a structure field
Can a standard table have a unique key?
Apparently not
What kind of key can an sorted table have?
Unique and non-unique
What are the recommended naming conventions for a local table
tt_ table type
gt_ global program table
lt_ local form or method table
There are six internal table statements. Give examples of each.
APPEND TO . "only standard tables INSERT INTO TABLE . {condition} READ TABLE INTO . {condition} MODIFY TABLE from . {condition} DELETE TABLE . {condition} COLLECT into .
How can lines of a table be added to another table?
Append lines of into
How can lines of one table be inserted into another table?
Insert lines of {condition} into {condition}
What is the difference between “with key = “
and “with table key = ?
When table key is used, you must specify all fields of the key
When using “move-corresponding” for internal tables, how can I insure the current contents of the target table are not overwritten?
Keeping target lines
What are two less common additions to the internal table sort command?
AS TEXT - Lexical sorting, special characters
STABLE - keep like key records in current order
What’s the difference between CLEAR, REFRESH, FREE?
CLEAR clears the internal table area unless “with header line” was used, in which case it only clears the header line.
REFRESH clears the internal table but if “with header line” was used it does not clear the header line
FREE clears the internal table and frees the memory area.
There are two ways in which to declare a table with a header line. What are they?
Use the “WITH HEADER LINE” addition
Use the “OCCURS #” addition