14/11/2011

Interactive Reporting Question And Answers

INTERACTIVE REPORTING



1.      What is interactive reporting?
A.    Interactive reporting helps you to create easy-to-read lists. You can display an overview list first that contains general information and provide the user with the possibility of choosing detailed information that you display on further lists.


2.      What are the uses of interactive reporting?
A.    With interactive reporting, the user can actively control data retrieval and display during the session. Instead of an extensive and detailed list, you create a basic list with condensed information from which the user can switch to detailed displays by positioning the cursor and entering commands. The detailed information appears in secondary lists.



3.      What are the event key words in interactive reporting?
A.

Event keyword

Event

AT LINE-SELECTION
Moment at which the user selects a line by double-clicking on it or by positioning the cursor on it and pressing F2.

AT USER-COMMAND
Moment at which the user presses a function key.
TOP-OF-PAGE DURING LINE-SELECTION
Moment during list processing of a secondary list at which a new page starts.

4.      What is secondary list?
A.    Secondary lists allow you to enhance the information presented in the basic list. The user can, for example, select a line of the basic list for which he wants to see more detailed information. You display these details on a secondary list. Secondary lists may either overlay the basic list completely or you can display them in an extra window on the screen. The secondary lists can themselves be interactive again.

5.      How to select valid lines for secondary list?
A.     To prevent the user from selecting invalid lines, ABAP/4 offers several possibilities. At the end of the processing block END-OF-SELECTION, delete the contents of one or more fields you previously stored for valid lines using the HIDE statement. At the event AT LINE-SELECTION, check whether the work area is initial or whether the HIDE statement stored field contents there. In the latter case, create a secondary list, since you previously stored field contents for valid lines only. After processing the secondary list, clear the work area again. This prevents the user from trying to create further secondary lists from the secondary list displayed.


6.      How to create user interfaces for lists?
A.     The R/3 system automatically generates a graphical user interface (GUI) for your lists that offers the basic functions for list processing, such as saving or printing the list. If you want to include additional functionality, such as pushbuttons, you must define your own interface status. To create a new status, the Development Workbench offers the Menu Painter. With the Menu Painter, you can create menus and application toolbars. And you can assign Function keys to certain functions. At the beginning of the statement block of AT END-OF-SELECTION, activate the status of the basic list using the statement: SET PF-STATUS 'STATUS'.

7.      What is interactive reporting?
A.    A classical non-interactive report consists of one program that creates a single list. Instead of one extensive and detailed list, with interactive reporting you create a condensed basic list from which the user can call detailed information by positioning the cursor and entering commands. Interactive reporting thus reduces information retrieval to the data actually required.


8.      Can we call reports and transactions from interactive reporting lists?
A.    YES. Interactive reporting also allows you to call transactions or other reports from lists. These programs then use values displayed in the list as input values. The user can, for example, call a transaction from within a list to change the database table whose data is displayed in the list.

9.      What are system fields for secondary lists?
A. SY-LSIND            Index of the list created during the current event (basic list = 0)
SY-LISTI              Index of the list level from which the event was triggered
SY-LILLI              Absolute number of the line from which the event was triggered
SY-LISEL Contents of the line from which the event was triggered
SY-UCOMM        Function code that triggered the event
SY-PFKEY            Status of the displayed list
SY-CUROW         Position of the line in the window from which the event was triggered (counting starts with 1)
SY-CUCOL           Position of the column in the window from which the event was triggered(counting starts with 2)
SY-CPAGE           Page number of the first displayed page of the list from which the event was triggered
SY-STARO           Number of the first line of the first page displayed of the list from which the event was triggered (counting starts with 1). Possibly, a page header occupies this line.
SY-STACO           Number of the first column displayed in the list from which the event was triggered (counting starts with 1)

10. How to maintain lists ?
A.    To return from a high list level to the next-lower level (SY-LSIND), the user chooses Back on a secondary list.The system then releases the currently displayed list and activates the list created one step earlier.The system deletes the contents of the released list.To explicitly specify the list level into which you want to place output, set the SY-LSIND field. The system accepts only index values which correspond to existing list levels.It then deletes all existing list levels whose index is greater or equal to the index you specify.For example, if you set SY-LSIND to 0, the system deletes all secondary lists and overwrites the basic list with the current secondary list.


11. What are the page headers for secondary lists?
A.      On secondary lists, the system does not display a standard page header and it does not trigger the event TOP-OF-PAGE.To create page headers for secondary list, you must enhance TOP-OF-PAGE: Syntax TOP-OF-PAGE DURING LINE-SELECTION. The system triggers this event for each secondary list. If you want to create different page headers for different list levels, you must program the processing block of this event accordingly, for example by using system fields such as SY-LSIND or SY-PFKEY in control statements (IF, CASE).

12. How to use messages in lists?
A.    ABAP/4 allows you to react to incorrect or doubtful user input by displaying messages that influence the program flow depending on how serious the error was. Handling messages is mainly a topic of dialog programming .You store and maintain messages in Table T100. Messages are sorted by language, by a two-character ID, and by a three-digit number. You can assign different message types to each message you output. The influence of a message on the program flow depends on the message type. In your program, use the MESSAGE statement to output messages statically or dynamically and to determine the message type.

 Syntax:REPORT <rep> MESSAGE-ID <id>.

