All Subjects Flashcards
What does CONV do?
Changes the supplied field to the expected type
What is the EXACT keyword do
Demands that the result be exactly the same value as the source
How does CORRESPONDING work ( not move corresponding)
Can be used in a method call to use structure fields of same name and type as input parameters
give an example of a SWITCH
As a replacement of a case/endcase
Gvtext = switch string( gvclass
When ‘Y’ then ‘bob’
When ‘4’ the ‘jim’
Else ‘fran’ )
Can also have local variables defined by LET
Can also be used with write. WRITE SWITCH string( gvfield when 4 then ‘it was 4
Give an example if COND
Replaces if/elseif
Gvvalue = COND I( when la2 = 6 then 4 )
What is difference between a data type and a data object
Objects take up memory. They are of a type. A type is just a specification
What are the length and value ranges of the 6 numeric abap types
I - integer - length of 4 bytes - range of -2,147,483,648 to + 2,147,483,647 no decimals
p - packed - length of 1 to 16/initial length of 8, range of 2* length -1 and up to 14 decimals
F - binary floating point - length of 8 - max length +/- 1.79E+308 min len +/- 2.22E-308 and zero up to 16 decimals
DECFLOAT16 - floating point decimal - length of 8 - max length +/- 1E+385 min +/- 1E-383 and zero up to 16 decimals
DECFLOAT34 - floating point decimal - length of 16 - max/min +/- 1E+6145 min +/- 1E-6143 and zero up to 34 decimals
INT8 - large integer - 8 bytes - really big numbers with no decimals
What is the maximum length of type C and N fields?
65,535
What maximum length of a type X field?
65,535
What’s the difference between clike and cseq?
Clike is for generic c,n,d,t, string
Csequence is for c and string only
What are the predefined generic types in ABAP
ANY DATA SIMPLE (only for elementary of flat character like structures) NUMERIC (I,I8,F,P,DECFLOAT16,DECFLOAT34) DECFLOAT (DECFLOAT16,DECFLOAT34) CLIKE (C,N,D,T,STRING) CSEQUENCE(C,STRING) XSEQUENCE(X,XSTRING)
What objects are part of the DEEP category?
All reference objects
All internal tables
All structures with at least one deep component
Data types String and Xstring
How long can a literal be?
255
What differences exist between string and text literals
Trailing spaces are suppressed in a text literal but not a string literal
Use quotes in text literal, back quotes in a string
What are the three types of literals?
Numeric, text, string
If a table is declared in a form, or function module, it is visible throughout the entire program. True or false?
True
Can i have the same field name declared in the top of a program and in a form?
Yes, but the element of the same name in the top will not be a available while in the form
An inline data declaration cannot be addressed statically before the declaration. True or false.
True
Can inline declarations be used if the result type is generic? (Type any..)?
No
How is a host variable defined in an sql statement?
@
In new syntax for sql a comma must be between fields…true?
Yes
In the new open sql, what part of the statement should be last
INTO
In new sql what statement has been introduced?
FIELDS which can be placed after the FROM
Is SUBMIT program a synchronous or asynchronous process
Sychronous. The only way to process something async from a program is to call a function module starting new task
How can i submit a program and fill the called program selection screen?
You can specify a variant or provide specific values for input fields
How do I pass a select option to a submit program?
WITH seloption (‘EQ’|’NE’) value
WITH sel-option BETWEEN val1 AND val2 SIGN (‘I’|’E’)
You can also pass a range table
What is the difference between LEAVE TO TRANSACTION and CALL TRANSACTION
Leave to transaction does not return to the calling program. Call transaction returns to the call point.
Call transaction skips the tcode auth check, not sure if leave to does or not.
What should you supply if from a program you call a transaction that does updates?
Specify the UPDATE as local, sync, async..
Default is async
How can i fill screen data of a called transaction
Using a table of the BDCDATA type
Data gtdata type table of bdcdata.
CALL TRANSACTION ‘bob’
USING gtdata
How can I receive messages from a called transaction?
Using the MESSAGES addition
Data gtmesssages type table of BDCMSGCOLL
CALL TRANSACTION ‘bob’
MESSAGES gtmessages
If a CALL TRANSACTION is in a program running in background, what must the program provide.
Basically the entire BDC table must be filled including functions
I would just creat a FM myself
What are the fields in the BDCDATA structure
program (only first record) Dynpro (only first rec of new screen) Dynbegin (‘X’ for first rec of screen only) Fnam Fval
If i want to call a transaction from a program but not have the user see screens, what do I do?
Same as BDC. Use mode = ‘N’
Is ABAP compiled or generated?
Compiled at runtime
Are programs loaded every time they are called?
No, program loads are saved on the apllication server and database buffer
Are temporary versions of programs (those being edited) stored?
No, only temp versions are used
What is the PXA
Program Execution Area. Each program can only exist once per app server. Roll areas are created for each running copy of the program
How can i tell if a program is loaded in the PXA
Use ST02 detail analysis, click program in other objects, click buffered objects
What is the maximum number of external sessions a user can have?
What is the default?
Where is it set?
16
6
rdisp/max_alt_modes
What is the maximum number of internal sessions that each external session can have?
9
These are the call transaction, submit….called from an external session process
How are function groups and global classes loaded into memory
One time when first called by a program. They are added to the program group and do not initiate a new internal session
Do internal sessions share function groups with other internal sessions or the external session?
No, the function group is loaded separately for each session
What happens when a function group calls another function group, what can happen
Errors can occur
Within a program group all programs share what components?
TABLES, NODES, COMMON PART
How can I analyze memory
SM04 and AL08
List some examples of how data can be shared between programs
Using the called program interface (selection screen) ABAP memory SAP memory (set/get) Database tables Local files
Give an example of ABAP Memory usage between internal sessions
EXPORT
conn = gconn
Flights = gflights (this is a table)
TO MEMORY ID ‘myid’
In next orogram IMPORT conn = gconn Flights = gtflights FROM MEMORY ID ‘myid’
How is the MEMORY ID cleared?
FREE MEMORY ID
When dealing with internal tables what do these three keywords do
CLEAR, REFRESH, FREE
CLEAR AND REFRESH remove the data
FREE clears data and releases the memory
When dealing with passing strings and internal tables as parameters is by value different than by reference?
Technically no. They are passed by sharing. However, if you use call by value and then change the object in the called procedure then a resource intensive copy occurs
Where is a shared area defined?
Transaction SHMA
What is the super class of shared area classes?
CL_SHM_AREA
How can i see all shared memory
SHMM shared memory monitor
Name the 5 numeric data OBJECT types
I - integer
P - packed decimal
F - binary floating point arithmetic
DECFLOAT16 and DECFLOAT34 - decimal floating point
Are integer results rounded or truncated?
Rounded
In packed fields what are the two possible values of the last byte?
D for negative
C for positive
When fixed point arithmetic is turned off, what happens?
The decimals definition of a packed field is only used for output. The program treats all numbers as integers regardless of the presence of a decimal.
So 123.67 is treated as 12367
DECFLOAT16 and DECFLOAT34 are like type P or type F in regards to accuracy of decimal handling?
Like type P
Explain the arithmetic conversion rules for mixed expressions
If all are I then I
If one is p then p
If one is f then f (this include DECFLOAT34 and DECFLOAT16)
If a type p and a type f exist, type f is used
What are the classical keywords used in text processing
CONCATENATE, FIND, REPLACE, SHIFT,SPLIT, CONDENSE, OVERLAY, TRANSLATE, WRITE TO
In unicode systems what mode should be used with the SHIFT keyword
PLACES IN BYTE MODE
List logical operators for character and byte operations
CO, CA, CS, CP, CN, NA, NS, NP
BYTE-CO, BYTE-CA, BYTE-CS, BYTE-CN, BYTE-NA, BYTE-NS
If a D (date) field is used in arithmetic, its value is converted to..
The number of days since January 1, 0001
If a T (time) field is used in arithmetic its value is converted to…
The number of seconds since midnight
There are 16 formating options for expressions. Name 10
WIDTH ALIGN (left, center, right) PAD CASE SIGN EXPONENT DECIMALS ZERO STYLE CURRENCY NUMBER DATE TIME TIMESTAMP TIMEZONE COUNTRY
What literals in string processing must be escaped by a \ in literal text
|
{
}
So if i want to have a } i would enter it as }
There are 6 descriptive string functions. What are they?
STRLEN (returns length)
NUMCHAR (returns length excluding trailing blanks)
FIND (returns offset)
FIND_ANY_OF (returns offset of any character contained in the pattern, always case sensitive)
COUNT (number of occurrences)
COUNT_ANY_OF (number of occurrences of any character contained in pattern, always case sensitive)
What are the three categories of string functions
Descriptive functions which return a numeric result
Processing functions which return a character result
Predicate functions which return true or false
What are the 18 processing functions for strings? Name 12
Shift-left shift-right condense to-upper and to-lower and to-mixed and from-mixed replace insert substring Cmax and cmin Concat-lines-of Escape Match Repeat Reverse Translate
What are the predicate string functions
Contains, contains-any-of, matches
What is the regular expression operator for any character?
.
The preiod
What is the regular expression operator for zero or more occurrences?
*
Asterisk
What is the regular expression operator for 1 or more.
+
Plus