4
SELECTION SCREEN 1 – Statements that trigger selection screen? Ans : PARAMETERS, SELECT-OPTIONS, SELECTION-SCREEN 2 – Events associated with Selection screen? Ans : INITIALIZATION, AT SELECTION-SCREEN, START-OF-SELECTION, END- OF-SELECTION 3 – How to add check box in selection screen. Ans: PARAMETER A TYPE C AS CHECKBOX. 4 – Internal structure of Select-options? Ans: SIGN – Inclusive or Exclusive, OPTIONS – BT OR EQ, LOW – from field, HIGH – To field 5) Types of Selection Screen? Ans: a) Standard screen which 1000 screen number as default, b) Stand-alone selection screen which is the user defined one has the syntax BEGIN OF SCREEN, END OF SCREEN, and called by CALL SELECTION SCREEN <num> statement 6) What is MODIF id? This is used to group the selection screen elements to make the changes on selection screen dynamically using the AT SELECTION SCREEN OUTPUT events. 7) How to make selection screen as pop-up? Ans: a) By adding the AS WINDOW word while defining the selection screen using SELECTION-SCREEN keyword. B) CALL SELECTION SCREEN STARTING AT x, y ENDING AT a, b. CLASSICAL REPORTS 1 – What is list? ANS: It is a screen which does not have any screen element and only displays the data for reporting purpose. 2) What is classical report?

Abap Reports

Embed Size (px)

Citation preview

Page 1: Abap Reports

SELECTION SCREEN

1 – Statements that trigger selection screen?

Ans : PARAMETERS, SELECT-OPTIONS, SELECTION-SCREEN

2 – Events associated with Selection screen?

Ans : INITIALIZATION, AT SELECTION-SCREEN, START-OF-SELECTION, END-OF-SELECTION

3 – How to add check box in selection screen.

Ans: PARAMETER A TYPE C AS CHECKBOX.

4 – Internal structure of Select-options?

Ans: SIGN – Inclusive or Exclusive, OPTIONS – BT OR EQ, LOW – from field, HIGH – To field

5) Types of Selection Screen?

Ans: a) Standard screen which 1000 screen number as default, b) Stand-alone selection screen which is the user defined one has the syntax BEGIN OF SCREEN, END OF SCREEN, and called by CALL SELECTION SCREEN <num> statement

6) What is MODIF id?

This is used to group the selection screen elements to make the changes on selection screen dynamically using the AT SELECTION SCREEN OUTPUT events.

7) How to make selection screen as pop-up?

Ans: a) By adding the AS WINDOW word while defining the selection screen using SELECTION-SCREEN keyword. B) CALL SELECTION SCREEN STARTING AT x, y ENDING AT a, b.

CLASSICAL REPORTS

1 – What is list?

ANS: It is a screen which does not have any screen element and only displays the data for reporting purpose.

2) What is classical report?

ANS: It is used to display the data in single output list screen with the help of input value given through selection screen

3) Keywords that generate list?

ANS: Write, Reserve(which produces page break), Uline, Format, SKIP.

4) Difference between sy-lsind and sy-listi?

SY-LSIND – It will store the index of the list which is running currently.

Page 2: Abap Reports

SY-LISTI – It will store the index of the list from which the event got triggered.

5) How to add interfaces on list?

ANS: We have to create menus, and corresponding function codes and function keys in SE41 and use it in report program using SET PF-STATUS <menu> statement.

6) What is the system variable holds the current GUI Status?

ANS: SY-PFKEY

7) What is stacked list?

ANS: A list which displays in a full screen mode is called as stacked list.

INTERACTIVE REPORT

1 – What is interactive report?

ANS: A report which allows the user to interact with the output by providing drill down features and allows the user to retrieve and process the data in each level. It produces the some basic info on basic list and based on the interaction made by end user, it produces the secondary list with some additional information.

2 – What are all the events associated with Interactive report?

ANS: AT LINE-SELECTION, AT USER-COMMAND, AT PF-KEY(actually it is obsolete), TOP OF PAGE DURING LINE SELECTION, TOP OF PAGE.

3 – Difference between HIDE STATEMENT and GET CURSOR?

ANS: Both are used to supplement the data to produce the secondary lists. But HIDE statement will hold the content of the fields at current line where the cursor is positioned in HIDE area. So it is based on line selections whereas GET CURSOR returns the name and value of a field where the cursor is positioned. So it is a field level selection.

4 – What is the implicit and default event ?

ANS: START-OF-SELECTION

5 – Number of lists can be created using reports?

AND: 1 basic list and 20 Secondary lists, so totally 21 lists can be created

6 – How to jump from one list to another?

ANS: Using the system field SY-LSIND in AT LINE-SELECTION event.

7 – How to provide help on a particular field of selections screen?

Page 3: Abap Reports

ANS: In AT SELECTION-SCREEN ON VALUE REQUEST event, we can use FMs F4IF_INT_TABLE_VALUE_REQUEST, which gets the internal table values and produces as search help on a field.

8 – Default function key and what is the function code linked with double click?

ANS: F2 is the default function key and PICK is the function code associated with the double click action.

9 – What is hotspot?

ANS: It is used to appear a right hand symbol when mouse point is dragged to a particular field or line. It does the job which is done by double click in the single click.

10 – What if the sequence of events are changed in program?

ANS: The driver program will automatically arrange the events in right sequence and execute program.

ALV:

1 – What is ALV?

It is ABAP List View which simplifies the use of list by offering features like sorting, filtering, subtotal and total with help of function modules.

2 – What is field catalog?

It is an internal table which contains the properties of field / column that is used in ALV. It is used to provide the features like edit, checkbox, hotspot in column level

3 –Which type group is used in ALV

SLIS – It is a global type group which has all necessary type declaration used in ALV

4 – How to generate field catalog automatically by the system?

ANS: By using the function mode REUESE_ALV_FIELDCATALOG_MERGE

5 – Why layout options are used and How?

If we want to format the whole layout of ALV, it can be used. For that we need to create the work area referring to SLIS_LAYOUT_ALV and fill EDIT, ZEBRA (For appearing the data in stripped format and applying some row colour), COLWIDTH_OPTIMIZE ( For making the field automatically adjust depend on the field content) as X and pass it is the IS_LAYOUT parameter of FM REUSE_ALV_GRID_DISPLAY.

6 – How to populate the events in ALV

By using the FM REUSE_ALV_EVENTS_GET, we can get the possible events and capture the event which we want to use