SAP---ABAP

Monday, May 12, 2008

ABAP/4 Interview Qns and Answers

121) What is the typical structure of an ABAP program?

Ans HEADER, BODY, FOOTER.


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

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


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


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


125) What is the alternative to batch input session?

Ans Call Transaction Method & Call Dialog


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


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


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


129) Is Session Method, Asynchronous or Synchronous?

Ans Synchronous


130) What are the different types of data dictionary objects?

Ans Different types of data dictionary objects:

1) Tables

2) Views

3) Data elements

4) Structure

5) Domains

6) Search Helps

7) Local Objects

8) Matchcode

No comments: