Upload
praveen24a9
View
220
Download
0
Embed Size (px)
Citation preview
7/30/2019 SAP_QB4
1/22
1 of 644
Types: begin of itab_structure,
Field1 type p,
Field2 type c,
Field3 type I,
Field4 type n,
end of itab_structure.
Data: itab type table of itab_structure.
Sort itab.
Field1, Field3
Field1
Field2
Field2, Field4
2 of 644
Fields
WatchPoint
Overview
Object
3 of 644
CL_GUI_CONTAINER_ALV
CL_GUI_ALVGRID_CONTAINER
CL_GUI_CUSTOM _CONTAINER
4 of 644
Starting at Row 10, Column 20 Ending at Row 20, Column 30
Starting at Column 10, Row 30 Ending at Column 20, Row 20
Starting at Column 10, Row 20 Ending at Column 20, Row 30
5 of 644
Using the SET GROUP statement
Do you really care
7/30/2019 SAP_QB4
2/22
In the Dynpro
In the screen painter
6 of 644
process after input.
10 module exit at exit-command.module back.
20 field a module check_field_a.
30 field b module check_field_b.
40 chain.
field: a, b, c.
module check_field_abc.
endchain.
50 chain.
field: c, d.
module check_field_cd.
7/30/2019 SAP_QB4
3/22
By Table
By Value
By Header Line
10 of 644
Polymorphism
Encapsulation
Instantiation
Inheritance
11 of 644
transactions
Parameter Ids
reports called with SUBMIT and Return
function modules
Remove this record
12 of 644
At Selection-Screen on sales.
If sales-low < 500.
Message E046.
Endif.
All fields are open for input and cursor is positioned on field sales
Field Sales is open for input and all other fields are not available for input
The initialization event is fired again
The program ends
13 of 644
Importing
Returning
Exception
Result
14 of 644
(More than one answer is correct)
7/30/2019 SAP_QB4
4/22
A run time error for dynamically defined fields
A run time error for statically defined fields
A syntax error for statically defined fields
A syntax error for dynamically defined fields
15 of 644
Back/Exit/Cancel
Save
Cut/Paste
Find
16 of 644
(More than one answer is correct)
Select-options create a single field, Parameters create multiple fields
Parameters create a single field, Select-options create multiple fields
Select-options use the FOR statement, Parameters use the Type statement
Parameters use the FOR statement, Select-Options use the Type statement
17 of 644
(More than one answer is correct)
GETDETAIL
GETLIST
UPDATEDETAIL
CREATEFROMDATA
CREATELIST
18 of 644
The Primary Key Fields
Any Primary Key Fields
Any Primary Key Fields and Any Secondary Key Fields
The Foreign Key Dependancies
19 of 644
Start-of-Selection
7/30/2019 SAP_QB4
5/22
At Selection-Screen
At Line-Selection
Top-of-Page
20 of 644
It remains in the buffer
It gets rolled out
It remains in the database
It get rolled in
21 of 644
You can access hierarchically higher tables in your program even though there is no tables statement for the tab
Get Event in the report program requests data from the Put Statement
The Put Statement in the LDB provides data for the Get Event in the report program
Any Node that is accessed requires the Node to be defined in the NODES statement
22 of 644
report ztest.
Data: begin of itab_structure,
carrier like sflight-carrid,
connection like sflight-connid,
seats like sflight-seatsmax,
end of itab_stucture.
Data: itab type standard table of itab_structure
with header line.
loop at itab.
at new carrier.
sum.endat.
endloop.
AAFFF10
AA***30
AAFFF30
*****30
23 of 644
7/30/2019 SAP_QB4
6/22
Class
Include
Function Group
Executable
24 of 644
0
1
10
defined by Basis
unlimited
25 of 644
(More than one answer is correct)
They are a special GUI Status
Context Menus are assigned to input fields
A subordinate output field in a table control inherits the context menu of the table control
A subordinate input field in a subscreen causes the subscreen to inherit the context menu of the subordinate fiel
26 of 644
table type
structure
structured type
table
27 of 644
10
20
Unlimited
As much as the roll area allows
28 of 644
CLASS lcl_course DEFINITION.
PUBLIC SECTION.
METHODS: get_course_name
IMPORTING im_name type string
Returning value(student_count) type I.
7/30/2019 SAP_QB4
7/22
ENDCLASS.
Changing
Exceptions
Exporting
Receiving
29 of 644
Options 'replace' and 'insert' is made available for you to decide on how to handle the upgrade
The modification assistant will prompt you for a change request to reapply the change
The user modifications must be reapplied manually
The user modifications are automatically inserted into the new subroutine release
30 of 644
the Others option catches any runtime errors not already assigned
a runtime error causes the system to go to the ENDCATCH statement
the return value assigned to the system exception is stored in sy-subrc
a runtime error in a form called within a catch block is caught
31 of 644
Loop at itab.
ctr = ctr + 1
write: sy-tabix.
check ctr = 3.
delete itab
endloop.
1 2 3 4 5
1 2 3 3 4
1 2 3 4
1 2 4 5
32 of 644
(More than one answer is correct)
object instance->ME->
ME->
CALL METHOD ME->
7/30/2019 SAP_QB4
8/22
CALL METHOD object instance->ME->
33 of 644
Data: rf_enh type ref to if_ex_mybadi.
call method
cl_exithandler=>get_instance
changing
instance = rf_enh
call method rf_enh=>methodname
call method rf_enh->methodname
call method get_instance->methodname
call method cl_exithandler->methodname
34 of 644
(More than one answer is correct)
Formal Parameters
ABAP Dictionary object
built in ABAP types
Interface Parameters
35 of 644
Nothing
All the lines of the table are initialized
The work area is intitialized
All the lines of the table are deleted
36 of 644
Class my_class Definition.
Create Object my_object
Data: my_object TYPE REF TO my_class
Class my_class Implementation
37 of 644
(More than one answer is correct)
A Functional area can be assigned to several user groups
Users belonging to the same authorization group have the same query privilege
7/30/2019 SAP_QB4
9/22
The user can access only designated queries in a given user group
The queries of a user group belong only to the person that created the query
Several Functional areas can be assigned to one user group
38 of 644
Dictionary Type
Data Type
Data Object
Report Statement
39 of 644
Foreign key fields can accept only values which exist in the check table
Check table fields can accept only values which exist in the check table
Foreign key fields can accept any values regardless of the check table40 of 644
Set screen executes and returns to the point of call. Call Screen does not
There is no difference
Call screen executes and returns to the point of cal l. Set Screen does not
Call Screen is used only for external screens. Set screen is only for screens in the same module pool
41 of 644
(More than one answer is correct)
The indexes for the table needs to manually be reconstructed in the ABAP Dictionary
The revised table in the ABAP/4 Dictionary is activated
Data in the table is automatically deleted and must be reloaded
The table in the database is recreated
The table in the database is renamed and eventually deleted
42 of 644
Call Method Superclass-> mymethod.
Call Method Super-> mymethod.
You can't . Only the redefined method can be called
Call Method mymethod.
43 of 644
7/30/2019 SAP_QB4
10/22
R3TR cl_course
R3TR ZCL CLASS
None of the answers are correct
R3TR CLAS cl_course
R3TR GLOB CLASS
44 of 644
Process After Input
Module Exit at exit-command
Field ABC Module Validate_ABC.
10 All fields not defined in FIELD statements
20 System performs Auto Field Checking30 Fields in FIELD Statements
20, 30, 10
20, 10, 30
10, 20, 30
45 of 644
When the database administrator physically creates the table
When the table is activated
At the end of the table creation after it is saved.
At the beginning of the table creation
It does not correspond to an object in the underlying database and does not get created
46 of 644
TCP/IP
CPI-C
LU6.2
SNA
47 of 644
WorkBench Organizer
Customizing Organizer
7/30/2019 SAP_QB4
11/22
ABAP WorkBench
Transport System
Repository Infosys
48 of 644
The ABAP program stops
The file is closed
SY-SUBRC = 4
SY-SUBRC = 0
49 of 644
Access Type
Key Uniqueness
Key length
Key Defintion
50 of 644
1100
1001
100
1000
51 of 644
Report ZPROGA.
Data: fielda type c.
Call Function Z_TEST_FUNCTION
Exporting fielda = fielda
Exceptions No_Entry = 01
Failure = 02.
If sy-subrc = 01.
Message E123.
Endif.
Function Z_TEST_FUNCTION
Importing f_fielda
Exporting f_fieldb
Exceptions No_Entry
Failure
Message E123 Raising No_Entry
In Program ZPROGA and Function Z_TEST_FUNCTION
7/30/2019 SAP_QB4
12/22
In Function Z_TEST_FUNCTION
It willl abend in the runtime system
In Program ZPROGA
52 of 644
process after input.
10 module exit at exit-command.
module back.
20 field a module check_field_a.
30 field b module check_field_b.
40 chain.
field: a, b, c.
module check_field_abc.
endchain.
50 chain.
field: c, d.
module check_field_cd.
7/30/2019 SAP_QB4
13/22
Call Screen 100
Leave to Transaction
Set Screen 100
Leave Screen
56 of 644
In the function module itself that corresponds to the enhancement component
In the program that calls the function module that corresponds to the enhancement component
In the include of the calling program that calls the function
In the include program that can be found in the function module that corresponds to the enhancement compone
57 of 644
Standard Toolbar
Application Toolbar
Menu Bar
Title Bar
58 of 644
Call Method Super Constructor
Call Method Super-> Constructor
Call Method Constructor
Call Method Constructor-> Super
59 of 644
(More than one answer is correct)
F2
Menu Option EDIT>Choose
Function Code P+
Double Click a line on a list
Function Code CHOOSE
Function Code PICK
60 of 644
7/30/2019 SAP_QB4
14/22
(More than one answer is correct)
1
0
Space
Any Alpha Character
X
61 of 644
At least 3
Only 3
3 for each tier
1
62 of 644
When you release the task
When you change development class
When the object is deleted
63 of 644
Leave Program
Leave to Transaction
Exit.
Stop Program
64 of 644
ENQUEUE* or DEQUEUE*
ZE* or YE*
EZ* or EY*
Z* or Y*
65 of 644
Select * from mytable for all entries in my_itab
where key1 = my_itab-key1.
Only distinct values for key1
Run time error
7/30/2019 SAP_QB4
15/22
No entries are retrieved
All entries are retrieved
66 of 644
(More than one answer is correct)
Database Tables
Sequential Files
Views
LDB
67 of 644
(More than one answer is correct)
Batch Input
Import Database
Call Transaction
Call Function
Direct Input
68 of 644
SY-STATUS
SY-PFKEY
SY-UCOMM
In the user context area
69 of 644
It calculates the number of days that have elapsed since 00.00.0000
It leaves the date as a numeric field
It calculates the number of days that have elapsed since 01.01.0001
It converts the date to a julian date
70 of 644
(More than one answer is correct)
subroutines called using on commit pass parameters by value only
subroutines called using on commit have no interface
7/30/2019 SAP_QB4
16/22
subroutines called using on commit pass parameters by reference only
subroutines called using on commit use global data only
71 of 644
Synchronous RFC
Transactional RFC
Asynchronous RFC
72 of 644
CMOD
SPDD
SP01
SPAU
73 of 644
CALL REPORT report_name
LEAVE TO BASIC LIST
GENERATE list
LEAVE TO LIST-PROCESSING
74 of 644
menu_class
cl_menu
cl_context_clas
cl_ctmenu
75 of 644
height of the current line
size of vertical bars in your list
width of the current line
row count of the current line
76 of 644
class lcl_course definition.
7/30/2019 SAP_QB4
17/22
public section.
data: name(15) type c value 'ABAPObjects101'.
class-data price type p value 100.
private section.
data: category(10) type C value 'Objects'.
endclass.
data: course1 type ref to lcl_course,course_name type string,
course_price type p,
course_category type string.
(More than one answer is correct)
course_price = lcl_course=>price. Write course_price.
write lcl_course->price.
write: price.
write lcl_course=>price.
77 of 644
(More than one answer is correct)
Indented
Sorted
Standard
Hashed
Key
78 of 644
If you do not want to carry out a check for a field, it must contain the value "DUMMY"
Fields of the Authority-check are optional
The Authority-check object must be in your profile
79 of 644
(More than one answer is correct)
Data
Tables
Class
Parameters
Selection-Screen
80 of 644
7/30/2019 SAP_QB4
18/22
Select * from MYTABLE where number = '01' Endselect.
Select * from MYTABLE where number = '01' and name = 'LISA'.
Select single * from MYTABLE with keys
Select single * from MYTABLE where number = '01' and name = 'LISA'.
81 of 644
stop sign
info sign
warning sign
highlighted line
82 of 644
report rsbbb11b.
Tables: zmytab.
data: F1.
F1 = 1.
submit RSCCC11D and Return.
export F1 zmytab to memory id 'XYZ'.
report rsccc11d.
Tables: zmytab.
data: F1.
Run Time Error will occur
1
SPACE
2
83 of 644
method
signature
class
implementation
84 of 644
(More than one answer is correct)
It stores client-specific objects
Objects in the repository can be viewed across clients
7/30/2019 SAP_QB4
19/22
It stores development objects
Objects created using the IMG are stored in the repository
85 of 644
Types: Begin of line,
...
End of Line.
Types IT_LINE Type Standard table of line.
Data IT TYPE IT_LINE.
Perform FORMA using IT
FORM FORMA Using P_IT like LINE
FORM FORMA Using P_IT type IT_LINE
FORM FORMA Using P_IT like LINE
FORM FORMA Using P_IT like IT_LINE
86 of 644
(More than one answer is correct)
Declarations
Event
Dialog Module
Function
87 of 644
CARRIER CONNECTION FLIGHTDATE
10 AA FFF Jan 2
20 AA FFF Jan 3
30 DL FFF Jan 5
20
30
All rows will cause a break
NO rows will cause a break
88 of 644
Standard List Status
Status 'BASE' is displayed
Screen 200 is displayed without a status.
Run Time Error
89 of 644
7/30/2019 SAP_QB4
20/22
ABAP Workbench
Customizing transactions
Project Enhancement
In the ABAP Dictionary
90 of 644
implementation
attributes
method
definition
91 of 644
T1
T2
T3 from the dictionary
92 of 644
Table
TableControl
CXTAB
TableView
93 of 644
Implementation part of a class
Call method of the class
Object instantiation part of a program
Definition part of Class
94 of 644
SE12
SM13
SM37
SM36
95 of 644
7/30/2019 SAP_QB4
21/22
Database server
Enqueue Server
Presentation server
Application server
96 of 644
Sorted tables can be resorted
An 'Insert' statement on a standard table will add the entry to the end of the internal table
Index operatoins are allowed on standard and sorted tables
Hashed tables are accessed by key only
97 of 644
Internal Tables
Transaction Tables
Small Static tables
Tables with generic Keys
98 of 644
(More than one answer is correct)
Basic lists
Summary
Ranked lists
Statistics
Select Lists
99 of 644
Global classes are stored in TADIR with key R3TR CLAS
Class Builder can be used to test global classes
A method to be transported is identified in transport organiser as LIMU METH
Programs that are available to Global Classes must be associated in Class Builder
Access to a global class is done as a reference variable using TYPE REF TO
100 of 644
7/30/2019 SAP_QB4
22/22
At line-selection
Top-of-page During Line-Selection
Top-of-page
New-page
101 of 644
(More than one answer is correct)
C is friend of B
A is friend of B and C
B is friend of A
C is friend of A
B and C are friends of A
102 of 644
(More than one answer is correct)
?TO
=?
->
?=
=>
=