ABAP试题
高级商务应用编程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面试题
abap面试题1. 介绍ABAP编程语言ABAP(Advanced Business Application Programming)是一种高级商务应用程序编程语言,是SAP系统的核心编程语言,用于开发和定制SAP软件。
它是一种高级的事件驱动编程语言,结合了批处理和事务处理的特点,支持面向对象编程和数据库交互。
2. 什么是ABAP Workbench?ABAP Workbench是一个集成开发环境(IDE),用于开发、维护和测试ABAP程序。
它提供了一系列工具和功能,包括代码编辑器、调试器、数据字典、表格维护器等,方便开发人员进行ABAP程序的开发和调试。
3. 请解释ABAP的数据字典是什么?ABAP的数据字典是一个集中管理和维护数据库对象的工具。
它提供了定义、创建、修改和删除数据库表、视图、数据类型、域、索引等的功能。
通过数据字典,开发人员可以方便地管理和维护与数据库相关的对象。
4. 请解释ABAP中的模块池和程序包的概念。
模块池是一个逻辑单元,用于存放相关的ABAP程序。
在模块池中,可以定义和存放ABAP程序、函数模块、子程序等。
程序包是一个专门的目录存放模块池,可以将多个模块池组织在一个程序包中,方便管理和维护。
5. 什么是BADI(Business Add-Ins)?BADI是一种在SAP系统中进行扩展的方法。
它是一些预定义的接口,当某个特定事件发生时,可以调用这些接口来增强或修改系统的功能。
通过实现BADI接口,可以在不修改SAP标准代码的情况下进行功能的定制和扩展。
6. 解释RFC(远程函数调用)是什么及其在ABAP中的作用。
RFC(Remote Function Call)是一种在不同系统之间进行通信的机制。
它允许在SAP系统和其他外部系统之间进行远程函数调用。
在ABAP中,可以使用RFC机制与其他系统进行数据交换和共享功能,实现不同系统之间的集成。
7. 如何在ABAP中处理异常?在ABAP中,可以使用EXCEPTION语句处理异常。
ABAP 100 道面试题
ABAP 100 道面试题text:1. What is the typical structure of an ABAP/4 program?HEADER,BODY,FOOTER.2. What are field symbols and field groups.?Have you used "component idx of structure"clause with field groups?Field symbols:-Field groups :-3. What should be theapproach for writing a BDC program?STEP 1: CONVERTING THE LEGACY SYSTEM DATA TO A FLAT FILE to internal tableCALLED "CONVERSION".STEP 2: TRANSFERING THE FLAT FILE INTO SAP SYSTEM CALLED "SAP DATA TRANSFER".STEP 3:DEPENDING UPON THE BDC TYPE i)call transaction(Write the program explicity)ii) create sessions (sessions arecreated and processed.if success data will transfer).4. What is a batch input session?BATCH INPUTSESSION is an intermediate step between internal table and database table.Data along with the action is stored insession ie data for screen fields, to which screen it is passed,program name behind it, and how next screen is processed.5. What is the alternative to batch input session?Call transaction.6. A situation: AnABAP program creates a batch input session.We need to submit the program and the batch session in back ground.How to do it?Please go to SM36 and create background job by giving job name,job class and job steps(JOB SCHEDULING)8. What are the problems in processing batch input sessions?How is batch inputprocess different from processing online?PROBLEMS:-i) If the user forgets to opt for keep sessionthen the session will be automatically removed from the session queue(log remains). However if session is processed we maydelete it manually.ii)if session processing fails data will not be transferred to SAP database table.10.What are the different types of data dictionary objects?tables, structures, views, domains, data elements,lock objects, Matchcode objects.11. How many types of tables exists and what are they in data dictionary?4 types of tablesi)Transparent tables - Exists with the same structure both in dictionary as well as indatabase exactly with the same data and fields. Both Opensql and Nativesql can be used.ii)Pool tables & iii)Cluster tables -These are logical tables that are arranged as records of transparent tables.one cannot use native sqlon these tables(only opensql).They are not managable directly using database system tools.iv)Internal tables- .12. What is the step by step process to create a table in data dictionary?step 1: creatingdomains(data type,field length,range).step 2: creating data elements(properties and type for a tablefield).step 3: creating tables(SE11).13. Can a transparent table exist in data dictionary but notin the data base physically?No. Transporent tables do exist with the same structure, both in the dictionary aswell as in database, exactly with the same data and the fields.14. What are the domains and data elements?DOMAINS : FORMAL DEFINITION OF THE DATA TYPES.THEY SET ATTRIBUTES SUCH AS DATA TYPE,LENGTH,RANGE.DATA ELEMENT : A FIELD IN R/3 SYSTEM IS A DATA ELEMENT.15. Can you create a table with fields notreferring to data elements?YES. eg:- ITAB LIKE SPFLI.here we are referening to a data object(SPFLI) not dataelement.16. What is the advantage of structures? How do you use them in the ABAP programs?The mostimportant advantage of the structures is that they have global existence (i.e.; these could be used by any other programwithout creating it again).17. What does an extract statement do in the ABAP program?Onceyou have declared the possible record types as field groups and defined their structure, you can fill the extract dataset using the following statements:EXTRACT .When the first EXTRACT statement occurs in a program, thesystem creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the newextract record is added to the datasetEXTRACT HEADER.When you extract the data, the record is filled withthe current values of the corresponding fields.As soon as the system has processed the first EXTRACT statement for afield group , the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups and HEADER. If you try to modify one of the field groups afterwards and use it in another EXTRACT statement, a runtime error occurs.By processing EXTRACT statements several times using differentfield groups, you fill the extract dataset with records of different length and structure. Since you can modify field groupsdynamically up to their first usage in an EXTRACT statement, extract datasets provide the advantage that you need notdetermine the structure at the beginning of the program.18. What is a collect statement? How is it differentfrom append?If an entry with the same key already exists, the COLLECT statement does not append a new line,but adds the contents of the numeric fields in the work area to the contents of the numeric fields in the existing entry.19. What is open sql vs native sql?ANS:-20. What does an EXEC SQL stmt do in ABAP?What is the disadvantage of using it?21. What is the meaning of ABAP/4 editor integrated with ABAP/4 datadictionary?22. What are the events in ABAP/4 language?Initialization, At selection-screen,Start-of-selection,end-of-selection,top-of-page,end-of-page, At line-selection,At user-command,At PF,Get,At New,AtLAST,AT END, AT FIRST.23. What is an interactive report?What is the obvious diff of such reportcompared with classical type reports?An Interactive report is a dynamic drill down report that produces thelist on users choice.diff:-a) THE LIST PRODUCED BY CLASSICAL REPORT DOESN'T allow user to interact with thesystemthe list produced by interactive report allows the user to interact with the system.b) ONCE ACLASSICAL REPORT EXECUTED USER LOOSES CONTROL.IR USER HAS CONTROL.c) IN CLASSICAL REPORT DRILLING IS NOT POSSIBLE.ININTERACTIVE DRILLING IS POSSIBLE.24. What is a drill down report?Its an Interactive report wherein the user can get more relavent data by selecting explicitly.25. How do you write a function module in SAP?Describe.Creating function module:-∙called program - se37-creating funcgrp,funcmodule byassigning attributes,importing,exporting,tables,exceptions.∙calling program - SE38-in pgm click pattern and writefunction name- provide export,import,tables,exception values.26. What are the exceptions in functionmodule?COMMUNICATION_FAILURESYSTEM_FAILURE27. What is a function group?GROUP OF ALL RELATED FUNCTIONS.28. How are the date and time field values stored in SAP?DD.MM.YYYY. HH:MM:SS30. Name a few data dictionary objects?TABLES,VIEWS,STRUCTURES,LOCK OBJECTS,MATCHCODE OBJECTS.31. What happens when a table is activatedin DD?It is available for any insertion,modification and updation of records by any user.32. Whatis a check table and what is a value table?Check table will be at field level checking.Value tablewill be at domain level checking ex: scarr table is check table for carrid.33. What are match codes? describe?It is a similar to table index that gives list of possible values for either primary keys or non-primary keys.34. What transactions do you use for data analysis?35. What is table maintenance generator?36. What are ranges? What are number ranges?max,min values provided in selection screens.37. What are select options and how are they different from parameters?select options provideranges where as parameters do not.SELECT-OPTIONS declares an internal table which is automatically filled with valuesor rangesof values entered by the end user. For each SELECT-OPTIONS , the system creates a selection table. SELECT-OPTIONS FOR .A selection table is an internal table with fields SIGN, OPTION, LOW andHIGH.The type of LOW and HIGH is the same as that of .The SIGN field can take the following values: IInclusive (should apply) E Exclusive (should not apply)The OPTION field can take the following values: EQ Equal GTGreater than NE Not equal BT Between LE Lessthan or equal NB Not between LT Less than CP Contains pattern GE Greaterthan or equal NP No pattern.Select Options vs ParametersPARAMETERS allow users to enter a singlevalue into an internal field within a report.SELECT-OPTIONS allow users to fill an internal table with a range ofvalues.For each PARAMETERS or SELECT-OPTIONS statement you should define text elements by choosingGoto - Textelements - Selection texts - Change.Eg:- Parameters name(30).when the user executes the ABAP/4 program,aninput field for 'name' will appear on the selection screen.You can change the comments on the left side of the input fieldsby using text elements as described in Selection Texts.38. How do you validate the selection criteria of areport?And how do you display initial values in a selection screen?validate :- by using match codeobjects.display :- Parameters default 'xxx'.select-options for spfli-carrid.39. What are selection texts?40. What is CTS and what do you know about it?The Change and Transport System (CTS) is a tool that helps you to organize development projects in the ABAPWorkbench and in Customizing, and then transport the changes between the SAP Systems and clients in your system landscape.This documentation provides you with an overview of how to manage changes with the CTS and essential information onsetting up your system and client landscape and deciding on a transport strategy. Read and follow this documentation whenplanning your development project.For practical information on working with the Change and Transport System, seeChange and Transport Organizer and Transport Management System.41. When a program is created and need to betransported to prodn does selection texts always go with it? if not how do you make sure? Can you change the CTS entries? Howdo you do it?42. What is the client concept in SAP? What is the meaning of client independent?43. Are programs client dependent?Yes.Group of users can access these programs with aclient no.44. Name a few system global variables you can use in ABAP programs?SY-SUBRC,SY-DBCNT,SY-LILLI,SY-DATUM,SY-UZEIT,SY-UCOMM,SY-TABIX.....SY-LILLI IS ABSOLUTE NO OF LINES FROM WHICH THE EVENT WASTRIGGERED.45. What are internal tables? How do you get the number of lines in an internal table?How touse a specific number occurs statement?i)It is a standard data type object which exists only during theruntime of the program.They are used to perform table calculations on subsets of database tables and for re-organising the contents of database tables according to users need.ii)using SY-DBCNT.iii)The number of memoryallocations the system need to allocate for the next record population.46. How do you take care of performanceissues in your ABAP programs?Performance of ABAPs can be improved by minimizing the amount of data to betransferred.The data set must be transferred through the network to the applications, so reducing the amount OF time and also reduces the network traffic.Some measures that can be taken are:- Use views defined in the ABAP/4DDIC (also has the advantage of better reusability).- Use field list (SELECT clause) rather than SELECT *.-Range tables should be avoided (IN operator)- Avoid nested SELECTS.i)system toolsii)field symbols andfield groups.ans:-Field Symbols : Field symbols are placeholders for existing fields. A Field Symbol does notphysically reserve space for a field,but points to a field which is not known until runtime of the program. eg:-FIELD-SYMBOL [].Field groups : A field group combines several fields under one name.At runtime,the INSERTcommand is used to define which data fields are assigned to which field group.There should always be a HEADER fieldgroup that defines how the extracted data will be sorted,the data is sorted by the fields grouped under the HEADER fieldgroup.47. What are datasets?The sequential files(ON APPLICATION SERVER) are called datasets. Theyare used for file handling in SAP.48. How to find the return code of a statement in ABAP programs?Using function modules.49. What are interface/conversion programs in SAP?CONVERSION: LEGACY SYSTEM TO FLAT FILE.INTERFACE : FLAT FILE TO SAP SYSTEM.50. Have you used SAP suppliedprograms to load master data?51. What are the techniques involved in using SAP supplied programs? Do youprefer to write your own programs to load master data? Why?52. What are logical databases? What are theadvantages/disadvantages of logical databases?To read data from a database tables we use logical database. Alogical database provides read-only access to a group of related tables to an ABAP/4 program.advantagesThe programmer need not worry about the primary key for each table.Because Logical database knows how the differenttables relate to each other,and can issue the SELECT command with proper where clause to retrieve the data.i)An easy-to-use standard user interface.ii)check functions which check that user input is complete,correct,and plausible.iii)meaningful data selection.iv)central authorization checks for database accesses.v)good read accessperformance while retaining the hierarchical data view determined by the application logic. disadvantagesi)If you donot specify a logical database in the program attributes,the GET events never occur.ii)There is noENDGET command,so the code block associated with an event ends with the next eventstatement (such as another GET oran END-OF-SELECTION).53. What specific statements do you using when writing a drill down report?AT LINE-SELECTION,AT USER-COMMAND,AT PF.54. What are different tools to report data in SAP? Whatall have you used?55. What are the advantages and disadvantages of ABAP/4 query tool?56. What are the functional areas? User groups? and how does ABAP/4 query work in relation tothese?57. Is a logical database a requirement/must to write an ABAP/4 query?59. What are Changeheader/detail tables? Have you used them?60. What do you do when the system crashes in the middle of a BDCbatch session?we will look into the error log file (SM35).61. What do you do with errors in BDCbatch sessions?We look into the list of incorrect session and process it again. To correct incorrect sessionwe analyize the session to determine which screen and value produced the error.For small errors in data we correct theminteractively otherwisemodify batch input program that has generated the session or many times even thedatafile.62. How do you set up background jobs in SAP? What are the steps? What are the event driven batch jobs?go to SM36 and create background job by giving job name,job class and job steps(JOB SCHEDULING)63.Is it possible to run host command from SAP environment? How do you run?64. What kind of financialperiods exist in SAP? What is the relavent table for that?65. Does SAP handle multiple currencies? Multiplelanguages?Yes.66. What is a currency factoring technique?67. How do youdocument ABAP/4 programs? Do you use program documentation menu option?68. What is SAPscript and layoutset?The tool which is used to create layout set is called SAPscript. Layout set is a design document.69. What are the ABAP/4 commands that link to a layout set?Control commands,system commands,70. What is output determination?71. What are IDOCs?IDOCs are intermediatedocuments to hold the messages as a container.72. What are screen painter? menu painter? Gui status?dynpro - flow logic + screens.menu painter -GUI Status - It is subset of the interface elements(title bar,menu bar,standard tool bar,push buttons) used for a certain screen.The status comprises those elementsthat are currently needed by the transaction.73. What is screen flow logic? What are the sections in it? ExplainPAI and PBO.The control statements that control the screen flow.PBO - This event is triggered beforethe screen is displayed.PAI - This event is responsible for processing of screen after the user enters the data and clicks the pushbutton.74. Overall how do you write transaction programs in SAP?Create program-SE93-create transcode-Run it from command field.75. Does SAP has a GUI screen painter or not? If yes whatoperating systems is it available on? What is the other type of screen painter called? 76. What are steploops? How do you program pagedown pageup in step loops?step loops are repeated blocks of field in a screen.77. Is ABAP a GUI language?Yes.ABAP IS AN EVENT DRIVEN LANGUAGE.78. Normallyhow many and what files get created when a transaction program is written?What is the XXXXXTOP program?ABAP/4 program.DYNPRO79. What are the include programs?When the samesequence of statements in several programs are to be written repeadly they are coded in include programs (External programs)and are included in ABAP/4 programs.80. Can you call a subroutine of one program from another program?Yes- only external subroutines Using 'SUBMIT' statement.81. What are user exits? What is involved in writingthem? What precations are needed?82. What are RFCs? How do you write RFCs on SAP side?83.What are the general naming conventions of ABAP programs?Should start with Y or Z.84. How do youfind if a logical database exists for your program requrements?SLDB-F4.85. How do you find thetables to report from when the user just tell you the transaction he uses? And all the underlying data is from SAP structures?Transcode is entered in command field to open the table.Utilities-Table contents-display.86. How do you find the menu path for a given transaction in SAP?87. What are the differentmodules of SAP?FI,CO,SD,MM,PP,HR.89. How do you get help in ABAP?HELP-SAP LIBRARY,bypressing F1 on a keyword.90. What are different ABAP/4 editors? What are the differences?91.What are the different elements in layout sets?PAGES,Page windows,Header,Paragraph,Character String,Windows.92. Can you use if then else, perform ..etc statements in sap script?yes.93. Whattype of variables normally used in sap script to output data?94. How do you number pages in sapscript layoutoutputs?95. What takes most time in SAP script programming?LAYOUT DESIGN AND LOGOINSERTION.96. How do you use tab sets in layout sets?97. How do you backup sapscript layoutsets? Can you download and upload? How?98. What are presentation and application servers in SAP?The application layer of an R/3 System is made up of the application servers and the message server. Application programs in an R/3 System are run on application servers. The application servers communicate with the presentationcomponents, the database, and also with each other, using the message server.99. In an ABAP/4 program how do youaccess data that exists on a presentation server vs on an application server?i)using loop statements.ii)flat100. What are different data types in ABAP/4?Elementary -predefined C,D,F,I,N,P,T,X.userdefined TYPES.ex: see in intel book page no 35/65Structured -predefined TABLES.userdefined Field Strings and internal tables.101. What is difference between session method and Call Transaction?102. Setting up a BDCprogram where you find information from?103. What has to be done to the packed fields before submitting to aBDC session.fields converted into character type.104. What is the structure of a BDCsessions.BDCDATA (standard structure).105. What are the fields in a BDC_Tab Table.program,dynpro,dynbegin,fnam,fval.106. What do you define in the domain and data element.Technical details like107. What is the difference between a pool table and a transparent table andhow they are stored at the database level.ii)Pool tables is a logical representation of transparent tables.Hence no existence at database level. Where as transparent tables are physical tables and exist at database level. 108. What is cardinality?For cardinality one out of two (domain or data element) should be thesame for Ztest1 and Ztest2 tables. M:NCardinality specifies the number of dependent(Target) and independent (source)entities which can be in a relationship.。
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.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语法考试系统试题----通用含答案
A
SELECT DISTINCT LIFNR SELECT COUNT( EBELN ) SELECT * INTO TABLE
INTO pxLIFNR FROM INTO COUNT FROM EKKO T_EKKO FROM EKKO
B
小于
等于
大于或者等于
D
SELECT SINGLE
READ TABLE
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
NAME VALUE 'LILY'.
A
IF
CASE
WRITE
D
EXIT
CONTINUE
STOP
A
DATA
TABLES
PERFORM
D
F
N
P
C
S1 CN S2
S1 CA S2
S1 NA S2
D
NS
CS
NA
A
%
+
!
C
排序表
簇表
哈希表
D
内表
数据元素
域
A
将新行附加内表第一行
将新行附加至内表任意 一行
如果已存在相同表关键 字值的行,collect语句
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. /nb. /hc. /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.如果已存在相同表关键字值的行,以下哪个操作将工作区中数字字段的内容加到已有数据行中数字字段的内容之上。
ABAP测试题及答案
第二周测试题1.选择屏幕元素PARAMETERS和SELECT-OPTIONS有何区别?(6)答:PARAMETERS是单值框,SELECT-OPTIONS表示范围。
2.内表有哪几种类型?结构体、表头和工作区有什么区别?(4)答:三种类型:标准表,排序表,哈希表.结构体、表头和工作区实质上一样,都是变量的集合.只是根据用途不同称呼不同罢了.3.AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field1>. 此代码作用是什么?(4)答:此代码用于设置<field1>的输入值帮助也叫F4帮助.4.简述INNER JOIN 和LEFT OUTER JOIN 的区别。
(12)答:两者都用于数据库查询语句SELECT中,用于表之间联合查询,但有区别:如使用INNER JOIN:查询结果仅包含两个表中彼此相对应的记录(如果右侧表中没有对应的记录,则左侧表中的记录也不抽出). 如使用LEFT OUTER JOIN:查询结果包含其左侧表中的所有记录,但仅包含其右侧表中相对应的记录。
(如果右侧表中没有对应的记录,则左侧表中的记录同样抽出)5.在内表操作中:APPEND 和COLLECT有什么区别?(4)答:APPEND往内表中增加一条记录,COLLECT会先与内表中已有记录比较非数值字段,如果有相同的,则数量字段相加而不会新增一条记录。
如果没有相同的,则与APPEND一样增加一条记录。
6.在内表数据清理中:REFRESH 和CLEAR 有什么区别。
(4)答:对于不带表头的内表,两者没有区别,均清空表所有记录。
但对于带表头的内表,REFRESH清空所有表记录但不清空表头,而CLEAR清空表头但不清空记录。
7.选择屏幕初始化和数据校验分别在哪个事件下。
(4)答:初始化在事件:INITIALIZATION数据校验在事件: AT SELECTION-SCREEN.8.LOOP与READ分别是什么作用。
ABAP开发-面试题
Q1.什么是授权对象?在ABAP 程序中使用哪条语句进行授权检查?答案:授权对象由一组字段组成,这些字段中的值将被用于进行授权检查。
ABAP 程序中使用AUTHORITY-CHECK 语句根据授权对象进行授权检查。
在AUTHORITY-CHECK 语句中,必须指明授权对象的所有字段,但有一个例外,可以用DUMMY 关键字来绕过某个字段的检查。
一个授权对象中最多可以定义10 个字段。
Q2.向SAP 表中添加字段的方法是哪两种?答案:这两种方法是:Append 结构(Append Structure)和自定义Include(Customizing Include)。
Append 结构是在向表尾添加字段时创建的,自定义Include 由SAP 开发人员指定,以使用户可以创建新字段。
Q3.请列出用户修改SAP 标准功能的不同方式。
答案:SAP Standard 可以通过Personalization、Customizing、Modifications、Enhancements 及自定义ABAP 程序进行更改。
这些方式的示例如下:Personalization——Personalization 技术包含创建变式、设置/获取参数及活动组(Activity Groups)。
Customizing——是最常用的使用SAP 工具(如R/3 Reference Model and Implementation Guide)更改SAP Standard 的方式。
可以认为Customizing 是实施R/3 所必需的,通常由Functional Team 来执行。
Enhancements——常由开发Team 执行,包含的活动有:字典增强、Funciton Module Exits、菜单和屏幕出口及Business Add-ins (BADI)。
自定义ABAP 程序——可以与SAP 对象或自定义开发的对象一起工作。
Modifications——不建议对SAP 对象使用Modifications。
SAP ABAP试题
一选择题(共40题,每题2分, 未特殊注明则均为单选)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.选择事件的执行顺序正确的一组.( B )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.在层级报表的开发里,下面哪个条件不是必需的.()CA)对内表先按层级字段排序B)对内表和结构定义时层级字段必须排在前面C)层级字段不能出现在at 和 end at 语句之外D)层级字段必须存在14.在明细报表的开发中,双击一行转向明细报表的取数依据是.( C )A)你双击那行的主键字段B)你双击的那个字段本身C)你双击那行在循环中预先hide的字段D)你双击那行在循环中预先已经write出来的字段15.在交互式报表的设计中,假如想在明细报表里加入任意字段的排序功能,请选择正确的选项(多选).()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.要对表格控件增加一个可由用户写入信息的列,下面哪种方式是可行的(多选).()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,这个搜索帮助的输出效果是. ()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)在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显示一个表格,如果第一页是一种格式,后面几页是一种格式,如何设计. ()A)第一页指向第二页,第二页指向空B)第一页指向自己,第二页指向第一页C)第一页指向第二页,第二页指向第一页D)第一页指向第二页,第二页指向自己33.如果想设计SMARTFORM中大家公用的文本,应该使用什么技术. ()A)SMART TEXTB)SMART STYLEC)SAP SCRIPTD)TEXT MODULE34.下面对于SMARTFORM中TABLE和 TEMPLATE的描述,正确的是. ( A )A)TEMPLATE用来设计表格模版,TABLE用来设计表格实体B)TEMPLATE用来设计表格样式,TABLE用来设计表格实体C)TEMPLATE用来设计静态表格,TABLE用来设计表格实体D)TEMPLATE用来设计静态表格,TABLE用来设计动态表格35.SMARTFORM中TABLE的排序事件的触发场合是. ()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)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。
ABAP自测试题
ABAP自测试题1. When does a BADI default implementation execute----------------------------------------------------------Only if the developer specifies the default implementation should be e xecutedThe default implementation always executes unless specified otherwis eWhen only active implementation existsWhen no active implementation exists2. A workflow model is made up of steps, that are assigned to----------------------------------------------------------PeopleEventsRolesTriggersDepartments3. What is the maximum number of allowed Detail lists----------------------------------------------------------Unlimited1020As much as the roll area allows4. Which layer in an R/3 client server architecture processes ABAP pr ograms--------------------------------------------------------------------------------ApplicationDatabasePresentationInternet5. Your screen has a table control defined to it. In the PAI, what does the SY-LOOPC system variable contain.--------------------------------------------------------------------------------Number of filled linesLoop CounterNumber of table control lines6. Identify the characteristics of the self reference ME--------------------------------------------------------------------------------The self-reference ME can be used to access individual componentsNone of the answers are correctSelf references allow an object to give other objects a reference to it. All answers are correctThe reference ME can be used to determine the dynamic type of the r eference variable in the debugger7. Mark the accepted formats of ALE data transfer--------------------------------------------------------------------------------(More than one answer is correct)HTTPBAPIJAVAXMLIDOC8. Table ZMYTABLE is created in the dictionary. When does the table g et created in the underlying database--------------------------------------------------------------------------------At the end of the table creation after it is savedWhen the database administrator physically creates the tableAt the beginning of the table creationWhen the table is activatedIt does not correspond to an object in the underlying database and d oes not get created9. Identify the valid statement-------------------------------------------------------------------------------- Constants: C1(4) type D.Constants: C1(4) type C value 'ABCD'.Constants: C1(4) type C like mytab-booking.Constants: C1(4) type C.10. What is SAP Software Change Registration (SSCR) used for--------------------------------------------------------------------------------To register SAP modifications made by a developerTo register Customizing made by a developerTo register custom developed modifications made by a developerTo register enhancements made by a developer11. Screen 200 follows screen 100. Screen 100 is displayed with GUI Status 'BASE'. Screen 200 is then displayed without issuing the SET PF -STATUS what will take place-------------------------------------------------------------------------------- Screen 200 is displayed without a status.Status 'BASE' is displayedRun Time ErrorStandard List Status12. Suppose LFA1 is the root node, LFBK and LFB1 are branches of LF A1, and LFC1 is a branch of LFB1. IF the report contains only one sing le GET statement for LFB1, the processing passes through which table s--------------------------------------------------------------------------------LFA1,LFBK,LFB1.LFC1LFA1, LFBK, LFB1LFA1 and LFB113. Mark the valid usage of the Read Statement.--------------------------------------------------------------------------------(More than one answer is correct)Read Line 3 of Current PageDO. Read Line SY-INDEX. ENDDO.Read Line 3 of Next PageRead Current Line of Table ITAB14. In what case would you typically use a NUMC field--------------------------------------------------------------------------------Where there is a need for numbers, characters, and arithmetic operati onsWhere only numbers are allowed and there is no need for arithmetic operationsWhere only numbers are allowed and there is a need for arithmetic o perations15. How many At Exit-Command Modules are allowed in the PBO--------------------------------------------------------------------------------2Unlimited116. Where does information come from when you press F1 on a scree n field--------------------------------------------------------------------------------Domain short textDomain Help valuesSearch helpData element documentation17. Interface Methods are made available by calling the static method 'get_instance' of the which service class--------------------------------------------------------------------------------if_ex_badicl_exithandler_badicl_exithandlerexithandler18. What is the order of transport in PBO when a table control is defi ned in your module pool-------------------------------------------------------------------------------- Table control fields followed by the remaining screen fieldsScreen fields followed by table control fieldsDictonary Fields followed by Program FieldsAll fields regardless of table control definition are transported at the beginning of PBO19. Singleton Concept is used to _________________--------------------------------------------------------------------------------Preventi multiple instantiation of a class for a program contextPrevent multiple execution of a single methodPrevent multiple definition of same named methodsAllow single classes only in a program20. What methods would initialize a screen field that is defined with p arameter id CAR--------------------------------------------------------------------------------(More than one answer is correct)Use the SET Parameter in the PBO of the DYNPROSet the screen painter attribute GET Parameter and fill in the Paramet er ID field with CARUse the GET Parameter in the PBO of the DYNPROUse the GET Parameter in the PAI of the DYNPRO21. Mark the valid values for a checkbox .--------------------------------------------------------------------------------(More than one answer is correct)1Any Alpha CharacterXSpace22. Identify the internal table types.-------------------------------------------------------------------------------- (More than one answer is correct)StandardSortedHashedIndentedKey23. Mark the valid logical nodes.-------------------------------------------------------------------------------- (More than one answer is correct)StructureFileTableComplex Data ObjectNode24. At what point does a parameter ID get reset-------------------------------------------------------------------------------- User sign offFree MemoryProgram Execution EndsWhen you Flush the SPA/GPA memory25. Define Logical Database.-------------------------------------------------------------------------------- Defintion of a Relational Data ModelAn ABAP/4 Reading Program used to read and process dataA Reporting ToolA method to update data26. Which field gets set in the calling program if an exception occurs i n a function module--------------------------------------------------------------------------------sy-subrcinterface parametersexception parametersexception integers27. What must be assigned to a module pool in order for it to be exec uted--------------------------------------------------------------------------------Program TypeTransactionEventModule28. What is the structure of the internal table when a select-options is declared in your program.-------------------------------------------------------------------------------- Sign Operator High LowSign Option Low HighHigh Low Sign OperatorLow High Sign Option29. Identify the Characteristics of a Final Class-------------------------------------------------------------------------------- methods cannot be explicitly designated as FINALall answers are correctNo answers are correctcannot have subclassescontains final methods implicitly30. How many fields are available for viewing in field display mode w hile in debugger--------------------------------------------------------------------------------4unlimited2831. Which part of the internal table syntax determines how abap acce sses the rows of the internal table--------------------------------------------------------------------------------key sequencetable typeuniqueness attributeline type32. Which Number range function would you use to determine if an ex ternal number lies in a specified number range interval.-------------------------------------------------------------------------------- NUMBER_RANGE_INTERVAL_LISTNUMBER_GET_INFONUMBER_GET_NEXTNUMBER_CHECK .NUMBER_RANGE_EXTERNAL_CHECK33. What can occur if a conversion rule does not exist for fields of inc ompatible data types--------------------------------------------------------------------------------(More than one answer is correct)A run time error for statically defined fieldsA syntax error for statically defined fieldsA syntax error for dynamically defined fieldsA run time error for dynamically defined fields34. Which statements will cause a syntax check error-------------------------------------------------------------------------------- (More than one answer is correct)Data: x(3) type c.Constants: x(3) type c value '123'.Data: x(3) type c value '123'.Data: x(3) type I.Constants: x(3) type c.35. What does a context object provide-------------------------------------------------------------------------------- (More than one answer is correct)Stored calculated values on the presentation serverIncreased Database LoadReuseabilitySmaller and simpler ProgramsObject oriented Programming36. What are the rules for Event parameters--------------------------------------------------------------------------------(More than one answer is correct)Events can only have EXPORTING parametersEXPORTING Parameters for events can only be passed by valueEXPORTING Parameters for events can only be passed by reference Events also allow RETURNING parameters37. Choose the short form of the method call below-------------------------------------------------------------------------------- call method rf_car->calculate_cost importing ex_size = v_size.rf_car->calculate_cost( importing ex_size = v_size ).rf_car->calculate_cost importing ex_size = v_size.calculate_cost( importing ex_size = v_size ).rf_car->calculate_cost (importing ex_size = v_size).38. Where is the visibility of class components defined--------------------------------------------------------------------------------Class DefinitionObject InstanceClass MethodsClass Implementation39. What makes up a dialog step-------------------------------------------------------------------------------- One sequence of a PBO followed by a PAIOne sequence of a PAI followed by a PBOAll PBO and PAI modules in the Module poolAll ABAP Modules of a screen40. What access method is available for hash tables?-------------------------------------------------------------------------------- IndexedSortedHashedKeyed41. CALL TRANSACTION has been issued in an ABAP. What code in the called transaction will return to the point of call .-------------------------------------------------------------------------------- Leave to TransactionStop ProgramExit.Leave Program42. Full buffering would be appropriate for what type of tables.--------------------------------------------------------------------------------Internal TablesTables with generic KeysTransaction TablesSmall Static tables43. What class is used to display the ALV Grid Control--------------------------------------------------------------------------------cl_gui_alvcl_gui_alv_gridcl_gui_custom_containercl_gui_custom_grid44. Which update request always run asynchronously-------------------------------------------------------------------------------- LocalV2TransactionalV145. What is required in the flow logic in order to process a table contr ol?--------------------------------------------------------------------------------A loop .. endloop statement for the table control only in the PBOA loop .. endloop statement for the table control only in the USER_CO MMAND moduleA loop .. endloop statement for the table control in both the PBO and the PAIA loop .. endloop statement for the table control only in the PAI46. Identify the statements that best describe the visibility of classes -------------------------------------------------------------------------------- (More than one answer is correct)Local Classes are available only to programs in the same development classLocal Classes are available only to the program where the class is def inedGlobal Classes are available only from programs belonging to the sam e development classGlobal classes are centrally available to all ABAP programs47. Transaction 'ZABC' contains mandatory fields on the first screen. A Dialog program issues the statement CALL Transaction ZABC and Skip First Screen. What is required in the first screen of transaction ZABC for the call to function properly.--------------------------------------------------------------------------------The mandatory fields must be filled in with "Get Parameter" statement or default values in Transaction ZABCThe first screen in transaction ZABC can indicate that mandatory field s do not need to be filled in if called by another transactionExport the screen fields to memoryThe mandatory fields must be filled in with "Set Parameter" statemen t or default values in Transaction ZABC48. What is the term used when a change is made to a customer obje ct in a system other than the original system-------------------------------------------------------------------------------- CorrectionChangeModificationRepair49. Changing the view of an instance of a class with more details is r eferred to as-------------------------------------------------------------------------------- dynamic referencingnarrowing castwidening castup cast50. Identify the types of SAP GUI available--------------------------------------------------------------------------------(More than one answer is correct)HTMLWindowsXMLLinuxJavaPHP51. Which of the following answers characterize ABAP OO events--------------------------------------------------------------------------------(More than one answer is correct)Classes subscribe to eventsClasses trigger eventsEvents subscribe to classesStart-of-selection is an OO eventMethods subscribe to classes52. A screen field has been dynamically changed in a dialog program. When does it get re-initialized.--------------------------------------------------------------------------------At PAI executionAt the end of the transactionAt PBO executionOnly when the program encounters more code to modify the field attr ibutes53. What are the minimum requirements for Processing User requests in a Dynpro.--------------------------------------------------------------------------------(More than one answer is correct)The last field of the element list of the screen has the name OK_CODEOK_CODE is Defined in the TOP IncludeOK_CODE Checking is performed in the Screen Flow LogicDefine a GUI Status54. What tasks could be perfomed in SAP Service Marketplace--------------------------------------------------------------------------------(More than one answer is correct)Registering changes to customer objectsRegistering customer objects for local developmentRegistering developersRegistering changes to SAP objects55. Identify the basic objects of the data Dictionary.--------------------------------------------------------------------------------(More than one answer is correct)Data ModelsTablesDocumentationData ElementsDomains56. Finish the sentence. Propogating exceptions requires ___________ _______.--------------------------------------------------------------------------------the Raising cx_class parameter as part of the method signature of the calling methoda Cleanup Statementa handler for the exceptionthe Raising cx_class parameter as part of the method signature wher e the exception is raised57. Which parameter is used to refine the values returned by a search help-------------------------------------------------------------------------------- restrict value rangeImportExportadministration data58. What is true about the SAP Repository-------------------------------------------------------------------------------- (More than one answer is correct)It stores development objectsIt stores client-specific objectsObjects created using the IMG are stored in the repositoryObjects in the repository can be viewed across clients59. Identify the synchronous update techniques.--------------------------------------------------------------------------------(More than one answer is correct)PERFORM.. .. ON COMMIT and WAITCOMMIT WORK AND WAITCALL FUNCTION in Update TaskUpdate table.. ..60. What is used to group repository objects--------------------------------------------------------------------------------(More than one answer is correct)Application HierarchyChange requestsPackageRepository Information System61. Where does the Modification GROUP assignment of fields get defin ed.--------------------------------------------------------------------------------In the DynproIn the screen painterDo you really careUsing the SET GROUP statement62. What relationship can be established in watchpoints.-------------------------------------------------------------------------------- combination of OR or AND conditionsOR conditions onlyAND conditions onlyany boolean operators63. Identify the standard methods commonly found in BAPI's-------------------------------------------------------------------------------- (More than one answer is correct)GETDETAILCREATEFROMDATACREATELISTUPDATEDETAILGETLIST64. Which statements would conclude a SAP LUW.-------------------------------------------------------------------------------- (More than one answer is correct)ROLLBACK WORKCOMMIT WORKCALL TransactionMESSAGE S10165. Which is not a valid operation that can be performed on sequentia l files.-------------------------------------------------------------------------------- Read datasetOpen datasetClose datasetWrite datasetTransfer dataset66. What tool or technique would be used to move the definition of a global class to an implemented interface-------------------------------------------------------------------------------- Web DynproObject NavigatorBORRefactoring AssistantBAPI wizard67. What is a valid configuration for an R3 System.-------------------------------------------------------------------------------- (More than one answer is correct)One Application server and one Database serverMany Application servers and one Database serverOne Application server and many Database serversNo Application server and one Database server68. What can be done using the SAP Service Marketplace--------------------------------------------------------------------------------(More than one answer is correct)Determine fixes/patches for problem areasCommunicate with user forumsInquire about product pricing informationOrder Technical BooksFind out when the next Support package is available69. What is true about the End-of-page Event.--------------------------------------------------------------------------------(More than one answer is correct)Works only if you reserve space in the Report Statement using the lin e-count statementOccurs when the page break has been triggered by the New-Page sta tementAutomatically creates a footer on the last page of a listUsed to create Footers70. How would you define a lock object--------------------------------------------------------------------------------Create it as an object in the dictionaryThrough a Function CallUse the Data Browser71. Identify the key word that determines if a CMOD function exit has been provided-------------------------------------------------------------------------------- CALL CUSTOMER-SUBSCREENCALL PROGRAM-EXITCALL CUSTOMER-FUNCTIONCALL USER-EXIT72. Select the methods used to access data on the database.--------------------------------------------------------------------------------(More than one answer is correct)Read TableGet nodeNative SQLABAP/4 Open SQLLDB73. What does the following code achieve--------------------------------------------------------------------------------At Selection-Screen on value-request for sales.Call screen 100.When the user presses F1, Screen 100 is displayed in addition to the normal help screenWhen the user presses F4, Screen 100 is displayed in addition to the normal help screenWhen the user presses F4, Screen 100 is displayed instead of the nor mal possible values search helpWhen the user presses F1, Screen 100 is displayed instead of the nor mal possible values search help74. Match the class with their definition type--------------------------------------------------------------------------------1 ZCL_EMPLOYEE2 ZCA_EMPLOYEE3 ZCB_EMPLOYEEA AbstractB FinalC Persistent1-A, 2-B, 3-C1-C, 2-A, 3-B1-C, 2-B, 3-A75. Pick the syntax for a functional method with only 1 parameter--------------------------------------------------------------------------------(More than one answer is correct)refvar->method(im = p1)refvar->method receiving()refvar->method(p1)refvar->method returning()76. Which transaction is used to make dictionary adjustments when u pgrading versions of SAP--------------------------------------------------------------------------------SP01SPAUSPDDCMOD77. What does the DESCRIBE TABLE statement provide to the program --------------------------------------------------------------------------------Key lengthKey DefintionKey UniquenessAccess Type78. What class is used for method load_gui_status in a context menu--------------------------------------------------------------------------------cl_context_clascl_menucl_ctmenumenu_class79. "Call Function?Starting New Task" is an example of what type of c all-------------------------------------------------------------------------------- DirectSynchronousAsynchronousBatch80. What is the sequence of events and order of data transported in t he following code. Select the correct order-------------------------------------------------------------------------------- Process After InputModule Exit at exit-commandField ABC Module Validate_ABC.10 All fields not defined in FIELD statements20 System performs Auto Field Checking30 Fields in FIELD Statements10, 20, 3020, 30, 1020, 10, 3081. Default Page Headings are created on which type of list.-------------------------------------------------------------------------------- SecondaryAll listsBasic82. When does the dialog processor perform automatic checks-------------------------------------------------------------------------------- After PAI Processing is completeBefore PBO Processing BeginsAfter the User has pressed enter and before the PBO modules are pro cessedAfter the User has pressed enter and before the PAI modules are pro cessed。
ABAP考题和答案
一、选择题(每题2分,多选题选择不全得1分,选择有错误项不得分)1 of 25 What is the value of result after the following code is executedDATA: result TYPE I.result = 5 / 10.result = 2result = 1result = .5result = 02 of 25 Which use of the FORM statement works successfully when passing IT to FORMTypes: Begin of line,...End of Line.Types IT_LINE Type Standard table of line.Data IT TYPE IT_LINE.Perform FORMA using ITFORM FORMA Using P_IT type IT_LINEFORM FORMA Using P_IT like IT_LINEFORM FORMA Using P_IT like LINEFORM FORMA Using P_IT like LINE3 of 25 What is the effect of the Move-corresponding between 2 fields strings in the followingcodeData: begin of fs1,Field1 type c value ‘1’,Field2 type n value ‘2’,Field3 type I value 3,end of fs1.Data: begin of fs2,Field3 type c,Field4 type n,Field5 type I,end of fs2.Move-Corresponding fs1 to fs2fs2-field3 = 3All fields of fs1 are moved to fs2fs2-field3 = 1fs2-field5 = 34 of 25What Function is used to display the ALV Grid ControlREUSE_ALV_LIST_DISPLAYALV_TABLE_CREATEREUSE_ALV_GRID_DISPLAYALV_GRID_DISPLAY5 of 25 Identify the one field that is not always displayed in the debuggerSY-DBCNTSY-SUBRCSY-LISELSY-TABIXWhat is true about the syntax of ABAP6 of 25Multiple statements are not allowed in a single lineComments begin with a single quotation signStatements must fit on one lineWords must always be separated by at least one space7 of 25 What does the following statement mean write ‘Hello’(001)Write 'Hello'(001)Add the variable 'Hello' to message 001Write out 'Hello' and the contents of text element 001This is not a valid statementIf Text Element 001 is not in your login language, then 'Hello' is displayed8 of 25 Identify the internal table types(More than one answer is correct)StandardIndentedSortedHashedKey9 of 25 Refer to the following code. What is the value of Field1 and Field2SPLIT 'SAPDOMAIN' AT 'DO' INTO FIELD1 FIELD2.Field1 contains 'SAP', Field2 contains 'MAIN'Field1 contains 'DO', Field2 contains 'DOMAIN'Field1 contains 'SAPDO', Field2 contains 'MAIN'What is the development class for local objects10 of 25Z00BlankLocal11 of 25Where are local data types definedABAP WorkbenchDictionaryIn ABAP Programs12 of 25What program type can be executed directlyFunction GroupIncludeClassWhich addition to the Parameters statement is not valid13 of 25DefaultLikeValueWhat is the ALV Grid Control14 of 25It is a generic tool for displaying lists in screensIt is a link control tool to Query and QuickviewerIt is a data collection tool15 of 25Identify the valid statementConstants: C1(4) type D.Constants: C1(4) type C value 'ABCD'.Constants: C1(4) type C like itab-booking.16 of 25 Which statements allow you to define data in your ABAP program(More than one answer is correct)DataParametersTablesSelection-ScreenClass17 of 25 If you want the debugger to stop when the value of ‘Fielda’changes. Which optionwould you set in the debuggerWatchPointOverviewFieldsObject18 of 25 What is the result of the following date calculation? Assume current date is 20001220Data: Today(8) type C.Today = sy-datum.Today = 10.1000122020011210200012201019 of 25 In what case are optional parameters allowed in the passing of parametersFormsBothFunctionsNeither20 of 25ANSI SQLISO 900 SQLOPEN SQLNative SQL21 of 25SortedKeyedHashedStandard22 of 2510 Report rpgm120 data: fielda type c value ‘A’,30 fieldb type c value ‘B’.40 write: / fielda,50 new-page.60 write: / fieldb70 top-of-page.80 write: / 'This is the title'.80, 40, 50, 80, 6040, 80, 50, 80, 6040, 50, 60, 70, 8023 of 25REPORT ZPGM NO STANDARD PAGE HEADING.DO 8 TIMES.WRITE / ' '.ENDDO.SKIP.WRITE 'AAAA'.29101What can be assigned directly to a data element24 of 25check tablebuilt-in typedomaintable fieldtable typeIdentify the basic objects of the data Dictionary.25 of 25DomainsData ElementsTablesData ModelsDocumentation二、简答题1、写出四个ABAP的事件(5分)2、写出10个你知道的Tcode,并用一句话写出其功能(5分)3、试描述透明表、数据元素、域、数据类型之间的关系(10分)4、创建一个透明表和一个结构各分什么步骤?(10分)5、列出三种内表的名称,每个的适用范围。
ABAP试题(含部分参考答案)
ABAP试题1,下面的语句中,哪一个语句编译会报错(假设XXX 和结构sflight都已经定义). ()A)write at 12 XXX.B)data type type sflight.C)sflight-price = a+b.D)write sy-vline.2.在ABAP/4的开发工作中,哪一个TCODE是直接进入就可以创建程序,函数组以及程序内部各种元素的. ()A) SE80 B) SE11 C) SE93 D)SE163.直接进入就可以查询表的结构是哪个TCODE. ( )A) SE80 B) SE11 C) SE93 D)SE164.很多表当中都有一个字段,叫做MANDT, 为第一个主键,这个字段的用处是.()A)区分后台数据库的类型B)区分表中记录属于哪个客户端(client)C)区分表的数据量大小D)SAP系统保留字段5.下面的定义语句中,哪一个语句定义出来的结果是一个内表. ()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)内表结构基本数据对象B)内表程序语句C)字符数字日期D)语句程序表7.语句loop at itab into wa. 的准确意思是. ()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,其中后三次分别代表的是内表还是结构. ()A)内表 内表 内表B)内表 结构 内表C)内表 结构 结构D)内表 内表 结构9.在设计报表程序时,选择的程序类型应该是.()A)可执行程序B)模块池程序C)包含程序D)函数组程序10.在报表程序的屏幕筛选条件里,SELECT-OPTIONS定义出来的元素是.()A)内表B)结构C)基本数据对象D)指针型字段11.在报表程序的屏幕事件里,有一个事件叫做AT LINE-SELECTION.参见如下代码:WRITE / ‘ABAP’.AT LINE-SELECTION.WRITE /‘TEST’.那么,以下哪种情况会发生.()A)先显示出一行ABAP,当用户双击一次时,屏幕上在原来ABAP那行下面换行一次显示出一行新的TESTB)先显示出一行ABAP,当用户双击一次时,屏幕上每次只显示出一行的TEST取代原先的屏幕C)先显示出一行ABAP,当用户双击一次时,屏幕上永远只显示出一行TEST(放在原来ABAP那行下面)D)先显示出一行ABAP,当用户第一次双击时,产生一个新屏幕,显示一行TEST,然后每次双击都在其下换行显示一行新的TEST12.选择事件的执行顺序正确的一组.()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-SELECTION13.在层级报表的开发里,下面哪个条件不是必需的.()A)对内表先按层级字段排序B)对内表和结构定义时层级字段必须排在前面C)层级字段不能出现在at 和 end at 语句之外D)层级字段必须存在14.在明细报表的开发中,双击一行转向明细报表的取数依据是. ()A )你双击那行的主键字段B )你双击的那个字段本身C )你双击那行在循环中预先hide 的字段D )你双击那行在循环中预先已经write 出来的字段15.在交互式报表的设计中,假如想在明细报表里加入任意字段的排序功能,请选择正确的选项(多选). ( )A )要先用get cursor field XXX.取得字段B )对内表排序时该字段要用括号括起来C )在排序时要把该字段加上一个数字以去除前面的结构名称(如果是用结构-字段定义的话)D )排序后显示完要把sy-lsind = 0,以防止产生多余的list16.在屏幕编程的设计中,下面共有四个主要步骤:a 设计屏幕的格式(有哪些字段,放在什么位置)b 设计屏幕的整体属性c 设计屏幕上字段的属性d 编写屏幕的流逻辑( flow logic )请选择通常请况下正确的顺序. ( )A )a b c dB )c d b aC )b a c dD )d b a c17. 如果屏幕A 的下一个屏幕仍然是A , 那么当执行程序时,对于屏幕的主要事件,下面哪种顺序是正确的. ()A )A 的 PAI A 的 PBO A 的 PAI A 的 PBOB )A 的 PBOA 的 PAI A 的 PAI A 的 PBO C )A 的 PAI A 的 PAI A 的 PBO A 的 PBOD )A 的 PBO A 的 PAI A 的 PBO A 的 PAI18.屏幕编程中一个屏幕所使用的工具栏应如何设计. ( )A) 先设计一个Gui Status,再在程序中绑定B) 先设计一个Gui Titles,再在程序中绑定C) 在程序中用Add button 语法添加D )在屏幕设计格式的界面上添加工具栏及其按钮19. 以下四种系统变量,各是什么含意. ( )SY-UCOMM SY-DATUM SY-SUBRC SY-TABIXA )用户触发的屏幕上的功能码 当前日期 当前时间 循环次数B )当前日期 当前时间 循环次数 用户触发的屏幕上的功能码C )用户触发的屏幕上的功能码 循环次数 语句执行结果返回值当前日期D)用户触发的屏幕上的功能码当前日期语句执行结果返回值循环次数20.一个程序的子屏幕编程是如何实现的. ()A)子屏幕区域外加屏幕(属性设置为正常屏幕)B)自定义控件外加屏幕(属性设置为正常屏幕)C)子屏幕区域外加屏幕(属性设置为子屏幕)D)自定义控件外加屏幕(属性设置为子屏幕)21.对于表格控件和内表的绑定的做法,下面哪种说法是正确的. ()A)PBO时同步循环内表和表格控件把内表的值写入表格控件,PAI时用同样的循环把表格控件的值写回内表B)PBO时同步循环内表和表格控件把表格控件的值写入内表,PAI时用同样的循环把内表的值写回表格控件C)在定义内表时定义与之绑定的表格控件,PBO和PAI事件要各循环内表一次D)在制作表格控件时定义与之绑定的内表,PBO和PAI事件要各循环表格控件一次22.如果要把表格控件某列的属性动态的改变成不可输入,下面哪种做法是可行的. ()A)在PAI事件中修改table的general attribute值B)在PBO事件中修改table的general attribute值C)在PAI事件中取得table的COLS属性,利用它本身是个内表的特点循环找到该列修改之,修改完后写回COLS内表D)在PAI事件中取得table的COLS属性,利用它本身是个结构的特点找到其中表示该列的字段修改23.要对表格控件增加一个可由用户写入信息的列,下面哪种方式是可行的(多选).()A)在设计屏幕上点击dictionary / program fields window 按钮,输入字典表或者程序中定义的元素,把它拖到表格控件中B)在设计屏幕上修改table的attributes,增加一列C)在设计屏幕中的表格控件里拖入一个text field(文本字段)D)在设计屏幕中的表格控件里拖入一个input/output field(输入/输出字段)24.在编写ALV GRID CONTROL时,应遵循以下哪种顺序. ()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,这个搜索帮助的输出效果是. ()A)先输出两个栏位的筛选屏幕,再按照筛选结果输出两个栏位的表格信息让用户选择,选择结果影响到四个栏位B)先输出两个栏位的表格信息让用户选择,选择结果影响到四个栏位C)先输出四个栏位的表格信息让用户选择,选择结果影响到两个栏位D)先输出四个栏位的筛选屏幕,再按照筛选结果输出四个栏位的表格信息让用户选择,选择结果影响到两个栏位26.ABAP的OPEN SQL的取数语句是否可以实现数据库无关性,其原因是什么. ()A)不可以,数据库的SQL格式不同B)可以,因为它的名字叫做OPEN SQLC)可以,因为中间有一层DB Interface做转换D)不可以,各种数据库的版本不同27.对ABAP的OPEN SQL语句的两个返回系统变量,描述正确的是. ()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.执行后对系统的影响为. ()A)没有任何影响B)TA有两条记录1 / ‘first’/ 19 和 2 / ‘second’ / 20C)TA有一条记录2 / ‘second’ / 20D)系统出错退出,对表没有任何影响29.SAP对锁的主要实现手段是. ()A)在SE11里加锁对象,然后在程序中调用锁对象生成的函数B)在数据库里加锁,在程序中声明C)由数据库自动进行,SAP不用处理D)在程序中通过SQL语句实现30.有一程序,起始画面里有一个用户可以输入字段为A ,如果想在程序进入的时候自动设置成上次退出时的值,可以采用的方法是. ()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的对应关系是. ()A)一个SMARTFORM对应多个程序B)一个程序对应多个SMARTFORMC)一个SMARTFORM对应多个程序,一个程序也可以对应多个SMARTFORMD)一个SMARTFORM对应一个程序32.设计SMARTFORM显示一个表格,如果第一页是一种格式,后面几页是一种格式,如何设计. ()A)第一页指向第二页,第二页指向空B)第一页指向自己,第二页指向第一页C)第一页指向第二页,第二页指向第一页D)第一页指向第二页,第二页指向自己33.如果想设计SMARTFORM中大家公用的文本,应该使用什么技术. ()A)SMART TEXTB)SMART STYLEC)SAP SCRIPTD)TEXT MODULE34.下面对于SMARTFORM中TABLE和 TEMPLATE的描述,正确的是. ()A)TEMPLATE用来设计表格模版,TABLE用来设计表格实体B)TEMPLATE用来设计表格样式,TABLE用来设计表格实体C)TEMPLATE用来设计静态表格,TABLE用来设计表格实体D)TEMPLATE用来设计静态表格,TABLE用来设计动态表格35.SMARTFORM中TABLE的排序事件的触发场合是. ()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)60B)70C)140D)15037.SAP提供的修改系统标准功能的方案里,哪几种是不需要修改系统标准程序就可以实现的. ()A)Customer Develepment ,Enhancement, ModificationB)Customer Develepment ,Customizing, ModificationC)Customer Develepment ,Customizing, EnhancementD)Enhancement, Modification,Customizing38.对于客户定制需求的解决方案,应该遵循哪一种顺序进行为宜. ()A)先判断能否配置;再判断系统有无类似功能,有的话先判断能否修改标准程序,再判断能否进行Enhancement;最后考虑自己开发B)先判断系统有无类似功能,有的话先判断能否修改标准程序,再判断能否进行Enhancement;然后判断能否配置;最后考虑自己开发C)先判断能否配置;再判断系统有无类似功能,有的话先判断能否进行Enhancement,再判断能否修改标准程序;最后考虑自己开发D)先判断系统有无类似功能,有的话先判断能否进行Enhancement,再判断能否修改标准程序;然后判断能否配置;最后考虑自己开发39.自己定义一个增强项目,加入系统的增强,并在其中激活增强的TCODE应该是. ()A)SMODB)CMODC)SE84D)SE8040.在SAP系统标准增强功能里,主要包含了以下哪组功能. ()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二问答题(共1题,20分)请简述SAP二次开发中REPORT , SCREEN , 数据库更新,SMARTFORM及增强等主要技术的开发方法和主要应用场合1c 2a 3b 4b 5d 6a 7d 8b 9a 10?11b 12a 13? 14? 15 ? 16c 17d 18a 19d 20c21a 22b 23? 24a 25? 26c 27b 28b 29a 30?31? 32? 33? 34? 35? 36? 37c 38c 39b 40a只会这些~!1,c 2.A 3.B 4. b 5. d6. A7.d8.b9.a 10. a1,c 2.A 3.B 4. b 5. d6. A7.d8.b9.a 10. a11. b 12.a 13.d 14.c15.a,d ?16.c 17.d 18.a 19. d 但Sy-TAbix 不是循环次数, 而是表中记录的序号20.c21.a ? 22. b ? 23.? 24.a 25. ?26.c 27.b 28 b 29.? 30.b31.c 32.? 33.? 34.? 35?36.? 37.c 38.c。
ABAP题目
一、选择题1.根据下面声明 DATA: BEGIN OF LEN,KTOKK TYPE I VALUE 5,KONZS TYPE I VALUE 10,END OF LEN.请问 LEN 为( D )A、视图B、表C、内表D、结构2、很多表当中都有一个字段,叫做MANDT, 为第一个主键,这个字段的用处是.( C )A、区分后台数据库的类型B、区分表的数据量大小C、区分表中记录属于哪个客户端(client)D、SAP系统保留字段3 下列 SELECT 语法中, 哪个需要用 ENDSELECT. ( B )A、 SELECT SINGLE * FROM EKKO WHERE EBELN = P_EBELN.B、SELECT DISTINCT LIFNR INTO pxLIFNR FROM EKKO WHERE EBELN IN S_EBELN.C、SELECT COUNT( EBELN ) INTO COUNT FROM EKKO WHERE EBELN IN S_EBELN.D、SELECT * INTO TABLE T_EKKO FROM EKKO WHERE EBELN IN S_EBELN.4、下面判断系统操作是否成功的语句是( C )A、 sy-tabixB、sy-languC、sy-subrcD、sy-index5、创建系统消息的Tcode是(D)A、SE11B、SE61C、 SE93D、SE916、下列Abap判断语句,哪个是不正确的( C )A、 IF --- ENDIF.B、CASE --- ENDCASE.C、FOR --- ENDFOR.D、LOOP --- ENDLOOP.7、操作语句‘GE’的意思是(D )(第七章控制abap4程序流_比较所有的字段类型)A、大于(GT)B、小于(LT)C、等于(EQ)D、大于或者等于(>=)8、下面Abap的内表Loop循环中处理语句,不正确的是(C )A、At firstB、At lastC、 At change onD、 At end of9、函数组在创建__ C ___需要指定A、表 B 、 SE38程序 C、函数 D、开发类10、在报表程序的屏幕筛选条件里,SELECT-OPTIONS定义出来的元素是.( B )A 、结构 B、内表C、基本数据对象D、指针型字段11、在Abap List报表中,实现双击事件的语句是( B )A、AT SELECTION-SCREENB、AT LINE-SELECTIONC、AT USER COMMANDD、START-OF-SELECTION12、GUI STATUS 由哪几部分组成(多选)(ABC)A、菜单栏Menu barB、功能码Function KeyC、应用工具栏Application ToolbarD、事务码Tcode13、下列哪些不是SAP的主要用户出口增强( D)A、Function Module ExitB、Screen EnhancementC、Menu EnhancementD、Table Exit14、对于函数模块(function modules)以下哪个描述正确?.( D )A、调用函数模块时所有的接口参数到要赋值。
abap练习题
ABAP 练习题一、基础语法与数据类型一个整型变量一个字符型变量,长度为10一个日期型变量一个数值范围(Range)变量一个内部表(Internal Table),包含至少三个字段:ID,Name,Age一个结构体(Structure),包含两个字段:Date,Amount3. 编写一个ABAP程序,声明一个字符串变量,并将其初始化为“Hello World”。
4. 编写一个ABAP程序,声明一个时间变量,并输出当前系统时间。
二、控制结构5. 编写一个ABAP程序,使用IF条件语句判断一个整型变量是否大于100。
6. 编写一个ABAP程序,使用CASE语句根据一个字符变量的值输出不同的消息。
7. 编写一个ABAP程序,使用循环结构(DO, WHILE, LOOP)输出1到10的数字。
8. 编写一个ABAP程序,使用嵌套循环输出一个10x10的乘法表。
三、函数与子程序9. 编写一个ABAP函数,用于计算两个整数的和。
10. 编写一个ABAP子程序,用于输出一个给定字符串的长度。
11. 编写一个ABAP程序,调用一个函数模块,将输入的字符串转换为大写。
12. 编写一个ABAP程序,使用表类型作为参数传递给子程序,并在子程序中处理该表。
四、数据库操作13. 编写一个ABAP程序,使用SELECT语句查询某个表的特定记录。
14. 编写一个ABAP程序,使用INSERT语句向数据库表中插入一条新记录。
15. 编写一个ABAP程序,使用UPDATE语句更新数据库表中的记录。
16. 编写一个ABAP程序,使用DELETE语句从数据库表中删除一条记录。
五、屏幕处理17. 编写一个ABAP程序,创建一个简单的输入屏幕,用于接收用户输入。
18. 编写一个ABAP程序,创建一个输出屏幕,显示从数据库查询到的数据。
19. 编写一个ABAP程序,使用屏幕上的按钮控制程序的流程。
20. 编写一个ABAP程序,使用屏幕上的选项按钮(Radio Button)进行选择。
ABAP培训习题
ABAP培训习题ABAP培训习题1. 学习ABAPDOCU的所有例程。
要求:运行所有ABAPDOCU的例程,并整理出例程的目录。
2. 整理ABAP函数。
要求:整理出ABAP提供的所有函数名称,描述ABSSIGNTRUNCFRACCEILFLOORCOS、SIN、TANACOS、ASIN、ATANCOSH、SINH、TANHEXPLOGLOG10SQRT3. 熟悉Development Class的概念,并新建自己的DevelopmentClass要求:新建一个Development Class。
名称:ZXX4. 熟悉ABAP Editor(SE38)、Object Navigator(SE80)要求:访问ABAP Editor 的所有菜单,能新建一个Program程序名称: ZXX_HELLO_WORLD5. 熟悉Function module (SE37)要求:熟悉所有菜单,学会查找对应的函数、测试函数6. 熟悉并新建Function Group要求:了解Function Group,新建自己的Function Group名称:ZFGXXX7. 新建Function module要求:要求开发一个函数,格式化日期成yyyy-MM-dd hh:mm:ss函数名称:ZXXX_FORMAT_DATE8. 输出一个平行四边形。
要求:确定平行四边形的高和长度,输出一个以*组成的平行四边形。
程序名称:ZXXX_OUTPUT_PARALLELOGRAM9. 写一个冒泡排序要求:把一列随即数进行冒泡排序,并输出随即序列和排序后的序列。
程序名称:ZXXX_BUBBLE_SORT提示:可使用Function:QF05_RANDOM_INTEGER生成随机数冒泡排序原理:将被排序的记录数组R[1..n]垂直排列,每个记录R[i]看作是重量为R[i].key的气泡。
根据轻气泡不能在重气泡之下的原则,从下往上扫描数组R:凡扫描到违反本原则的轻气泡,就使其向上"飘浮"。
培训考试系统试题-ABAP
填空ABAP1中低1_____________,______________。
问据库表填空ABAP2中低1数据库提交确认和数据库回滚取消语句:_____WORK_____ WORK。
commit rollback填空ABAP3中低1判断程序语句执行成功与否的SYST中的重要字段是_________。
SY-SUBRC填空ABAP4中低2查看表内容的T-CODE是_________或者_________。
SE11SE16填空ABAP5中低2_____,E_____,I_____,W_____。
S成功消息E错误消息I信息消息W警告消息填空ABAP6中低1判断当前循环是第几次循环的SYST中的重要字段是__。
SY-INDEX填空ABAP7中低4以下四种系统变量,SY-UCOMM SY-DATUM SY-SUBRC SY-TABIX分别代表(_,_,_,_)含义功能码当前日期执行结果是否正确内表当前行amazing填空ABAP8中低1ABAP的OPEN SQL的取数语句是否可以实现数据库的无关性,其原因是()可以,因为中间有一层DB填空ABAP9中低1系统变量SY-SUBRC表示()执行结果是否正确填空ABAP10中低1语句loop at itab into wa 的准确意思是()把内表ITAB 进行循环,把循环中每填空ABAP11易2ABAP是:_________,__________,Application, Program 的缩写advance business填空ABAP12中6写出Internal Table的操作:LOOP, APPEND,_________,_________,_________,_________,_________,_________read sort modify delete insert refresh填空ABAP13易2SAP有哪6种Message Type:S,____,W,E,A,____X I填空ABAP14中2进入Debug模式的三种方式:设置断点,_________,_________程序中写breakpoint/user执行程序之前,命令行输入/h填空ABAP15易1点中某个菜单后,系统变量______会反映出Function Code sy-ucomm填空ABAP16易2在Module Pool程序里,屏幕显示前执行哪个模组:___________,屏幕输入完毕后执行哪个模组:___________PBO PAI填空ABAP17中1读文本的Function Module名字_____________read_text填空ABAP18中3SAP 的三层结构为_________,_________,_________显示层应用层数据库层填空ABAP19中低2向SAP表中添加字段的方法是哪两种Append 结构自定义IncludeAppend、自定义Include,回答一种得1分填空ABAP20中低2ABAP中三种基本的数据对象是结构内表数据元素填空ABAP21中低2在报表程序的屏幕筛选条件里,SELECT-OPTIONS定义出来的元素是内表填空ABAP22中低2锁类型有哪两种共享锁独占锁填空ABAP 23中低2直接进入就可以查询表结构的是哪个TCODE SE11填空ABAP 24中低2写出ABAP程序的5个常用事件start-of-selection top-of-pageinitializa tion at line-selection atselection-screen end-of-selection填空ABAP 25中低2write:a ,b,c。
SAP ABAP试题
一选择题(共40题,每题2分,未特殊注明则均为单选)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."在报表程序的屏幕事件里,有一个事件叫做ATLINE-SELECTION.参见如下代码:WRITE / ‘ABAP’.AT LINE-SELECTION.WRITE /‘TEST’.那么,以下哪种情况会发生.(B)A)先显示出一行ABAP,当用户双击一次时,屏幕上在原来ABAP那行下面换行一次显示出一行新的TESTB)先显示出一行ABAP,当用户双击一次时,屏幕上每次只显示出一行的TEST取代原先的屏幕C)先显示出一行ABAP,当用户双击一次时,屏幕上永远只显示出一行TEST(放在原来ABAP那行下面)D)先显示出一行ABAP,当用户第一次双击时,产生一个新屏幕,显示一行TEST,然后每次双击都在其下换行显示一行新的TEST12."选择事件的执行顺序正确的一组.(B)A)INITIALIZATION/START-OF-SELECTION/TOP-OF-PAGE/ATLINE-SELECTIONB)INITIALIZATION/TOP-OF-PAGE/START-OF-SELECTION/ATLINE-SELECTIONC)START-OF-SELECTION/ INITIALIZATION / TOP-OF-PAG / AT LINE-SELECTIOND)INITIALIZATION/TOP-OF-PAGE/ATLINE-SELECTION/START-OF-SELECTION13."在层级报表的开发里,下面哪个条件不是必需的.()CA)对内表先按层级字段排序B)对内表和结构定义时层级字段必须排在前面C)层级字段不能出现在at和end at语句之外D)层级字段必须存在14."在明细报表的开发中,双击一行转向明细报表的取数依据是.(C)A)你双击那行的主键字段B)你双击的那个字段本身C)你双击那行在循环中预先hide的字段D)你双击那行在循环中预先已经write出来的字段15."在交互式报表的设计中,假如想在明细报表里加入任意字段的排序功能,请选择正确的选项(多选).()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."要对表格控件增加一个可由用户写入信息的列,下面哪种方式是可行的(多选).()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,DialogType是Dialogwithvalue restriction,里面customid和name这两个字段的IMP属性打勾,customid,name,carrid,connid这四个字段的EXP属性打勾,四个字段都设定了LPOS和SPOS,这个搜索帮助的输出效果是.()A)先输出两个栏位的筛选屏幕,再按照筛选结果输出两个栏位的表格信息让用户选择,选择结果影响到四个栏位B)先输出两个栏位的表格信息让用户选择,选择结果影响到四个栏位C)先输出四个栏位的表格信息让用户选择,选择结果影响到两个栏位D)先输出四个栏位的筛选屏幕,再按照筛选结果输出四个栏位的表格信息让用户选择,选择结果影响到两个栏位26."ABAP的OPEN SQL的取数语句是否可以实现数据库无关性,其原因是什么.(C)A)不可以,数据库的SQL格式不同B)可以,因为它的名字叫做OPEN SQLC)可以,因为中间有一层DB Interface做转换D)不可以,各种数据库的版本不同228."一个表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)在SE11里加锁对象,然后在程序中调用锁对象生成的函数B)在数据库里加锁,在程序中声明C)由数据库自动进行,SAP不用处理D)在程序中通过SQL语句实现**30."有一程序,起始画面里有一个用户可以输入字段为A,如果想在程序进入的时候自动设置成上次退出时的值,可以采用的方法是.(B)A)在退出时使用GET PARAMETER ID 'XXX' FIELDA.在进入时使用SET PARAMETER ID 'XXX' FIELDA.B)在退出时使用SET PARAMETER ID 'XXX' FIELDA.在进入时使用GET PARAMETER ID 'XXX' FIELDA.C)不管是退出还是进入时,都执行语句GET PARAMETER ID 'XXX' FIELDA.D)不管是退出还是进入时,都执行语句SET PARAMETER ID 'XXX' FIELDA.31."SAP的SMARTFORM和ABAP PROGRAM的对应关系是.(C)A)一个SMARTFORM对应多个程序B)一个程序对应多个SMARTFORMC)一个SMARTFORM对应多个程序,一个程序也可以对应多个SMARTFORMD)一个SMARTFORM对应一个程序32."设计SMARTFORM显示一个表格,如果第一页是一种格式,后面几页是一种格式,如何设计.()A)第一页指向第二页,第二页指向空B)第一页指向自己,第二页指向第一页C)第一页指向第二页,第二页指向第一页D)第一页指向第二页,第二页指向自己33."如果想设计SMARTFORM中大家公用的文本,应该使用什么技术.()A)SMART TEXTB)SMART STYLEC)SAP SCRIPTD)TEXT MODULE34."下面对于SMARTFORM中TABLE和TEMPLATE的描述,正确的是.(A)A)TEMPLATE用来设计表格模版,TABLE用来设计表格实体B)TEMPLATE用来设计表格样式,TABLE用来设计表格实体C)TEMPLATE用来设计静态表格,TABLE用来设计表格实体D)TEMPLATE用来设计静态表格,TABLE用来设计动态表格35."SMARTFORM中TABLE的排序事件的触发场合是.()A)循环到排序字段第一次开始时触发开始事件,循环到排序字段结束时触发结束事件B)循环到排序字段第一次开始时触发开始事件,循环到表格结束时触发结束事件C)当表格开始时触发开始事件,表格结束时触发结束事件D)循环到排序字段第一次开始时触发开始事件,然后触发结束事件,然后开始正式循环该排序字段剩余记录36."在SMARTFORM中显示一个表格,其中有一个栏位为wa_sflight-price,现在里面有三行数据,其值依次分别是10,30,50,现在在表格设计的时候在GlobalDefinition中定义一个变量G_TOL,在表格的Main Area中加入一个真假节点,节点的条件为WA_SFLIGHT-PRICE > 10 .然后,在真节点下加一个程序行,内容为G_TOL = wa_sflight-price +10."假节点下加一个程序行,内容为G_TOL =wa_sflight-price+20."最后在表格的Footer下加一个表行(在表格最后显示),下加一个文本节点显示这个字段G_TOL,它显示的值应该是.()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。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
一.单选题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.自己定义一个增强项目,加入系统的增强,并在其中激活增强的TCODE应该是. (b )A)SMODB)CMODC)SE84D)SE807.语句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’.那么,以下哪种情况会发生.(c )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.在层级报表的开发里,下面哪个条件不是必需的.( a)A)对内表先按层级字段排序B)对内表和结构定义时层级字段必须排在前面C)层级字段不能出现在at 和 end at 语句之外D)层级字段必须存在14.在明细报表的开发中,双击一行转向明细报表的取数依据是.(b)A)你双击那行的主键字段B)你双击的那个字段本身C)你双击那行在循环中预先hide的字段D)你双击那行在循环中预先已经write出来的字段15有一个表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)系统出错退出,对表没有任何影响16.在屏幕编程的设计中,下面共有四个主要步骤: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.对于表格控件和内表的绑定的做法,下面哪种说法是正确的. (d)A)PBO时同步循环内表和表格控件把内表的值写入表格控件,PAI时用同样的循环把表格控件的值写回内表B)PBO时同步循环内表和表格控件把表格控件的值写入内表,PAI时用同样的循环把内表的值写回表格控件C)在定义内表时定义与之绑定的表格控件,PBO和PAI事件要各循环内表一次D)在制作表格控件时定义与之绑定的内表,PBO和PAI事件要各循环表格控件一次22.如果要把表格控件某列的属性动态的改变成不可输入,下面哪种做法是可行的. ( c)A)在PAI事件中修改table的general attribute值B)在PBO事件中修改table的general attribute值C)在PAI事件中取得table的COLS属性,利用它本身是个内表的特点循环找到该列修改之,修改完后写回COLS内表D)在PAI事件中取得table的COLS属性,利用它本身是个结构的特点找到其中表示该列的字段修改23.在编写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对象,24.ABAP的OPEN SQL的取数语句是否可以实现数据库无关性,其原因是什么. ( c)A)不可以,数据库的SQL格式不同B)可以,因为它的名字叫做OPEN SQLC)可以,因为中间有一层DB Interface做转换D)不可以,各种数据库的版本不同25.对ABAP的OPEN SQL语句的两个返回系统变量,描述正确的是. (b)A)Sy-dbcnt表示执行结果是否正确,sy-subrc表示执行影响到的数据条数B)Sy-dbcnt表示执行影响到的数据条数,sy-subrc表示执行结果是否正确C)Sy-dbamt表示执行结果是否正确,sy-sudnc表示执行影响到的数据条数D)Sy-dbamt表示执行影响到的数据条数,sy-sudnc表示执行结果是否正确26.SAP对锁的主要实现手段是. (a )A)在SE11里加锁对象,然后在程序中调用锁对象生成的函数B)在数据库里加锁,在程序中声明C)由数据库自动进行,SAP不用处理D)在程序中通过SQL语句实现27.有一程序,起始画面里有一个用户可以输入字段为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.28.SAP的SMARTFORM和ABAP PROGRAM的对应关系是. (c )A)一个SMARTFORM对应多个程序B)一个程序对应多个SMARTFORMC)一个SMARTFORM对应多个程序,一个程序也可以对应多个SMARTFORMD)一个SMARTFORM对应一个程序29.设计SMARTFORM显示一个表格,如果第一页是一种格式,后面几页是一种格式,如何设计. (b )A)第一页指向第二页,第二页指向空B)第一页指向自己,第二页指向第一页C)第一页指向第二页,第二页指向第一页D)第一页指向第二页,第二页指向自己30.SAP提供的修改系统标准功能的方案里,哪几种是不需要修改系统标准程序就可以实现的. (a )A)Customer Develepment ,Enhancement,ModificationB)Customer Develepment ,Customizing,ModificationC)Customer Develepment ,Customizing, EnhancementD)Enhancement,Modification,Customizing二.多选题1.要对表格控件增加一个可由用户写入信息的列,下面哪种方式是可行的(多选).(ad)A)在设计屏幕上点击dictionary / program fields window 按钮,输入字典表或者程序中定义的元素,B)在设计屏幕上修改table的attributes,增加一列C)在设计屏幕中的表格控件里拖入一个text field(文本字段)D)在设计屏幕中的表格控件里拖入一个input/output field(输入/输出字段)2.在SAP系统标准增强功能里,主要包含了以下哪组功能. (abc)A)Table EnhancementB.Screen ExitC.Function module ExitD)Structure Exit3.下列哪些属于基本的数据对象( acd)A)字符B)内表C)数字D)日期4. 下列属于面向对象的是(abd)A)多态B)封装C)集合D)继承5. 下面哪种定义类型是不正确的是 (abc)A CONSTANTS: C1(4) TYPE DB CONSTANTS C1(4) TYPE C.C CONSTANTS: C1(4) TYPE C LIKE MYTAB-BOOKINGD CONSTANTS: C1(4) TYPE C VALUE 'ABCD'6 以下哪个选项包含在ABAP编辑器中编辑的程序元素之内(abd)A 文本元素B 变式C 文档D 文本符号7. 以下描述正确的是:( acd)A 创建数据元素时,可以不使用任何域B 数据元素是创建表的必要条件C同一表中的不同字段可以使用同一数据元素D 不同表中的字段可以使用同一数据元素。