Google

FAQ'S

ABAP INTERVIEW QUESTIONS

1. Question How to transfer legacy data into base tables by scheduling a time frame using bdc.

Answer
You can use Session method for this and define parameter KEEP ,HOLD,DATE for transfer.

2. Question # Waht is Field sysmbol ?

Answer
You can use field symbols to make the program more dynamic. In this exanmple the name of a table control is substituted
by a field symbol. Thus you cal call the form with any internal table, using the name of the tablæe control as a parameter.

Example

form insert_row
using p_tc_name.

field-symbols type cxtab_control. "Table control

assign (p_tc_name) to .


* insert 100 lines in table control

-lines = 100.

3. Question How can we tranport the z-table along with data to Produciton system.

Answer
You can transport the Z-table but you cannot transport the values to the other system. You can update the values in a Z-table either by using a report / BDC .


4. Question # why Transaction Varient need ?
Answer
You can run a transaction with preset data. This is useful for particular user groups who would have to manually enter data each time the transaction is run. You can establish several different variants per transaction, based on usage.

5. Question Can you create a table with fields not referring to data elements?

Answer
YES. eg:- ITAB LIKE SPFLI.here we are referening to a data object(SPFLI) not data element.


6. Question On ABAP: Did you set up a workflow? Are you familiar with all steps for setting up a workflow?

Answer
Yes.

Execute the Txn SWDD(Creating a new Workflow).

In the header of the Workflow, define the Business Object and Event you refer to for triggering the Wf.

Create the Steps required for your workflow(Activity).

Inside the Activity, Create the task and assign the Business Object and the related method for that business object.

Activate the Workflow.


7. Question On ABAP: Did you set up a workflow? Are you familiar with all steps for setting up a workflow?

Answer
Yes.

Execute the Txn SWDD(Creating a new Workflow).

In the header of the Workflow, define the Business Object and Event you refer to for triggering the Wf.
Create the Steps required for your workflow(Activity).Inside the Activity, Create the task and assign the Business Object and the related method for that business object.

Activate the Workflow.


8. Question Can we create field without data element and how?

Answer
yes we can create field without data element, make it as Direct type or Built-in Type


9.Question # what happen if i use controll break statement in between select & endselect ?

Answer
when we place control breaks statements with in

select & end-select then i will generate an complie time error and says us to use it in loop......endloop.

10. Question # What is the main point while using controll bareak in internal table ?
Answer
when u r using control break commands.internal table must be sorted with key field.and control-break commands must be used in between the LOOP and ENDLOOP only.

11. Question In a modulepool How to set drop down list?

Answer
we can set drop downlist in domain value range.


12. Question What is the difference between SAP memory and ABAP memory

Answer
we can pass data b/w sessions or b/w progs by using

Sap memory.SET PARAMETER OR GET PARAMETER are the statements that r used to read or write the data from memory.

Abap memory we can only pass the data b/w programs.here we use EXPORT OR IMPORT statements to read or write data from the memory.


13. Question How do you connect to the remote server if you are working from the office for the client in remote place.

Answer
WAS web application server or ITS are generally used for this purpose. If you are sitting at your office with a server which is in the system and the other server is at the clients place you can generate IDOC, intermidiate documents which carry the data you want to transfer or the documents you want to transfer, these IDOC are interpretted by the system at the recieving end with the message class with which it is bound with. If you want to logon a system which is very distant..then remote login can be used this depends on the internet speed.


14. Question Difference between value table and view table?

Answer
value table is nothing but primary key table

view table is foregn key table


15. Question Difference between value table and check table?

Answer
Value table - It's a field in a domain it helps in domain level data validation.

Check table - unlike value table it helps in feild level data validation.


16. Question What is the advantage of structures? How do you use them in the ABAP programs?

Answer
Using a structure, user can add fields to the existing SAP database tables. Using .INCLUDE and .APPEND statements structures can be added to the database tables. Creating structures with in a structure is also possible. User can add maximum 9 structures to a database table.


