Anda di halaman 1dari 8

My heart was beating at a speed of 110 beats per min. As my exam was about to begin.

Thousand of thoughts were whirling in my mind (and why not, I was appearing for the certification with only one month of preparation). So at that time the next 3 hours were going to decide whether I am impotent in abap or not. So here comes the first question , It was the most simplest question one could ever encounter. 1. You have newly joined a development team and your team member is developing a report. He wants to put the validation for the vendor No. In which event he should put the error message so that in case when wrong vendor is entered error message should appear and focus the cursor on that field. A. Start-of-selection B. End-of-selection C. At selection screen on field D. Initialization It boosted my confidence and the answer is : C . At selection screen on field. 2 . Business want to change the F1 help for the field for all Reports At what level you will change So that it reflect for all place. A. Domain B. Data element C. Change all table field D. Code at selection screen on help-request in all the reports As data element store the schematic information. It can be used and the idea of changing the code of all reports with D option is useless .So the answer is : B Data element 3. which statement can be used to read a single record from the internal table. A. Move it_tab to wa_taab with <i>. B. Read table it_tab into wa_tab index <i>. C. Move-corrosponding it_tab to it_taab1. D. None of the above. The answer is : B 4. Which one of these event will be triggered first when you execute the program ? A. INITIALIZATION B. LOAD-OF-PROGRAM C. START-OF-SELECTION D. END-OF-SELECTION This one also does not take much time as loading of the program is the first thing which is done and after that it will start looking into the code. So the answer is : LOAD-OF-PROGRAM 5. What is the valid combination among these for SAP R/3. A. 2 Application server and 1-data base server B. 2-database server and 1- Application server C. 2-Application server and 2-Database server D. 3-Application Server and 2-Database server The question is not that clear but As far as SAP is concern it believes in Central instance, So answer is A. 6. There is one function group name AG which contains three function module FM1 ,FM2 and FMR .It also has one global variable Gl_val .FM1 and FM2 has a simple code of adding 1 into that variable And FMR has the code of returning that global variable. So what will be the output of falling code. Report test_fungrp. Data : gl_val type i. Data : ret_val type i. Call Function FM1. Clear gl_val. Call Function FM2. Call function FMR importing VAL = Ret_val. Write : / Ret_val. A. 1

B. 2 C. 3 D. 4 HHhmmmneed to use little mind in this As function Group will have only one instance through out the program run so only one copy of that global variable: Answer is : b.2 7. Which layer will be used to convert the OPEN SQL into the database specific query. A. WORK Process B. DATA BASE interface C. ABAP interprter D. None of the above Answer is : B. Data base interface (that will be used to make SAP database independent) 8. You have 10 records into the internal table .you want to make use of loop statement to loop through all the records which system variable can be used to find out the loop iteration? A. SY-INDEX B. SY-DATUM (What a option !!!!!!!! ) C. SY-TABIX D. None of thee above SO Easy Right ??? Answer is C.: SY-TABIX 9. Can database view used to fetch the data from the database using SELECT Query? A. True B. False Anser is : A. True 10. In Case of Webdynpro for ABAP how will you map context Attribute of view container and component container? A. Double click on that B. Drag it to the another containers context C. Wirte the mapping path into contexts attribute D. You cannot mape. I know you want to kill me !!!!! but this question was thereAny way answer is clear it is B. 11. Which one of the following will contain user interface. A. Model. B. Component container C. Window D. View Answer is : D. 12. Which are of those are GUI types in SAP. A. HTML GUI B. JAVA based GUI C. Windows GUI D. Web GUI Hmm.Theory wins :: Answer Are : A,b,c. 13. Parameter id is assigned at what level? A. Domain B. Data element C. Field level D. None of the above Answer is : B.

14. Which of these are correct statements for SELECT-OPTIONS and RANGES. ( There are 3 correct answers) A. SELECT-OPTIONS will generate ranges internal table implicitly. B. RANGES statement will generate ranges internal table explicitly. C. The structure of the internal table generated by SELECT-OPTIONS and RANGES are the same (contain SIGN,OPTIONS,LOW and HIGH) D. The structure of the internal table generated by SELECT-OPTIONS and RANGES are different. Answer are : A,B,C 15. What is the format of the system date variable sy-datum? A. YYYYMMDD B. MMDDYY C. YYMMDD D. DDMMYYYY I know it is pure theory question but what can be done: Answer is A. 16. What will be the output of the following code for the user has a date format as DD-MM-YYYY?(Assume todays date is 14th Feb 2010 !!!!!!! ) Report test_date. Write : / sy-datum. A. 2010-02-14 B. 20100214 C. 14-02-2010 D. 02-14-2010 Answer is : C. Suddenly i went back to time when i was preparing for the examwhat will be the answer of this question if I change the code as below:: Report test_date. Data : lv_date like sy-datum. Lv_date = sy-datum. Write : / lv_date. (Try it out .. ) And what about if i use lv_date as char 8.(In this case answer is : 20100214) 17. You are working on a program which is updating the database now you want that if something goes wrong you want that your code should be capable of reverting the changes done in database, which statements can be used to achieve this? (There are two correct options) A. Commit Work. B. Roll Back Work. C. Message Changes aborted Type A. D. Message Changes aborted type I. Answers are : B,C. 18. you want to declare a variable which can be used out side class globally but no one should be allowed to change that variable except the method of that class.how you can achieve this ? A. class class_name Definition. Public section. Data : gl_var type i. Endclass. B. class class_name Definition. Proteced section. Data : gl_var type i. Endclass. C. class class_name Definition. Public section.

Data : gl_var type i hidden. Endclass. D. class class_name Definition. Public section. Data : gl_var type i read-only. Endclass. Answer Is : D. 19. There is a screen 500 with next screen set as 501 in its screen attribute. Business want that in some of the condition instead of going to screen 501 it should go to screen 502 after screen 500 finish its execution .how will you achieve this? A. Use statement LEAVE TO SCREEN 502. in PBO of screen 501. B. Use statement SET SCREEN 0. In PAI of screen 500. C. Use statement SET SCREEN 502. IN PAI of screen 500. D. It is not possible to over right the next screen attribute set into screen 500. Appropriate answer is C. As it will override the next screen attribute set into the screen 500. 20. you want to hide a P_MATNR field from the screen how will you achieve it? A. LOOP AT SCREEN WHERE NAME = P_MATNR. SCREEN-ACTIVE = 0. MODIFY SCREEN. ENDLOOP. B. LOOP AT SCREEN. If SCREEN-NAME EQ P_MATNR. SCREEN-ACTIVE = 0. MODIFY SCREEN. ENDIF. ENDLOOP. C. LOOP AT SCREEN WHERE NAME = P_MATNR. SCREEN-ACTIVE = 0. ENDLOOP. D. READ TABLE SCREEN WITH KEY NAME = P_MATNR. SCREEN-ACTIVE = 0. MODIFY SCREEN. So seams tricky??? But for SCREEN it is only possible to use LOOP AT SCREEN. where condition in LOOP and read table statement with screen is not at all possible So Answer is B. 21. A database table without MANDT field is called?(Select most appropriate anser) A. Client dependent B. Client in-dependent C. Structure (What an option!!!!!!!!!!) D. Database View. Answer is : B. 22. To define the internal table using statement: Data : it_tab type XYZ Where XYZ should be of type. A. Data base table B. Structure C. Table type D. View

Answer is : C. (As Rest will define work area not the internal table.) 23. Internal table ITAB has the following data Name Salary John 80000 Bob 20000 Amar 10000 David 50000 What will be the sy-subrc in following case. Read table ITAB into WTAB with key Name = David using binary search. A. 0 B. 4 C. 8 D. 12 As the mandatory condition to use binary search in internal table is that it should be sorted. Without sorteing it will lead to incorrect result. So answer is : B (Note: what will be answer if you read ITAB without binary search? ) 24. Business want to put validation on plant No. For all the screen. The requirement is to give Error message whenever user give plant 567.what can be most appropriate way to achieve this? A. Screen EXIT B. Function module EXIT C. Field EXIT D. USER EXIT Answer is: C. 25. Which all statements are true for BADI.? (There are 3 correct answers) A. You can use filter to choose the implementation you want to call. B. BADI cannot have multiple implementations. C. BADI can be reusable. D. BADI can be filter dependent. Answers are: A, C, D. 26. Choose the correct statements for BAPI. A. BAPIs are the methods of Business Objects. B. BAPIs can be called from Java Application. C. BAPI is interface which contain methods and data declaration. D. You can redefine the BADI as per your choice. Answers are: A, B. Ok..Now i dont remember any more questions ,Any way its not my fault, once a person gets 90% its become very difficult to spend time on remembering and writing the questions of exam than partying!!!!!!!

