Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Simulados Prova Abap

Simulados Prova Abap

Ratings: (0)|Views: 362 |Likes:
Published by VALENTINI400

More info:

Published by: VALENTINI400 on Jun 30, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

09/11/2013

pdf

text

original

 
Sumário
1. NetWeaver Overview (TAW12) ............................................................................................................. 91.1. You execute an ABAP program with several dialog steps (screens). Which statement is correct?91.2. The configuration of a SAP system comprises several server layers. Which of the following isthe smallest possible configuration of a SAP system concerning its server layers? ............................... 101.3. Which of the following statements about the SAP NetWeaver is true? ..................................... 111.4. The SAP NetWeaver AS (Application Server) offers the possibility to install an ABAP stack or aJava stack. Which of the following statements about the possible combinations of ABAP and Javastacks in one SAP NetWeaverApplication Server is true? ....................................................................... 122. Class identification analyzation and design (TAW10) ......................................................................... 132.1. In order to write generic programs, which can be used in different contexts polymorphism is avery strong tool. Which technique is a basic requirement for polymorphism? ..................................... 132.2. In a class cl_vehicle you need a method get_fuel, which estimates the fuel consumption of avehicle. This method should be implemented as a functional method. How you define a functionalmethod and where you can use the functional method? ....................................................................... 142.3. You like to create a list with the global class CL_GUI_ALV_GRID. In this class the eventDOUBLE_CLICK is defined, in that way that if a user makes a double click with his mouse on the list,the event would be raised. In your case every time the user make a double click on the list a popupshould appear which shows the number of the line on which has been double clicked. What do youhave to do therefore? ............................................................................................................................. 152.4. In the GUI programming you need a class cl_gui_manager, which manages the windows of ascreen. For this task you must ensure that only one object of the class cl_gui_manager can be created.Therefore you have to implement a singleton........................................................................................ 162.5. You have implemented a class cl_customer where you have defined a private attribute name.From where you can access the attribute name directly? ...................................................................... 172.6. You have got defined two classes cl_airplane and cl_passenger_plane, wherecl_passenger_plane is the sub class of cl_airplane. In the class cl_airplane is the public instancemethod display_attributes defined, which has no parameters. In the sub class cl_passenger_plane isthe public instance method display_number_of_seats defined, which has also no parameters. In yourprogram you have implemented the following lines: DATA r_airplane TYPE REF TO cl_airplane,r_passenger TYPE REF TO cl_passenger_plane. CREATE OBJECT r_passenger. r_airplane = r_passenger.Which of the following method calls are syntactically correct? (in relation to the above codinglines)There is more than one correct answer to this question. .............................................................. 182.7. You can realize polymorphism between objects from different classes, if these classes areconnected over inheritance. For objects of classes which are not connected over inheritance thereexists another technique to achieve polymorphism. Over which of the following concept you can alsoachieve polymorphism? .......................................................................................................................... 19
 
