ABAP interview questions

Source: Internet
Author: User

Part I.
1. Which of the following statements will report an error during compilation (assuming that XXX and sflight have been defined ).()
A) write at 12 XXX.
B) Data Type type sflight.
C) sflight-price = a + B.
D) Write sy-vline.

2. In the development work of ABAP/4, which tcode can be directly entered to create programs, function groups, and various elements inside the program .()
A) se80 B) SE11 c) se93 d) SE16

3. You can directly query the tcode of the table structure .()
A) se80 B) SE11 c) se93 d) SE16

4. Many tables have a field called mandt, which is the first primary key. The use of this field is .()
A) differentiate the types of backend databases
B) identify the client that the table records)
C) differentiate the table data size
D) SAP system reserved fields

5. Which of the following statements defines an internal table .()
A) Data zsflight type sflight.
B) Data: Cols like line of TC-COLS.
C) tables sflight.
D) Data: zsflight type table of sflight.

6. The three basic data objects in ABAP are .()
A) Basic data objects in the internal table structure
B) Internal table Program Statements
C) character numeric date
D) Statement program table

7. The exact meaning of loop at itab into WA .()
A) The values in WA are cyclically written back to the inner table for each loop.
B) find the exit of the Maze itab and put it in WA.
C) add the value columns of the itab table to WA.
D) loop the itab of the internal table and write the results of each row in the loop to the structure wa.

8. This code is executed in the program.
Data it_sflight type sflight with header line.
Loop at it_sflight.
It_sflight-carrid = 'A '.
Modify it_sflight.
Endloop.
The syntax of this section contains it_sflight four times. The last three times indicate the internal table or structure respectively .()
A) In-Table
B) Internal table structure internal table
C) Internal table structure
D) Internal table structure

9. When designing a Report Program, the selected program type should be .()
A) executable program
B) module Pool Program
C) inclusion program
D) function group program

10. In the screen filtering conditions of the report program, the elements defined by select-options are .()
A) Internal table
B) Structure
C) Basic Data Objects
D) pointer Fields

11. In the screen events of the report program, there is an event called at line-selection. See the following code:
Write/'abap '.
At line-selection.
Write/'test '.
Which of the following will happen .()
A) a line of ABAP is displayed first. When you double-click the line, the line of the original ABAP is displayed on the screen.
The row displays a new test
B) First, a row of ABAP is displayed. When you double-click a row, only one row of test is displayed on the screen.
On behalf of the original Screen
C) First, a row of ABAP is displayed. When you double-click a row, only one row of test is displayed on the screen.
(Put it under the original line of ABAP)
D) a line of ABAP is displayed first. When you double-click the line for the first time, a new screen is generated to display a line.
Test, and each double-click will display a new line of test under it

12. Select a group with the correct event execution sequence .()
A) initialization/start-of-selection/top-of-page/at line-selection
B) initialization/top-of-page/start-of-selection/at line-selection
C) start-of-selection/initialization/TOP-OF-PAG/at line-selection
D) initialization/top-of-page/at line-selection/start-of-selection

13. Which of the following conditions is not required during hierarchical report development .()
A) The internal table is first sorted by hierarchical Fields
B) the hierarchical fields must be placed before the internal tables and structure definitions.
C. Hierarchical fields cannot appear outside of the at and end at statements.
D) the hierarchical field must exist.

14. In the development of detailed reports, double-click a row to switch to the number of detailed reports based on .()
A) double-click the primary key field of the row.
B) the field you double-click.
C) double-click the pre-hide field in the loop.
D) double-click the fields that have been written in advance in the loop.

15. In the design of the interactive report, if you want to add the sorting function of any field to the detailed report,
Select the correct option (multiple options ).()
A) You must first get cursor field XXX.
B) this field should be enclosed in parentheses when sorting the internal table.
C) Add a number to the field during sorting to remove the preceding structure name.
(If it is defined by a structure-field)
D) after sorting, Sy-lsind must be set to 0 to prevent redundant list generation.

