SAP---ABAP

Monday, May 12, 2008

ABAP/4 Interview Qns and Answers





151) What happens when a table is activated in DD?

Ans When the table is activated, a physical table definition is created in the database for the table definition stored in the ABAP dictionary. The table definition is translated from the ABAP dictionary of the particular database.

It is available for any insertion, modification and updation of records by any user.


152)

Ans


153) What are matchcodes? Describe?

Ans It is similar to table index that gives list of possible values for either primary keys or non-primary keys.


154) What transactions do you use for data analysis?

Ans


155) What are the elements of selection screen?


Ans There are 5 elements of selection screen:

Selection-screen include blocks

Selection-screen include parameters

Selection-screen include select-options

Selection-screen include comment

Selection-screen include push-button


156) What are ranges? What are number ranges?

Ans Main function of ranges to pass data to the actual selection tables without displaying the selection screen.

Min, Max values provided in selection screens.

It is often necessary to directly access individual records in a data structure. This is done using unique keys. Number ranges are used to assign numbers to individual database records for a commercial object, to complete the key. Such numbers are e.g. order numbers or material master numbers.


157) What are select options and what is the diff from parameters?

Ans Parameters : We can enter a single value.

PARAMETERS: PARAM(10).

Select-options: We can enter low and high value i.e. range has to be specify. By using NO-INTERVAL user can process only single fields.

SELECT-OPTIONS: DNO FOR DEPT-DNO.

SELECT-OPTIONS: DNO FOR DEPT-DNO NO-INTERVAL.

SELECT-OPTIONS declares an internal table, which is automatically filled with values or ranges of values entered by the end user. For each SELECT-OPTIONS, the system creates a selection table.

SELECT-OPTIONS FOR .

A selection table is an internal table with fields SIGN, OPTION, LOW and HIGH.

The type of LOW and HIGH is the same as that of .

The SIGN field can take the following values: I Inclusive (should apply) E Exclusive (should not apply)

The OPTION field can take the following values: EQ Equal GT Greater than NE Not equal BT Between LE Less than or equal NB Not between LT Less than CP Contains pattern GE Greater than or equal NP No pattern.

Differences-

PARAMETERS allow users to enter a single value into an internal field within a report.

SELECT-OPTIONS allows users to fill an internal table with a range of values.

Select-options provide ranges where as parameters do not.

For each PARAMETERS or SELECT-OPTIONS statement you should define text elements by choosing

Goto - Text elements - Selection texts - Change.

Eg:- Parameters name(30).

When the user executes the ABAP/4 program, an input field for 'name' will appear on the selection screen. You can change the comments on the left side of the input fields by using text elements as described in Selection Texts.


158) How do you validate the selection criteria of a report? And how do you display initial values in a selection screen?

Ans The selection criteria is validated in the processing block of the AT SELECTION SCREEN event for the input values on the screen and respective messages can be sent.

To display initial values in the selection screen:

1) Use INITIALIZATION EVENT

2) Use DEFAULT VALUE option of PARAMETERS Statement

3) Use SPA/GPA Parameters (PIDs).

Validate: - by using match code objects.

Display :- Parameters default 'xxx'.


Select-options for spfli-carrid.

Initial values in a selection screen:

INITIALIZATION.

DNO-LOW = 10.

DNO-HIGH = 30

SIGN I.

OPTION NB.

APPEND DNO.


159) What are selection texts?

Ans


160) What is CTS and what do you know about it?

Ans CTS stands for Correction and Transport System. The CTS provides a range of functions that help you to choose a transport strategy optimally suited to your requirements. We recommend that you follow the transport strategy while you plan and set up your system landscape.

Correction and Transport System (CTS) is a tool that helps you to organize development projects in the ABAP Workbench and in Customizing, and then transport the changes between the SAP Systems and clients in your system landscape. This documentation provides you with an overview of how to manage changes with the CTS and essential information on setting up your system and client landscape and deciding on a transport strategy. Read and follow this documentation when planning your development project. For practical information on working with the Correction and Transport System, see Correction and Transport Organizer and Transport Management System.






No comments: