part 1-6-ok

60
Part 1 1. What is a client in sap (terms). ANS - SAP terminology : -Client in SAP is to Individual unit to identify r/3 system with different DB tables. 2. After developing object where do you test? How do u test? ANS - Normally I do white box testing for what I develop. To test the problem Functional consultant give few sample data for testing. 3. Who else is there with u when u test the program? ANS - If the error is major take help of TL. 4. If end user comes to saying that there is a bug in the program, how do u correct it? ANS - First I will understand what he is telling then understand the program. Based on the complexity error in Technical I debug the program to sort the error and if it is related to functional then I will sit will the user or my TL. 5. In call transaction method where do we get vendor no when uploading vendor master? i.e in case of errors. ANS - IF subrc <> 0. write: / IT. 6. How do we get time in the program? Which time we get either development server or system time? ANS - By using system field sy-uziet. For local timlo Zonlo 7. What is data cleansing? ANS - Means while uploading a flat fieldata into sap system it should data cleaned i.e. unwanted data to be deleted. 10. How do ur Project leader differentiate ur programs from others if 3 people from ur group all using the same user id? ANS - Go to SE10. the the objects in the request where we give the description for our object. 11. If I am submitted to 4-linked report program to background job. If 2 reports fails, what happen the result? 1. 3 and 4 report programs are executed or not 2. it give the 1 report program result or not

Upload: amit-verma

Post on 08-Jul-2016

27 views

Category:

Documents


2 download

DESCRIPTION

abap interview ques and answers

TRANSCRIPT

Page 1: Part 1-6-ok

Part 1                          

1.  What is a client in sap (terms).ANS - SAP terminology : -Client in SAP is to Individual unit to identify r/3 system with different DB tables. 2.  After developing object where do you test?  How do u test?ANS - Normally I do white box testing for what I develop.  To test the problem Functional consultant give few sample data for testing. 3. Who else is there with u when u test the program?ANS - If the error is major take help of TL. 4. If end user comes to saying that there is a bug in the program, how do u correct it?ANS - First I will understand what he is telling then understand the program. Based on the complexity error in Technical I debug the program to sort the error and if it is related to functional then I will sit will the user or my TL. 5. In call transaction method where do we get vendor no when uploading vendor master? i.e in case of errors.ANS - IF subrc <> 0. write: / IT. 6. How do we get time in the program? Which time we get either development server or system time?ANS - By using system field sy-uziet.  For local timlo Zonlo 7. What is data cleansing?ANS - Means while uploading a flat fieldata into sap system it should data cleaned i.e. unwanted data to be deleted. 10. How do ur Project leader differentiate ur programs from others if 3 people from ur group all using the same user id?ANS - Go to SE10. the the objects in the request where we give the description for our object.  11. If I am submitted to 4-linked report program to background job. If 2 reports fails, what happen the result?      1.   3 and 4 report programs are executed or not      2.   it give the 1 report program result  or not 

Page 2: Part 1-6-ok

12. How can I know the feed back of background job? ANS - SM37 to see the feedback of the job. 13. If there is a quantity field, currency field in the external format (from legacy system), what is its equivalent SAP format?ANS - It depends means if we want to convert it into $ to Rs we can use a function module which will convert the $ to Rs and Rs will be saved. 14. What are table buffers?ANS - This r some think to buffer the data in application server. Buffer not allowed will buffer data in AS.  Data will be fetched directly from Database server. Buffer switched on means it buffers data in AP means data is fetched from application Server. Buffer switched allowed but switched off.  Full buffer to store the table in AP. Generic buffer - It is a comparison of fields i.e. data retired by the matching record. 15 what back ground processing means actually?  i.e. processing in future date or processing in no display monde or both are applicable?ANS - Both r same. 18. From a table how do u find whether a material is used in another material BOM?ANS - We have a field in which it will the information of the BOM. 19. How do u find out whether a file exits on the presentation server? ANS - There is fun Mod through which we can find whether file exit in PS or not. 20. Which function module upload data from application server?ANS - No fun mod is used to upload data to AP. we use open dataset for output in AS to upload data. 21. Can you have two detail lists from the basic list at the same time? If yes how and if no why?ANS - No. Coz sequences goes 1 then 2. if we want we can use windows starting 10 giving two statements.  We can pop up two detail. 22. What is At-Exit and User-Exit?ANS - it is used as exit button in Module pool. 23.how do u transport scripts from client 100 to 300?

Page 3: Part 1-6-ok

ANS - Go to Utilities-Copy from client. give the form name and then the target form and in client the client from which we need. In this only the form gets copied not the standard symbol, Text then Styles. To copy the standard symbol go to SE72 - Utilities-Copy. For standard text go to SO10 -Utilities-Copy. IMPORTANT - Which we upload tiff file in RSTXLDMC the file uploaded and saved in SO10 in standard text format i.e. it is stored in bit format. The contents of so10 r stored in STXH. The graphics for BMP are stored in SSFXFBMP. If we need two logos(one in background). RSTXLDMC- upload logo in sequence i.e. logo1,logo2. Then in form include the ST first logo1 then logo2. If there is 10 scripts with Standard text will four lines in it. if we want in 2 scripts only 2 lines to be displayed : - we can do by coding a logic i.e. go to SO10 there give a logic If <Form name> <> 0. print.TTDTG is the table where we can create a Zstandard Symbol and it is where standard symbol is stored. 24. How do u solve table control problem in bdc?. 25. How do u code the program for getting time base on different country timings?ANS - By setting the local PC time using the system field TiMLO. 26. If report is run in india and the same report is run in us which time is accessed by the program?ANS - By setting the local Pc time using the system field TiMLO. 26. If u save an object as  local object then how do u transport it?.ANS - If a object is saved in local object it will not give any request so get the request first change the development class. Go to SE80 - Right click on the object there will be option More Function then change package Assignment.27. Can we use   for one application, for data processing session method and for data updation call transaction? how? Yes. after we code call transaction below that give a logic if subrc <> 0 then open the function module BDC-open, insert, close. 

Page 4: Part 1-6-ok

28. How do we keep break points dynamically  say a program has 1000 line of code and has 50 function modules then how do we keep breakpoints to those 50 function modules? ANS -  First set the program to debug mode after we r in debug mode got to Breakpoint option in menu bar from there go to breakpoint at - there use statement and use the statement i.e call function or any subroutine. 29. How to sent error to end user?Ans - By using the function module(BDCMSGCOLL).  30. What is the difference between ranges and select-options?Ans –  31. For a button in application bar in ALV.ANS - Yes by using pf-status we can bring buttons in application bars. Use event pf-status and usercommand from slis and pass it to gird function. 32. Have u worked on call transaction?ANS - yes. 33. Can we pass data from one program to another in ALV as well as in reports? 34. Can we run a three transaction at a time i.e. parallelly and can we track the error there and there? Ans : - it is possible to run the transaction one after other and not parallelly. it is not possible to track the error in Parallel run. We can use /bend to correct the errors. 35. If we record BDC through SHDB and copy the program in a editor and execute what will happen?ANS - It will run the program showing the screen which when went under recording. i.e it will show all the screens which we used in SHDB which recording the screens and fields. 36. To change Development Class for Script go to SE03-Object directory in the field give form(set the flag) and  then there give the form name then double click and give the Class name. 37. To see imported request go to transaction STMS.to find the fields of a table from which it is used use transaction se84.

Page 5: Part 1-6-ok