16. In the design of screen programming, there are four main steps below:
A. design the screen format (which fields are included and where)
B. design the overall properties of the screen
C. design the properties of fields on the screen
D. Compile the flow logic of the screen)
Please select the correct order under normal conditions .()
A) a B c d
B) c d B
C) B A c d
D) d B A C

17. If the next screen of screen A is still a, which of the following sequence is correct for the main events on the screen when the program is executed .()
A) PbO of pai a's PbO A's Pai A's PbO
B) PbO of A's PbO A's Pai A's PbO
C) PbO of pbo a of pai a of
D) pai of pbo a of

18. How should I design the toolbar used by a screen in screen programming .()
A) first design a GUI status and then bind it to the program
B) first design a GUI titles and then bind it to the program.
C) use the Add button syntax in the program to add
D) add the toolbar and buttons on the screen design format interface.

19. What are the meanings of the following four system variables .()
SY-UCOMM SY-DATUM SY-SUBRC SY-TABIX
A) Number of times of the current time loop of the function code on the screen triggered by the user
B) function code on the screen triggered by the user on the current date current time cycle times
C) The number of Function Code loops on the screen triggered by the user. The return value of the statement execution result is the current date.
D) number of times the function code returned from the execution result of the current date statement is returned on the screen triggered by the user

20. How to Implement the sub-screen programming of a program .()
A) Sub-screen area plus screen (set property to normal screen)
B) custom controls plus screens (Set Properties to normal screens)
C) Sub-screen area plus screen (set property to sub-screen)
D) custom controls plus screens (Set Properties to sub-screens)

21. Which of the following statements about binding table controls to internal tables is true .()
A) When PbO is used, the intra-cycle table and table control write the values of the intra-table into the table control, and PAI uses the same
Cyclically write the table control value back to the internal table
B) When PbO is used, the table and Table Control in the synchronization cycle write the value of the table control to the internal table, and the pai uses the same
Write the value of the inner table back to the table control cyclically.
C) define the table control bound to the table when defining the internal table. The PbO and PAI events must be performed once in each cycle.
D) define the inner table to which the table control is bound when creating the table control. The PbO and PAI events must be executed once for each loop table control.

22. Which of the following is feasible if you want to dynamically change the attributes of a column in the table control to non-input .()
A) modify the general attribute value of the table in the pai event.
B) modify the general attribute value of the table in the PBo event.
C) obtain the Cols attribute of the table in the pai event, and use it to find and modify the column cyclically based on the characteristics of the internal table. After modification, write it back to the Cols internal table.
D) obtain the Cols attribute of the table in the pai event, and use its own structure to find the field representing the modification of the column.

23. Which of the following methods is feasible to add a column for the table control that can be written by the user ).()
A) Click the dictionary/program fields window button on the Design Screen, enter the elements defined in the dictionary table or program, and drag them to the table control.
B) modify the attributes of the table on the Design Screen and add a column
C) drag a text field (text field) into the table control on the Design Screen)
D) drag an input/output field (input/output field) into the table control on the Design Screen)

24. Which of the following sequence should I follow when writing ALV grid control .()
A) create a region on the screen, create a region object, create an alvgrid object, and call the set_table_for_first_display method of alvgrid.
B) Create an area on the screen, create an alvgrid object, create a region object, and call the set_table_for_first_display method of alvgrid.
C) Call the set_table_for_first_display method of alvgrid to create an alvgrid object and a region object on the screen.
D) create a region object, call the set_table_for_first_display method of alvgrid, and create an alvgrid object on the screen,

25. create a search help by yourself. The referenced table is sbookings, And the dialog type is dialog with value restriction. Check the IMP attributes of the customid and name fields, including customid, name, carrid, the exp attribute of the four fields connid is checked. LPOS and SPOs are set for each of the four fields. ()
A) First, output the filtering screens of two columns, and then output the table information of the two columns according to the filtering results for the user to select,
The selection result affects four columns.
B) output the table information of two columns for the user to select. The selection result affects the four columns.
C) output the table information of the four columns for the user to select. The selection result affects the two columns.
D) first output the screening screen with four columns, and then output the table information with four columns according to the filtering result for the user to choose from,
The selection result affects two columns.