17. Question What is difference between dialog program and a report?

Answer
using reports

we can dispaly the data

insert and modify the data

* its executable program

where as in dialog programming

we can create our own screens and transactions

we can't execute directly this


18. Question What is the difference between Type and Like?

Answer
TYPE, you assign datatype directly to the data object while declaring.

LIKE,you assign the datatype of another object to the declaring data object. The datatype is referenced indirectly.

19. Question What is table buffer? Which type of tables used this buffer?

Answer
The table buffer is located between the application and the database. Its goal is to cache portions of a database table in the application server to reduce database load and network communication.

20. Question # Select option work like _____________on Selection Screen ?
Answer
The system treats select-options like an internal table.

This table will have four columns - sign high low and option.This is used to set teh attributes on the select

21. Question # what is output : if i click on no: 3.
do 5 times.
hide sy-index.
write / sy-index.
enddo.

at selection-screen.
write / sy-index.
endat.

Answer
The output is 1 2 3 4 and 5.The hidestatement take data from work area to special area in memory,we can call this memory as a hide memory.For e.g when we click on 3,it can't generate any thing because if we hide 3 then we must define the code for hide under the EVENT AT LINE-SELECTION.Secondly we can't write anything in the EVENT AT SELECTION-SCREEN.

22. Question # What is the final entry in BDC Table ?
Answer
The final entry in bdc table is the value in the internal table .since bdcdata is the system-inbuilt bdc table the last field in the table is fvalthe value for fval is nothing but the value in the internal table.so, the final entry is the value of the internal table.

23. Question In evevts start-of-selection is default event. When we have to use this event explicitly? Why?

Answer
The default event in the ABAP is Start-of-selection.We have to call explicitely this event when you are writing other than ths event , that is when you write AT SELECTION-SCREEN EVENTS OR INITIALIZATION EVENT etc,you have to explicitely mention the Start-of-selection event while you are writing the logic.
Before these events called ,all the code you have written come into this default Start-of-selection screen event.


24. Question What are different ABAP/4 editors? What are the differences?
Answer
The 2 editors are se38 and se80 both have the abap editor in place.In se38 u can go create programs and view online reports and basically do all thedevelopmet of objects in this editor.In se80 ( object navigator) there are additional features such as creating packages,module pool , function group ,classes, programs ( where u can create ur programs) and BSP applications .

25. Question Which table contains all the user exit datas?

Answer
TFDIR contains userexit data


26. Question What are the different types of data dictionary objects?

Answer
tables, structures, views, domains, data elements, lock objects, Match code objects.


27. Question What is the difference between collect and sum?

Answer
SUM.

When processing an internal table in a block starting with LOOP and concluded by ENDLOOP , SUM calculates the control totals of all fields of type I , F and P (see also ABAP/4 number types ) and places them in the LOOP output area (header line of the internal table or an explicitly specified work area).

When you use SUM in a LOOP with an explicitly specified output area, this output area must be compatible with the line type of the internal table.When using LOOP to process a sorted extract (see SORT ), the control total
of f at the end of the group appears in the field SUM(f) - - if f is type I , F or P .

COLLECT.

COLLECT is used to create unique or compressed datsets. The key fields are the default key fields of the internal table itab .

If you use only COLLECT to fill an internal table, COLLECT makes sure that the internal table does not contain two entries with the same default key fields.

If, besides its default key fields, the internal table contains number fields,the contents of these number fields are added together if the internal table already contains an entry with the same key fields.

If the default key of an internal table processed with COLLECT is blank, all the values are added up in the first table line.

If you specify wa INTO , the entry to be processed is taken from the explicitly specified work area wa . If not, it comes from the header line of the internal table itab .

After COLLECT , the system field SY-TABIX contains the index of the - existing or new - table entry with default key fields which match those of the entry to be processed.

COLLECT can create unique or compressed datasets and should be used precisely for this purpose. If uniqueness or compression are unimportant, or two values with identical default key field values could not possibly occur in your particular task, you should use APPEND instead. However, for a unique or compressed dataset which is also efficient, COLLECT is the statement to use.

