SAP ABAP

  Home  Systems, Applications, and Products (SAP)  SAP ABAP


“SAP ABAP Interview Questions and Answers will guide you that ABAP is a very high level programming language created by the German software company SAP. It is currently positioned, alongside the more recently introduced Java, so learn more about the SAP ABAP with the help of this SAP ABAP Interview Questions with Answers guide”



161 SAP ABAP Questions And Answers

81⟩ What is a batch input session?

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

 201 views

84⟩ What is the difference between a pool table and a transparent table and how they are stored at the database level?

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.

 265 views

85⟩ What are the problems in processing batch input sessions? How is batch input process different from processing on line?

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.

 256 views

88⟩ How many types of tables exist and what are they in data dictionary?

4 Types of Tables:

1. Transparent tables - Exists with the same structure both in dictionary as well as in database exactly with the same data and fields. Both Open SQL and Native SQL can be used.

2. Pool tables

3. Cluster tables - These are logical tables that are arranged as records of transparent tables. One cannot use Native SQL on these tables (only Open SQL). They are not manageable directly using database system tools.

4. Internal tables

 204 views

94⟩ What does an extract statement do in the ABAP program?

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

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 <FG>, the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups <FG> 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.

 214 views

95⟩ What is a collect statement? How is it different from append?

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

Append – Duplicate entries occurs

 192 views

96⟩ What is OPEN SQL vs NATIVE SQL?

Open SQL – These statements are a subset of standard SQL. It consists of DML command (Select, Insert, Update, Delete). It can simplify and speed up database access. Buffering is partly stored in the working memory and shared memory. Data in buffer is not always up-to-date.

Native SQL – They are loosely integrated into ABAP. It allows access to all functions containing programming interface. They are not checked and converted. They are sent directly to the database system. Programs that use Native SQL are specific to the database system for which they were written. For e.g. to create or change table definition in the ABAP.

 205 views

97⟩ What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?

To use a Native SQL statement, you must precede it with the EXEC SQL statement, and follow it with the ENDEXEC statement as follows:

EXEC SQL [PERFORMING <form>].

<Native SQL statement>

ENDEXEC.

There is no period after Native SQL statements. Furthermore, using inverted commas (") or an asterisk (*) at the beginning of a line in a native SQL statement does not introduce a comment as it would in normal ABAP syntax. You need to know whether table and field names are case-sensitive in your chosen database.

 210 views

99⟩ What are the events in ABAP language?

The events are as follows:

1. Initialization

2. At selection-screen

3. Start-of-selection

4. End-of-selection

5. Top-of-page

6. End-of-page

7. At line-selection

8. At user-command

9. At PF

10. Get

11. At New

12. At LAST

13. AT END

14. AT FIRST

 250 views

100⟩ What is an interactive report? What is the obvious difference of such report compared with classical type reports?

An Interactive report is a dynamic drill down report that produces the list on users choice.

Difference: -

a) The list produced by classical report doesn't allow user to interact with the system where as the list produced by interactive report allows the user to interact with the system.

B) Once a classical report, executed user looses control where as Interactive, user has control.

C) In classical report, drilling is not possible where as in interactive, drilling is possible.

 226 views