abap+测试题+答案
1.At each new event,the system resets all FORMA T options to their default values.A TrueB False (A)2. Y ou can use__________ keyword to scroll to any column or page in the list.a. PAGESCROLLb. SCROLLc. SCROLLCOLUMNd. LISTSCROLL (b)3.In a list , the upper-left corner of the header’s first line contains:A. The program titleB. The page numberC. The system dateD. Nothing ( c)4.It is recommended that you use Native SQL to read data from a logical database to maintain portability from one RDBMS to another.A . true b .false ( B)5. If you address subordinate nodes in the hierarchy, the selection screen criteria for only that subordinate node appears.A . trueB False ( false)6. Checks such as Authorization checks are usually performed during the event Process Before Output(PBO).A TrueB . False (B)7. If there is a _________________ statement within the END-OF-SELECTION processing block, program processing ends and the list buffer is displayed.A . REGECTB. CHECKC. STOPD EXIT (C)8.Open SQL enables portability between different RDBMS system.A TrueB False (A)9. Join conditions are limited to key fields.A TrueB False (B)10. Y ou can create structured lists using control-level processingA. True B False (A)11. When implementing control-level processing ,the A T FIRST and A T LAST statements functions as first time and last time switches and execute only once.A TrueB False (A)12. Loops over extract datasets can be nested.A . TrueB False (b)13. internal tables rely on the compiler to determine the combinations of group levels and cumulating field control level totals require.A trueB false (A)14. Which of the following options is suitable for printing interactive lists?A. Printing from the selection screen.B. Printing from within the programC Printing after the list is generatedD. Printing in the backgroundB15.The user should delete all detail lists whose list level is greater than the current list levelA trueB false (B)16 . Y ou can create object at any point in the program to generate and link objectsA trueB false (b)17. Which of the following are the standard functions offered by SAP Grid Control?A Sorting by any columnB. Generate objectsC. Adding number columnsD Link objectsE Fixed lead columns( A C E )18.when you create a screen, you must:a. Design the screen layout in the layout editor.b. Set the general screen attributes on the attribute screen.c. Write the flow logic in the flow logic editor.d. Set the field attributes in the field list.Select the correct order:A a, b, c, dB c, d, b, aC b, a, d, cD d, b, a, c19. To allow you to set the attributes of all screen elements, the ScreenPainter contains an element list with four views.A TRUEB FALSE b20. To interrupt processing of the current screen and branch to a new screen, or sequence of screens, you use the following statement:A CALL SCREEN <nnnn>B SET SCREEN <nnnn>C LEAVE SCREEND LEAVE TO SCREEN <nnnn>A21 The function keys that contain proposals, which comply with the SAP system's ergonomic standards are:A ReservedB RecommendedC FreelyD All of the aboveB22. The content of the Icontext attribute appear in the status bar of the screen when the user chooses the function.A TRUE b FALSE b23.ou can initialize the command field only at PAI.TrueFalseB24. If your text consists of more than one word, use the following character as separators:A UnderscoreB CommaC Question markD Spacea25.The group box text cannot be changed dynamically.TrueFalse26. The subscreen call must occur before the function module call.TrueFalseB27. To program a tabstrip control to scroll locally at the frontend, you must call all subscreens from the flow logic.TrueFalse28. The following attributes contain information about the properties of the entire table control, such as the number of fixed columns:A ColumnB GeneralC SpecialD Row29. In order to display the current screen, include the ABAP statementSUPRESS DIALOG in a PBO module.TrueFalse30 For which of the following predefined data types should you use theoriginal variants of the standard string processing statements or the optional addition IN CHARACTER MODE?A DB CC XD TE NF STRINGG XSTRINGAnswer: A, B, D, E, F31 . Which of the following statements are correct?A Sorted tables can only contain non-unique keys.B Standard tables can only contain non-unique keys.C Sorted and hashed tables are index tables.D Standard tables are index tables.E The standard key is the key of a standard table.F The standard key always contains all components of the rowtype.Answer: B, D32 . Generic types are type definitions that are missing certaininformation. These missing type attributes are inherited from an actual parameter at runtime if you use the generic type for typing interface parameters.TrueFalseAnswer: False33 . Which of the following statements are correct?A Only key access works with hashed tables.B Key access means that the search clause may only appear inthe key fields of the internal table.C Index access allows access using the row number.D Single-record key access using READ TABLE can return severaldata records if you are using standard tables, because thenthe key is always non-unique.E The SORT statement can sort standard tables.F If you use INSERT ... INTO TABLE to insert a data record intoa sorted table with a unique key, this will only work if theinternal table contains no other data record with the samecombination of values for the key components. Otherwise, theSY-SUBRC return value will be set to a number other than 0. Answer: A, C, E, F34. SAP recommends using internal tables without header lines to makethe syntax easier to read. This is particularly helpful with nested internal tables.TrueFalseAnswer: True35.Which of the following statements are correct?A As far as possible, when you use key access, the runtimesystem always chooses the fastest possible variant,depending on the table kind.B Hashed tables should not be used if you need to make manychanges when you are accessing data.C You can save lots of runtime by using field symbols andreferences, especially with nested internal tables.D Binary searching is possible for standard tables.E The fastest form of access in loop processing is usuallythrough the row number.Answer: A, B, C, E36. The object-oriented programming model was developed considerably later than the procedural one. It offers more possibilities to solve problems that previously could not be solved with purely procedural programming languages.TrueFalseAnswer: False37. If you copy a subclass reference to a reference variable that is typed on the superclass (narrowing cast), which components can you access with this reference variable?A Redefined components of the superclassB Newly defined components of the subclassC Inherited components of the superclassD Redefined components of the subclassAnswer: A, C38. If a reference variable that is typed on an interface contains an instance reference of a class that implements this interface and you copy this to a reference variable that is typed on the class (widening cast), which of the following components can you access with this reference variable?A The components of the interfaceB The components from the class that are not defined on theinterfaceC All components of the classD The components of the interface for which alias names havebeen definedAnswer: A, B, C, D39 .If you copy an instance reference of a class, which implements an interface, to a reference variable that is typed on the interface (narrowing cast), what components can you access using this reference variable?A The components of the interfaceB The components of the class that are not defined in theinterfaceC All components of the classD The components of the interface for which alias names havebeen definedAnswer: A40. For a user to be able to execute an object-oriented program, you always need to supply a module pool program or a function group program. Otherwise, there is nowhere for the CREATE OBJECT statement to create the instance.TrueFalseAnswer: False41.Which of the following statements are correct?A A non-abstract class can contain abstract methods.B An abstract class contains no implementations.C An abstract method contains no implementations.D Final classes cannot be superclasses within a classhierarchy.E A final method must be redefined.F Final classes can contain non-final methods.G A friend of a class is also a friend of its subclasses.H The subclasses of a class's friend are also the class'sfriend.I The visibility of an instance constructor can be limited.J A private instance constructor (instantiation only by theclass itself) can be defined in the private section. Answer: C, D, H, I42.The new exception concept replaces the old one. Thus, all old source code sections must be rewritten. As of SAP Web AS 6.20, function modules from the SAP standard system automatically raise object-oriented exceptions.TrueFalseAnswer: False43.The new exception classes can only be defined globally. This ensures central maintenance and reuse.TrueFalseAnswer: False44 . The pushbuttons screen area gives a short introduction of the QuickViewer with links to the online documentation.TrueFalseAnswer: False45. List fields once placed in trash can, can be retrieved.TrueFalseAnswer: True46. You can access all the events of an executable ABAP program associated with a query.TrueFalseAnswer: False47. The SELECT-OPTIONS statement generates an internal table with a standard structure. The fields of this table are:A SignB OptionC HighD IntervalAnswer: A, B, C48 . You can delete an InfoSet whenever you want.TrueFalseAnswer: False49.What are the two options available for menu enhancements?A Customer exitsB Menu entriesC Business add-insD Standard MenuAnswer: A, C50.Screen exits are a type of customer exit.TrueFalseAnswer: True51. From SAP Web Application Server 6.20 onwards, Business Add-Ins cannot contain screen exits.TrueFalseAnswer: False52.Customizing includes cannot be inserted into more than one table.TrueFalseAnswer: False53. Identify the step that is not followed for creating an SAP enhancement project.A Create an enhancement project and then choose the SAPenhancements that you want to use.B Analyze the program source code or the screen source code.C Edit your individual components using the project managementfunction and document the entire enhancement project.D Activate the enhancement project. This activates all theproject’s compon ent partsAnswer: B54.When an event is triggered in a process interface, only one external process can replace the process in the standard program.TrueFalseAnswer: True55.What are the requirements for new enhancement techniques?A ReusableB All enhancement typesC Administration levelD Customer exitsE Implemented using the latest technologyAnswer: A, B, C, E56.You can create function codes only for single use BAdIs, which must not be filter-dependent.TrueFalseAnswer: True57.To include function codes in a BAdI definition, you enter the program name, function code, and a short description on the relevant tab page.TrueFalseAnswer: True58. To provide a screen enhancement using a BAdI, you need to first generate the BAdI class.TrueFalseAnswer: True59.The implementing program gets the data from the Add-In class by calling the appropriate interface method.TrueFalseAnswer: True60.You can modify the ABAP Dictionary objects that belong to the core of your system.TrueFalseAnswer: False61.When you define a Business Add-In, the system generates a Business Add-In class.TrueFalseAnswer: True62. Using data elements, structures and table types, you can create complex user-defined type.TrueFalseAnswer: True63.Foreign key definitions are imparted from include to the including table.TrueFalseAnswer: True64. The records of a buffered table are read directly from the local buffer of the application server.TrueFalseAnswer: True1.65. Select the statement that is NOT correct.A The object lists created by the Repository Information Systemare entirely integrated in the ABAP Workbench.B The Where-used list for Repository objects cannot be calledfrom the information system.C The information system enables you to search for objects bytheir attributes.D You can search for all objects by the development class, shortdescription or author, and date of last change.Answer: B66.Correct access by ABAP programs to a database table is only possible if the runtime object of the table is consistent with the structure of the table in the database.TrueFalseAnswer: True67.Even if a table has no data, it is retained in the database.TrueFalseAnswer: False68.During conversion, the tables are locked to prevent further structural changes from being made before the conversion is completed correctly.TrueFalseAnswer: True69 . Maintenance views may be used as the selection method for searchhelps.TrueFalseAnswer: False70. Which feature of SAPscript enables it to run on all front-endapplications supported by SAP?A Multilingual capabilityB High performance when printing large quantitiesC Uniform corporate design in documentsD Word processing scalabilityE SAP R/3 Enterprise transport and translation connectionsF Platform independenceAnswer: F71. Main windows cannot have different heights and cannot be positioneddifferently on pages where they appear.TrueFalse72.Which sub-objects allow you to structure pages in SAPscript?A Page layoutB Paragraph formatsC Character formatsD WindowsAnswer: A, B, C73. Which operations are performed using control commands?A Including text in a documentB Assigning values to text symbolsC Starting or suppressing a page breakD Resetting outline paragraphsE Evaluating conditionsAnswer: A, B, C, D, E74. Which command is used to print text elements in form windows?A CONTROL_FORMB DELETE_FORMC MODIFY_FORMD WRITE_FORMAnswer: D75. The function module OPEN_FORM initializes form printing in a printprogram. Before using START_FORM in a print program for the first time, you must call OPEN_FORM.TrueFalseAnswer: True76. SAP does not simultaneously support SAPscript forms and SAP Smartforms. As a result, you need to migrate SAPscript forms to SAP Smart forms.TrueFalseAnswer: False77. Packages have the same attributes as development classes, but alsopossess additional options suitable to modeling techniques.TrueFalseAnswer: True78. A form page can be used only once in a document.TrueFalseAnswer: False79. Which of the following options specifies that the text of the secondnode begins in a new line and the two text nodes are completely independent of each other?A New LineB New ParagraphC Append DirectlyD Include TextAnswer: B80. Identify the parameters of a generated function module or a forminterface.A ImportB ExportC Global DataD TablesAnswer: A, B, D。
高级商务应用编程abap+测试题+答案
高级商务应用编程abap+测试题+答案1.At each new event,the system resets all FORMAT options to their default values.A TrueB False (A)2. You can use__________ keyword to scroll to any column or page in the list.a. PAGESCROLLb. SCROLLc. SCROLLCOLUMNd. LISTSCROLL (b)3.In a list , the upper-left corner of the header’s first line contains:A. The program titleB. The page numberC. The system dateD. Nothing ( c)4.It is recommended that you use Native SQL to read data from a logical database to maintain portability from one RDBMS to another.A . true b .false ( B)5. If you address subordinate nodes in the hierarchy, the selection screen criteria for only that subordinate node appears.A . trueB False ( false)6. Checks such as Authorization checks are usually performed during the event Process Before Output(PBO).A TrueB . False (B)7. If there is a _________________ statement within the END-OF-SELECTION processing block, program processing ends and the list buffer is displayed.A . REGECTB. CHECKC. STOPD EXIT (C)8.Open SQL enables portability between different RDBMS system.A TrueB False (A)9. Join conditions are limited to key fields.A TrueB False (B)10. You can create structured lists using control-level processingA. True B False (A)11. When implementing control-level processing ,the AT FIRST and AT LAST statements functions as first time and last time switches and execute only once.A TrueB False (A)12. Loops over extract datasets can be nested.A . TrueB False (b)13. internal tables rely on the compiler to determine the combinations of group levels and cumulating field control level totals require.A trueB false (A)14. Which of the following options is suitable for printing interactive lists?A. Printing from the selection screen.B. Printing from within the programC Printing after the list is generatedD. Printing in the backgroundB15.The user should delete all detail lists whose list level is greater than the current list levelA trueB false (B)16 . You can create object at any point in the program to generate and link objectsA trueB false (b)17. Which of the following are the standard functions offered by SAP Grid Control?A Sorting by any columnB. Generate objectsC. Adding number columnsD Link objectsE Fixed lead columns( A C E )18.when you create a screen, you must:a. Design the screen layout in the layout editor.b. Set the general screen attributes on the attribute screen.c. Write the flow logic in the flow logic editor.d. Set the field attributes in the field list.Select the correct order:A a, b, c, dB c, d, b, aC b, a, d, cD d, b, a, cC19. To allow you to set the attributes of all screen elements, the ScreenPainter contains an element list with four views.A TRUEB FALSE b20. To interrupt processing of the current screen and branch to a newscreen, or sequence of screens, you use the following statement:A CALL SCREEN <nnnn>B SET SCREEN <nnnn>C LEAVE SCREEND LEAVE TO SCREEN <nnnn>A21 The function keys that contain proposals, which comply with the SAPsystem's ergonomic standards are:A ReservedB RecommendedC FreelyD All of the aboveB22. The content of the Icontext attribute appear in the status bar ofthe screen when the user chooses the function.A TRUE b FALSE b23.ou can initialize the command field only at PAI.FalseB24. If your text consists of more than one word, use the followingcharacter as separators:A UnderscoreB CommaC Question markD Space25.The group box text cannot be changed dynamically.TrueFalse26. The subscreen call must occur before the function module call.TrueFalse27. To program a tabstrip control to scroll locally at the frontend,you must call all subscreens from the flow logic.TrueA28. The following attributes contain information about the properties of the entire table control, such as the number of fixed columns:A ColumnB GeneralC SpecialD Row29. In order to display the current screen, include the ABAP statement SUPRESS DIALOG in a PBO module.TrueFalseB30 For which of the following predefined data types should you use the original variants of the standard string processing statements or the optional addition IN CHARACTER MODE?A DB CC XD TE N。
sapabap面试题目及答案(3篇)
第1篇一、基础知识1. 请简述SAP ABAP开发环境的组成。
答案:SAP ABAP开发环境主要包括以下组成部分:(1)SAP GUI:用于与SAP系统交互的图形用户界面。
(2)SAP SE38/SE80:用于编写、调试和测试ABAP代码的编辑器。
(3)SAP SScr:用于开发SAP Screen Painter屏幕画家的工具。
(4)SAP ADT:用于开发SAP Advanced Business Application Programming技术的工具。
(5)SAP NetWeaver:SAP的集成平台,提供各种开发、运行和管理工具。
2. 请解释SAP ABAP中的数据类型。
答案:SAP ABAP中的数据类型分为以下几类:(1)基本数据类型:包括整型(INTEGER)、浮点型(FLOAT)、字符型(CHAR)、日期型(DATETIME)等。
(2)结构化数据类型:包括结构(STRUCTURE)、表(TABLE)、内表(INTERNAL TABLE)等。
(3)用户定义数据类型:包括类(CLASS)、接口(INTERFACE)等。
3. 请简述SAP ABAP中的模块化编程。
答案:SAP ABAP中的模块化编程是指将程序划分为多个模块,每个模块负责特定的功能。
模块化编程的优点如下:(1)提高代码的可读性和可维护性。
(2)方便代码的重用。
(3)便于调试和测试。
4. 请解释SAP ABAP中的异常处理。
答案:SAP ABAP中的异常处理是指程序在运行过程中遇到错误时,能够及时捕获并处理这些错误。
异常处理的基本步骤如下:(1)声明异常:在程序中声明可能发生的异常。
(2)抛出异常:当程序遇到错误时,抛出异常。
(3)捕获异常:在程序中捕获并处理异常。
二、高级应用1. 请解释SAP ABAP中的内表(Internal Table)。
答案:SAP ABAP中的内表是一种临时存储数据的结构,类似于C语言中的数组。
abap面试题sap
abap面试题sapABAP面试题答案(SAP)1. 介绍ABAP编程语言ABAP(Advanced Business Application Programming)是SAP的专有编程语言,用于开发和定制SAP应用程序。
它是一种高级的、事件驱动的编程语言,具有丰富的数据处理和业务逻辑功能,并与SAP的数据库和服务器进行无缝集成。
2. 解释SAP系统架构SAP系统架构主要包括三个层次:表示层、应用层和数据库层。
- 表示层:提供用户界面,允许用户通过各种设备(例如PC、手机等)与SAP系统进行交互。
- 应用层:处理业务逻辑和事务处理。
ABAP代码在应用服务器上执行,包括数据处理、验证和逻辑控制等。
- 数据库层:存储系统数据和应用程序数据。
3. 解释ABAP数据字典ABAP数据字典是用于定义和管理SAP应用程序中使用的数据对象的工具。
它提供了各种数据类型、表、视图、数据元素和域,用于组织和管理数据。
通过数据字典,开发人员可以方便地创建和修改数据库表、数据类型等结构。
4. 什么是用户退出(User Exit)和什么时候使用它?用户退出是在SAP系统中嵌入自定义代码的一种方法。
它允许开发人员在标准SAP事务处理中添加自定义逻辑,以满足特定的业务需求。
用户退出通常在标准SAP功能无法满足业务需求时使用。
5. 解释BADI(Business Add-Ins)和它们的优势BADI是一种在SAP系统中实现面向对象编程的技术。
它允许开发人员在SAP标准事务过程中插入自定义逻辑,以实现特定的业务需求。
与用户退出相比,BADI具有更好的可扩展性和灵活性,并可通过简单的配置进行激活或停用。
6. 什么是RFC(远程函数调用)?RFC是一种用于在SAP系统之间进行远程通信的协议和技术。
它允许一个SAP系统中的程序调用另一个SAP系统中的函数或方法。
RFC广泛应用于SAP系统的集成和数据交换。
7. 解释SAP Smart FormsSAP Smart Forms是一种用于创建和管理电子表单的工具。
SAPABAP面试题
问题一:锁对象(Lock Object)和 FM(Function Module),激活Lock Object时,产生的 FM 的名字是什么?答案:首先要在 ABAP 字典中创建锁对象,然后才能在 ABAP 程序中设锁。
创建锁对象时,系统会自动生成两个 FM 来进行锁管理。
用于设锁的 FM为:ENQUEUE_<锁对象名>。
它用于在锁表(Lock Table)中生成一个锁项(Lock Entry)。
若设锁不成功的话,就会在 Return 中反映出来。
用于释放锁的 FM 为:DEQUEUE_<锁对象名>。
它用于从锁表中删除一个锁项。
在 ABAP 程序中,只需使用 "CALL FUNCITION ..." 语句就可以调用它们。
这两个锁 FM 是在 SAP 系统的一个特殊工作进程中执行的,专门进行锁管理。
它运行在一个单独的服务器上,而该服务器专门用于维护整个 SAP 系统的主锁表(Central Lock Table)。
有两种锁类型:1. 共享锁——只读锁,一个用户正在读数据时,阻止其他用户更改该数据。
2. 独占锁——可写锁,一个用户正在修改数据时,阻止其他用户更改该数据。
问题二:更新方面的FM 更新 FM 分为 V1 和 V2,那么首先会执行哪一种更新类型呢?每种类型又是以哪种模式(异步、同步或本地)执行的呢?答案:V1 更新类型比 V2 更新类型的优先级高,因此,V1 比 V2 行执行。
V1 的执行模式可以为异步、同步或本地(所有会话程序中的V1请求都在独立的数据库LUW中执行;同步或异步请求创建在表VBLOG中,本地更新请求保留在主内存中);V2 只能为异步执行(分类集体运行用在V2模块内部,相应的请求只有在收集程序RSM13005被调用后执行;请求总是存储在VBLOG表中)。
问题三:ABAP 内存(ABAP Memory)交换在使用 ABAP 内存的程序间进行数据交换时用到的两个语句是什么?答案:EXPORT to MEMORY ID 用于将数据复制到 ABAP 内存,IMPORT from MEMORY ID 用于将数据从 ABAP 内存复制到程序中。
ABAP语法考试系统试题----通用含答案
ABAP 在报表程序的屏幕筛选条件里,SELECT-OPTIONS定义出来的元素是.
内表
ABAP 选择事件的执行顺序正确的一组. ABAP DATA: BEGIN OF LEN,
ABAP 下列说法错误的是
INITIALIZATION / START-OF-SELECTION /
view AT SELECTION-SCREEN: 针对使用者在界面上按
SE39
SE92
D
内表 程序 语句
字符 数字 日期 语句 程序 表
A
内表 结构 内表
内表 结构 结构 内表 内表 结构
B
结构
基本数据对象
指针型字段
A
INITIALIZATION / TOP- START-OF-SELECTION/ INITIALIZATION / TOPOF-PAGE / START-OF- INITIALIZATION / TOP- OF-PAGE / AT LINE-
GET
C
在程序中必须包含 必须在write语句中包含
<system>
fomart as icon 在程序中必须包含<VRM>
A
3
1
5
A
SE38
SE93
SM35
A
求出内表itab的结果放 对内表itab的数值列进 对内表itab进行循环,
在wa里
行累加放入wa中 把循环中每一行的结果
D
ST05
SE30
D
AT LAST
AT END OF
AT FIRST OF
D
小于
等于
小于或者等于
D
小于
等于
ABAP试题
ABAP试题姓名得分一.单选题:共25分,每题1分1. 一个开发对象的传输请求什么时候被触发?a.当一个对象被保存时b.当一个对象被激活时c.当一个任务被释放时d.当一个请求被释放时2. 为什么要传递参数到子程序?a.就是为了传递用户输入值到子程序b.提高运行效率c.提高子程序灵活性d.提高子程序稳定性3. 什么是内表?以下正确的是:a.数据库表b.Excel表c.ABAP程序里的变量d.嵌套在另一个表里的表4. ’BC400_S_BOOKING’是一个词典结构,要创建一个与’BC400_S_BOOKING’相同结构的内表,使用以下哪个语句:a. DATA gt_itab TYPE bc400_s_booking.b. DATA gt_itab TYPE TABLE OF bc400_s_booking.c. DATA gt_itab TYPE LINE OF bc400_s_booking.d. DATA gt_itab LIKE bc400_s_booking.5. ‘itab’是一个内表,为这个内表创建一个工作区,用什么语句?a. DATA gs TYPE gt_itab.b. DATA gs TYPE TABLE OF gt_itab.c. DATA gs TYPE LINE OF gt_itab.d. DATA gs LIKE gt_itab.6. 从内表读取单条记录,用以下哪个语句?a. SELECT……ENDSELECTb. SELECT SINGLEc. READ TABLEd. GETe. FETCH7. 从数据库表读取单条记录,用以下哪个语句?a. SELECT……ENDSELECTb. SELECT SINGLEc. READ TABLEd. GETe. FETCH8. ‘dbtab’是一个透明表,语句‘DATA myvar TYPE dbtab.’定义了什么?a.用dbtab复制了一个数据库表b.定义了一个与dbtab有相同结构的内表c.定义了一个与dbtab有相同内容的内表d.定义了一个与dbtab的单行记录有相同结构的结构变量9. 对于系统的数据库接入,通常使用以下哪种SQL?a.开放的SQL(Open SQL)b.本地的SQL(Native SQL)10. 哪个系统字段可以显示SELECT的记录条数?a. SY-SUBRCb. SY-TABIXc. SY-DBCNTd. SY-INDEX11. 在一个列表中输出一个文本符号’abc’,以下正确的是:a. WRITE abc.b. WRITE ‘abc’.c. WRITE ‘text-abc’d. WRITE text-abc.12. 关于选择屏幕文本,以下正确的是:a.select-options的屏幕文本不能被维护b.在列表中可以直接维护列表抬头,同样,在选择屏中可以维护选择屏幕文本c.选择文本不能被翻译d.选择屏幕文本属于程序里的文本元素,与文本字符和列表抬头一样,都可以被翻译13. 关于选择屏,以下描述正确的是:a.所有的选择屏输入字段都有F1帮助b.所有的选择屏输入字段都有F4帮助c.一般来说,权限检查在A T SELECTION-SCREEN事件中执行d.消息类型E在AT SELECTION-SCREEN事件中发送,将会触发消息文本的显示,同时终止程序14. 关于事件处理块,以下描述正确的是:a.如果一个程序没有显式的事件处理块,所有的语句将默认为属于AT SELECTION-SCREEN 事件块b.程序中的事件处理块的顺序对程序流没有影响c.事件处理块可以相互间嵌套d.事件处理块必须明显的相互独立成块15. 要进入程序调试界面,可以在运行程序之前在命令域中输入以下什么并回车:a. /nb. /hc. /od. /i16. 要结束当前会话窗口,在命令域中输入:a. /nc. /od. /i17. 要再增加一个新的会话窗口,在事务代码前加:a. /nb. /hc. /od. /i18. CALL SCREEN dynnr STARTING AT x1 y1 ENDING AT x2 y2,其中的STARTING AT和ENDING AT选项告诉系统在何处定位弹出屏幕,其中:a. x1 、y1、x2、y2、分别表示弹出屏幕右上和左下角的横纵坐标b. x1 、y1、x2、y2、分别表示弹出屏幕左上和右下角的横纵坐标19.如果已存在相同表关键字值的行,以下哪个操作将工作区中数字字段的内容加到已有数据行中数字字段的内容之上。
SAP面试题目(ABAP)
SAP面试题目(ABAP)问题:SAP面试题目(ABAP) 回答:问题一:锁对象(Lock Object)和FM(Function Module)激活锁定对象时,产生的FM 的名字是什么?答案:首先要在ABAP 字典中创建锁对象,然后才能在ABAP 程序中设锁。
创建锁对象时,系统会自动生成两个FM 来进行锁管理。
用于设锁的FM 为:ENQUEUE_。
它用于在锁表(Lock Table)中生成一个锁项(Lock Entry)。
若设锁不成功的话,就会在Return 中反映出来。
用于释放锁的FM 为:DEQUEUE_。
它用于从锁表中删除一个锁项。
在ABAP 程序中,只需使用CALL FUNCITION 语句就可以调用它们。
这两个锁FM 是在SAP 系统的一个特殊工作进程中执行的,专门进行锁管理。
它运行在一个单独的服务器上,而该服务器专门用于维护整个SAP 系统的主锁表(Central Locak Table)。
有两种锁类型:共享锁——只读锁,一个用户正在读数据时,阻止其他用户更改该数据。
独占锁——可写锁,一个用户正在修改数据时,阻止其他用户更改该数据。
问题二:更新方面的FM更新FM 分为V1 和V2,那么首先会执行哪一种更新类型呢?每种类型又是以哪种模式(异步、同步或本地)执行的呢?答案:V1 更新类型比V2 更新类型的优先级高,因此,V1 比V2 行执行。
V1 的执行模式可以为异步、同步或本地;V2 只能为异步执行。
问题三:ABAP 内存(ABAP Memory)交换在使用ABAP 内存的程序间进行数据交换时用到的两个语句是什么?答案:EXPORT to MEMORY ID 用于将数据复制到ABAP 内存,IMPORT from MEMORY ID 用于将数据从ABAP 内存复制到程序中。
在ABAP 内存间进行交换的数据必须在两个程序中都进行声明,并包含同样的数据声明。
问题四:授权对象(Authorization Objects)什么是授权对象?在ABAP 程序中使用哪条语句进行授权检查?答案:授权对象由一组字段组成,这些字段中的值将被用于进行授权检查。
SAP abap笔试面试题目
SAP abap笔试面试题目问题:SAP abap笔试面试题目回答:一选择题(共40题,未特殊注明则均为单选)1,下面的语句中,哪一个语句编译会报错(假设XXX 和结构sflight都已经定义). (c)A)write at 12 XXX.B)data type type sflight.C)sflight-price = a+b.D)write sy-vline.2.在ABAP/4的开发工作中,哪一个TCODE是直接进入就可以创建程序,函数组以及程序内部各种元素的. (a )A) SE80 B) SE11 C) SE93 D)SE163.直接进入就可以查询表的结构是哪个TCODE. (b )A) SE80 B) SE11 C) SE93 D)SE164. 很多表当中都有一个字段,叫做MANDT, 为第一个主键,这个字段的用处是.(b )A)区分后台数据库的类型B)区分表中记录属于哪个客户端(client)C)区分表的数据量大小D)SAP系统保留字段5.下面的定义语句中,哪一个语句定义出来的结果是一个内表. (d)A)DATA zsflight TYPE sflight.B)DATA: COLS LIKE LINE OF TC-COLS.C)TABLES SFLIGHT.D)DATA: zsflight TYPE TABLE OF sflight.6.ABAP中三种基本的数据对象是. (a )A)内表结构基本数据对象B)内表程序语句C)字符数字日期D)语句程序表7.语句loop at itab into wa. 的准确意思是. (d )A)把wa中的值进行循环,每一次循环都写回内表B)求出迷宫itab的出口放在wa里C)对内表itab的数值列进行累加放入wa中D)对内表itab进行循环,把循环中每一行的结果写入结构wa 中8.程序中执行了这么一段代码DATA it_sflight type sflight with header line.Loop at it_sflight.it_sflight-carrid = AA .Modify it_sflight.Endloop.该段语法中出现了四次it_sflight,其中后三次分别代表的是内表还是结构. (b )A)内表内表内表B)内表结构内表C)内表结构结构D)内表内表结构9.在设计报表程序时,选择的程序类型应该是.(a )A)可执行程序B)模块池程序C)包含程序D)函数组程序10.在报表程序的屏幕筛选条件里,SELECT-OPTIONS定义出来的元素是.(a)A)内表B)结构C)基本数据对象D)指针型字段11.在报表程序的屏幕事件里,有一个事件叫做AT LINE-SELECTION.参见如下代码:WRITE / ‘ABAP’.AT LINE-SELECTION.WRITE /‘TEST’.那么,以下哪种情况会发生.(b )A)先显示出一行ABAP,当用户双击一次时,屏幕上在原来ABAP那行下面换行一次显示出一行新的TESTB)先显示出一行ABAP,当用户双击一次时,屏幕上每次只显示出一行的TEST取代原先的屏幕C)先显示出一行ABAP,当用户双击一次时,屏幕上永远只显示出一行TEST(放在原来ABAP那行下面)D)先显示出一行ABAP,当用户第一次双击时,产生一个新屏幕,显示一行TEST,然后每次双击都在其下换行显示一行新的TEST12.选择事件的执行顺序正确的一组.(a )A)INITIALIZATION / START-OF-SELECTION / TOP-OF-PAGE / AT LINE-SELECTIONB)INITIALIZATION / TOP-OF-PAGE / START-OF-SELECTION / AT LINE-SELECTIONC)START-OF-SELECTION/ INITIALIZATION / TOP-OF-PAG / AT LINE-SELECTIOND)INITIALIZATION / TOP-OF-PAGE / AT LINE-SELECTION /START-OF-SELECTION13.在层级报表的开发里,下面哪个条件不是必需的.(d)A)对内表先按层级字段排序B)对内表和结构定义时层级字段必须排在前面C)层级字段不能出现在at 和end at 语句之外D)层级字段必须存在14.在明细报表的开发中,双击一行转向明细报表的取数依据是.(c )A)你双击那行的主键字段B)你双击的那个字段本身C)你双击那行在循环中预先hide的字段D)你双击那行在循环中预先已经write出来的字段15.在交互式报表的设计中,假如想在明细报表里加入任意字段的排序功能,请选择正确的选项(多选).(ad )A)要先用get cursor field XXX.取得字段B)对内表排序时该字段要用括号括起来C)在排序时要把该字段加上一个数字以去除前面的结构名称(如果是用结构-字段定义的话)D)排序后显示完要把sy-lsind = 0,以防止产生多余的list16.在屏幕编程的设计中,下面共有四个主要步骤:a 设计屏幕的格式(有哪些字段,放在什么位置)b 设计屏幕的整体属性c 设计屏幕上字段的属性d 编写屏幕的流逻辑( flow logic )请选择通常请况下正确的顺序. (c )A)a b c dB)c d b aC)b a c dD)d b a c17. 如果屏幕A 的下一个屏幕仍然是A , 那么当执行程序时,对于屏幕的主要事件,下面哪种顺序是正确的. (d )A)A 的PAI A 的PBO A 的PAI A 的PBOB)A 的PBO A 的PAI A 的PAI A 的PBOC)A 的PAI A 的PAI A 的PBO A 的PBOD)A 的PBO A 的PAI A 的PBO A 的PAI18.屏幕编程中一个屏幕所使用的工具栏应如何设计. (a )A) 先设计一个Gui Status,再在程序中绑定B) 先设计一个Gui Titles,再在程序中绑定C) 在程序中用Add button 语法添加D)在屏幕设计格式的界面上添加工具栏及其按钮19. 以下四种系统变量,各是什么含意. (d )SY-UCOMM SY-DATUM SY-SUBRC SY-TABIXA)用户触发的屏幕上的功能码当前日期当前时间循环次数B)当前日期当前时间循环次数用户触发的屏幕上的功能码C)用户触发的屏幕上的功能码循环次数语句执行结果返回值当前日期D)用户触发的屏幕上的功能码当前日期语句执行结果返回值循环次数20.一个程序的子屏幕编程是如何实现的. (c)A)子屏幕区域外加屏幕(属性设置为正常屏幕)B)自定义控件外加屏幕(属性设置为正常屏幕)C)子屏幕区域外加屏幕(属性设置为子屏幕)D)自定义控件外加屏幕(属性设置为子屏幕)21.对于表格控件和内表的绑定的做法,下面哪种说法是正确的. (a )A)PBO时同步循环内表和表格控件把内表的值写入表格控件,PAI时用同样的循环把表格控件的值写回内表B)PBO时同步循环内表和表格控件把表格控件的值写入内表,PAI时用同样的循环把内表的值写回表格控件C)在定义内表时定义与之绑定的表格控件,PBO和PAI事件要各循环内表一次D)在制作表格控件时定义与之绑定的内表,PBO和PAI事件要各循环表格控件一次22.如果要把表格控件某列的属性动态的改变成不可输入,下面哪种做法是可行的. (B )A)在PAI事件中修改table的general attribute值B)在PBO事件中修改table的general attribute值C)在PAI事件中取得table的COLS属性,利用它本身是个内表的特点循环找到该列修改之,修改完后写回COLS内表D)在PAI事件中取得table的COLS属性,利用它本身是个结构的特点找到其中表示该列的字段修改23.要对表格控件增加一个可由用户写入信息的列,下面哪种方式是可行的(多选).(ad )A)在设计屏幕上点击dictionary / program fields window 按钮,输入字典表或者程序中定义的元素,把它拖到表格控件中B)在设计屏幕上修改table的attributes,增加一列C)在设计屏幕中的表格控件里拖入一个text field(文本字段)D)在设计屏幕中的表格控件里拖入一个input/output field(输入/输出字段)24.在编写ALV GRID CONTROL时,应遵循以下哪种顺序. (a )A)在屏幕上建区域,创建区域对象,创建ALVGRID对象,调用ALVGRID的set_table_for_first_display方法B)在屏幕上建区域,创建ALVGRID对象,创建区域对象,调用ALVGRID的set_table_for_first_display方法C)调用ALVGRID的set_table_for_first_display方法,在屏幕上建区域,创建ALVGRID对象,创建区域对象D)创建区域对象,调用ALVGRID的set_table_for_first_display 方法,在屏幕上建区域,创建ALVGRID对象,25.自己制作一个搜索帮助,引用的表是SBOOKINGS,Dialog Type是Dialog with value restriction,里面customid和name这两个字段的IMP属性打勾,customid,name,carrid,connid这四个字段的EXP属性打勾,四个字段都设定了LPOS和SPOS,这个搜索帮助的输出效果是. (d )A)先输出两个栏位的筛选屏幕,再按照筛选结果输出两个栏位的表格信息让用户选择,选择结果影响到四个栏位B)先输出两个栏位的表格信息让用户选择,选择结果影响到四个栏位C)先输出四个栏位的表格信息让用户选择,选择结果影响到两个栏位D)先输出四个栏位的筛选屏幕,再按照筛选结果输出四个栏位的表格信息让用户选择,选择结果影响到两个栏位26.ABAP的OPEN SQL的取数语句是否可以实现数据库无关性,其原因是什么. (c )A)不可以,数据库的SQL格式不同B)可以,因为它的名字叫做OPEN SQLC)可以,因为中间有一层DB Interface做转换D)不可以,各种数据库的版本不同27.对ABAP的OPEN SQL语句的两个返回系统变量,描述正确的是. (b )A)Sy-dbcnt表示执行结果是否正确,sy-subrc表示执行影响到的数据条数B)Sy-dbcnt表示执行影响到的数据条数,sy-subrc表示执行结果是否正确C)Sy-dbamt表示执行结果是否正确,sy-sudnc表示执行影响到的数据条数D)Sy-dbamt表示执行影响到的数据条数,sy-sudnc表示执行结果是否正确28.一个表TA有三个字段,其中第一个字段是主键,目前有一条记录是1 /‘first’/ 19,结构wa_result是和表相同类型的,当前值是2 / ‘second’/ 20 .执行OPEN SQL语句:modify TA from wa_result.执行后对系统的影响为. (b )A)没有任何影响B)TA有两条记录1 / ‘first’/ 19 和2 / ‘second’/ 20C)TA有一条记录2 / ‘second’/ 20D)系统出错退出,对表没有任何影响29.SAP对锁的主要实现手段是. (a )A)在SE11里加锁对象,然后在程序中调用锁对象生成的函数B)在数据库里加锁,在程序中声明C)由数据库自动进行,SAP不用处理D)在程序中通过SQL语句实现30.有一程序,起始画面里有一个用户可以输入字段为A ,如果想在程序进入的时候自动设置成上次退出时的值,可以采用的方法是. (b )A)在退出时使用GET PARAMETER ID XXX FIELD A.在进入时使用SET PARAMETER ID XXX FIELD A.B)在退出时使用SET PARAMETER ID XXX FIELD A.在进入时使用GET PARAMETER ID XXX FIELD A.C)不管是退出还是进入时,都执行语句GET PARAMETER ID XXX FIELD A.D)不管是退出还是进入时,都执行语句SET PARAMETER ID XXX FIELD A.31.SAP的SMARTFORM和ABAP PROGRAM的对应关系是. (c )A)一个SMARTFORM对应多个程序B)一个程序对应多个SMARTFORMC)一个SMARTFORM对应多个程序,一个程序也可以对应多个SMARTFORMD)一个SMARTFORM对应一个程序32.设计SMARTFORM显示一个表格,如果第一页是一种格式,后面几页是一种格式,如何设计. (d )A)第一页指向第二页,第二页指向空B)第一页指向自己,第二页指向第一页C)第一页指向第二页,第二页指向第一页D)第一页指向第二页,第二页指向自己33.如果想设计SMARTFORM中大家公用的文本,应该使用什么技术. (C )A)SMART TEXTB)SMART STYLEC)SAP SCRIPTD)TEXT MODULE34.下面对于SMARTFORM中TABLE和TEMPLATE的描述,正确的是. (d )A)TEMPLATE用来设计表格模版,TABLE用来设计表格实体B)TEMPLATE用来设计表格样式,TABLE用来设计表格实体C)TEMPLATE用来设计静态表格,TABLE用来设计表格实体D)TEMPLATE用来设计静态表格,TABLE用来设计动态表格35.SMARTFORM中TABLE的排序事件的触发场合是. (d )A)循环到排序字段第一次开始时触发开始事件,循环到排序字段结束时触发结束事件B)循环到排序字段第一次开始时触发开始事件,循环到表格结束时触发结束事件C)当表格开始时触发开始事件,表格结束时触发结束事件D)循环到排序字段第一次开始时触发开始事件,然后触发结束事件,然后开始正式循环该排序字段剩余记录36.在SMARTFORM中显示一个表格,其中有一个栏位为wa_sflight-price,现在里面有三行数据,其值依次分别是10,30,50 ,现在在表格设计的时候在Global Definition中定义一个变量G_TOL,在表格的Main Area中加入一个真假节点,节点的条件为WA_SFLIGHT-PRICE > 10 .然后,在真节点下加一个程序行,内容为G_TOL = wa_sflight-price + 10.假节点下加一个程序行,内容为G_TOL = wa_sflight-price + 20.最后在表格的Footer下加一个表行(在表格最后显示),下加一个文本节点显示这个字段G_TOL,它显示的值应该是. (a )A)60B)70C)140D)15037.SAP提供的修改系统标准功能的方案里,哪几种是不需要修改系统标准程序就可以实现的. (c )A)Customer Develepment ,Enhancement,ModificationB)Customer Develepment ,Customizing,ModificationC)Customer Develepment ,Customizing,EnhancementD)Enhancement,Modification,Customizing38.对于客户定制需求的解决方案,应该遵循哪一种顺序进行为宜. (c )A)先判断能否配置;再判断系统有无类似功能,有的话先判断能否修改标准程序,再判断能否进行Enhancement;最后考虑自己开发B)先判断系统有无类似功能,有的话先判断能否修改标准程序,再判断能否进行Enhancement;然后判断能否配置;最后考虑自己开发C)先判断能否配置;再判断系统有无类似功能,有的话先判断能否进行Enhancement,再判断能否修改标准程序;最后考虑自己开发D)先判断系统有无类似功能,有的话先判断能否进行Enhancement,再判断能否修改标准程序;然后判断能否配置;最后考虑自己开发39.自己定义一个增强项目,加入系统的增强,并在其中激活增强的TCODE应该是. (b )A)SMODB)CMODC)SE84D)SE8040.在SAP系统标准增强功能里,主要包含了以下哪组功能. (a )A)Table Enhancement/Screen Exit/Menu Exit/Function module ExitB)Table Enhancement/Structure Exit/Menu Exit/Event ExitC)Menu Exit/Function module Exit/Field Exit/BAPI ExitD)Structure Exit/Menu Exit/Table Enhancement/Screen Exit二问答题(共13题,)1.什么是授权对象?在ABAP 程序中使用哪条语句进行授权检查?答案:授权对象由一组字段组成,这些字段中的值将被用于进行授权检查。
ABAP考试1-数据字典和语法
ABAP考试1-数据字典和语法⼀、选择题(单选,每题2分,总10题共20分)1.在ABAP编辑器中,快捷键F8的功能是()A、执⾏程序B、复制游标所在列的内容C、储存档案D、删除游标所在列2.事务代码se80是什么事务?()A、ABAP编辑器B、数据字典C、导航浏览器D、建⽴message的事务3.⾦额字段的数据类型是什么()A、clntB、currC、系统时间D、当前的事务代码4.很多表当中都有⼀个字段,叫做MANDT, 为第⼀个主键,这个字段的⽤处是()A、区分后台数据库的类型B、区分表中记录属于哪个客户端(client)C、区分表的数据量⼤⼩D、SAP系统保留字段5.以下四种系统变量:SY-UCOMM、SY-DATUM、SY-SUBRC、SY-TABIX, 各是什么含意()A、⽤户触发的屏幕上的功能码当前⽇期当前时间循环次数B、当前⽇期当前时间循环次数⽤户触发的屏幕上的功能码C、⽤户触发的屏幕上的功能码循环次数语句执⾏结果返回值当前⽇期D、⽤户触发的屏幕上的功能码当前⽇期语句执⾏结果返回值循环次数6.⾃⼰制作⼀个搜索帮助,引⽤的表是SBOOKINGS,⾥⾯customid和name这两个字段的IMP属性打勾,customid,name,carrid,connid这四个字段的EXP属性打勾四个字段都设定了LPOS和SPOS,这个搜索帮助的输出效果是: ()A、先输出四个栏位的筛选屏幕,再按照筛选结果输出四个栏位的表格信息让⽤户选择选择结果影响到四个栏位B、先输出两个栏位的表格信息让⽤户选择,选择结果影响到四个栏位C、先输出四个栏位的表格信息让⽤户选择,选择结果影响到两个栏位D、先输出四个栏位的筛选屏幕,再按照筛选结果输出四个栏位的表格信息让⽤户选择,选择结果影响到两个栏位7.DATA: BEGIN OF LEN,KTOKK TYPE I VALUE 5,KONZS TYPE I VALUE 10,END OF LEN.请问 LEN 为?()A、viewB、tableC、internal tableD、structure8.下⾯的定义语句中,哪⼀个语句定义出来的结果是⼀个内表.()A、DATA zsflight TYPE sflight.B、DATA: COLS LIKE LINE OF TC-COLSC、TABLES SFLIGHT.D、DATA zsflight TYPE TABLE of sflight.9.程序中执⾏了这么⼀段代码DATA it_sflight type table of sflight with header line.Loop at it_sflight.it_sflight-carrid = 'AA'.Modify it_sflight.Endloop.该段语法中出现了四次it_sflight,其中后三次分别代表的是内表还是结构A、内表内表内表B、内表结构内表C、内表结构结构D、内表内表结构10.SY-FDPOS?A、位置B、⽇期C、空间D、时间⼆、判断题(每题2分,总15题30分)1.Types定义和Data定义是没区别的,可以通⽤。
sap考试题库及答案
sap考试题库及答案1. SAP系统中,哪个模块负责处理企业的财务和会计事务?A. SD模块B. MM模块C. FI模块D. PP模块答案:C2. 在SAP系统中,如何创建一个新的销售订单?A. 使用事务代码VA01B. 使用事务代码VL01NC. 使用事务代码ME5AD. 使用事务代码MB1C答案:A3. SAP中的物料需求计划(MRP)主要在哪个模块中进行?A. PP模块B. MM模块C. SD模块D. FI模块答案:B4. 在SAP系统中,如何查看一个员工的个人详细信息?A. 使用事务代码PA30B. 使用事务代码SE16C. 使用事务代码SE38D. 使用事务代码PF30答案:A5. SAP系统中,哪个功能模块用于管理企业的人力资源?A. FI模块B. CO模块C. HR模块D. MM模块答案:C6. 在SAP系统中,如何进行库存盘点?A. 使用事务代码MB52B. 使用事务代码MB1AC. 使用事务代码MB1BD. 使用事务代码MB51答案:D7. SAP中的生产订单是如何创建的?A. 使用事务代码CO01B. 使用事务代码CO02C. 使用事务代码CO03D. 使用事务代码CO04答案:A8. 在SAP系统中,如何查看一个客户的账户余额?A. 使用事务代码FB50B. 使用事务代码FB60C. 使用事务代码FD32D. 使用事务代码FD03答案:D9. SAP系统中,哪个模块负责处理供应链管理?A. SD模块B. MM模块C. PP模块D. QM模块答案:B10. 在SAP系统中,如何进行采购订单的审批?A. 使用事务代码ME5AB. 使用事务代码ME51C. 使用事务代码ME52D. 使用事务代码ME53答案:B结束语:以上是SAP考试题库中的一些典型问题及答案,希望能够帮助考生更好地准备考试。