Part 2What is a 'Z' report? Y or Z report refer to customized abap programs written for modules such as mm, sd, pp or fi/co etc.Can we create an ABAP program without using Y or Z? No, this is because all non Yor Z programs are standard SAP programs.1. How data is stored in cluster table?  Each field of cluster table behaves as tables which contains the no. of entries. 2. What are client dependant objects in abap/sap?  SAP Script layout, text element, and some DDIC objects. 3. On which even we can validate the input fields in module progams?  In PAI (Write field statement on field you want to validate, if you want to validate group of fields put in chain and End chain statement.) 4. In selection screen I have three fields, plant mat no and material group. If I input plant how do I get the mat no and material group based on plant dynamically?  AT SELECTION-SCREEN ON VALUE-REQUEST FOR MATERIAL.  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' to get material and material group for the plant. 5. How do you get output from IDOC?  Data in IDOc is stored in segments, the output from Idoc is obtained by reading the data stored in its respective segments. 6. When top of the page event is triggered?  After excuteing first write statement in start-of-selection event. 7. Can we create field without data element and how?  In SE11 one option is available above the fields strip. Data element/ direct type. 8. How do we debug sapscript?  Go to SE71 give lay set name , go to utilities select debugger mode on.9. Which transaction code can I used to analyze the performance of ABAP program.  TCode AL21.10. How can I copy a standard table to make my own z_table. Go to transaction SE11. Then there is one option to copy table. Press that button.  Enter the name of the standard table and in the Target table enter Z table name and press enter.Following are some of the answers which I gave upto my knowledge.1. What is the use of 'outerjoin'  Ans. With the use of outer join you can join the tables even there is no entry in all the tables used in the view.         In case of inner join there should be an entry in al the tables use in the view.2. When to  use logical database? Ans. Advantage of Logical databases:         less coding s required to retrieve data compared to normal internel tables.         Tables used LDB are in hierarchial structure.3. What is the use of 'table index'? 

Page 6: Part 1-6-ok

Part 31. What is the typical structure of an ABAP/4 program?  ANS:-    HEADER ,BODY,FOOTER.2. What are field symbols and field groups.?      Have you used "component idx of structure" clause with field groups?       ANS:-     Field symbols:-     Field groups :-

Can any body explain me what is field group?Field groups are groups similar fields together into one name. Field group works in conjuction with    

INSERT f1 f2 INTO fg EXTRACT fg SORT BY fg LOOP ... ENDLOOPINSERT f1 f2 INTO fg ---------------------The insert statement is used to create a field group dynamically by inserting the field into it. Only global data fields can be inserted and not local data fields eg : in form modules.

EXTRACT fg ----------  This will combine all the fields in the fieldgroup and write them to a sequential dataset as a single record.

SORT BY fg ----------Sorting of sequential dataset by field group.

LOOP AND ENDLOOP ---------------LOOP.   AT *** ...... .... ENDAT.   AT *** ..... .... 

Page 7: Part 1-6-ok

ENDAT. ENDLOOP.                          *-- Chinmaya3. What should be the approach for writing a BDC program?  ANS:- STEP 1: CONVERTING THE LEGACY SYSTEM DATA TO A FLAT FILE to internal table CALLED "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 are created and processed.if success data will transfer).4. What is a batch input session?  ANS:- BATCH INPUT SESSION is an intermediate step between internal table and database table.  Data along with the action is stored in session 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?  ANS:- Call transaction.6. A situation: An ABAP program creates a batch input session.      We need to submit the program and the batch session in back ground. How to do it?  ANS:-      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 input process different from processing online?  ANS:- PROBLEMS:-   i) If the user forgets to opt for keep session then the session will be automatically removed from the session queue(log remains).  However if session is processed we may delete 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?  ans:- tables, structures, views, domains, data elements, lock objects, Matchcode objects.11. How many types of tables exists and what are they in data dictionary?  ans :- 4 types of tables i)Transparent tables - Exists with the same structure both in dictionary as well as in database 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

Page 8: Part 1-6-ok

cannot use native sql on 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?  ans:-    step 1: creating domains(data type,field length,range).    step 2: creating data elements(properties and type for a table  field).    step 3: creating tables(SE11).13. Can a transparent table exist in data dictionary but not in the data base physically? ANS:- NO. TRANSPARENT TABLE DO EXIST WITH THE SAME STRUCTURE BOTH IN THE DICTIONARY AS WELL AS IN THE DATABASE,EXACTLY WITH THE SAME DATA AND FIELDS.14. What are the domains and data elements?  ANS:- 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 not referring to data elements?  ANS:-  YES.  eg:- ITAB LIKE SPFLI.here we are referening to a data object(SPFLI) not data element.16. What is the advantage of structures? How do you use them in the ABAP programs?  ANS:- Adv:- GLOBAL EXISTANCE(these could be used by any other program without creating it again). 17. What does an extract statement do in the ABAP program?  ANS:- Once you have declared the possible record types as field groups and defined their structure, you can fill the extract dataset using the following statements:  EXTRACT <fg>.When the first EXTRACT statement occurs in a program, the system creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the new extract record is added to the dataset

EXTRACT HEADER.

When you extract the data, the record is filled with the current values of the corresponding fields.

Page 9: Part 1-6-ok

As soon as the system has processed the first EXTRACT statement for a field group <fg>, the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups <fg> 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 different field groups, you fill the extract dataset with records of different length and structure. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement, extract datasets provide the advantage that you need not determine the structure at the beginning of the program.

18. What is a collect statement? How is it different from append?  ANS:- 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:- by Madhukar Open SQL , native SQL are the interfaces to create the database applicatons. Open SQL is consistant across different types of existing Databases. Native SQL is the database language specific to database.Its API is specific to the databse. Open SQL API is consistent across all vendors 20. What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?  ANS:-21. What is the meaning of ABAP/4 editor integrated with ABAP/4 data dictionary? ANS:-22. What are the events in ABAP/4 language?  ANS:- 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,At LAST,AT END, AT FIRST. 23. What is an interactive report?  What is the obvious diff of such report compared with classical type reports?  ANS:-  An Interactive report is a dynamic drill down report that produces the list on users choice. diff:- a)  THE LIST PRODUCED BY CLASSICAL REPORT DOESN'T allow user to interact with the system     the list produced by interactive report allows the user to interact with the system. b)  ONCE A CLASSICAL REPORT EXECUTED USER LOOSES CONTROL.IR USER HAS CONTROL. 

Page 10: Part 1-6-ok

c)  IN CLASSICAL REPORT DRILLING IS NOT POSSIBLE.IN INTERACTIVE DRILLING IS POSSIBLE.24. What is a drill down report?  ANS:- Its an Interactive report where in the user can get more relavent data by selecting explicitly.25. How do you write a function module in SAP? describe.  ANS:- creating function module:- called program - se37-creating funcgrp,funcmodule by assigning attributes,importing,exporting,tables,exceptions. calling program - SE38-in pgm click pattern and write function name- provide export,import,tables,exception values.26. What are the exceptions in function module?  ANS:- COMMUNICATION_FAILURE  SYSTEM_FAILURE 27. What is a function group?  ANS:- GROUP OF ALL RELATED FUNCTIONS. 28. How are the date and time field values stored in SAP?  ANS:- DD.MM.YYYY.  HH:MM:SS 30. Name a few data dictionary objects? //rep// ANS:- TABLES,VIEWS,STRUCTURES,LOCK OBJECTS,MATCHCODE OBJECTS.31. What happens when a table is activated in DD?  ANS:- It is available for any insertion,modification and updation of records by any user.32. What is a check table and what is a value table?  Check table will be at field level checking. Value table will be at domain level checking ex: scarr table is check table for carrid.33. What are match codes? describe?  ans:- 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?  ANS:-35. What is table maintenance generator?  ANS:-36. What are ranges? What are number ranges?  ANS:-     max,min values provided in selection screens.37. What are select options and what is the diff from parameters?  ANS:- select options provide ranges where as parameters do not. 

