Saturday, April 21, 2012

SAP Interview Questions on ABAP

Dear ABAPers, This post gives the list of Interview questions on SAP ABAP. The list includes the real time interview questions asked by the top MNC companies in their interviews. For more details refer this post SAP Interview Questions 2





Re: What is performance tuning? Answer

performance tuning is to improve the program performance using some features.


using nested selects,

for all entries,

using view,


ST05 is Tcode for performance tuning.

1. Avoid using nested select statemtns

2. Avoid using global varaibales

3. Avoid using move-corresponding

4. Avoid using '*' in ur select query

5. use key fields in where calues

6. Avoid using query llooop




Re: What is collect statement?explain with example? 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.



Re: 1. Driver prog & executive prog both r same ? 2. what is difference between At selection screen & At selection out put ? 3 . what is node used in smart form ? Answer

2)Answer; At selection screen  event occurs while selection screen being processed . it is used to validate the user inputs in the selection screen


at selection screen output : 

in PBO of selection screen , at selection screen output event is triggered . this event block allows you to modify the selection screen directly before it is displayed.



Re: What is IDOC? Answer

It is an standard intermediate document used in EDI/ALE process used in transferring the business objects to business partners and in distribution of master data to the diff plants which belongs to diff company codes.



Re: What are Major differences in Smart forms and Scripts Answer

SAP Script is Client Dependent, Smartforms is Client Independent.


In Scripts We r unable print the Background Pictures but in Smart form can do.


In Scripts if u want to access any data from windows we must call the write_form for every window in Driver Program but in Smartforms when we are activating the smartform it automatically generates a FM, using the FM we can call all windows data From the smartform.


In Scripts Main window is mandatary but in smartform not necessary.


In Scripts if u want with work with Tables and Templates long process, in smartforms very easy to work using navigation.


Smartform is very user friendly than SAP Scripts.


In Scripts main windows are avable from main 00-98 but in Smartforms only one main window.



Re: Which configuration we have to make first before we want to start Business Workflow with our SAP R/3 Answer


The first of all you should check the TCODE: SWU3


Then config step by step according to the tcode screen



Re: How do you define an internal using types? Answer

We can define internal tables in different ways. One way is by using types.

ex:
    DATA: ITAB TYPE STANDARD TABLE OF KNA1.



Instead of standard table , we can use hashed table, sorted
table also.


types:begin of itab,
        a type i,
        b type c,
      end of itab.

data: itab1 type table of itab with header line.



Re: explain the script component in script? Answer

The various component of the SAP script tools are:


1. Editor - 

Edits the text in a SAPscript form. The transaction of an application automatically calls this editor if you need to maintain texts related to the application.



2.Styles and  Forms - 

Define and print the style and layout of SAPscript form.



3. Composer or From processor - 

Acts as central output module to prepare final layout and text for an output device by including styles , various formating options and the respective text.



4. Programming interface - 

Allows you to include SAPscript component into ABAP program and control the output of forms from the program.



5. Database tables - 

Store texts, styles and forms.




Re: can any one tell me the following question's answer
1. How can we create PUSH Button in presentation layer. 

2.How can we print the record. 

3.If database has nor records & if we write 'for all entries' in select statement then what will be happen. 

Answer

1.create the pushbutton in Presentation server by using the
syntax is given below.


for creating the push button:


selection-screen pushbutton 10(06) 'name of pushbutton' user-command cli1.

This is initilized into the Initialization event in the classical report.


2.print the record by using the statement Loop at

  Loop at Itab
    write: itab-field.
  Endloop.


3.if database has no records it will work as like this.
  first up all it will check the base table if this table is
empty then it will retrive the data from the destination
table based on the condition.


Re: 1.What is the difference between append structure and include structure. 2. what is the logging of technical setting while creating db table. Answer


1. Append structure : 

it will add Fields to the table from last . we can't use that structure in another table.


2. Include structure: 

we can add fields in middle. we can use include structure in more than one table.



1. 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 ... ENDLOOP
INSERT 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 ***
.....
....
ENDAT.
ENDLOOP.                         




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






