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