Page 11: Part 1-6-ok

SELECT-OPTIONS declares an internal table which is automatically filled with values or ranges  of values entered by the end user. For each SELECT-OPTIONS , the system creates a selection table.SELECT-OPTIONS <SEL> FOR <field>.

A selection table is an internal table with fields SIGN, OPTION, LOW and HIGH.  The type of LOW and HIGH is the same as that of <field>.  The SIGN field can take the following values: I Inclusive (should apply) E Exclusive (should not apply) The OPTION field can take the following values: EQ Equal GT Greater than NE Not equal BT Between LE Less  than or equal NB Not between LT Less than CP Contains pattern GE Greater than or equal NP No pattern. diff:- PARAMETERS allow users to enter a single value into an internal field within a report.  SELECT-OPTIONS allow users to fill an internal table with a range of values.For each PARAMETERS or SELECT-OPTIONS statement you should define text elements by choosing  Goto - Text elements - Selection texts - Change. Eg:- Parameters name(30). when the user executes the ABAP/4 program,an input field for 'name' will appear on the selection screen.You can change the comments on the left side of the input fields by using text elements as described in Selection Texts.38. How do you validate the selection criteria of a report?  And how do you display initial values in a selection screen?  ANS:- validate :- by using match code objects. display :- Parameters <name> default 'xxx'.                select-options <name> for spfli-carrid.39. What are selection texts?  ANS:-40. What is CTS and what do you know about it?  ANS:-The Change and Transport System (CTS) is a tool that helps you to organize development projects in the ABAP Workbench 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 on setting up your system and client landscape and deciding on a transport strategy. Read and follow this documentation when planning your development project. For practical information on working with the Change and Transport System, see Change and Transport Organizer and Transport Management System.

Page 12: Part 1-6-ok

41. When a program is created and need to be transported to prodn does selection texts always go with it? if not how do you make sure? Can you change the CTS entries? How do you do it?  ANS:-42. What is the client concept in SAP? What is the meaning of client independent?  ANS:-43. Are programs client dependent?  ANS:-     Yes.Group of users can access these programs with a client no.44. Name a few system global variables you can use in ABAP programs?  ANS:- 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 WAS TRIGGERED.45. What are internal tables? How do you get the number of lines in an internal table?  How to use a specific number occurs statement?  ANS:-   i)It is a standard data type object which exists only during the runtime 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 memory allocations the system need to allocate for the next record population.46. How do you take care of performance issues in your ABAP programs?  Performance of ABAPs can be improved by minimizing the amount of data to be transferred.  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/4  DDIC (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 tools

ii)field symbols and field groups. ans:- Field Symbols : Field symbols are placeholders for existing fields. A Field Symbol does not physically reserve space for a field,but points to a field which is not known until runtime of the program. eg:-  FIELD-SYMBOL <FS> [<TYPE>]. 

Page 13: Part 1-6-ok

Field groups :  A field group combines several fields under one name.At runtime,the INSERT command is used to define which data fields are assigned to which field group. There should always be a HEADER field group that defines how the extracted data will be sorted,the data is sorted by the fields grouped under the HEADER field group.47. What are datasets?  ANS:- The sequential files(ON APPLICATION SERVER) are called datasets. They are used for file handling in SAP.48. How to find the return code of a statement in ABAP programs?  ANS:- Using function modules.49. What are interface/conversion programs in SAP?  ANS :  CONVERSION : LEGACY SYSTEM TO FLAT FILE. INTERFACE  : FLAT FILE TO SAP SYSTEM.50. Have you used SAP supplied programs to load master data? 51. What are the techniques involved in using SAP supplied programs?  Do you prefer to write your own programs to load master data? Why? 52. What are logical databases? What are the advantages/disadvantages of logical databases?  ANS:- To read data from a database tables we use logical database. A logical database provides read-only access to a group of related tables to an ABAP/4 program.adv:- The programmer need not worry about the primary key for each table.Because Logical database knows how the different tables 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 access performance while retaining the hierarchical data view determined by the application logic. disadv:- i)If you donot specify a logical database in the program attributes,the GET events never occur. ii)There is no ENDGET command,so the code block associated with an event ends with the next event  statement (such as another GET or an END-OF-SELECTION). 53. What specific statements do you using when writing a drill down report?  ans:- AT LINE-SELECTION,AT USER-COMMAND,AT PF.

Page 14: Part 1-6-ok

54. What are different tools to report data in SAP? What all have you used?  ans:-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 to these? 57. Is a logical database a requirement/must to write an ABAP/4 query? 59. What are Change header/detail tables? Have you used them? 60. What do you do when the system crashes in the middle of a BDC batch session?  ans:- we will look into the error log file (SM35).61. What do you do with errors in BDC batch sessions?  ANS:- We look into the list of incorrect session and process it again. To correct incorrect session we analyize the session to determine which screen and value produced the error.For small errors in data we correct them interactively otherwise modify batch input program that has generated the session or many times even the datafile.62. How do you set up background jobs in SAP? What are the steps? What are the event driven batch jobs?  ans:- 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 financial periods exist in SAP? What is the relavent table for that? 65. Does SAP handle multiple currencies? Multiple languages?  ans:- Yes.66. What is a currency factoring technique? 67. How do you document ABAP/4 programs? Do you use program documentation menu option? 68. What is SAPscript and layout set?  ans:- 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?  ans:- control commands,system commands,70. What is output determination? 71. What are IDOCs?  ans:- IDOCs are intermediate documents to hold the messages as a container.72. What are screen painter? menu painter? Gui status? ..etc.  ans:- dynpro - flow logic + screens. menu painter -  GUI Status - It is subset of the interface elements(title bar,menu bar,standard tool

Page 15: Part 1-6-ok

bar,push buttons) used for a certain screen. The status comprises those elements that are currently needed by the transaction.73. What is screen flow logic? What are the sections in it? Explain PAI and PBO.  ans:- The control statements that control the screen flow. PBO - This event is triggered before the 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?  ans:-  Create program-SE93-create transcode-Run it from command field.75. Does SAP has a GUI screen painter or not? If yes what operating systems is it available on? What is the other type of screen painter called? 76. What are step loops? How do you program pagedown pageup in step loops?  ans:- step loops are repeated blocks of field in a screen.77. Is ABAP a GUI language?  ANS:- Yes. ABAP IS AN EVENT DRIVEN LANGUAGE.78. Normally how many and what files get created when a transaction program is written?  What is the XXXXXTOP program?  ans:- ABAP/4 program. DYNPRO79. What are the include programs?  ANS:- When the same sequence 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?  ans:-  Yes- only external subroutines Using 'SUBMIT' statement.81. What are user exits? What is involved in writing them? 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?  ANS:- Should start with Y or Z.84. How do you find if a logical database exists for your program requrements?  ans:- SLDB-F4.85. How do you find the tables to report from when the user just tell you the transaction he uses? And all the underlying data is from SAP structures?  ans:- 

