ALV and Interactive Reports
Hi,
Can anyone email me a documentation on ALV reports and Interactive reports at [email protected]
Amit
Hi,
Check this link for ALV GRID control
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
You can check the development class SLIS for ALV related sample programs..
Thanks,
Naren
Similar Messages
-
Reg. alv and interactive reports
Hi Friends,
What is the difference between alv and interactive reports?.
rewards are helpful answers.Hi,
ABAP List Viewer
The common features of report are column alignment, sorting, filtering, subtotals, totals etc. To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV).
Using ALV, we can have three types of reports:
1. Simple Report
2. Block Report
3. Hierarchical Sequential Report
Interactive Reports
As the name suggests, the user can Interact with the report. We can have a drill down into the report data.
Purpose
Interactive report provides you with comfortable functions for navigating through your data.
Use
Interactive report are used to display multiple list in one single report
It has basic list and then you can navigate to one or other screens in one single report
Enhance the efficiency & transparency of Business Processes
Example : Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers.
And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details.
Advantage of ALV over Interactive:--
1> Graphic Can be added
2> Less Amount Of coding
Reward If Helpful -
ALV and Interactive Reports in SAP ABAP?
Hi All,
What type of reports we can generate in SAP ABAP using ALV & Interactive in real time Scenario? Do SAP provides some Standard reports? Plz give some examples?
Thanks in Advance.Hi Mohnish,
You can refer the following ALV sample code :
TYPE-POOLS: slis.
TABLES : afko,afpo .
+-- Data declarations--+
DATA : BEGIN OF it_afpo OCCURS 0,
AUFNR LIKE afpo-AUFNR,
PSMNG LIKE afpo-PSMNG,
WEMNG LIKE afpo-WEMNG,
PWERK LIKE afpo-PWERK,
DAUAT LIKE afpo-DAUAT,
END OF it_afpo.
DATA : BEGIN OF it_afko OCCURS 0,
AUFNR LIKE afko-AUFNR,
GSTRP LIKE afko-GSTRP,
GSTRS LIKE afko-GSTRS,
GSTRI LIKE afko-GSTRI,
GSUZI LIKE afko-GSUZI,
PLNBEZ LIKE AFKO-PLNBEZ,
END OF it_afko.
DATA : BEGIN OF it_makt OCCURS 0,
matnr TYPE matnr,
maktx TYPE maktx,
END OF it_makt.
DATA : BEGIN OF it_output OCCURS 0,
AUFNR LIKE afpo-AUFNR,
PSMNG LIKE afpo-PSMNG,
WEMNG LIKE afpo-WEMNG,
DAUAT LIKE afpo-DAUAT,
GSTRP LIKE afko-GSTRP,
GSTRS LIKE afko-GSTRS,
GSTRI LIKE afko-GSTRI,
GSUZI LIKE afko-GSUZI,
PLNBEZ LIKE AFKO-PLNBEZ,
matnr LIKE makt-matnr,
maktx LIKE makt-maktx,
END OF it_output.
DATA: wa_output LIKE it_output,
wa_afpo LIKE it_afpo,
wa_afko LIKE it_afko,
wa_makt like it_makt.
DATA : wk_date1(10) TYPE c,
wk_date2(10) TYPE c,
wk_datehead TYPE string.
+--Selection screen parameters--+
INITIALIZATION.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_matnr FOR afpo-matnr.
PARAMETERS : p_pwerk type afpo-pwerk OBLIGATORY.
SELECT-OPTIONS: s_dauat for afpo-dauat OBLIGATORY,
s_gstrp for afko-GSTRP OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
--internal tables for alv--
DATA : gt_fieldcat TYPE slis_t_fieldcat_alv, "catalog for alv
gt_heading TYPE slis_t_listheader, "list for header1
gt_sort TYPE slis_t_sortinfo_alv, "Sorting of the
gt_event TYPE slis_t_event,
gt_selfield TYPE slis_selfield,
gv_alv_event TYPE slis_alv_event,
gv_repname TYPE sy-repid,
gs_layout TYPE slis_layout_alv,
gv_save TYPE c.
CONSTANTS gc_forname_top_of_page TYPE slis_formname VALUE
'TOP-OF-PAGE'.
START-OF-SELECTION.
PERFORM get_data.
PERFORM output_data.
PERFORM build_comment USING gt_heading[].
PERFORM eventstab.
PERFORM sub_t_sort_build.
PERFORM build_field_catalog.
PERFORM display_data.
--Data selection--
*& Form get_data
text
--> p1 text
<-- p2 text
FORM get_data.
select AUFNR
PSMNG
WEMNG
MATNR
PWERK
DAUAT
from afpo CLIENT SPECIFIED
INTO TABLE it_afpo
WHERE mandt = sy-mandt
AND matnr IN s_matnr
and pwerk = p_pwerk
and dauat in s_dauat.
select AUFNR
GSTRP
GSTRS
GSTRI
GSUZI
PLNBEZ
from afko CLIENT SPECIFIED
INTO table it_afko
FOR ALL ENTRIES IN it_afpo
WHERE mandt = sy-mandt
AND aufnr = it_afpo-aufnr
and gstrp in s_gstrp.
SELECT matnr
maktx
FROM makt
INTO table it_makt
FOR ALL ENTRIES IN it_afKo
WHERE matnr = it_afKo-PLNBEZ.
ENDFORM. " get_data
*& Form output_data
text
--> p1 text
<-- p2 text
FORM output_data.
loop at it_afko into wa_afko.
LOOP AT it_afpo into wa_afpo
WHERE aufnr = wa_afKo-aufnr.
wa_output-AUFNR = wa_afpo-AUFNR.
wa_output-PSMNG = wa_afpo-PSMNG.
wa_output-WEMNG = wa_afpo-WEMNG.
wa_output-DAUAT = wa_afpo-DAUAT.
ENDLOOP.
loop at it_makt into wa_makt
where matnr = wa_afKo-PLNBEZ.
wa_output-matnr = wa_makt-matnr.
wa_output-maktx = wa_makt-maktx.
endloop.
wa_output-GSTRP = wa_afko-GSTRP.
wa_output-GSTRS = wa_afko-GSTRS.
wa_output-GSTRI = wa_afko-GSTRI.
wa_output-GSUZI = wa_afko-GSUZI.
APPEND wa_output TO it_output.
ENDLOOP.
CLEAR wa_afpo.
CLEAR wa_afko.
CLEAR wa_output.
SORT IT_OUTPUT BY GSTRP GSUZI.
ENDFORM. " output_data
--Header for ALV--
*& Form build_comment
text
-->P_GT_HEADING[] text
FORM build_comment USING p_heading TYPE slis_t_listheader.
DATA : ls_header TYPE slis_listheader.
*--poputale the report header info
ls_header-typ = 'H'.
MOVE : text-002 TO ls_header-info.
APPEND ls_header TO p_heading.
CLEAR ls_header.
ls_header-typ = 'S'.
ls_header-key = text-013 .
"'User:'
ls_header-info = sy-uname.
APPEND ls_header TO p_heading.
CLEAR: ls_header.
ENDFORM. " build_comment
*& Form eventstab
text
--> p1 text
<-- p2 text
FORM eventstab.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = gt_event
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
READ TABLE gt_event
WITH KEY name = slis_ev_top_of_page
INTO gv_alv_event.
IF sy-subrc EQ 0.
MOVE gc_forname_top_of_page TO gv_alv_event-form.
APPEND gv_alv_event TO gt_event.
ENDIF.
ENDFORM. " eventstab
*& Form build_field_catalog
text
--> p1 text
<-- p2 text
FORM build_field_catalog.
DATA ls_fieldcat TYPE slis_fieldcat_alv.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 1.
ls_fieldcat-fieldname = 'DAUAT'.
ls_fieldcat-outputlen = 12.
ls_fieldcat-tabname = 'it_output'.
ls_fieldcat-seltext_l = 'Order Type'.
ls_fieldcat-KEY = 'X'.
APPEND ls_fieldcat TO gt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 2.
ls_fieldcat-fieldname = 'AUFNR'.
ls_fieldcat-outputlen = 10.
ls_fieldcat-tabname = 'it_output'.
ls_fieldcat-seltext_l = 'Order Number'.
APPEND ls_fieldcat TO gt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 3.
ls_fieldcat-fieldname = 'MATNR'.
ls_fieldcat-outputlen = 12.
ls_fieldcat-tabname = 'it_output'.
ls_fieldcat-seltext_l = 'Material Number'.
APPEND ls_fieldcat TO gt_fieldcat.
----you can add fields as per your requirement.*----
ENDFORM. " build_field_catalog
*-- Form top of page
FORM top-of-page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = gt_heading.
ENDFORM. "TOP-OF-PAGE
*& Form display_data
text
--> p1 text
<-- p2 text
FORM display_data.
gv_save = 'A'.
gv_repname = sy-repid.
gs_layout-colwidth_optimize = 'X'.
gs_layout-zebra = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gv_repname
is_layout = gs_layout
it_sort = gt_sort[]
it_fieldcat = gt_fieldcat[]
i_default = 'X'
i_save = gv_save
it_events = gt_event[]
TABLES
t_outtab = it_output
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " display_data
*& Form sub_t_sort_build
text
--> p1 text
<-- p2 text
FORM sub_t_sort_build.
DATA ls_sort TYPE slis_sortinfo_alv.
ls_sort-spos = 1.
ls_sort-tabname = 'it_output'.
ls_sort-fieldname = 'DAUAT'.
ls_sort-subtot = 'X'.
ls_sort-up = 'X'.
ls_sort-group = '*'.
APPEND ls_sort TO gt_sort.
ENDFORM. " sub_t_sort_build
Reward points, if helpful
Regards,
Ramneet -
Difference between class report and interactive report
please give me the differences between classical report and interactive report
Hi,read the following :
In ABAP, there are a total of 7 types of reports. They are:
Classical Reports
Interactive Reports
Logical Database Reports
ABAP query
ALV Reports (ALV stands for ABAP List Viewer)
Report Writer/Report Painter
Views (There are different types of views also)
Classical Reports
These are the most simple reports. It is just an output of data using the Write statement inside a loop.
Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT
Interactive Reports
As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers.
And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed.
We can have a basic list (number starts from 0) and 20 secondary lists (1 to 21).
Logical Database Reports
Logical database is another tool for ABAP reports. Using LDB we can provide extra features for ABAP reports.
While using LDB there is no need for us to declare Parameters.
Selection-screen as they will be generated automatically.
We have to use the statement NODES in ABAP report.
ABAP Query Reports
ABAP query is another tool for ABAP. It provides efficency for ABAP reports. These reports are very accurate.
Transaction Code : SQ01
Report Writer / Report painter
Super users and end users can use Report Painter/Report Writer tools to write their own reports.
Giving them the ability to report on additional fields at their discretion shifts the report maintenance burden to them, saving SAP support groups time and effort normally spent creating and maintaining the reports.
ALV reports
Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
The report output can contain up to 90 columns in the display with the wide array of display options.
There is no difference between drill down and interactive report, they are the same.
With drilldown reporting, SAP provides you with an interactive information system to let you evaluate the data collected in your application. This information system is capable of analyzing all the data according to any of the characteristics that describe the data. You can also use any key figures you wish to categorize your data. You can display a number of objects for a given key figure, or a number of key figures for a given object. In addition, the system lets you carry out any number of variance analyses (such as plan/actual comparisons, fiscal year comparisons, comparisons of different objects, and so on).
*More on Classical Vs Interactive*
Classical Reports
These are the most simple reports. Programmers learn this one first. It is just an output of data using the Write statement inside a loop.
Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT.
Events In Classical Reports.
INTIALIZATION: This event triggers before selection screen display.
AT-SELECTION-SCREEN: This event triggers after proccesing user input still selection screen is in active mode.
START OF SELECTION: Start of selection screen triggers after proceesing selection screen.
END-OF-SELECTION : It is for Logical Database Reporting.
Interactive Reports
As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers.
And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed.
We can have a basic list (number starts from 0) and 20 secondary lists (1 to 21).
Events associated with Interactive Reports are:
1. AT LINE-SELECTION
2. AT USER-COMMAND
3. AT PF<key>
4. TOP-OF-PAGE DURING LINE-SELECTION.
HIDE statement holds the data to be displayed in the secondary list.
sy-lisel : contains data of the selected line.
sy-lsind : contains the level of report (from 0 to 21)
Interactive Report Events:
AT LINE-SELECTION : This Event triggers when we double click a line on the list, when the event is triggered a new sublist is going to be generated. Under this event what ever the statements that are been return will be displayed on newly generated sublist.
AT PFn: For predefined function keys...
AT USER-COMMAND : It provides user functions keys.
TOP-OF-PAGE DURING LINE-SELECTION :top of page event for secondary list.
Reward if found helpful -
What is difference between interactive list and interactive reports?
what is difference between interactive list and interactive reports?
hi check this..
interactive report/list means any input(double click or single click or user command ) on the screen will results a new screen with the corresponding fields....this is upto 20 levels only check this..
report .
start-of-selection.
write:/ 'this is the source list'.
at line-selection .
if sy-lsind = 1 .
write:/ ' this is the 1st list'.
elseif.
if sy-lsind = 2 .
write:/ ' this is the 2 list'.
if sy-lsind = 3 .
write:/ ' this is the 3 list'.
if sy-lsind = 4 .
write:/ ' this is the 4 list'.
if sy-lsind = 5 .
write:/ ' this is the 5 list'.
if sy-lsind = 6 .
write:/ ' this is the 6 list'.
if sy-lsind = 7 .
write:/ ' this is the 7 list'.
if sy-lsind = 8.
write:/ ' this is the 8 list'.
if sy-lsind = 9 .
write:/ ' this is the 9 list'.
if sy-lsind = 10 .
write:/ ' this is the 10 list'.
endif.
regards,
venkat -
Drilldown and interactive reports
hi,
is there any difference between drilldown and interactive reports.
if there exits , what is the difference?
kindly help me.
i will reward good points.
regards
thiru1. There is NO diff btw Interactive and Drilldown.
2. get cursor.
get cursor field <field_name> value <field_value>.
when you double clik on any line in list..reads particular field instead of whole line (where you clicked).
3. Hide statement.
hides contents of fields to make availble to further list processing
press F1 on HIDE you'll get more info... -
I Created a power view in Excel 2013 and uploaded to my Power BI for o365 site.
But when i click on my excel file it opens in browser,After that i click on File tab its showing me two option
1. Save a Copy
2.Download a copy
When i click on save a copy its showing me an warning below
Features that are not supported by Excel in the browser and interactive reports will be removed from the saved copy.
Continue with Save?
If i continue saving it only saves an excel files with data only not the power view which i want to save with applied filters.
Please help me for thisJust to clarify, when you hit the option of Save As Copy, the whole experience goes into a "read-write" mode in Excel services, which currently doesn't support authoring, just consumption of PowerView sheets.
Two mitigations that come to mind:
1. Download the copy (as Brad suggests), rename the file and upload.
2. Use the send to option of SharePoint online, give the file the right target document library (can be the same as source) and rename the file:
GALROY -
Difference between Drilldown report and Interactive report
There is no difference between drill down and interactive report, they are the same.
With drilldown reporting, SAP provides you with an interactive information system to let you evaluate the data collected in your application. This information system is capable of analyzing all the data according to any of the characteristics that describe the data. You can also use any key figures you wish to categorize your data. You can display a number of objects for a given key figure, or a number of key figures for a given object. In addition, the system lets you carry out any number of variance analyses (such as plan/actual comparisons, fiscal year comparisons, comparisons of different objects, and so on).
You can produce both simple, data-directed lists (basic reports) and complex, formatted lists in drilldown reporting (form reports).
Drilldown report provides you with comfortable functions for navigating through your data. For example, you can jump to the next level of detail or the next report object on the same level, hide individual levels and switch between the detail and drilldown lists. It also provides a number of additional functions which let you process lists interactively (sorting, conditions, ranking lists, and so on). SAP Graphics, SAPmail and the Excel List Viewer are also integrated into drilldown reporting.
The drilldown functions are divided into three groups which differ in the number of functions available. That way each user can choose the functional level most suited for his requirements.
In addition to the online functions for displaying reports, drilldown reporting also provides functions which let you print reports. A number of formatting functions are available to let you determine the look of your printed reports (page breaks, headers and footers, underscores, and so on).
The menus and the functions available directly on the drilldown report make it easy to use the information system.
What is an Interactive Report?
An interactive report generally works in the following fashion:
1. Basic list is displayed.
2. User double clicks on any valid line
or
User selects a line and presses as button on the tool bar.
3. The corresponding event is triggered
4. Then in the code, the line on which action was done, is read.
5. Depending on the values in that selected line, a secondary list is displayed.
6. Steps from 2-5 are repeated till the end.
From the above explanation, I believe, its clear that, the 20th list, will essentially depend on the "selected line" of 19th list. According to your question, you want to move to 20th list directly, without "a prior list". May I know the exact requirement so that, an appropriate solution can be suggested?
Again, your question was, how to move to 20th list directly on pressing of execute button. Its not possible to move to 20th list. You must cross over a basic list, before you can go to a different list level, using the code given by Pavan.
What are Drilldown reports?
The lines of basic list of a drilldown report when clicked, will take the user to the corresponding (standard) object's display.
For eg: Suppose your report's primary component is purchase requisition, (assume you are printing PR details), and the basic list displays details of many PRs.
Eg: when clicked on a particular line of the PR basic list, it takes you to std t-code me53 (display of purchase requisition). This is the 'Drill-down' functionality.
For this, in the at-line selection of your program, as per the above ex: you'll set the parameter ID of PR number BAN (that you can get from Data element) in memory (using set parameter id) and then calling the corresponding transaction (usually skipping initial screen of the std t-code).
Likewise, if it's Material Number (Matnr), you'll be displaying MM03 transaction w.r.t. the line's matnr.
AKSHAT..........Good, information. But I think you should post these items in Wiki, in place of forum, as here we have Qns & Ans; problems and solutions.
https://www.sdn.sap.com/irj/sdn/wiki
[ABAP Development > ABAP General ]
Wiki is the right place for such knowledge base
Thanks!!
Regards,
Vishal. -
Difference between Drill down Report and Interactive Report
What is the difference between Drill down Report and Interactive Report?
Hi,
Drill down report and Interactive report seems to be acts as same. But there is a minor difference between those two.
Drill Down Report - When you click on a particular field in a report it drills down to the next report, it won't trigger another screen.
Interactive Report - When you click on a particular field in a report it will trigger another report based on the field clicked. It opens another session internally in the same screen.
Regards,
Jayaram... -
WHAT IS THE DIFF B/N DRILLDOWN REPORT AND INTERACTIVE REPORT
HI
EXPERTS CAN U HELP ME FOR THIS
THANKUHi....
There is no difference between drill down and interactive report, they are the same.
With drilldown reporting, SAP provides you with an interactive information system to let you evaluate the data collected in your application. This information system is capable of analyzing all the data according to any of the characteristics that describe the data. You can also use any key figures you wish to categorize your data. You can display a number of objects for a given key figure, or a number of key figures for a given object. In addition, the system lets you carry out any number of variance analyses (such as plan/actual comparisons, fiscal year comparisons, comparisons of different objects, and so on).
You can produce both simple, data-directed lists (basic reports) and complex, formatted lists in drilldown reporting (form reports).
Drilldown report provides you with comfortable functions for navigating through your data. For example, you can jump to the next level of detail or the next report object on the same level, hide individual levels and switch between the detail and drilldown lists. It also provides a number of additional functions which let you process lists interactively (sorting, conditions, ranking lists, and so on). SAP Graphics, SAPmail and the Excel List Viewer are also integrated into drilldown reporting.
The drilldown functions are divided into three groups which differ in the number of functions available. That way each user can choose the functional level most suited for his requirements.
In addition to the online functions for displaying reports, drilldown reporting also provides functions which let you print reports. A number of formatting functions are available to let you determine the look of your printed reports (page breaks, headers and footers, underscores, and so on).
The menus and the functions available directly on the drilldown report make it easy to use the information system.
What is an Interactive Report?
An interactive report generally works in the following fashion:
1. Basic list is displayed.
2. User double clicks on any valid line
or
User selects a line and presses as button on the tool bar.
3. The corresponding event is triggered
4. Then in the code, the line on which action was done, is read.
5. Depending on the values in that selected line, a secondary list is displayed.
6. Steps from 2-5 are repeated till the end.
From the above explanation, I believe, its clear that, the 20th list, will essentially depend on the "selected line" of 19th list. According to your question, you want to move to 20th list directly, without "a prior list". May I know the exact requirement so that, an appropriate solution can be suggested?
Again, your question was, how to move to 20th list directly on pressing of execute button. Its not possible to move to 20th list. You must cross over a basic list, before you can go to a different list level, using the code given by Pavan.
What are Drilldown reports?
The lines of basic list of a drilldown report when clicked, will take the user to the corresponding (standard) object's display.
For eg: Suppose your report's primary component is purchase requisition, (assume you are printing PR details), and the basic list displays details of many PRs.
Eg: when clicked on a particular line of the PR basic list, it takes you to std t-code me53 (display of purchase requisition). This is the 'Drill-down' functionality.
For this, in the at-line selection of your program, as per the above ex: you'll set the parameter ID of PR number BAN (that you can get from Data element) in memory (using set parameter id) and then calling the corresponding transaction (usually skipping initial screen of the std t-code).
Likewise, if it's Material Number (Matnr), you'll be displaying MM03 transaction w.r.t. the line's matnr
Hope it will help u
regards
Bala -
Oracles tools to generate static and interactive reports
Hi,
What kind of oracle tools can generate statis and interactive reports, is there any free one, and where to get it?
Thanks.user11017933 wrote:
Hi,
What kind of oracle tools can generate statis and interactive reports, is there any free one, and where to get it?
Thanks.
What type of reports you're looking? Performance report? you can use AWR but this is not free. You can use statspack instead
Hope this helps
Cheers -
Classical and Interactive reports / BSP
what are classical report and interactive reports
I dont know anything abot BSP. How to start and what are the pre-requsites.
Pls provide me the useful link for that
Thank you
JohnHi,
<b>Classical Reports:-</b>
These are the most simple reports. Programmers learn this one first. It is just an output of data using the Write statement inside a loop.
Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT.
<b>Interactive Reports</b>As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers. And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed.
<b>
For BSP's</b>
/people/thomas.jung/blog/2006/01/13/custom-bsp-extensions-time-stamp-and-range-ui-elements
http://searchsap.techtarget.com/tip/0,289483,sid21_gci886185,00.html
BSP Basics
If you search the forum aout the BSP, you will get more info
Regards
Sudheer -
Hi Friends,
I want to build a report based on <b>ALVs</b> and also like a <b>Interactive reports</b>.
Eg: First I want to display customer details in first <b>ALV Grid</b>. IF the user click on the <b><u>Cust No</u></b> the next screen should shown the <b>order headers</b> of that <b>customers</b>, when the user click on <u><b>Order No</b></u> in this screen I want to display in the next screen with the details of that <b>Sales orders</b>.
Here I m having the doubts where I have to <u><b>Hide the Cust No or Order No</b></u>. Where I have to use
<b>AT LINE-SELECTION</b> command. In each screen is necessary to call the Function Module <b>REUSE_ALV_GRID_DISPLAY</b>.
Plz send me asap.
Regards
Praveen KumarYOu can achive this by populating the field I_CALLBACK_USER_COMMAND in the final function module, used to display the list. This field should be assigned a FORM name. THis form will be executed when the user clicks a field on the screen.
THis form imports two parameters namely sy-ucomm and SELFIELD of type SLIS_SELFIELD. this field contains the details of the list selected. check the below code for your reference... the below code will navigate to Sales Order display.
report test.
type-pools : slis.
data : itab_events type slis_t_Event with header line,
it_output like vbak occurs 0 with header line,
itab_fldcat type SLIS_T_FIELDCAT_ALV.
data : v_Repid type sy-repid,
WA_FLDCAT TYPE SLIS_FIELDCAT_ALV .
start-of-selection.
v_repid = sy-repid.
select * from vbak into table it_output.
if sy-subrc = 0.
sort it_output by vbeln.
endif.
Field the field catalog
WA_FLDCAT-TABNAME = 'IT_OUTPUT'.
wa_fldcat-fieldname = 'VBELN'.
WA_FLDCAT-SELTEXT_M = 'Sales Document' .
WA_FLDCAT-COL_POS = 1 .
WA_FLDCAT-DDICTXT = 'M'.
WA_FLDCAT-KEY = 'X'.
WA_FLDCAT-HOTSPOT = 'X'.
append wa_fldcat to itab_fldcat.
clear wa_fldcat.
wa_fldcat-fieldname = 'AUART'.
WA_FLDCAT-TABNAME = 'IT_OUTPUT'.
WA_FLDCAT-SELTEXT_M = 'Order Type' .
WA_FLDCAT-COL_POS = 2 .
WA_FLDCAT-DDICTXT = 'M'.
append wa_fldcat to itab_fldcat.
clear wa_fldcat.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'FRM_ALV_USER_COMMAND'* I_STRUCTURE_NAME =
IS_LAYOUT =
IT_FIELDCAT = ITAB_FLDCAT[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = ITAB_EVENTS[]
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = it_output
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
form frm_alv_user_command USING UCOMM LIKE SY-UCOMM
SELFIELD TYPE SLIS_SELFIELD.
case ucomm.
when '&IC1'.
IF SELFIELD-TABNAME = 'IT_OUTPUT'.
IF SELFIELD-FIELDNAME = 'VBELN'.
read table it_output index SELFIELD-TABINDEX.
if sy-subrc = 0.
SET PARAMETER ID 'AUN' FIELD IT_OUTPUT-VBELN.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
endif.
endif.
endif.
endcase.
endform.
The UCOMM will always contain '&IC1'.
Use this code, should help you.
Coutesy : SDN Forum
Manohar -
Issues with the Radio Group and interactive report
Hi,
I have an interactive report that shows customer names and associated revenues... I want my users to be able to filter customer list by Province and by City in a way that when the user select a province then only associated cities show up (driven by a table)... for the filtration I am using 2 Radio Group items (one for Provinces and the other one for Cities)
Everything is working fine, except for the fact that when I select a province (let's say Prov A) and then select a city (let's say City A1) and again when I select another Province (let's say Prov B) I get the list of all cities associated to Prov B + city A1... Not sure why my previous selection of City is showing up with the list of new cities when I change the province... I SHOULD BE ABLE TO REST ALL CITIES WHEN A NEW PROVINCE IS SELECTED
here is the code
For interactive report
select CUSTOMER_NAME,
SUM(YTD) AS YTD
from T_TABLEA
where
(PROVINCE=
CASE
when :P2_PROV = 'All' THEN PROVINCE
ELSE :P2_PROV
END
and
(CITY=
CASE
when :P2_CITY = 'All' THEN CITY
ELSE :P2_CITY
END
GROUP BY CUSTOMER_NAME
For Province Radio Group I am using a static list:
STATIC2:All;All,Alberta;AB,Ontario;ON,Quebec;PQ,British Columbia;BC
For City, I am using a dynamic list using following code:
select 'All', 'All' return from dual
union
select distinct INITCAP(CITY) display_value, CITY return_value
from T_TABLEA
where
Province = :P2_PROV
order by 1
ThanksCheck the session state of items P2_PROV and *:P2_CITY* when the issue occurs and run the LOV query separately with the session state values.
If that too fetches it wrongly, then you would need to change your query. -
How to have both Classic Report and Interactive Report from the same page?
Hello APEX developers,
I want to copy a page consisting of master-detail form together with its data, as in data stored in the tables.
I've generated a master-detail form(which by default having its detail report as a classic report). I want to copy this page and then migrate this classic report to Interactive Report. This way, I have both the classic master-detail form with report AND the master-detail Interactive Report.
I've tried doing this but ended up getting a new master-detail Interactive Report page without its data.
Any feedback is appreciated.
Best regards,
DanielHi everyone,
Solved already. What a relief! Kindly ignore this post.
Rgds,
Daniel
Maybe you are looking for
-
I signed onto my brothers apple id account to download one game so I did and now it won't Let me get on my own apple id account
-
Dynamic text doesnt appear chinese word!!!!
dynamic text doesnt appear chinese word. i have try to set to arial unicode but still cant. Pls help. THx
-
Some of my songs on my old ipod 1st gen wont transfer
I just got a new 4th generation ipod touch a while ago and my old ipod didn't transfer all of my songs to itunes so about half of my songs are still on my old ipod and i can't get them on itunes. WHAT DO I DO? SOMEONE PLEASE HELP ME!!!!!!!!!!!!!!!
-
Microsoft outlook 2010 not working after installing proxy server and ForeFront TMG firewall
I am trying to have Outlook 2010 work though proxy server recently installed on internal network, I have configured IE to use the proxy settings, but I cannot find the same with Outlook 2010, I want to clarify that we use Outlook 2010 to connect to i
-
Running FC 4.5 HD with QT 7.02 7.03
Any issues with QT 7.02 or 7.03 running with FC 4.5HD?