Sap abap interview questions sap interview questions for freshers

7,132 views

Published on

Abap Interview Question

Published in: Career, Technology
1 Comment
9 Likes
Statistics
Notes
No Downloads
Views
Total views
7,132
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
418
Comments
1
Likes
9
Embeds 0
No embeds

No notes for slide

Sap abap interview questions sap interview questions for freshers

  1. 1. 10/12/13 SAP ABAP Interview Questions: SAP Interview Questions for freshers Share 0 More Next Blog» Create Blog Sign In SAP ABAP Interview Questions Tuesday, June 29, 2010 SAP Interview Questions for freshers Interv iew Questions and Answers All ty pe of Latest Sample and adv anced Interv iew questions and answers ( FAQs ) SAP ABAP INTERV IEW QUESTIONSABAP / 4 INTERV IEW QUESTIONS WITH ANSWERS 1 ) What is SAP R/3? Ans SAP R/3 refers to Sy stems Application and Product for data processing Real-time hav ing a 3 tier architecture i.e. Presentation lay er, Application lay er and Database lay er. • What are the contents in technical specifications? Ans There are fiv e contents in Technical Settings: Data Class, Size Category , Buffering Permission, Buffering Ty pe and Logging. • What is an instance? Ans When y ou call a function module, an instance of its function group plus its data, is loaded into the memory area of the internal session. An ABAP program can load sev eral instances by calling function modules from different function groups. • What is Function group? Difference between function group and function module? Ans Function Groups act as containers for Function Modules that logically belong together. Function Groups 1 ) These cannot be defined in a Function Module. 2) It cannot be called. 3) They are containers for Function Module. Function Modules 1 ) These must be defined in a Function Group. 2) It can be called from any program. 3) They are not containers for Function Group. • What is the difference between ‘Select single * ‘ and ‘Select upto 1 rows’? Ans ‘Select single *’ – The result of the selection should be a single entry . If it is not possible to identify a unique entry , the sy stem uses the first line of the selection. For e.g. DATA : ITAB TY PE ZREKHA_EMP. SELECT SINGLE * FROM ZREKHA_EMP INTO ITAB WHERE EMPNO = ‘001 01 ’ AND DEPTNO = ‘001 0’. WRITE : / ITAB-EMPNO, ITAB-EMPNAME,ITAB-DEPTNO. Select upto 1 rows sapabapinterviewquestions.blogspot.in/2010/06/sap-interview-questions-for-freshers.html 1/10
  2. 2. 10/12/13 SAP ABAP Interview Questions: SAP Interview Questions for freshers • What Function does data dictionary perform? Ans Central information repository for application and sy stem data. The ABAP Dictionary contains data definitions (metadata) that allow y ou to describe all of the data structures in the sy stem (like tables, v iews, and data ty pes) in one place. This eliminates redundancy . • Difference between domain and data element? What are aggregate object? Ans Domain - Specifies the technical attributes of a data element - its data ty pe, length, possible v alues, and appearance on the screen. Each data element has an underly ing domain. A single domain can be the basis for sev eral data elements. Domains are objects in the ABAP Dictionary . Data Element - Describes the business function of a table field. Its technical attributes are based on a domain, and its business function is described by its field labels and documentation. Aggregate Object – V iews, Match Code and Lock objects are called aggregate objects because they are formed from sev eral related table. • What is v iew? Different ty pes of v iew. Ex plain? Ans V iew - A v iew is a v irtual table containing fields from one or more tables. A v irtual table that does not contain any data, but instead prov ides an application-oriented v iew of one or more ABAP Dictionary tables. Different Ty pes of V iew: 1 ) Maintenance 2) Database – It is on more than two tables. 3) Projection – It is only on one table. 4) Help • Can u print decimals in ty pe N? What is difference between float and packed data ty pe? Ans No, we cannot print decimals in ty pe N because decimal places are not permitted with N data ty pe. Float Data Ty pe: It cannot be declared in Parameters. Packed Number: It can be declared in Parameters. For e.g. PARAMETERS : A(4) TY PE P DECIMALS 2, B(4) TY PE P DECIMALS 2. DATA : C(4) TY PE P DECIMALS 2. C = A + B. WRITE : / ‘THE SUM IS’ , C. • What is step-loop? Ex plain all the steps? Ans A step loop is a repeated series of field-blocks in a screen. Each block can contain one or more fields, and can ex tend ov er more than one line on the screen. • Step loops as structures in a screen do not hav e indiv idual names. The screen can contain more than one step-loop, but if so, y ou must program the LOOP…ENDLOOPs in the flow logic accordingly . The ordering of the LOOP…ENDLOOPs must ex actly parallel the order of the step loops in the screen. The ordering tells the sy stem which loop processing to apply to which loop. Step loops in a screen are ordered primarily by screen row, and secondarily by screen column. • Transaction TZ61 (dev elopment class SDWA) implements a step loop v ersion of the table y ou saw in transaction TZ60. Static and Dy namic Step Loops Step loops fall into two classes: static and dy namic. Static step loops hav e a fix ed size that cannot be changed at runtime. Dy namic step loops are v ariable in size. If the user re-sizes the window, the sy stem automatically increases or decreases the number of step loop blocks display ed. In any giv en screen, sapabapinterviewquestions.blogspot.in/2010/06/sap-interview-questions-for-freshers.html 2/10
  3. 3. 10/12/13 SAP ABAP Interview Questions: SAP Interview Questions for freshers y ou can define any number of static step loops, but only a single dy namic one. Y ou specify the class for a step loop in the Screen Painter. Each loop in a screen has the attributes Loopty pe (fix ed=static, v ariable=dy namic) and Loop count. If a loop is fix ed, the Loop count tells the number of loop-blocks display ed for the loop. This number can nev er change. Programming with static and dy namic step loops is essentially the same. Y ou can use both the LOOP and LOOP AT statements for both ty pes. Looping in a Step Loop When y ou use LOOP AT with a step loop, the sy stem automatically display s the step loop with v ertical scroll bars. The scroll bars, and the updated (scrolled) table display , are managed by the sy stem. Use the following additional parameters if desired: •FROM and TO •CURSOR • What are the v arious ty pes of selection screen ev ent? Ans SELECTION-SCREEN BEGIN OF BLOCK ABC WITH FRAME TITLE T01 . SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW. CALL SELECTION-SCREEN 500 STARTING AT 1 0 1 0. • What are the sy stem fields? Ex plain? Ans The ABAP sy stem fields are activ e in all ABAP programs. They are filled by the runtime env ironment, and y ou can query their v alues in a program to find out particular states of the sy stem. Although they are v ariables, y ou should not assign y our own v alues to them, since this may ov erwrite information that is important for the normal running of the program. Howev er, there are some isolated cases in which y ou may need to ov erwrite a sy stem v ariable. For ex ample, by assigning a new v alue to the field SY -LSIND, y ou can control nav igation within details lists. • What is SAP Script? What is the purpose of SAP Script? Difference between SAP Script and Report? • SAP Script – It is the integrated tex t management sy stem of the SAP R/3 Sy stem. Two ty pes – PC Editor & Line Editor. • Reports - It is the way to display data fetched from database table onto screen or directly output it to a printer. Two ty pes – Classical and Interactiv e. • What is the use of occurs in internal table? Can u change occurs v alue in program? Ans Use of Occurs - If y ou use the OCCURS parameter, the v alue of the INITIAL SIZE of the table is returned to the v ariable Data : Begin of ITAB occurs 0, End of ITAB. Occurs or Initial Size – to specify the initial amount of memory that should be assigned to the table. Y es, we can change the occurs v alue in program but output remains the same. • Difference between SY -TABIX and SY -INDEX? Where it is used? Can u check SY -SUBRC after perform? SY -TABIX - Current line of an internal table. SY -TABIX is set by the statements below, but only for index tables. The field is either not set or is set to 0 for hashed tables. * APPEND sets SY -TABIX to the index of the last line of the table, that is, it contains the ov erall number of entries in the table. * COLLECT sets SY -TABIX to the index of the ex isting or inserted line in the table. If the table has the sapabapinterviewquestions.blogspot.in/2010/06/sap-interview-questions-for-freshers.html 3/10
  4. 4. 10/12/13 SAP ABAP Interview Questions: SAP Interview Questions for freshers ty pe HASHED TABLE, SY -TABIX is set to 0. * LOOP AT sets SY -TABIX to the index of the current line at the beginning of each loop lass. At the end of the loop, SY -TABIX is reset to the v alue that it had before entering the loop. It is set to 0 if the table has the ty pe HASHED TABLE. * READ TABLE sets SY -TABIX to the index of the table line read. If y ou use a binary search, and the sy stem does not find a line, SY -TABIX contains the total number of lines, or one more than the total number of lines. SY -INDEX is undefined if a linear search fails to return an entry . SEARCH FOR sets SY -TABIX to the index of the table line in which the search string is found. SY _INDEX - In a DO or WHILE loop, SY -INDEX contains the number of loop passes including the current pass. • What are the different functions used in sap script? What are the parameters used in each Function? Ans There are three different functions used in SAP Script: 1 ) OPEN_FORM 2) WRITE_FORM 3) CLOSE_FORM Parameters in Each Function: 1 ) OPEN_FORM– Ex porting Form Language 2) WRITE_FORM– Ex porting Element Window 3) CLOSE_FORM What is sequence of ev ent triggered in report? There are 6 ev ents in report: 1 ) Initialization 2) At Selection-Screen 3) Start-of-Selection 4) Get 5) Get Late 6) End-of-Selection 7 ) Top-of-Page End-of-Page 9) At Line Selection 1 0) At User Command 1 1 ) At PF (nn) • What are standard lay outs sets in the SAP Script? Ans There are four standard lay outs in the SAP Script: 1 ) Header 2) Logo 3) Main Window sapabapinterviewquestions.blogspot.in/2010/06/sap-interview-questions-for-freshers.html 4/10
  5. 5. 10/12/13 SAP ABAP Interview Questions: SAP Interview Questions for freshers 4) Footer • Difference between UPLOAD and WS_UPLOAD? Ans UPLOAD - File transfer with dialog from presentation serv er file to internal table. Data which is av ailable in a file on the presentation serv er is transferred in an internal table. ASCII & Binary files can be transferred. WS_UPLOAD - To read data from the presentation serv er into an internal table without a user dialog, use the function module WS_UPLOAD. The most important parameters are listed below. Parameters Function CODEPAGE Only for upload under DOS: V alue IBM FILENAME Filename FILETY PE File ty pe • What is a Logical Database? Ans Logical Databases are special ABAP programs that retriev e data and make it av ailable to application programs. Use of LDB – is used to read data from database tables by linking them to ex ecutable ABAP programs. • What are the ev ents used for Logical Database? Ans Two Ev ents – 1 ) GET - This is the most important ev ent for ex ecutable programs that use a logical database. It occurs when the logical database has read a line from the node and made it av ailable to the program in the work area declared using the statement NODES . The depth to which the logical database is read is determined by the GET statements2) PUT - The PUT statement directs the program flow according to the structure of the logical database. • What is the difference between Get and Get Late? Ans GET - After the logical database has read an entry from the node .GET LATE - After all of the nodes of the logical database hav e been processed that are below in the database hierarchy . • What are the data ty pes of Internal Tables? Ans There are three ty pes: 1 ) Line 2) Key 3) Table • What are the ev ents used in ABAP in the order of ex ecution? Ans Ev ents are: 1 . INITIALIZATION 2. AT SELECTION-SCREEN 3. AT SELECTION-SCREEN ON 4. START-OF-SELECTION 5. TOP-OF-PAGE 6. TOP-OF-PAGE DURING LINE SELECTION 7 . END-OF-PAGE 8. END-OF-SELECTION 9. AT USER-COMMAND 1 0. AT LINE-SELECTION 1 1 . AT PF sapabapinterviewquestions.blogspot.in/2010/06/sap-interview-questions-for-freshers.html 5/10
  6. 6. 10/12/13 SAP ABAP Interview Questions: SAP Interview Questions for freshers 1 2. GET 1 3. GET LATE. 1 4. AT User Command • What are Interactiv e Reports? Ans An output list which display s just the basic details & allow user to interact, so that a new list is populated based on user-selection. With interactiv e list, the user can activ ely control data retriev al and display during the session. • What are the commands used for interactiv e reports? Top-of-Page during line-selection • What are the sy stem fields u hav e worked with? Ex plain? Ans I had worked with the following (30) sy stem fields: 1 ) SY -DBSY S - Central Database 2) SY -HOST - Serv er 3) SY -OPSY S - Operating Sy stem 4) SY -SAPRL - SAP Release 5) SY -SY SID - Sy stem Name 6) SY -LANGU - User Logon Language 7 ) SY -MANDT - Client SY -UNAME - Logon User Name 9) SY -DATLO - Local Date 1 0) SY -DATUM - Serv er Date 1 1 ) SY -TIMLO - Local Time 1 2) SY -UZEIT - Serv er Time 1 3) SY -DY NNR - Screen Number 1 4) SY -REPID - Current ABAP program 1 5) SY -TCODE - Transaction Code 1 6) SY -ULINE - Horizontal Line 1 7 ) SY -V LINE - V ertical Line 1 8) SY -INDEX - Number of current loop Pass 1 9) SY -TABIX - Current line of internal table 20) SY -DBCNT - Number of table entries processed 21 ) SY -SUBRC - Return Code 22) SY -UCOMM - Function Code 23) SY -LINCT - Page Length of list 24) SY -LINNO - Current Line 25) SY -PAGNO - Current Page Number 26) SY -LSIND - Index of List 27 ) SY -MSGID - Message Class 28) SY -MSGNO - Message Number 29) SY -MSGTY - Message Ty pe 30) SY -SPONO - Spool number during printing • What is the difference between Primary key and Unique Key ? Ans Primary Key – It can accepts 0 v alue and cannot be NULL. Unique Key – It can be NULL. sapabapinterviewquestions.blogspot.in/2010/06/sap-interview-questions-for-freshers.html 6/10
  7. 7. 10/12/13 SAP ABAP Interview Questions: SAP Interview Questions for freshers • What is the transaction code for Table maintenance? Ans SM30 • If u are using Logical Databases how will u modify the selection-screen elements? Ans Select-options : dname for deptt-dname. • What is an RFC? Ans Remote Function Call • What are the ev ents in Screen Programming? There are two ev ents in Screen Programming: 1 . PBO (Process Before Output) – Before the screen is display ed, the PBO ev ent is processed. 2. PAI (Process After Input) – When the user interacts with the screen, the PAI ev ent is processed. 3. POH (Process On Help) - are triggered when the user requests field help (F1 ). Y ou can program the appropriate coding in the corresponding ev ent blocks. At the end of processing, the sy stem carries on processing the current screen. 4. POV (Process On V alue) - are triggered when the user requests possible v alues help (F4). Y ou can program the appropriate coding in the corresponding ev ent blocks. At the end of processing, the sy stem carries on processing the current screen. • What is the significance of HIDE? Ans Its stores the click v alue and display the related record in the secondary list. • Where do u code the HIDE statement? Ans In a LOOP statement • Ty pes of BDC’s? Ans There are two ty pes of BDC’s: 1 ) Transaction Method 2) Session Method • Adv antages & Disadv antages of different ty pes of BDC’s? Ans Transaction Method: 1 ) It is faster than session method. 2) While ex ecuting, it starts from starting. Session Method: 1 ) It is slower than transaction method. 2) While ex ecuting, it does not start from starting. • What are the ev ents used in Interactiv e Reports. Ans There are three ev ents of Interactiv e Reports: I. At PF(nn) II. At line-selection III. At user-command • What is an RDBMS? RDBMS – Relational Database Management Sy stem. It helps to create relationship between two or more table. • What will y ou code in START-OF-SELECTION & END-OF-SELECTON & why ? Ans START-OF-SELECTION sapabapinterviewquestions.blogspot.in/2010/06/sap-interview-questions-for-freshers.html 7/10
  8. 8. 10/12/13 SAP ABAP Interview Questions: SAP Interview Questions for freshers SELECT * FROM DEPTT INTO CORRESPONDING FIELDS OF ITAB WHERE DEPTNO IN DEPTNO. APPEND ITAB. ENDSELECT. LOOP AT ITAB. WRITE : / 1 0 ITAB-DEPTNO. HIDE : ITAB-DEPTNO. ENDLOOP. END-OF-SELECTION • What are joins and different ty pes joins? Ans There are four ty pes of Joins: 1 ) Self Join 2) Inner Join 3) Outer Join 4) Equi Join 51 ) Which is the default join? • How do u display a data in a Detail List? Ans By using two statements: 1 ) Top-of-page during line-selection 2) At line-selection What are the ty pes of windows in SAP Script? Ans There are fiv e Standard Lay outs in SAP Script: 1 ) Page 2) Window 3) Page Window 4) Paragraph Format 5) Character Format • What are the function modules used in a SAP Script driv er program? Ans There are three functions used in SAP Script: 1 ) OPEN_FORM 2) WRITE_FORM 3) CLOSE_FORM Posted by Nethra M at 3:52 PM Recommend this on Google 3 comments: Rahul Mehetre October 7 , 201 2 at 1 1 :30 AM nice help to prepare for interv iew Reply v enkatesh sannidhi February 5, 201 3 at 1 0:33 PM sapabapinterviewquestions.blogspot.in/2010/06/sap-interview-questions-for-freshers.html 8/10
  9. 9. 10/12/13 SAP ABAP Interview Questions: SAP Interview Questions for freshers thank y ou Reply sonali April 1 0, 201 3 at 2:06 AM thank y ou Reply Enter your comment... Comment as: Publish Google Account Preview Newer Post Home Subscribe to: Post Comments (Atom) Followers Join this site w ith Google Friend Connect There are no members yet. Be the first! Already a member? Sign in sapabapinterviewquestions.blogspot.in/2010/06/sap-interview-questions-for-freshers.html 9/10
  10. 10. 10/12/13 SAP ABAP Interview Questions: SAP Interview Questions for freshers About Me Blog Archive Nethra M ▼ 201 0 (2) V iew my complete profile ► September (1 ) ▼ June (1 ) SAP Interv iew Questions for freshers Awesome Inc. template. Powered by Blogger. sapabapinterviewquestions.blogspot.in/2010/06/sap-interview-questions-for-freshers.html 10/10

×