Page 16: Part 1-6-ok

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?  ans:-87. What are the different modules of SAP?  ans:- FI,CO,SD,MM,PP,HR.89. How do you get help in ABAP?  ans:- HELP-SAP LIBRARY,by pressing F1 on a keyword.90. What are different ABAP/4 editors? What are the differences?  ans:-91. What are the different elements in layout sets?  ans:- PAGES,Page windows,Header,Paragraph,Character String,Windows.92. Can you use if then else, perform ..etc statements in sap script?  ans:- yes.93. What type of variables normally used in sap script to output data? 94. How do you number pages in sapscript layout outputs? 95. What takes most time in SAP script programming?  ANS:- LAYOUT DESIGN AND LOGO INSERTION.96. How do you use tab sets in layout sets? 97. How do you backup sapscript layout sets? Can you download and upload? How? 98. What are presentation and application servers in SAP? ANS:- 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 presentation components, the database, and also with each other, using the message server.99. In an ABAP/4 program how do you access data that exists on a presentation server vs on an application server?  ans:- i)using loop statements. ii)flat 100. What are different data types in ABAP/4?  ans:-      Elementary -            predefined C,D,F,I,N,P,T,X.           userdefined TYPES.   ex: see in intel book page no 35/65     Structured -           predefined    TABLES.          userdefined Field Strings and internal tables.

Page 17: Part 1-6-ok

101. What is difference between session method and Call Transaction?  ans:-102. Setting up a BDC program where you find information from?  ans:- 103. What has to be done to the packed fields before submitting to a BDC session.  ans:-      fields converted into character type.104. What is the structure of a BDC sessions.  ans:-       BDCDATA (standard structure).105. What are the fields in a BDC_Tab Table.  ans:-       program,dynpro,dynbegin,fnam,fval.106. What do you define in the domain and data element.  Technical details like 107. What is the difference between a pool table and a transparent table and how they are stored at the database level.  ans:- 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 the same for Ztest1 and Ztest2 tables. M:N Cardinality specifies the number of dependent(Target) and independent (source) entities which can be in a relationship.

Part 41. A table is buffered. By select statement i dont want to get the data from

table buffer. i want to get the data from database. how?2. What is the diff b/w start_form and open_form in scripts?.why is it

necessary to close a form always once it is opened?3. What is difference between ON Change of & At New Field?? Select Single *

from & select Upto 1 rows4. Can we create Bar Chart in abap reports and how?5. CASE-1 : there are two clients using one Application Server . q1) Are pgms

and tables client-dependent/independent CASE-2 : There are two clients using different Application Servers q1) Are pgms and tables client-dependent/independent

6. When u create sales report what u can see in that report ?what rthose field names or data element names? 2.when u create material movement report what u can see in that reports ?what rthose field names or data element

Page 18: Part 1-6-ok

names? 3.what are the idoc names for material master,vendor master,customer master? 4.when u create purchase order details report what u can see in that report ?what rthose fieldnames or dataelements? 5.when u create material stock report in material master grouped by material type and plant what u can see in report ?what rthose field names or dataelement ? 6.what r the views for creating idoc in material master,vendor master and customer master? 7.when u create interactive report for displaying vendor information /customer information what u can see in that report ?what rthose dataelements or field names? 8.when u create shipping forecast report what u can see in that report ?what rthose data elements or field names? 9.when u create report for material analysis for purchasing organisation plant/vendor wise? what u can see in report ?what rthose field names or data elements?

7. How to assign multiple transaction codes in a session method to BDC_Insert function module?

8. “Check” and “Continue”. What is the difference?9. At-Line selection, At user-command etc..,10. “Exit” and “Stop”. What is the difference?11. What is the reserve command?12. Double click function on the lists, identifying the line selected by the user on

the list.13. What are event keywords in reports?14. How can validate input values in selection screen and which event was

fired?15. BDC Transaction code?16. What is the transaction code SM 31?17. How to navigate basic list to secondary list?18. If I am in 15th Secondary List how to navigate to 5th Secondary List?19. Which is the First character of creating LockObject?20. What is the Difference between Data Element and Domain?21. How many types of standard SAP Internal Tables?22. What is the Difference Between Tablecontrols and Step Loops?23. What are the Events in Dialog Programs?24. How many ways you can create Table?25. What are the Cluster Tables?26. How can you create push buttons in the MenuPainter?27. How many Layout sets u can create at a time?28. What are the Paragraph and character format?29. What are function modules in LDB?

Page 19: Part 1-6-ok

30. How can u create your own Function Module?31. What are Difference Between Classical Batch Input and Call Transaction?32. How can u call the Sessions?33. Can u call Report in Sap Script?34. How to Upload Logo to Layout Set and what is Program Name?35. What are the SET Parameter and GET Parameter?36. What are Text Elements?37. What are Dictionary Objects?38. What is an Interactive Report?39. How to Upload Logo to Layout Set?40. What are Layout set Elements?41. Distinguish between setscreen and call screen?42. What is ABAP Memory and SAP Memory?43. Explain Check Table and Value Table ?44. What is an Internal Table?45. How many types of Standard Internal Tables?46. What is Refresh in Internal Table?47. What is the Difference Between Collect and Sum?48. What are the ways of creating Tables?49. What are Function Modules?50. What is CAT?51. What is Search Help?52. Transaction Code for Recording Technique?53. What is LDB?54. What are the EVENTS in Report Program?55. Explain Call Transaction?56. What are EVENTS In Interactive Report & Explain?57. What are Text Elements?58. I have my Subroutine in one Report and that I want to Use that one in

another Report, How is it possible?59. What are the various techniques of BDC?60. How many pushbuttons u can create in application toolbar in selection

screen?61. Suppose I call one subroutine for another report , but that is not exists what

will be the result?62. What are Control Break Commands?63. What are different Modes of displays in Call Transaction in BDC?64. How many secondary Lists u can create in a Report?

Page 20: Part 1-6-ok

65. What is SQL Trace?66. What is LUW?67. Have you worked with reading and writing data on to files?68. Have you created tables in SAP? What are client dependent and

independent tables? How do you create independent tables?69. Have you used client dependent ABAP programs?70. Have you used SM30 and SM31 transactions?71. Have you used WS Upload? Difference between WS Upload and Upload.72. What is the syntax for eliminating the duplicates in Internal table.73. In dialog programming how many events are there74. What is the difference between report program and dialog program75. How many secondary lists can be made thro a report program76. How do you identify a line from the basic list.77. What is meant by a client78. How many dictionary objects are there and list all79. What is the function module used to print in a layout set80. How do you execute a layout set in a program81. What is the difference between transparent and non transparent database

tables82. How many select statements are there and list those.83. What is meant by development class84. What is meant by BDC. How many methods of BDC are there85. What is the transaction to log the errors in BDC86. How many sessions can be opened max. in SAP87. How many secondary lists can be made in interactive report88. What are the difference between table controls and step loops in dialog

programming89. What is the difference between Function module and Sub routine.90. What is initialization.91. What is ALE, IDOC , EDI , RFC. Explain briefly.92. What is a binary search93. What does SM35 transaction do?94. Types of User Exits, what kind of work is done on these exits?95. How will you find out where the user exits are available?96. SMOD and CMOD transactions97. Difference between Table-Controls and Step-loops98. Have you created any transactions?99. Import & Export

Page 21: Part 1-6-ok

100. How many interactive reports did you write?

Part 51. What is the typical structure of an ABAPTM program?2. What are field symbols and field groups.? Have you used "component idx of

structure" clause with field groups?3. What should be the approach for writing a BDC program?4. What is a batch input session?5. What is the alternative to batch input session?6. An ABAPTM program creates a batch input session. We need to submit the

program and the batch session in background. How to do it?7. What is the difference between a pool table and a transparent table and

how they are stored at the database level.8. What are the problems in processing batch input sessions? How is batch

input process different from processing on line?9. What do you define in the domain and data element.10. What are the different types of data dictionary objects?11. How many types of tables exist and what are they in data dictionary?12. What is the step by step process to create a table in data dictionary?13. Can a transparent table exist in data dictionary but not in the data base

physically?14.  What are the domains and data elements?15. Can you create a table with fields not referring to data elements?16. What is the advantage of structures? How do you use them in the ABAPTM