26. What is the reason for the database independence of the abap open SQL fetch statement .()
A) No. The SQL format of the database is different.
B) Yes, because it is called Open SQL
C) Yes, because there is a layer of DB interface in the middle for conversion.
D) No. Different database versions

27. Which of the two return system variables of the open SQL statement of ABAP are correctly described .()
A) sy-dbcnt indicates whether the execution result is correct, and sy-subrc indicates the number of data records affected by the execution.
B) sy-dbcnt indicates the number of data lines affected by the execution, and sy-subrc indicates whether the execution result is correct.
C) sy-dbamt indicates whether the execution result is correct, and sy-sudnc indicates the number of data items affected by the execution.
D) sy-dbamt indicates the number of data lines affected by the execution, and sy-sudnc indicates whether the execution result is correct.

28. A table has three fields, the first of which is the primary key. Currently, one record is 1/'first'/19, and the structure of wa_result is of the same type as the table, the current value is 2/'second'/20. execute the open SQL statement: Modify ta from wa_result. the impact on the system after execution is. ()
A) No impact
B) Ta has two records: 1/'first '/19 and 2/'second'/20.
C) Ta has a record 2/'second'/20
D) The system exits due to an error and has no impact on the table.

29. The main implementation of SAP locks is .()
A) Lock the object in SE11, and then call the function generated by the lock object in the program.
B) Lock the database and declare it in the program
C) The database is automatically executed, and SAP does not need to process it.
D) implement it through SQL statements in the program

30. there is a program. In the starting screen, a user can enter field a. If you want to automatically set it to the value of the last exit when the program enters, you can use the following method. ()
A) Use get parameter ID 'xxx' field a when exiting.
Set parameter ID 'xxx' field.
B) Use set parameter ID 'xxx' field a when exiting.
Use get parameter ID 'xxx' field.
C. Execute the get parameter ID 'xxx' field.
D. Execute the set parameter ID 'xxx' field.

31. The correspondence between SAP's smartform and ABAP program is .()
A) One smartform corresponds to multiple programs.
B) one program corresponds to multiple smartforms
C) One smartform corresponds to multiple programs, and one program can also correspond to multiple smartforms
D) A smartform corresponds to a program.

32. Design smartform to display a table. If the first page is in a format, the following pages are in a format,
How to Design .()
A) the first page points to the second page, and the second page points to null
B) The first page points to you, and the second page points to the first page.
C. The first page points to the second page, and the second page points to the first page.
D) the first page points to the second page, and the second page points to your

33. What technology should I use if I want to design the common text in smartform .()
A) Smart text
B) Smart Style
C) SAP script
D) text module

34. Which of the following statements about table and template in smartform are true .()
A) template is used to design table templates, and table is used to design table entities.
B) template is used to design Table Styles and table is used to design table entities.
C) template is used to design static tables, and table is used to design table entities.
D) template is used to design static tables, and table is used to design dynamic tables.

35. When table sorting events in smartform are triggered .()
A) The start event is triggered when the sorting field starts for the first time, and the START event is triggered when the sorting field ends.
Trigger end event
B) The start event is triggered when the sorting field starts for the first time, and the START event is triggered when the table ends.
Trigger end event
C) The start event is triggered when the table starts and the end event is triggered when the table ends.
D) trigger the start event when the sorting field starts for the first time, trigger the end event, and then
Start to formally cycle the remaining records of the sorting Field