For More Real Time Interview Questions See Below Posts













"You found the information helpful and want to say thanks? Your donation is enough to inspire us to do more. Thanks a bunch!"

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Categories

ABAP (1) ABAP Interview Questions (112) ABAP Open SQL Statements (1) ABAP Syntax Rules (6) ABAP WORKBENCH (2) ABAP-Interview-Questions (52) ALE IDOC (6) ALE IDOC Interview Questions (6) ale-idoc (6) ALE-IDOC-Interview-Questions (19) ALV Interview Questions (5) ALV-Interview-Questions (22) BADI (2) BAPI (1) BAPI Interview Questions (1) BAPI-Interview-Questions (14) BDC (6) BDC Interview Questions (6) BDC-Interview-Questions (9) big data (2) big data interview questions (1) Classical Reports Interview Question (3) Classical-Reports-Interview-Questions (22) Conditional Statements (1) Cross Applications (3) Cross-Applications (14) Data Dictionary (22) Data Type Questins (1) Data types (1) Data-Dictionary (48) Data-Type-Questins (6) Dialog programming (5) Dialog Programming Interview Questions (4) Dialog-Programming (30) DOMAIN Interview Questions (1) Domain-Interview-Questions (8) Function Module (2) hadoop (2) hadoop interview questions (2) hdfs (1) IDoc Tutorials (6) Interactive Report Interview Questions (4) Interactive-Reports-Interview-Questions (22) Internal Tables (1) interview questions (1) Lock Object Interview Questions (1) Lock-Objects-Interview-Questions (10) Logical Database (1) Modularization Interview Questions (4) Modularization-Interview-Questions (25) Module Pool Programming (5) Module-Pool-Programming (39) modules in sap (1) Object Oriented ABAP (19) Object Oriented ABAP Interview Questions (15) object-oriented-abap (2) Object-Oriented-ABAP-Interview-Questions (34) OOABAP (9) Reports (14) Reports Interview Questions (9) Reports-Interview-Questions (19) RFC (1) RFC Interview Questions (1) RFC-Interview-Questions (14) RICEF (1) RICEF Objects (1) SAP (4) SAP ABAP (4) SAP ABAP Interview Questions (42) SAP ABAP Introduction (46) SAP ABAP Message Types (2) SAP BADI Interview Questions (2) SAP Basics (71) SAP Books (2) SAP Certification (1) SAP CONSULTANTS (5) SAP CRM (1) SAP ENHANCEMENTS (3) SAP EXITS (2) SAP EXITS ( SAP ENHANCEMENTS ) Interview Questions (1) SAP Free Books (1) SAP HR (2) SAP Lock Object (1) sap modules (2) SAP Open SQL Statements (1) SAP R/3 Architecture (4) SAP Search help (1) SAP Smartforms (1) SAP Smartforms Interview Questions (2) SAP Tables (5) SAP Tcodes (10) SAP Views (1) SAP Webdynpro ABAP (12) SAP Work Processors (2) SAP Workflow (3) SAP-BADI-Interview-Questions (11) SAP-Enhancements (39) SAP-Exits (39) SAP-Exits-Enhancements-Interview Questions (3) SAP-HANA (1) SAP-HANA-Interview-Questions (1) SAP-Smartforms-Interview-Questions (2) SAP-Workflow (3) Scripts (3) Scripts Interview Questions (2) Scripts-Interview-Questions (32) Search Help Interview Questions (1) Search-Help-Interview-Questions (9) Smartforms (1) Table Maintenance Generator (1) Table-Maintenance-Generator (4) Tables in SAP (2) Tables Interview Questions (3) Tables-Interview-Questions (3) Type Group Interview Questions (1) Type-Group-Interview-Questions (7) Variable Declaration (1) Views Interview Questions (1) Views-Interview-Questions (5) Webdynpro (12) what is big data (1)

Protected Blog

 
This blog is not affiliated to SAP AG |SAP is trademark of SAP AG |The information collected from various sources use information with your own risk.