programs?17. What does an extract statement do in the ABAPTM program?18. What is a collect statement? How is it different from append?19. What is open sql vs native sql?20. What does an EXEC SQL stmt do in ABAPTM? What is the disadvantage

of using it? Part 61. Language Constructs

1. When using Open SQL statements in an ABAP/4 program, you must ensure the following.a) The database system being addressed must be supported by SAP.b) The database tables being addressed must be defined in the ABAP/4

Page 22: Part 1-6-ok

dictionary.c) Bothd) None

2. What is the difference between the TYPE and LIKE statements in data declaration?a) LIKE is used to define variables that are similar to the ones previously defined whereas TYPE is used to define variables that exist in data dictionary.b) LIKE is used to define variables that are similar to the ones previously defined whereas TYPE is used to define variables to refer ABAP internal data elements.c) LIKE is used to define variables that exist in data dictionary whereas TYPE is used to define variables to refer ABAP internal data elements.d) Both of them can be used interchangeably, there is no difference.

3. HIDE statement support deep structures?a) Trueb) Falsec) Not applicabled) Not applicable

4. Which of the following are true?a) ABAP queries are created by associating them to a logical database or through a direct read/data retrieval program.b) ABAP queries are created from functional areas that are created from a logical database or through a direct read/retrieval program.c) ABAP queries are created from user groups attached to the functional areas that are created from a logical database or through a direct read/retrieval program.d) ABAP queries are created through the regular report program.

5. A logical unit of work (LUW or transaction) begins a) Each time you start a transaction.b) Each time you end a transaction.c) When the database changes of the previous LUW have been confirmed (database commit).d) Before the database changes of the previous LUW have been cancelled (database rollback).

Page 23: Part 1-6-ok

6. A database commit is triggered bya) ABAP/4 command COMMIT WORK.b) CALL SCREEN, CALL DIALOG.c) A Remote Function Calld) CALL TRANSACTION

7. Open SQL vs. Native SQLa) A database interface translates SAP’s Open SQL statements into SQL commands specific to the database in use. Native SQL statements access the database directly.b) When you use Native SQL, the addressed database tables do not have to be known to the ABAP/4 dictionary. In Open SQL, the addressed database tables must be defined in the ABAP/4 dictionary.c) There is automatic client handling in Native SQL whereas clients must always be specified in Open SQL.d) None of above

8. The following are true about ‘EXEC SQL’. a) You can end the Native SQL with a semicolon.b) You can end the Native SQL with a period.c) You cannot perform reliable authorization checks using EXEC SQL.d) Host variables in the Native SQL are identified with a preceding hash (#).

9. What are field symbols? a) Field symbols are like pointers in C that can point to any data object in ABAP/4 and to structures defined in ABAP/4 dictionary.b) Field symbols have to be created with type specifications only.c) You cannot assign one field symbol to another.d) All operations you have programmed with the field symbol are carried out with the assigned field.

10. EXTRACT statement a) The first EXTRACT statement extracts the first extract record.b) The first EXTRACT statement creates the extract dataset and adds the first extract record.c) Each extract record contains, if specified, the fields of the field group.d) Each extract record contains, if specified, the fields of the field symbol.

Page 24: Part 1-6-ok

11. You cannot assign a local data object defined in a subroutine or function module to a field group. a) Trueb) Falsec) Not applicabled) Not applicable

12. Which of the following system fields keep track of each pass in LOOP statement?a) SY-STEPLb) SY-INDEXc) SY-TABIX d) B and C both

13. data: begin of group1, f1 type I value 1, f2 type I value 1, f3 type c value '1', f4 type I value 1, end of group1. 

Data: begin of group2, g1 type I value 1, f1 type I value 1, f2 type I value 1, g4 type c value '1', end of group2. 

Do 2 times. Add-corresponding group1 to group2. Enddo. 

Write: group2-g1, group2-f1, group2-f2, group2-g4. What is the output of the above code after execution? a) 1221 b) 2222 

Page 25: Part 1-6-ok

c) 3333 d) 1331 

14. Which one of the following SQL statements does NOT lock the affected database entries ? a) insert b) modify c) select single for update d) select * 

15. Which one of the following is an example of an asynchronous update? a) insert wa into ztable. b) call function 'update_table' in update task. c) update ztable from ztable. d) modify ztable from wa. 

16. REPORT ZTEST. 

TABLES: MARC. 

DATA: ZWERKS LIKE MARC-WERKS. 

Which one of the following contains the length definition of ZWERKS? 

a) The DATA statement b) The Data Element used in MARC-WERKSc) Table MARC d) The Domain used in Data Element of MARC-WERKS

17. 1. Data: Begin of imara occurs 0. 2. Include structure mara. 3. Data: End of imara. 4 Data: number like mara-matnr value ‘123’. 5. Select * into table imara 6. From mara where matnr = number. 7. If sy-subrc = 0. 8. Write:/ imara. 

Page 26: Part 1-6-ok

9. Endif. 10. Endselect. 

Which line in the above code contains a syntax error? 

a) Line 5 b) Line 6 c) Line 8 d) Line 10 

18. data: f1 type I value 1, f2 type I value 1. 

Write: / f1, f2. 

Do 2 times. Perform scope. Enddo. 

Write: / f1, f2. 

Form scope. Data: f1 type I value 2, f2 type I value 2. 

Add: 1 to f1, 1 to f2. Write: / f1, f2. Endform. 

What is the output of this program after execution? a) 1 1 3 3 4 4 4 4 

b) 1 1 2 2 

Page 27: Part 1-6-ok

3 3 3 3 

c) 1 1 3 3 3 3 1 1 

d) 1 1 3 3 3 3 3 3

19. data: begin of period, f1 type I value 5, f2 type I value 5, f3 type I value 5, f4 type I value 5, f5 type I value 2, end of period.

Data: amt type I, total type I. 

do 5 times varying amt from period-f1 next period-f2. if sy-index <= 4. add amt to total. endif. enddo. 

Write: / 'Amt:',amt, 'Total', total. 

What is the output of the above code after execution? a) Amt: 2 Total: 22 b) Amt: 2 Total: 20 c) Amt: 5 Total: 20 d) Amt: 5 Total: 10 

Page 28: Part 1-6-ok

20. data: field1(4) type c value 'ABCD'. 

if field1 co 'ABCD'. 

endif. 

If the above statement is evaluated as true, what is the value of sy-fdpos? a) 0 b) D c) ABCD d) A 

21. 1 case number. 2 when 1. Write '1'. 3 when 2. Write '2'. 4 when 3. Write: / '3'. 5 when number > 5. Write '>5'. 6 endcase. 

Which line in the above code contains a syntax error? 

a) Line 2 b) Line 4 c) Line 5 d) Line 6 

22. Which of the following are elementary types in ABAP? a) C,D,F,I,N,P,Q,T b) C,D,F,I,N,P,T,X c) A,D,F,H,N,P,T,X d) A,D,F,I,N,P,T,X 

Tables

23. Which of the following are true?a) TABLE is used as a synonym for STANDARD TABLE 

Page 29: Part 1-6-ok

b) You can only access a hashed table using the generic key operations. Explicit or implicit index operations (such as LOOP ... FROM oe INSERT itab within a LOOP) are not allowed.c) All hashed tables are index tables.d) We have to define the hash procedure explicitly for HASHED TABLE.

24. Can a transparent table exist in data dictionary but not in the database physically? a) Trueb) Falsec) Not Applicabled) Not Applicable

25. Which statement is used to get the number of lines in an internal table?

a) DESCRIBE table b) LINES c) LINEd) All of the above