This Article is collection of experiences from several people who have appeared the Exam lately.. By Sri nivas : TCS Chennai. : SCORE 90%

Below are some questions which I got in the exam. Sorry I dont remember many ..here are few ques Tips: 1)All practice questions in internet are for exam TAW12_04 which is older version with different syllabus..

so study only topic related questions and skip others questions. If u find any question based on TABLE CONTROL, classical list generation, Logical database, number assignments etcJUST SKIP these questions .dont waste time in these ques..u wont get it in exam. 2) You will get only from the topic mentioned in Course .so just read TAW 4 books + taw11 E-learing + sample questions enough. 3) Skip first 6 chapters from TAW10_1 which is a raw theory part. You will get max 2 questions from that part .kills lot of time in reading those topics. 4) While going through books, in parallel note down key RULES &amp; points in a word document. Before going exam read that alone.. Dont memorize. Do understand concepts, because they will ask scenario based questions

1. You want to use SORT command on the internal table. Is it possible to use SORT command on a hashed internal table? Ans : Sort command can be used on a hashed internal table as well as a standard internal table. 2.. How to monitor the change of content of individual variables? a .Code for a watch point in the program against the particular variable X ( Not Possible) b.You can set the watch point only in the debugger mode against the variable. c.You can create multiple watch-points d.Create watch-point based on the combination of AND/OR operators 3. Any change in sap standard code Ans : modification 4. How to implement a BADI definition ? Need to implement the interface defined in BADI. BADIs are based on OOPS concept. Notes: 1.Execute Business Add-In(BADI) transaction SE18 2.Enter BADI name i.e. HRPBSGB_HESA_NISR and press the display button 3.Select menu option Implementation->Create 4.Give implementation a name such as Z_HRPBSGB_HESA_NISR 5.To access already created implementations simple select menu option Implementation->display or Implementation->change. You can also access existing BADI implementations via transaction SE19 6. You can now make any changes you require to your BADI within the implementation, for example choose the Interface tab 7.Double click on the method you want to change, you can now enter any code you require. 8.Please note to find out what import and export parameters a method has got return the original BADI definition (i.e. HRPBSGB_HESA_NISR) and double click on the method name for example within HRPBSGB_HESA_NISR contract is a method 9.When changes have been made activate the implementation 5) How to access private attributes of a class ? Ans: a. Private attributes can be changed/accessed only by the methods of the class. b. All the users (classes) specified as friends can also access PROTECTED and PRIVATE components of the class (If modelled flag is not set while defining friends). The friends relationship is always one-sided and is not inherited. This means that friends of a superclass are not automatically friends of the subclasses. 6) Widening Cast and Narrowing Cast. 1)created an object for subclass say sub1 (its type is subclass ) 2)assing that to superclass : super1 = sub1 (super1 is superclass type) &gt;this is called upcasting or narrow..ur access is limited to super class attri only 3) now ur assigning back agin to subclass type sub1 ?= super1 (sub1 is subclass type) &gt; this is called downcast or widening casting..ur access to now not limited only to superclass ,u can also access sub class attri and methods. WIDENING CAST (down cast) subclass_ref ?= super class obj u will get ques on this concept . 7) There exists an error in one of the mandatory fields and you want to exit the application or cancel the transaction without entering the mandatory field. What will you have to code in the module pool programming to achieve this functionality Ans : In the PAI Event, MODULE EXIT_TRANSACTION AT EXIT-COMMAND. The function code for the button should be E. 8 ) You have to write the logic for a custom transaction such that a different logic is followed for each click on button on the Menu. How is this handled in the Dialog Programming? Ans: The buttons function code is captured in system variable sy-ucomm. You have to define a screen attribute ok_code of type sy-ucomm as a global variable. In the PAI Event, write a module as below. Sample code can be as below in the PAI Event Module. MODULE user_command_1000. Ok_code = sy-comm. CASE SY-COMM. WHEN SAVE.

