‎2007 Nov 19 4:20 AM
Hi Forum,
I'm learning abap by self.
Could anybody explain the difference between classical & interactive reports?
If there's any tutorial pertaining to the reports kindly let me know.
Thanks & Regards,
Mahathi
‎2007 Nov 19 4:26 AM
Hi
Please go through this Wiki. It gives a complete info on all type of reports:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/types%2bof%2breports
Thanks
Vijay
PLZ reward points if helpful
‎2007 Nov 19 4:22 AM
Hi,
U can go through the following URL. It is the SAP Help link where u can find the complete study material.
http://help.sap.com/saphelp_470/helpdata/en/fc/eb32e2358411d1829f0000e829fbfe/frameset.htm
Regards,
Himanshu
‎2007 Nov 19 4:24 AM
Hi,
have a look at this link. its a great site,
http://abapprogramming.blogspot.com/search/label/ABAP%20FAQ%20INTERACTIVE%20REPORTS
Reward if helpful.
‎2007 Nov 19 4:24 AM
Hi ,
In Classical reports, there will be only one extensive Detailed list.
i.e in single list if you wanttop display all teh data.
wheres ain INteractive report, First basic screen ( BAsic list) contains some data , and when user double clicks on the particualr record, he will be taken to another list (called Seconadary list) whcih contains the details of the record he selected.
Like this we can cretae upto 20secondary list .
Rvert back if any issues.
Regards,
Naveen.
‎2007 Nov 19 4:25 AM
Classic reporting is simply a basic list.
You can use the interactive reporting functionality to provide the user with additional clearly structured information in secondary lists or windows.
To generate secondary lists or windows, various special events are available that can be triggered by activating a function key or via mouse click.
Besides the basic list, up to twenty secondary lists may exist. The system field SY-LSIND contains the index of the list that is being generated by the report.
To save data for the secondary list, use the statement HIDE. The system stores field names and field contents per line. When an interactive event is triggered, the values stored in the HIDE area are placed back into original fields.
following is example for interactive report.
REPORT ZSTEST_033 NO STANDARD PAGE HEADING .
TABLES VBAK.
DATA IT_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE.
DATA IT_VBAP LIKE VBAP OCCURS 0 WITH HEADER LINE.
DATA IT_KNA1 LIKE KNA1 OCCURS 0 WITH HEADER LINE.
SELECT-OPTIONS S_VBELN FOR VBAK-VBELN.
START-OF-SELECTION.
SELECT * FROM VBAK INTO TABLE IT_VBAK
WHERE VBELN IN S_VBELN.
END-OF-SELECTION.
LOOP AT IT_VBAK.
WRITE:/ IT_VBAK-VBELN ,
IT_VBAK-ERDAT,
IT_VBAK-KUNNR .
ENDLOOP.
SET PF-STATUS 'DDDD'.
TOP-OF-PAGE.
WRITE:/ 'Sales document header details'.
ULINE.
AT USER-COMMAND.
DATA: L_FIELD(20) TYPE C,
L_VALUE(10) TYPE N.
GET CURSOR FIELD L_FIELD VALUE L_VALUE.
IF SY-UCOMM EQ 'VBAP'.
SELECT * FROM VBAP INTO TABLE IT_VBAP
WHERE VBELN EQ L_VALUE.
LOOP AT IT_VBAP.
WRITE:/ IT_VBAP-VBELN,
IT_VBAP-POSNR,
IT_VBAP-MATNR,
IT_VBAP-NETWR.
ENDLOOP.
ELSEIF SY-UCOMM EQ 'KUNNR'.
SELECT * FROM KNA1 INTO TABLE IT_KNA1
WHERE KUNNR EQ L_VALUE.
LOOP AT IT_KNA1.
WRITE:/ IT_KNA1-KUNNR,
IT_KNA1-NAME1.
ENDLOOP.
ENDIF.
TOP-OF-PAGE DURING LINE-SELECTION.
WRITE:/ 'Secondary list..'.
ULINE.
‎2007 Nov 19 4:26 AM
Hi
Please go through this Wiki. It gives a complete info on all type of reports:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/types%2bof%2breports
Thanks
Vijay
PLZ reward points if helpful
‎2007 Nov 19 4:58 AM
HI
<b>A classic report</b> is a program that generates a single list, which must contain all of the required detail information.
1) This procedure may result in extensive lists from which the user has to pick the relevant data.
2) For background processing, this is the only possible method. After starting a background job, there is no way of influencing the program.
3) The desired selections must be made beforehand and the list must provide detailed information.
4) For dialog sessions, there are no such restrictions.
5) The user is present during the execution of the program and can control and manipulate the program flow directly.
6) To be able to use all advantages of the online environment, classical reporting was developed into interactive reporting.
<b>Intervactive</b>
If the report has a custom GUI and the user selects a menu option, the event AT USER-COMMAND is
triggered. The function code assigned to the menu option can be evaluated using a CASE construct to
determine which menu option was selected.
If the user double-clicks on a report line, the AT LINE-SELECTION event is triggered. The event can
also be triggered by single clicking on a report line and either pressing the Detail icon in the application
tool bar, pressing F2, or entering the word PICK in the OK code field and pressing Enter.
Up to 20 parallel detail lists can exist for each basic list.
Each list has in its own individual memory area called a list buffer.
The events START-OF-SELECTION, GET, END-OF-SELECTION, TOP-OF-PAGE and END-OF-PAGE can be used only to create basic lists. Once you leave a basic list, these events are no longer processed.
Detail lists are created using two basic events: AT LINE-SELECTION and AT USER-COMMAND. The event TOP-OF-PAGE DURING LINE-SELECTION is used to create headers for all detail lists.
<b>Reward if usefull</b>