26. If CHECK statement is outside the loop structure and if the condition fails?a) Subsequent statements in the current processing blocks are executedb) Subsequent statements in the current processing blocks are not executedc) Program gets terminatedd) There is an error message

27. SORT statement can sorta) External as well as internal tableb) Database tablesc) Internal Tablesd) B and C

28. Join statements can be used with Cluster tables?a) Trueb) Falsec) Not Applicabled) Not Applicable

Page 30: Part 1-6-ok

29. It is always faster to use the Into Table version of a Select statement than to use Append statements?a) Trueb) Falsec) Not Applicabled) Not Applicable

30. From the performance point of view, if you want to process the data only once, which of the following will you use?a) Selecting the data into an internal table and then LOOP through internal table.b) Do the processing in SELECT..END SELECTc) Select the records in the loop and then process each individuallyd) Each of the above will be equally efficient

31. Two internal tables are equal if a) Internal tables cannot be compared for equalityb) It has same number of lines c) Each pair of corresponding lines is equald) A and B both

32. Which of the following will happen if you write ‘DELETE itab’ statement in your program?a) All entries of Internal table will be deletedb) Only the header line will be deletedc) The row corresponding to header line will be deleted from the internal tabled) The program will give syntax error.

33. Which of the following statements is/are syntactically correct?

a) PERFORM sub1 TABLES itabCHANGING var1.b) PERFORM sub1 CHANGING var1TABLES itab .c) Both of the aboved) None of the above

34. Which of the following will happen if you write ‘DELETE itab’ statement?a) All entries of Internal table will be deletedb) Only the header line will be deletedc) The row corresponding to header line will be deleted from the internal tabled) The program will give syntax error.

Page 31: Part 1-6-ok

35. Transparent table ztable consists of field1 and field2. Internal Table Itab has structure like ztable. Which one of the following is the fastest way to fill an internal table given the information above? a) select * into corresponding-fields of itab from ztable where field1 = '10'. b) select field1 field2 into (itab-field1, itab-field2) from ztable where field1 = '10'. Append itab. Endselect. c) select * into table itab from ztable where field1 = '10'. d) select * from ztable where field1 = '10'. Move ztable to wa. Append itab from wa. Endselect. 

36. data: begin of itab occurs 0, num1 type I, num2 type I, num3 type I, mark, end of itab. 

Itab entries: 1 2 3 D 2 3 4 3 4 5 D 4 5 6 D 7 8 9 d 7 8 9 D 

Delete from itab where mark eq 'D'.

Given the ITAB entries, what are the contents of ITAB after executing the above code? a) 2 3 4 3 4 5 D 4 5 6 D 7 8 9 d 7 8 9 D 

b) 1 2 3 D 2 3 4 

Page 32: Part 1-6-ok

3 4 5 D 4 5 6 D 7 8 9 d 

c) 2 3 4 7 8 9 d 

d) 2 3 4 

Which of the following statements define internal tables with a header line? 

a) Data: Begin of itab occurs 0, field1, End of itab. b) Data: Itab1 like itab occurs 0. c) Data: Itab1 type itab occurs 0. d) Data: Begin of itab1 occurs 0. Include structure itab. Data: End of itab1. 

37. DATA: BEGIN OF ICODE OCCURS 0, FIELD1(5), FIELD2(5), END OF ICODE. 

The internal table icode contains the following entries: Field1 Field2 ------- ------ John 12345 Alice 23478 Sam 54321 john 50000 

READ TABLE ICODE WITH KEY FIELD1 = 'John' BINARY SEARCH. 

Why does executing the above code return a sy-subrc of 4? a) The internal table has an incorrect structure. b) Icode-field2 must be a numeric field. c) Both internal table fields must be used in the search. d) The internal table must be sorted first. 

38. Which of the following are true?a) COLLECT can only be used with STANDARD TABLE.b) To use COLLECT, the internal table should be derived from a database table with an explicit key.

Page 33: Part 1-6-ok

c) If the system finds a numeric component, that is not part of the key, the numeric fields that are not part of the table key (see ABAP number types) are added to the sum total of the existing entries. If it does not find an entry, control passes on to the next record in the internal table.d) If the system finds a numeric component, that is not part of the key, the numeric fields that are not part of the table key (see ABAP number types) are added to the sum total of the existing entries. If it does not find an entry, the system creates a new entry instead.

39. data: begin of itab occurs 0, field1, end of itab. 

Do 3 times. Append initial line to itab. Append 'X' to itab. Enddo. 

Describe table itab. Write: sy-tfill. 

What is the value of sy-tfill after executing the above code? a) 1 b) 2 c) 3 d) 6 

40. Loop at itab. Write itab. Endloop. 

From where is the written line derived in the above loop statement? 

a) The table header b) The table work area c) sy-index d) sy-lisel 

41. DATA TEXT(72). 

DATA CODE LIKE TABLE OF TEXT. 

TEXT = 'This is the first line.'. 

Page 34: Part 1-6-ok

APPEND TEXT TO CODE. 

TEXT = 'This is the second line. '. 

APPEND TEXT TO CODE. 

TEXT = 'This is the third line.'. 

APPEND TEXT TO CODE. 

WRITE 'not' TO CODE+8 INDEX 3. WRITE 'modified line.' to code+12 INDEX 2. 

LOOP AT CODE INTO TEXT. 

WRITE / TEXT. 

ENDLOOP. 

What is the result of the above code after execution? a) This is the first line. This is the modified line. This is not the third line. 

b) This is the first line. This is the modified line. This is not third line. 

c) This is the first line. This is the modified second line. This is not third line. 

d) This is the first line. This is the second line. This is the third line. 

ABAP/4 Data Dictionary

42. Can you create a table with fields not referring to data elements?a) Yesb) Noc) Not Applicabled) Not Applicable

43. Which transaction code is used for deleting entire table contents?a) SE17

Page 35: Part 1-6-ok

b) SE30c) SE14d) SE09

44. Which of the following are true?a) Pooled tables can be used to store control data like screen sequences, program parameters etc.b) Several cluster tables are stored in one corresponding table on the database.c) Bothd) None

45. Which database object is used for storing the system variables?

a) SYST tableb) SYST structurec) SYSTEM tabled) SYSTEM structure

46. What makes a text table?a) The type of foreign key field defined must be “No Key/Candidates”b) The key of the text table consists of the key of the check table plus an additional language keyc) Cardinality must be defined as 1:1d) The table has to be client independent

47. From the list below which is not a data class in the Dictionary?a) Master Datab) Organizational Datac) Project Datad) System Data

48. Identify the case where table buffering is set to off.a) When the most current data is requiredb) When the most current data is not requiredc) Small static tables i.e. tables do not change muchd) b and c

49. When using SAP Buffering on database tables, which statement does NOT result in database access? a) select distinct.. b) select single.. c) using (Is null) in the where clause d) using aggregate functions in the select clause 

50. A structured type in the ABAP dictionary that has no physical table definition in the underlying database is referred to as :

Page 36: Part 1-6-ok

a) Tableb) Table Typec) Structured Typed) Structure

51. When are Dictionary changes made available to a program?a) Immediately provided object is activatedb) Next time user logs onc) Next time program is regeneratedd) After Database is re-organized

52. Which of the following do not exist in the underlying database?a) Transparent Tableb) Structurec) Viewd) Internal tables

53. Full buffering would be appropriate for what type of tables:a) Small static tablesb) Transaction Tablesc) Tables with generic keysd) b and c

54. You have added an append structure to a standard SAP table. What happens to the standard table when a new version of table is imported during an SAP version upgrade:a) The standard table is returned to standard. Therefore, the append structure must be manually re-appliedb) The append fields are automatically appended to the table upon activation but you must still convert the tablec) All append structures are deleted. A new append structure must be created and added to the standard tabled) When the standard tables are activated, the append structure is automatically added to the standard table