2.8. One of your colleagues has left your company and now you in charge of maintaining hisprograms. One program deals with the handling of lists. You are going through the coding and in themain part of the program you find the following lines: DATA: current_list_no TYPE i. . . .current_list_no = cl_list=>number_of_lists( ). Of what type of component is the itemnumber_of_lists? .................................................................................................................................... 202.9. If you program you need the names of the fields of a structure wa_materialat runtime.Therefore you can use the RTTI classes. The root class is cl_abaptypedescr, which provides a publicstatic functional method describe_by_data. .......................................................................................... 212.10. When you implement a class you can use most of the procedural ABAP statements withinthe class. But some statements are forbidden. What is forbidden within class definition? .................. 222.11. You are writing a Business-Server-Page-Application (BSP) where you use the global classCL_BSP_CONTROLLER2. This class has implemented the global interface IF_BSP_CONTROLLER inwhich the method HANDLE_EVENT is defined There is no other method in the classCL_BSP_CONTROLLER2 with the name HANDLE_EVENT. In your program we find the following lines:DATA r_class TYPEREF TO cl_bsp_controller2, r_interface TYPE REF TO if_bsp_controller.CREATEOBJECT r_class. CREATE OBJECT r_interface TYPE cl_bsp_controller2. Which of the followingmethod calls are syntactically correct? ................................................................................................... 233. ABAP types and data objects (TAW12) ............................................................................................... 243.1. Your colleagues need your advice on several ABAP types. Which of the following statementsare correct? There is more than one correct answer to this question. .................................................. 243.2. You need to create a numeric data object that can contain up to 12 decimal places and whereno rounding error is to be feared of. Which of the following statements concerning ABAP type P aretrue? 253.3. You want the system to output a list in the program using the SAP ALV Grid Control. Whichorder do you have to carry out the following steps in the program to achieve this? ............................ 263.4. Your colleagues need your advice on some implicit type conversion issues. Which of thefollowing statements are correct? .......................................................................................................... 273.5. Dbtab is a transparent table in the ABAP Dictionary. What do you get then with the followingvariable definition? DATA myvar TYPE dbtab. ........................................................................................ 283.6. Let's assume there would be a ABAP Dictionary structure STR1. Now for whatever reason youwant to create a local type of the same name STR1. What would happen if you created the local typein your program and then created a structure that is typed with STR1? TYPES: BEGIN OF str1, comp1,comp2, END OF str1. DATA: my_str TYPE str1. ....................................................................................... 293.7. At which of the following places is made use of types? ............................................................. 303.8. Which of the following statements concerning constants at runtime is correct? ...................... 313.9. In the top of a program you find the following type definition: TYPES: BEGIN OF t1, comp1TYPE scarr-carrid,comp2 TYPE scarr-carrname, END OF t1. Which of the following ABAP statementsreferring to Type t1 would be syntactically correct? .............................................................................. 323.10. Which of the following places uses of types? ......................................................................... 33
 
3.11. You need to create an integer data object and you wonder about the features of ABAP typeI. Which of the following statements is correct? .................................................................................... 344. Tables Relationships (TAW10) ............................................................................................................. 354.1. For a database table zdepartment you should define the text tablezdepartmentt in the ABAPDictionary where the names of the departments are stored. How would you design the tablezdepartmentt so that it is the text table of the table zdepartment? ...................................................... 354.2. In the ABAP dictionary you create two tables BKPF and BPOS which contain header data andposition data of accounting documents. The primary key of BKPF consists of MANDT (client), andBLNR (document number). The primary key of BPOS consists of MANDT (client), BELNR (documentnumber), and POS (position). You want to make sure that field BELNR of BPOS can only contain valuesfrom field BELNR in BKPF. How can you enforce this? ............................................................................ 364.3. Which of the following statements about data types and data objects are correct? ................ 374.4. For a field of an SAP transaction there are two simple search helps A and B (in a collectivesearch help)provided by SAP. But your users only need the simple search help A. Your task is it to hidethe other simple search help B but without modify the program / search help. How would youproceed?.................................................................................................................................................. 384.5. You should implement a search help, where the data of the search help should be selected viaouter join. Which of the following view types you would choose? ........................................................ 394.6. You create an ABAP dynpro to enter flight connection data. Each connection is identified bythe contents of the fields CARRID (carrier id) a nd CONNID (connection id) in the database table SPFLI.The carriers are stored in table SCARR and identified by the value of the field CARRID. What is theeasiest way to ensure that only CARRID values from field SCARR-CARRID can be entered in thedynpro? ................................................................................................................................................... 404.7. You create an ABAP classical screen (dynpro) to enter flight connection data Each connectionis identified by the contents of the field MANDT (client), CARRID (carrier ID) and CONNID (connectionID) in the database table SPFLI. The carriers are stored in table SCARR and identified by the value of the field CARRID. What is the easiest way to ensure that only CARRID values form field SCARR-CARRIDcan be entered in the dympro? ............................................................................................................... 414.8. When you define a field of a database table you references to data element which normallyreferences to a domain. But it is also possible to define the data type directly in the data element,without referencing to a domain. Which feature do you get, if you define the data type by referencingto a domain? ........................................................................................................................................... 425. SQL statements inclusive update strategies (TAW12) ........................................................................ 435.1. You should implement a search help should be selected via outer join. Which of the followingview types would you choose? ............................................................................................................... 435.2. Why do you need to bundle database updates in your dialog programs? ................................. 445.3. *You want to display data of accounting document with BELNR = 1000 from tables BKPF andBPOS. These tables contain header data and position data. The primary key of BKPF consists of MANDT (client), and BLNR (document number). The primary key of BPOS consists of MANDT (client),BELNR (document number), and POS (position). Which would be the correct statement to achievethis? 45

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->