If you process a table with COLLECT , you should also use COLLECT to fill it. Only by doing this can you guarantee that the internal table will actually be unique or compressed, as described above and COLLECT will run very efficiently.

If you use COLLECT with an explicitly specified work area, it must be compatible with the line type of the internal table.


28. Question What is the typical structure of an ABAP/4 program?

Answer
Structure of ABAP/4 program is ,
1. Declaration
2. Dialog Module
3. Event Block
4. Procedure


29. Question # Which one is not an exit comand ? (Exit, cencle, stop, back)
Answer
STOP.
Effect :The statement STOP is only to be used in executable programs

EXIT.

Effect :If the EXIT statement is executed outside of a loop, it will immediately terminate the current processing block.

BACK.
Effect : This statement positions the list cursor on the first position of the first line in a logical unit.

So "Cancle" is not an exit command

30. Question What should be the approach for writing a BDC program?

Answer

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


31. Question How can you debugg a script form?

Answer
SE71 -> give the form name -> utilities -> activate debugger


32. Question What is Tcode SE16. For what is it used. Explain briefly?

Answer
SE16 is a T-code for object browser.
generally used to search the fields of SAP Tables . and respective data.


33. Question
What transactions do you use for data analysis?

Answer
se16


34. Question What are the problems in processing batch input sessions and How is batch input process different from processing online?

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


35. Question what is the use of pretty printer ?
exactly where can we link the functional module to abap coding.

Answer
Pretty Printer : is used to Aligned the code Properly. Means it converts the key words into cap& other words in small letters.
U can set the property of pretty printer by settings-> pretty Printer .
It is having other options also in it.


36. Question What is the job of a production clerk as far as using the SAP. for example if the job was with Ontario Power Generation

Answer
Perhaps that is an end user role.

where in he will be hanling with PP(SAP) related data entries and all.


37. Question What does an extract statement do in the ABAP program?

Answer
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. 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. As soon as the system has processed the first EXTRACT statement for a field group , the structure of the corresponding extract record in the extract dataset is fixed.
You can no longer insert new fields into the field groups 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.


38. Question Can a transparent table exist in data dictionary but not in the data base physically?

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


39. Question Which IDoc types are used in ALE for sending material master data, customer master data, vender master data, and BOM data.

Answer
material master table :matmas.

customer master table :cremas.

vendor master table:debmas


40. Question # if i have table control, what is the same code in PBO and PAI ?
Answer
Loop at control

module

endloop.

41. Question # What is lock Object ?
Answer
Lock Object is a relationship defined in the Data Dictionary between a main table and possible secondary tables

42. Question How do you see the authorization checks

Answer
In the interactive reporting, the first event you enter is "initialisation" that is used for the authorization checks , mainly the administrator is responsible for that purposes and he only has the authority for that.


43. Question How do u upload a potrait or landscape in a sapscript

Answer
In Attributes option,we have the option to select potrait or landscape.You can choose either of them to upload in scripts.


44. Question # How can i get output on same page ?
Answer
If u r talking abt SAP SCRIPTS, you can do it easily by using

Protect

Endprotect.


45. Question What is a collect statement? How is it different from append?

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


46. Question Have you used performance tuning? What major steps will you use for these?

Answer
i used performance tuning
se30
is the transaction code


47. Question What is the step by step process to create a table in data dictionary?

Answer
hr 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).


48. Question What is the typical structure of an ABAP/4 program?

Answer
HEADER ,BODY,FOOTER.


49. Question In the ‘select’ statement what is “group by”?

Answer
Group by clause is used to fetch the data from the table by the specified field

ex.select count (*) from emptable group by deptno where deptno = 1.

It is used to find the number of employees present in the specified department no.


50. Question In the ‘select’ statement what is “group by”?

Answer
Group by clause is used to fetch the data from the table by the specified field

ex.select count (*) from emptable group by deptno where deptno = 1.

It is used to find the number of employees present in the specified department no.