55. Which of the following are TRUE for SQL trace utility (tcode ST05) in SAP -a) SQL trace utility traces database access for a specific program b) SQL trace utility traces database access for all transactions by a specific userc) SQL trace result shows details of queries on database tablesd) SQL trace result can show details of queries on internal tables

56. A table ztest has the following secondary index: tnum, tcode. 

Select * from ztest where tnum ne '123' and tcode = '456'. 

Why does a SQL trace confirm that the secondary index is NOT used in the code

Page 37: Part 1-6-ok

above? a) Client is not in the where clause b) NE invalidates the use of an index c) Variables must be used, NOT literals d) Indexes are not allowed on Z tables 

Batch Data Communication

57. How do you create a batch input session for a transaction?a) We create a bdc and use ‘call transaction’ in background mode.b) We create a bdc and use ‘call transaction’ in error mode.c) We create a bdc and use ‘bdc_insert’ for the transaction.d) None of the above.

58. What is the alternative to batch input session?a) Load moduleb) Call transactionc) BAPId) Idoc segment

59. Which SAP table stores the BDC session queue information?a) APQDb) APQLc) APQQd) APQI

60. Which program can be used to release BDC sessions within a job? a) RSBDCSUB b) RSBDCJOB c) RSSUBBDC d) BDCRECXX 61. Which one of the following is output to the job log when included in an ABAP program running in the background? a) Write statements b) message statements c) report parameters d) Submit statements 

62. Your program specs call for you to read the first 10 records from a text file (fname1), and write them out to another text file (fname2). 

Which block of code will accomplish the result desired in the above scenario? a) Open dataset fname2 for input in text mode. Do 10 times. Read dataset fname1 into hold_var. Transfer hold_var to fname2. 

Page 38: Part 1-6-ok

Enddo. 

b) open file fname1 for output. Open file fname2 for input. Read dataset fname1 into hold_var 10 times. Transfer hold_var to fname2. 

c) open file fname1 for input. Open file fname2 for output. Do 10 times. Read file fname1 into hold_var. Transfer hold_var into fname2. Enddo.

d) open dataset fname1 for input in text mode. Open dataset fname2 for output in text mode. Do 10 times. Read fname1 into hold_var. Write hold_var to fname2. Enddo. 

63. sy-dynpro is a) screen nob) programc) tabled) field name

64. Which of the following are NOT correct usage of BDC_cursor?a) To position the cursor on a particular field.<bdc_tab>-FNAM = 'BDC_CURSOR'.<bdc_tab>-FVAL = ‘fieldx’ .

b) To position the cursor on a particular field.<bdc_tab>-FNAM = ‘fieldx’ <bdc_tab>-FVAL = 'BDC_CURSOR'. .

c) For fifth row of Table control <bdc_tab>-FVAL = 'fieldx(5)'.

d) For fifth row of Table control <bdc_tab>-FNAM = 'BDC_CURSOR(5) '.

65. In case of background processing of a BI session, which authorization is checked?a) Developer of the program that schedules BI Session b) User who executes the BI session 

Page 39: Part 1-6-ok

c) User who executes the program that schedules BI Session d) User ID that is passed to the BDC_OPN_GROUP function module inside the calling program 

66. Which of the following are TRUE about Transaction Recorder?a) Transaction Code is SHDB b) Transaction Code is SM35 c) It can generate ABAP code for the BDC program automatically d) It can generate ABAP code for the Call Transaction program automatically SAP Script

67. The following are true about SAPscript control commands. a) If a control command is unknown or it contains syntax errors, the line containing it will be printed out as it is.b) If a control command is unknown or it contains syntax errors, the line containing it will be treated as a comment line.c) A maximum of one control command may appear in each line.d) A maximum of six control commands may appear in each line.

68. To output SAPscript layout sets, in the print programa) You must always start the output with OPEN_FORM and end it with CLOSE_FORM.b) Within one transaction, you can use only one OPEN_FORM and CLOSE_FORM to open and close a layout set.c) WRITE_FORM should be used within an OPEN_FORM and CLOSE_FORM.d) WRITE_FORM can be used without an OPEN_FORM and CLOSE_FORM.

69. Which transaction do we use for debugging SAP Script?a) SE61b) SE72c) SE71d) None of the above.SAP Enhancements

70. The transaction cmod and smod area) Used to create enhancements to standard SAP programs.b) Used to create enhancements to ABAP queries.c) Used to create the user exits, menu exits and screen exits.d) Used to modify the standard function groups.

Interfaces and Queries

71. What happens if we write COMMIT WORK is written within SELECT..END SELECT.

Page 40: Part 1-6-ok

a) All the transactions will be committed.b) The first transaction is committed and the program exits the loop.c) Program will create a short dumpd) A runtime error will occur.

72. How many function modules can be present in a function group?

a) 30b) 49c) 99d) There is no such limit

73. Can you call a subroutine of one program from another program, which is not an include program?a) Trueb) Falsec) Not Applicabled) Not Applicable

74. Which of the following statements is TRUE?a) The ABAP statement ‘IMPORT ... TO MEMORY’ overwrites the old data in ABAP memory.b) The ABAP statement ‘EXPORT ... TO MEMORY’ appends to the already existing data in ABAP memory.c) The ABAP statement ‘EXPORT ... TO MEMORY’ overwrites the old data in ABAP memory.d) The ABAP statement ‘IMPORT ... TO MEMORY’ appends to the already existing data in ABAP memory.

75. SAP Memory and ABAP/4 memory refer to the same memory space?a) Trueb) Falsec) Not Applicabled) Not Applicable

76. Which statement is INCORRECT when referring to SAP memory or ABAP memory? 

a) SAP memory is also referred to as Global Memory. b) SAP memory is available across transactions. c) IMPORT/EXPORT (TO MEMORY) statements are used for SAP memory. d) You can use ABAP memory to pass data between internal sessions. 

77. Which one of the following are true about a function module? a) Function modules CANNOT be created by a programmer. b) Function modules are locally accessible objects. 

Page 41: Part 1-6-ok

c) Function modules use a memory area separate from calling program. d) Function modules have inbound and outbound parameters. 

IDOC

78. An IDOC structure is composed ofa) One substructure, substructure consists of several fieldsb) Several segments, each segments has several data elementsc) Several substructures, each one made up of several data fieldsd) Several segments, each segment consists of several data fields

79. Read the 2 statements below and pick the right answer choiceA. Archived files can be analyzed without reloading the fileB. An archived IDOC can be reloaded and then archived 

a) A & B are trueb) Only B c) Only Ad) Both are false

80. The transaction for archiving IDOC’s isa) WARCb) WEARc) SARAd) SARC

81. An IDOC contains data for 3 purchase orders (type ORDERS01, with 1 mandatory segment, 11 other segments which are permitted to be multiple). Read the following statements which could describe the content of the idoc, and pick the right combination:A. It will have 3 control recordsB. It will have 1 control recordC. It will have a minimum of 3 data recordsD. It will have a minimum of 1 data recordE. It will have a minimum of 48 data recordsF. It will have at least 1 status recordG. It will have at least 3 status recordsa) A, C, Fb) B, C, Fc) B, C, Gd) A, E, G

82. Which of the following statements is true?A. An IDoc type can have many messages types associated with it.B. An IDoc can have many messages associated with it.C. A message type can be associated with many IDoc types.

Page 42: Part 1-6-ok

a) A and Cb) A and Bc) Only Ad) All the statements