36. A table is displayed in smartform, where a column is a wa_sflight-price, which now has three rows of data whose values are 10, 30, 50, now in table design, define a variable g_tol in global definition, add a true and false node to the main area of the table, the condition of the node is WA_SFLIGHT-PRICE> 10. then, add a program line under the real node, the content is g_tol = wa_sflight-price + 10. add a program line under the false node, the content is g_tol = wa_sflight-price + 20. add a table row (shown at the end of the table) under the footer of the table, and add a text node to display this field g_tol. The displayed value is. ()
A) 60
B) 70
(C) 140
(D) 150

37. Which of the following solutions does sap provide to modify system standard functions?
.()
A) Customer develepment, enhancement, Modification
B) Customer develepment, customizing, Modification
C) Customer develepment, customizing, enhancement
D) enhancement, modification, customizing

38. Which sequence should be followed for the customer's customized solution .()
A) Determine whether the system can be configured first, and then determine whether the system has similar functions,
If yes, first determine whether the standard program can be modified, and then determine whether enhancement can be implemented;
Finally, consider self-development
B) Determine whether the system has similar functions. If yes, determine whether the standard program can be modified,
Determine whether enhancement can be performed, and then determine whether the configuration can be performed;
Finally, consider self-development
C) Determine whether the system can be configured first, and then determine whether the system has similar functions,
If yes, first determine whether enhancement can be performed, and then determine whether the standard program can be modified;
Finally, consider self-development
D) first determine whether the system has similar functions. If yes, first determine whether enhancement can be implemented,
Determine whether the standard program can be modified, and then determine whether the program can be configured;
Finally, consider self-development

39. Define an enhancement project, add the system enhancement, and activate the enhanced tcode in it .()
A) smod
B) cmod
C) se84
D) se80

40. Which of the following functions are included in the SAP system standard enhancements .()
A) Table enhancement/screen exit/menu exit/function module exit
B) Table enhancement/structure exit/menu exit/event exit
C) menu exit/function module exit/field exit/bapi exit
D) structure exit/menu exit/table enhancement/screen exit
Q & A (1 question in total, 20 points)
Briefly describe the development methods and application scenarios of major technologies such as report, screen, database update, smartform and enhancement in SAP secondary development.

Part II
I. Add Fields
Which two methods are used to add fields to an SAP table?

Ii. Modifications)
In the SAP system, how does one define "modification? What are their impacts on the update?

Iii. Concepts of cluster tables and pool tables

4. Authorization object)
What is an authorization object? Which statement is used in the ABAP program for authorization check?

5. ABAP memory (ABAP memory) Switching
What are the two statements used for data exchange between programs using ABAP memory?

6. What is the name of the FM generated when the Lock Object is activated?

7. Update FM
Update FM is divided into V1 and V2. Which update type will be executed first? Which mode (asynchronous, synchronous, or local) is used for each type of execution?

8. Modify Assistant)
What is a change assistant?

9: function module exit)
Which statement should be used in the SAP application when the function module exit is implemented?

10. Change SAP (changing SAP)
List different methods for users to modify SAP standard functions.

 

 

 

Q & A answers

6. What is the name of the FM generated when the Lock Object is activated?
Answer: Create a lock object in the ABAP dictionary before setting a lock in the ABAP program. When a lock object is created, the system automatically generates two FM pairs for Lock management.
The FM used to set the lock is: enqueue _ <Lock Object Name>. It is used to generate a lock entry in the lock table ). If the lock fails, it will be reflected in return.
The FM used to release the lock is: dequeue _ <Lock Object Name>. It is used to delete a lock entry from the lock table. In the ABAP program, you only need to use the "Call funcition..." statement to call them.
These two locks are executed in a special working process of the SAP system and are specially used for Lock management. It runs on a separate server, which is used to maintain the central lock table of the entire SAP system ).
There are two lock types:
1. Shared lock-read-only lock. When a user is reading data, other users are prevented from changing the data.
2. exclusive lock-write lock. When a user is modifying data, other users are prevented from changing the data.

7. Update FM
Update FM is divided into V1 and V2. Which update type will be executed first? Which mode (asynchronous, synchronous, or local) is used for each type of execution?
Answer: V1 has a higher priority than V2. Therefore, V1 has a higher priority than V2. The V1 execution mode can be asynchronous, synchronous, or local; V2 can only be asynchronous.

