SAP Technical Interview Questions I
How to debugg a script?
Ans     Go to SE71, give layout set name, go to utilities select debugger mode on.
Â
How many maximum sessions can be open in SAPgui?
Ans     There are maximum 6 sessions open in SAPgui.
Â
SAP Scripts and ABAP programs are client dependent or not? Why?
Ans
Â
What are System Variable?
Ans     System variables have been predefined by SAP. We can use these variables in formulas or, for example, to pass on certain pieces of information to a function module. How the function called by the function module behaves depends on the type of information passed on.
At present, we can use the following system variables:
|
System Variable |
Use |
Meaning |
|
SY_MODE |
In function modules |
Current mode of the PI sheet |
|
SY_TEST |
In function modules |
Status of the PI sheet (test or active) |
|
SY_ROW |
In function modules |
Current table line |
|
SY_VALUE or X |
Generally |
Refers to the immediately preceding input value |
Â
Is it compulsory to use all the events in Reports?
Ans    Â
Â
Â
Â
Â
What is the difference between sum and collect?          Â
Ans     Sum: You can only use this statement within a
If the table contains a nested table, you cannot use the SUM statement. Neither can you use it if you are using a field symbol instead of a work area in the
           Collect:
Â
What are session method and call transaction method and explain about them?
Ans     Session method – Use the BDC_OPEN_GROUP to create a session. Once we have created a session, then we can insert the batch input data into it with BDC_INSERT. Use the BDC_INSERT to add a transaction to a batch input session. We specify the transaction that is to be started in the call to BDC_INSERT. We must provide a BDCDATA structure that contains all the data required to process the transaction completely. Use the BDC_CLOSE_GROUP to close a session after we have inserted all of our batch input data into it. Once a session is closed, it can be processed.
Â
Call Transaction -
In this method, we use CALL TRANSACTION USING to run an SAP transaction. External data does not have to be deposited in a session for later processing. Instead, the entire batch input process takes place inline in our program.
Â
If you have 10000 records in your file, which method you use in BDC?
Ans     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, then process will not complete until session get correct.
Â
What are different modes of Call Transaction method and explain them?
Ans     There are three modes of Call Transaction method:
Â
1)     A – Display All Screens                                                                                   Â
2)     E – Display Errors
3)     N – Background Processing
Â
What is the typical structure of an ABAP program?
Ans     HEADER, BODY, FOOTER.
Â
What are field symbols and field groups? Have you used “component idx of structure” clause with field groups?
Ans     Field Symbols – They are placeholder or symbolic names for the other fields. They do not physically reserve space for a field, but point to its contents. It can point to any data objects.
Â
           Field-symbols <fs>     Â
Â
Field Groups – Field groups does not reserve storage space but contains pointers to existing fields.
Â
An extract dataset consists of a sequence of records. These records may have different structures. All records with the same structure form a record type. You must define each record type of an extract dataset as a field group, using the FIELD-GROUPS statement.
Â
           Field-groups <fg>
Â
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 explicitly)
ii) Create sessions (sessions are created and processed. If success, data will transfer).
Â
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 i.e. data for screen fields, to which screen it is passed, program name behind it, and how next screen is processed.
Â
           Create session – BDC_OPEN_GROUP
           Insert batch input – BDC_INSERT
           Close session – BDC_CLOSE_GROUP
Â
What is the alternative to batch input session?
Ans     Call Transaction Method & Call Dialog
Â
A situation: An ABAP program creates a batch input session. We need to submit the
program and the batch session in background. How to do it?
Ans     Go to SM36 and create background job by giving job name, job class and job steps
(JOB SCHEDULING)
Â
Â
Â
What is the difference between a pool table and a transparent table and how they are stored at the database level?
Ans     Pool Table -
Â
1)Â Â Â Â Â Many to One Relationship.
2)Â Â Â Â Â Table in the Dictionary has the different name, different number of fields, and the fields have the different name as in the R3 Table definition.
3)Â Â Â Â Â It can hold only pooled tables.
Â
Transparent Table –
1)Â Â Â Â Â One to One relationship.
2)Â Â Â Â Â Table in the Dictionary has the same name, same number of fields, and the fields have the same name as in the R3 Table definition.
3)Â Â Â Â Â It can hold Application data.
What are the problems in processing batch input sessions? How is batch input process different from processing on line?
Ans     Two Problems: -
Â
1) 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.
2) If session processing fails, data will not be transferred to SAP database table.