83. Pick the right answerA. An idoc type is dependent on the direction of data flow (inbound/outbound).B. The control record has a field ‘DOCTYP’ which indicates whether the IDOC is of the type inbound or outbounda) Only A is trueb) Only B is truec) A and B are trued) Neither A nor B are true

84. The control record field which determines the direction of the IDoc can have valuese) ‘X’ and ‘ ‘ (space)f) ‘1’ and ‘2’, The meaning of the values isC. X inbound, space outboundD. X outbound, space inboundE. 1 inbound, 2 outboundF. 1 outbound, 2 inbound Pick the right combinations of statements, which are truea) A, Cb) A, Dc) B, Ed) B, F

85. The area menu from which EDI tools can be accessed isa) WALEb) WEDIc) SALEd) SEDI

86. The transactions for documentation on IDOC structures area) WE60 to WE64b) SA60 to SA64c) WE80 to WE84d) SA20 to SA24

Report Programming

87. How do you check whether a report is submitted in background?a) The system variable, sy-batch is set to ‘X’.b) The system variable, sy-binpt is set to ‘X’.

Page 43: Part 1-6-ok

c) The system variable, sy-calld is set to ‘X’.d) Not applicable

88. Which transaction code is used executing a report (type 1 program)?

a) SE38b) SA38 c) SM38d) All of the above

89. When is the TOP-OF-PAGE event triggered?a) After executing first write statement in start-of-selection event.b) At every new page in the report outputc) After the REPORT statementd) A and B

90. Which of the following additions for SELECT-OPTIONS would disable the ranges on selection screen?a) NO-RANGESb) NO INTERVALSc) NO RANGESd) NO-INTERVALS 91. What is the structure for the following select-options? Select-options: zname like ztable-name. a) zname-sign     zname-value     zname-low     name-high 

b) zname -sign     zname-option     zname-low     zname-high 

c) zname -include     zname-pattern     zname-range 

d) zname-sign     zname-option     zname-low 

92. Following properties are given:· Must use mara-matnr's conversion exit · Is a required field · Appears as 100 on the selection screen 

Page 44: Part 1-6-ok

· Check for a valid mara-matnr 

Which one of the following is the correct way to define a selection-screen parameter (n) with the above properties? a) parameters: n type I default '100'. b) parameters: n like mara-matnr default ‘100’ obligatory. At selection-screen on n. Select single * from mara where matnr = n. If sy-subrc ne 0. Message e000(00) with 'Incorrect number'. Endif. c) parameters: n like mara-matnr default 100 obligatory. d) parameters: n type I default 100 required. At selection-screen on n. Select single * from mara where matnr = n. If sy-subrc ne 0. Message e000 with 'Incorrect number'. Endif. 

93. Report specs call for a selection screen with 1 parameter inside a frame. Which code block will accomplish this? 

a) Selection-screen begin of frame b1 with frame title t-001. Parameters: p1 like ztable-field1.Selection-screen end of frame b1. 

b) Selection-screen begin-of-frame b1 with frame title t-001. Parameters: p1 like ztable-field1.Selection-screen end-of-frame b1. 

c) Selection-screen begin-of-block b1 with frame title t-001. Parameters: p1 like ztable-field1.Selection-screen end-of-block b1. 

d) Selection-screen begin of block b1 with frame title t-001. Parameters: p1 like ztable-field1.Selection-screen end of block b1. 

94. Which return code is associated with a failed authority check due to lack of user authorization for the chosen action? a) 0 b) 4 c) 8 d) 12 

95. You are required to create a selection screen with 1 input parameter: A date

Page 45: Part 1-6-ok

range which defaults to the last 1 week (today-7,today) 

Which is the correct block of code for the above request? a) select-options: s_date type date. 

Initialization. Move: sy-datum to s_date-high, sy-datum - 7 to s_date-low. Append s_date. 

b) select-options: s_date for sy-datum. 

Initialization. Move: sy-datum - 7 to s_date-low, sy-datum to s_date-high. Append s_date. 

c) select-options: s_date type d default sy-datum - 7, sy-datum. 

d) select-options: s_date for sy-datum default sy-week, 

96. Which one of the following statements is a valid use of the write command? a) write text(3)(4). b) write text(3)4. c) write text+(3)(4). d) write text+3(4). 

97. When using an edit mask, which one of the following fields will be output with a leading sign? a) field1 using edit mask '**_LLV' b) field1 using edit mask 'RR__,_' c) field1 using edit mask 'LL__,_' d) field1 using edit mask 'V__' 

98. For the events in Classical Reports :1. Initialisation2. At Selection Screen3. Start Of Selection ( Get & Get Late in case of Logical Database )4. End of Selection5. Top of Page6. End of Pagesequence of calling is :a) 1,2,3,4, 5, 6b) 2,1, 3,4, 5, 6c) 1,2, 5, 6, 3,4

Page 46: Part 1-6-ok

d) 2,1, 5, 6, 3,4

99. The sequence of events in Interactive Reports is1. At Line Selection2. At User Command3. At PFKEY4. Get Cursor5. Read

a) 1,2,3,4, 5b) 1,2,3,5, 4,c) 1, 2, 4, 5, 3d) 1, 3, 5, 4, 2

100. What is max no of lists u can attach to basic list?(interactive report)a) 22b) 20c) 18d) 1

General

101. If a break-point statement is written in an ABAP program and the program is run in the background mode, which of the following is true.a) Break-point statement will be ignored and program will complete the execution.b) System generates a Sys log messagec) Program will create a short dumpd) None of the above

102. When a program is created and transported the selections texts are always transported along with the program.a) Trueb) Falsec) Not Applicabled) Not Applicable

103. Programs and reports are client dependent.a) Trueb) Falsec) Not Applicabled) Not Applicable

104. Which transaction code is used for creating a background job?

a) SM37

Page 47: Part 1-6-ok

b) SM35 c) SM36d) SM38

105. Can variants be transported across systems?

a) Yesb) Noc) Not Applicabled) Not Applicable

106. Are variants client dependent?a) Yesb) Noc) Not Applicabled) Not Applicable

107. What are the functions in the editor command line?a) F1b) F4c) F3d) F8

108. What does the transaction code /i1 do?a) Shifts to the first session of the userb) This terminates the first session of the userc) Terminates the current session of the userd) No transaction with this code exists.

109. Which transaction code is used for deleting the user lock on tables?a) SE12b) SE11c) SM12d) SM11

110. What transaction is used to create background jobs? a) SM30 b) SM35 c) SM36 d) SM37 111. Which one of the following transaction types is INVALID? a) Area b) Modal c) Variant d) Report 

Page 48: Part 1-6-ok

112. Which one of the following statements are TRUE? a) After a TRANSPORT REQUEST is released, no further changes to its' objects are allowed. b) Development classes can be viewed by using transaction SE80. c) Local objects CANNOT be transported to another instance. . d) A TRANSPORT REQUEST contains objects that can be transported to Quality or Production SAP instances.

113. Which one of the following statements are FALSE about Inactive objects in SAP?a) Development Objects are always saved as inactive versions.b) An inactive version of a Development Object is written to developer’s pc c) In DISPLAY mode, other users can NOT access the code of inactive version of a developer d) Generating a runtime object is same as activating a development object.

Dialog Programming114. Program specs call for screen 100 to appear in a modal dialog box. 

Process After Input. module do_something. 

module do_something. If field1 = 'X'. Call screen '0100'. Endif. Endmodule. 

Why does the above code fail to produce a modal box? a) The code must occur in the PBO. b) The screen is of the wrong type. c) The screen should be numbered 900. d) Screens are not called within modules. 

115. Which one of the following statements would occur in the PBO of a dialog program using table control? a) module user_command. b) set screen '0100'. c) loop at itab. d) loop at itab with control itab_tc.