Perform save_Date. WHEN CANCEL. PERFORM exit_data. ENDCASE. ENDMODULE. 9) You have been given to analyse a report program where the events are written in alphabetical order. What will the series of events executed? Events are executed by the runtime environment. No matter in which order the events are written below is the flow of events 1. LOAD-OF-PROGRAM 2. INITIALIZATION 3. AT SELECTION-SCREEN. 4. START-OF-SELECTION. Ans: TOP-OF-PAGE will be triggered before the first WRITE statement. 10) How to display an ALV grid in the module pool program, say in a custom transaction user will enter the material and click on execute, then an ALV report is to be generated in the next screen. Step 1: Create a Custom Control screen element say with name CCONT. In the PBO module of the screen. Step2: Create the container object and the corresponding grid object.

DATA : g_custom_container TYPE REF TO cl_gui_custom_container, g_grid TYPE REF TO cl_gui_alv_grid, CREATE OBJECT g_custom_container EXPORTING container_name = CCONT. CREATE OBJECT g_grid EXPORTING i_parent = g_custom_container.
Step3: Build the field catalog and layout as required.

DATA : gt_fieldcat TYPE lvc_t_fcat, gs_layout TYPE lvc_s_layo.


Step4: Perform the display of data using

CALL METHOD g_grid->set_table_for_first_display EXPORTING is_layout = gs_layout i_save = c_a CHANGING it_fieldcatalog = gt_fieldcat[] it_outtab = output_data.

11) What will the sequence to declare data in a program? Ans : TYPES: BEGIN OF TY_CHARDATA, NAME TYPE CHAR32, ENDOF TY_CHARDATA. DATA: LT_CHARDATA TYPE TABLE OF TY_CHARDATA Internal Table without header line WA_CHARDATA LIKE LINE OF LT_CHARDATA Workarea for lt_chardata. PARAMETERS: NAME TYPE LT_CHARDATA. 12 ) In which event, will you write the code to perform an authority-check? Ans : AT SELECTION-SCREEN. Check for the authority. AUTHORITY-CHECK OBJECT XXX. IF SY-SUBRC <> 0. MESSAGE TYPE E. ENDIF. 13)You want to make user to reenter the field value if entered wrong how u do E message or W messag in at selection screen event or PAI EVENT 14) What are the various options to make sql query to fetch the results faster? Ans: a. Use Buffering while creating the table. (To be maintained in the technical setting of the table creation . But this option should be used, if the query retrieves the same set of data and the table is mainly used for read access.

b. Create an index to the table, based on the fields being retrieved.


15) Which of the following are valid Web Dynpro of controller. 1. Window Controller 2 .Component Controller 3. View Controller 4. Custom Controller 5. Configuration Controller

Ans: All the above are correct. 16)Which of the following uses gui interface a) webdynpro -FALSE B) bsp -FALSE c) selection screen TRUE d) alv TRUE i think i got this question wrong.am not sure about ans 17)Which of following are true about the Windows and Views for Web Dynpro ABAP? There are two correct answers a. A Window can be embedded in multiple views. b. Multiple views can be embedded into single window . c. Single view can be embedded in Multiple views. d. Multiple window can be embedded in single view. Ans : b and c. 18)Which of the following statements are true about Unicode? All of the below are correct. a. It doesnot translates b. It support users of different culture c . Easy to send date from unicdoe to non Unicode sys or vice versa 19)value table is defined in domain 20) How to display documentation/F1 help for a element placed on a screen painter a. If you place a field on the screen in the Screen Painter by copying a ABAP Dictionary field, the corresponding data element documentation from the ABAP Dictionary is automatically displayed when the user chooses field help (as long as the help has not been overridden in the screen flow logic) b. The text appearing in the field help for a field comes from the data element. 21)There is a scenario to create two tables, the first table containing all the material data then the other table containing all the material descriptions. A restriction has to be placed such that the second table should have only the material numbers present in the first table. How to achieve this functionality ? Ans : The second table field should have a foreign key, pointing to the one in the first table. 22) What are the possiblities using Append Structure to modify a standard table definition ? a. An append structure is a structure which is assigned to exactly one table. There can be several append structures for a table. b. If a long field (data type LCHR or LRAW) occurs in a table, it cannot be extended with append structures. This is because such long fields must always be in the last position of the field list, i.e. they must be the last field of the table. c. If you as a customer add an append structure to an SAP table, the fields in this append structure should be in the customer namespace for fields, that is they should begin with YY or ZZ. This prevents name collisions with new fields inserted in the standard table by SAP. d. No append structures may be created for pooled and cluster tables. i cleared with 90..all the best guys.. cheers, s

Anda mungkin juga menyukai