Powered By

Free XML Skins for Blogger

Powered by Blogger

Showing posts with label Interview Questions. Show all posts
Showing posts with label Interview Questions. Show all posts

Monday, October 13, 2008

SAP ABAP interview questions

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


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?

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

<> 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.

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.

SAP Answers to some ABAP Interview Questions

Questions which I have faced in an interview:
1) What is runtime analysis? Have you used this?
2) What is meant by performance analysis? Have done anything to improve the performance?
3) How to transfer the objects? Have to transferred any objects?
4) How did you test the developed objects?
5) What is the difference between SAP Memory and ABAP Memory?
6) In order to upload Purchase order details, how you handle multiple values for a single field?
Eg: Item field may contain no. of values for a record
7) What is the procedure you followed to upload the data?
8) How did you handle errors in Call Transaction?
9) Among the Call Transaction and Session Method, which is faster?
10) What are the difference between Interactive and Drill Down Reports?
11) How to pass the variables to forms?
12) How to create a link between modified form and modified print program?
13) What is the table, which contain the details of all the name of the programs and forms?
14) How did you test the form u developed? How did you taken print?
15) What are Standard Texts?
16) What is the difference between Clustered Tables and Pooled Tables?
17) What is pf-status?
18) Among "Move" and "Move Corresponding", which is efficient one?
19) What are the output type and Tcodes?
20) Where we use Chain and Endchain?
21) Do you use select statement in loop endloop, how will be the performance? To improve the performance?
22) In select-options, how to get the default values as current month first date and last date by default?
Eg: 1/12/2004 and 31/12/2004

Go thru these answers:

1) What is runtime analysis? Have you used this?

It's checks program execution time in microseconds. When you go to se30.if you give desired program name in performance file. It will take you to below screen. You can get how much past is your program.

2) What is meant by performance analysis? Have done

3) How to transfer the objects? Have you transferred any objects?

4) How did you test the developed objects?

I was testing a developed object. There are two types of testing
- Negative testing
- Positive testing

In negative testing we will give negative data in input and we check any errors occurs.

In positive testing we will give positive data in input for checking errors.

8) How did you handle errors in Call Transaction?

We can create a internal table like 'bsgmcgcoll'. All the messages will go to internal table. We can get errors in this internal table.

Below messages are go to internal table. when you run the call transaction.
- Message type
- Message id
- Message Number
- Variable1
- Variable2
- Variable3

9) Among the Call Transaction and Session Method, which is faster?

Call transaction is faster then session method. But usually we use session method in real time...because we can transfer large amount of data from internal table to database and if any errors in a session. Process will not complete until session get correct.

10) What are the difference between Interactive and

Drill Down Reports?

ABAP/4 provides some interactive events on lists such as AT LINE-SELECTION (double click) or AT USER-COMMAND (pressing a button). You can use these events to move through layers of information about individual items in a list.

Drill down report is nothing but interactive report...drilldown means above paragraph only.

11) How to pass the variables to forms?

12) What is the table, which contain the details of all the name of the programs and forms?

Table contains vertical and horizontal lines. We can store the data in table as blocks. We can scroll depends upon your wish. And these all are stored in database (data dictionary).

Which contain the details of all the name of the programs and forms? (I don't know).

13) How did you test the form u developed? How did you taken print?

14) What are Standard Texts?

16) What is the difference between Clustered Tables and Pooled Tables?

A pooled table is used to combine several logical tables in the ABAP/4 dictionary. Pooled tables are logical tables that must be assigned to a table pool when they are defined.

Cluster table are logical tables that must be assigned to a table cluster when they are defined.

Cluster table can be used to store control data they can also used to store temporary data or text such as documentation.

17) What is pf-status?

Pf status is used in interactive report for enhancing the functionality. If we go to se41, we can get menus, items and different function keys, which we are using for secondary list in interactive report.

18) Among "Move" and "Move Corresponding", which is efficient one?

I guess, 'move corresponding' is very efficient then 'move' statement. Because usually we use this stamtent for internal table fields only...so if we give move corresponding. Those fields only moving to other place (what ever you want).

19) What are the output type and Tcodes?

20) Where we use Chain and End chain?

21) Do you use select statement in loop end loop, how will be the performance? To improve the performance?

22) In select-options, how to get the default values as current month first date and last date by default?
Eg: 1/12/2004 and 31/12/2004

Prem Kumar

Q: How to compare the 2 tables between the 2 systems?
Ans: Which is using the transaction code is 'oy19'.

Q. What is the use of pick statement do?
Ans: The pick statement is used to it will capture the user action.
ex: if sy-ucomm = 'x'.
This statement is used to capture the user action.

SAP ABAP Interview Questions

What 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'?
Ans .Index is used for faster access of data base tables.

4. What is the use of 'FOR ALL ENTRIES'?
Ans. To avoid nested select statements we use SELECT FOR ALL ENTRIES statement.
If there r more than 10000 records SELECT FOR ALL ENTRIES is used.
Performance wise SELECT FOR ALL ENTRIES is better to use.

5. Can you set up background processing using CALL TRANSACTION?
Yes,Using No Screen Mode.

6. What are table buffers?
Table buffers reside locally on each application server in the system. The data of buffered tables can thus be accessed
directly from the buffer of the application server. This avoids the time-consuming process of accessing the database.

Buffering is useful if table needs to be accessed more no. of times in a program.

With Compliments from: Pavan

1. How do I set a flag for a field in any table?
Create a char field of length 1. for example field STAS-LKENZ is Deletion Indicator. It means that if the value in the field is 'X' then that record has been deleted.

2. Can I execute user exits? If yes, how?
Yes you can. after finding the user exit, you need to use, goto CMOD add ur user-exit to your project. Then activate the FM which you require. Now go into that function module there will be a Include program wit name ZX* . Double click on it, it will ask to create an object, answer it Yes and then write your code in it.

3. How do I find the output type of a table or a program?
Table TNAPR / NAST

What types of tables can be created in the ABAP Dictionary?

Transparent Tables
Pooled and Clustered Tables

Archives