8. Modify Assistant)
What is a change assistant?
Answer: Modify assistant is a tool introduced in version 4.5 to simplify the update process. You can use the ABAP editor to trigger the modification Assistant, which records the modifications made to the system. The modification Assistant supports modification through the ABAP Editor, screen painter, menu painter, text element maintenance, function builder, and ABAP dictionary.

9: function module exit)
Which statement should be used in the SAP application when the function module exit is implemented?
Answer: Some SAP applications have function module exits, which allow users to add some features to the SAP program. You can search for "Call customer" to find whether a function module exit exists.

10. Change SAP (changing SAP)
List different methods for users to modify SAP standard functions.
Answer: SAP standard can be changed through personalization, customizing, modifications, enhancements, and custom ABAP programs. Examples of these methods are as follows:
Personalization-personalization technology includes creating variants, setting/obtaining parameters, and activity groups ).
Customizing -- is the most commonly used SAP tool (such as R/3 Reference Model and Implementation Guide) to change the SAP standard. It can be considered that mizmizing is necessary to implement R/3, which is usually executed by the functional team.
Enhancements is usually executed by the development team. The activities include dictionary enhancement, funciton module exits, menu and screen exit, and business add-ins (Badi ).
Custom ABAP program-it can work with SAP objects or custom development objects.
Modifications -- modifications are not recommended for SAP objects. Use sscr (SAP software change registry) to register all manual modifications to sap objects.

 

I. Add Fields
Which two methods are used to add fields to an SAP table?
Answer: The two methods are: append structure and custom include ). The append structure is created when a field is added to the end of the table. The custom include structure is specified by SAP developers so that users can create new fields.

Ii. Modifications)
In the SAP system, how does one define "modification? What are their impacts on the update?
Answer: Modification refers to changes made to the repository object published by SAP.
Modifications must be reviewed during the update period to determine whether new SAP objects should be used and whether further modification is required for future use.

Iii. Concepts of cluster tables and pool tables
Answer:
Pools and cluster Table; they are no longer common tables of various databases and cannot be directly accessed by databases. You can only use your own sap tools for direct access.
Transparent table:
Each transparent table has a corresponding physical table in the database. Physical table name and logical table in Data Dictionary
The name of the definition is consistent. All transactions and application data are stored in transparent tables.
Structure:
The structure does not have any data records in the database. Structure is used to define interfaces between programs or between programs and screens.
Additional structure:
A subset of the additional structure definition field, which belongs to another table or structure, but is used as a single
Unique object.
Storage table:
Storage tables can be used to store control data (such as screen sequence, program parameters, or temporary data ). Several Storage
Table store can be combined into a table database. This table library is consistent with a physical table library in the database. It contains groups
All records assigned to the database.
Cluster kekekey table:
Continuous text, such as documents, can be stored in cluster tables. Several cluster tables can be combined into a table cluster. For this
Table type. Several logical rows in different tables are combined into one physical record. This allows an object to be connected to
To store or access tables in a cluster, at least a portion of the keywords MUST match. Several
The cluster Table is stored in a corresponding table in the database.

4. Authorization object)
What is an authorization object? Which statement is used in the ABAP program for authorization check?
Answer: An authorization object is composed of a group of fields whose values are used for authorization checks. In the ABAP program, use the authority-check statement to perform authorization checks based on the authorization object. In the authority-check statement, all fields of the authorization object must be specified, but with one exception, you can use the dummy keyword to bypass the check of a field.
A maximum of 10 fields can be defined in an authorization object.

5. ABAP memory (ABAP memory) Switching
What are the two statements used for data exchange between programs using ABAP memory?
Answer: Export to memory ID is used to copy data to ABAP memory, and import from memory ID is used to copy data from ABAP memory to program.
Data exchanged between ABAP memory must be declared in both programs and contain the same data declaration. Test my signature

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.