13. What are the types of messages ?
A.    A message can have five different types. These message types have the following effects during list processing:

 ·A (=Abend):
 ·E (=Error) or W (=Warning):
 ·I (=Information):
 ·S (=Success):

14. What are the user interfaces of interactive lists ?
A.    If you want the user to communicate with the system during list display, the list must be interactive. You can define specific interactive possibilities in the status of the list's user interface (GUI). To define the statuses of interfaces in the R/3 system, use the Menu Painter tool.In the Menu Painter, assign function codes to certain interactive functions.After an user action occurs on the completed interface, the ABAP/4 processor checks the function code and, if valid, triggers the corresponding event.

15. What are the drill-down features provided by abap/4 in interactive lists ?
A.    ABAP/4 provides some interactive events on lists such as AT LINE-SELECTION(double click) or AT USER-COMMAND(pressing a button).you can use these events to move through layers of information about individual items in a list.

16. What is meant by stacked list ?
A.    A Stacked list is nothing but secondary list and is displayed on a full-size screen unless you have specified its coordinates using the window command.

17. Is the basic list deleted when the new list is created?
A.    NO.It is not deleted and you can return back to it using one of the standard navigation functions like clicking on the back button or the cancel button.

18. What is meant by hotspots ?
A.    A Hotspot is a list area where the mouse pointer appears as an upright hand symbol.When a user points to that area(and the hand cursor is active),a single-click does the same thing as a double-click. Hotspots are supported from R/3 release 3.0c.

19. What is the length of function code at user-command ?
A.    Each menu function,push button,or function key has an associated function code of length FOUR (for example, FREE) which is available in the system field SYUCOMM after the user action.

20. Can we create a gui status in a program from the object browser ?
A.    Yes. You can create a GUI STATUS in a program using SET PF-STATUS.

21. In which system field does the name of current gui status is there ?
A.    The name of the current GUI STATUS is available in the system field SY-PFKEY.

22. Can we display a list in a pop-up screen other than full-size stacked list ?
A.    Yes, we can display a list in a po-up screen using the command WINDOW with the additions starting at X1 Y1 and ending at X2 Y2 to set the upper-left and the lower-right corners where x1 y1 and x2 y2 are the coordinates.

23. What is meant by hide area ?
A.    The hide command temporarily stores the contents of the field at the current line in a system-controlled memory called the HIDE AREA.At an interactive event,the contents of the field is restored from the HIDE AREA.

24. When the get cursor command used in interactive lists ?
A.    If the hidden information is not sufficient to uniquely identify the selected line ,the command GET CURSOR is used.The GET CURSOR command returns the name of the field at the cursor position in a field specified after the addition field,and the value of the selected field in a field specified after value.

25. How can you display frames (horizontal and vertical lines) in lists ?
A.    You can display tabular lists with horizontal and vertical lines (FRAMES) using the ULINE command and the system field SY-VLINE.The corners arising at the intersections of horizontal and vertical lines are automatically drawn by the system.

26. What are the events used for page headers and footers ?
A.    The events TOP-OF-PAGE and END-OF-PAGE are used for page headers and footers.

27. How can you access the function code from menu painter ?
A.    From within the program, you can use the SY-UCOMM system field to access the function code. You can define individual interfaces for your report and assign them in the report to any list level. If you do not specify self-defined interfaces in the report but use at least one of the three interactive event keywords AT LINE-SELECTION, AT PF<nn>, or AT USER-COMMAND in the program, the system automatically uses appropriate predefined standard interfaces. These standard interfaces provide the same functions as the standard list described under the standard list.

28. How the at-user command serves mainly in lists ?
A.    The AT USER-COMMAND event serves mainly to handle own function codes. In this case, you should create an individual interface with the Menu Painter and define such function codes.

29. How to pass data from list to report ?
A.    ABAP/4 provides three ways of passing data:
 Passing data automatically using system fields
 Using statements in the program to fetch data
 Passing list attributes

30. How can you manipulate the presentation and attributes of interactive lists ?
A.    Scrolling through Interactive Lists
 Setting the Cursor from within the Program
 Modifying List Lines

31. How to call other programs ?
A.


Report

Transaction

Call and return
SUBMIT AND RETURN      
CALL TRANSACTION
Call without return
SUBMIT
LEAVE TO TRANSACTION

You can use these statements in any ABAP/4 program.

32. What will exactly the hide statement do ?
A.    For displaying the details on secondary lists requires that you have previously stored the contents of the selected line from within the program. To do this, ABAP/4 provides the HIDE statement. This statement stores the current field contents for the current list line. When calling a secondary list from a list line for which the HIDE fields are stored,the system fills the stored values back into the variables in the program. In the program code, insert the HIDE statement directly after the WRITE statement for the current line. Interactive lists provide the user with the so-called 'INTERACTIVE REPORTING' facility. For back ground processing the only possible method of picking the relavent data is through 'NON INTERACTIVE REPORT'.After starting a background job,there is no way of influencing the program.But whereas for dialog sessions there are no such restrictions.

33. How many lists can a program can produce ?
A.    Each program can produce up to 21 lists: one basic list and 20 secondary lists. If the user creates a list on the next level (that is, SY-LSIND increases), the system stores the previous list and displays the new one. Only one list is active, and that is always the most recently created list.