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

61⟩ What is the inside concept in select-options?

Select-options specify are displayed on the selection screen for the user to enter values.

Different Properties of Select-options:

1) Visible Length

2) Matchcode Object

3) Memory ID

4) Lowercase

5) Obligatory

6) No Display

7) Modify ID

 237 views

62⟩ What is the difference between Free and Refresh?

Free - You can use FREE to initialize an internal table and release its memory space without first using the REFRESH or CLEAR statement. Like REFRESH, FREE works on the table body, not on the table work area. After a FREE statement, you can address the internal table again. It still occupies the amount of memory required for its header (currently 256 bytes). When you refill the table, the system has to allocate new memory space to the lines.

Refresh - This always applies to the body of the table. As with the CLEAR statement, the memory used by the table before you initialized it remains allocated. To release the memory space, use the statement

 214 views

63⟩ Can we have more than one selection-screen and how?

Yes, we can have more than one selection screen.

Selection-screen begin of block honey with frame title text-101.

Select-options : deptno for zrekha_deptt-deptno.

Selection-screen end of block honey.

Selection-screen begin of block honey1 with frame title text-102.

Select-options : dname for zrekha_deptt-dname.

Selection-screen end of block honey1.

 210 views

67⟩ What is the use of Table maintenance allowed?

Mark the Table maintenance allowed flag if users with the corresponding authorization may change the data in the table using the Data Browser (Transaction SE16). If the data in the table should only be maintained with programs or with the table view maintenance transaction (Transaction SM30), you should not set the flag.

 253 views

69⟩ What are the check tables and value tables?

Check Table: The ABAP Dictionary allows you to define relationships between tables using foreign keys . A dependent table is called a foreign key table, and the referenced table is called the check table. Each key field of the check table corresponds to a field in the foreign key table. These fields are called foreign key fields. One of the foreign key fields is designated as the check field for checking the validity of values. The key fields of the check table can serve as input help for the check field.

Value Table: Prior to Release 4.0, it was possible to use the value table of a domain to provide input help. This is no longer possible, primarily because unexpected results could occur if the value table had more than one key field. It was not possible to restrict the other key fields, which meant that the environment of the field was not considered, as is normal with check tables.

In cases where this kind of value help was appropriate, you can reconstruct it by creating a search help for the data elements that use the domain in question, and using the value table as the selection method.

Check table will be at field level checking.

Value table will be at domain level checking ex: scarr table is check table for carrid.

 228 views

70⟩ What is the difference between tables and structures?

Tables:

1) Data is permanently stored in tables in the database.

2) Database tables are generated from them.

Structure:

1) It contains data temporarily during program run-time.

2) No Database tables are generated from it.

 207 views

71⟩ Explain What are lock objects?

Reason for Setting Lock: Suppose a travel agent want to book a flight. The customer wants to fly to a particular city with a certain airline on a certain day. The booking must only be possible if there are still free places on the flight. To avoid the possibility of overbooking, the database entry corresponding to the flight must be locked against access from other transactions. This ensures that one user can find out the number of free places, make the booking, and change the number of free places without the data being changed in the meantime by another transaction.

 233 views

72⟩ What are the events we use in dialog programming and explain them?

There are two events in Dialog Programming i.e. screen:

1. PBO (Process Before Output) – Before the screen is displayed, the PBO event is processed.

2. PAI (Process After Input) – When the user interacts with the screen, the PAI event is processed.

3. POH (Process On Help) - are triggered when the user requests field help (F1). You can program the appropriate coding in the corresponding event blocks. At the end of processing, the system carries on processing the current screen.

4. POV (Process On Value) - are triggered when the user requests possible values help (F4). You can program the appropriate coding in the corresponding event blocks. At the end of processing, the system carries on processing the current screen.

 222 views

73⟩ What is the difference between OPEN_FORM and CLOSE_FORM?

OPEN_FORM – This module opens layout set printing. This function must be called up before we can work with other layout set function like WRITE_FORM.

WRITE_FORM – Output text element in form window. The specified element of the layout set window entered is output. The element must be defined in the layout set.

CLOSE_FORM – End layout set printing. Form printing started with OPEN_FORM is completed. Possible closing operations on the form last opened are carried out. Form printing must be completed by this function module. If this is not carried out, nothing is printed or displayed on the screen.

 216 views

77⟩ What are System Variable in ABAP?

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.

 239 views

78⟩ What is the difference between sum and collect?

Sum: You can only use this statement within a LOOP. If you use SUM in an AT - ENDAT block, the system calculates totals for the numeric fields of all lines in the current line group and writes them to the corresponding fields in the work area. If you use the SUM statement outside an AT - ENDAT block (single entry processing), the system calculates totals for the numeric fields of all lines of the internal table in each loop pass and writes them to the corresponding fields of the work area. It therefore only makes sense to use the SUM statement in AT...ENDAT blocks.

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 LOOP statement.

 213 views

80⟩ What are field symbols and field groups? Have you used component idx of structure clause with field groups?

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>

 237 views