Summary fields in the JSP report
I created a JSP report using Oracle 9i Reports Developer using report wizard. It has a %Total field on one of the columns.
It is running good for the first time. But when I am closing and reopening the report the Summary column is showing a null value in the source column. And it would not run the report.
Puvan,
I figured out the problem myself. It is not a version issue.
I was using a sum function on a decode expression in the sql command. The % total was applied on that sum expression. Every time I was reopening the report the sum expression was getting created in a new group.
When I gave an alias for the sum(decode(xyz)) expression it is working fine now.
I would still consider that as an issue with Reports Developer.
FYI...
Ritendra.
Similar Messages
-
To show a special field on the ME2K report
Hi everyone,
The question is about adding a field in the ME2K report. In the layout is needed the PO status, that is wether the PO is still open/completed or not. I was taught dynamic selection can be used to filter by the 'Delivery Completed' criteria, however the info does not appear on the report when doing this way. Is there a way, excl. programming a new transaction, to have the 'Delivery Completed' field appearing on the report? Are special fields available for ME2K?
Many thanks and regards,
SBto close
-
To edit the field in the ALV report
Hi,
i want to edit the field of the ALV report what i need to do for that..
Thanks & Regards
Ashu Singhhi,
check the code,
REPORT zalv_fcat.* Output table T006 structure declarationTYPES : BEGIN OF ty_t006.
INCLUDE STRUCTURE t006.
TYPES : END OF ty_t006.*Internal table and wa declaration for T006
DATA : it_t006 TYPE STANDARD TABLE OF ty_t006,
wa_t006 TYPE ty_t006.*declarations for ALV
DATA: ok_code TYPE sy-ucomm,
fieldcatalog for T006
it_fielcat TYPE lvc_t_fcat,
fieldcatalog for fieldcatalog itself:
it_fielcatalogue TYPE lvc_t_fcat,
it_layout TYPE lvc_s_layo.*declaration for toolbar function
DATA: it_excl_func TYPE ui_functions.
Controls to display it_t006 and corresponding fieldcatalog
DATA: cont_dock TYPE REF TO cl_gui_docking_container,
cont_alvgd TYPE REF TO cl_gui_alv_grid.*controls to display the fieldcatalog as editable alv grid and container
DATA: cont_cust TYPE REF TO cl_gui_custom_container,
cont_editalvgd TYPE REF TO cl_gui_alv_grid.*intialization event
INITIALIZATION.*start of selection event
START-OF-SELECTION.
LOCAL CLASS Definition for data changed in fieldcatalog ALV
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS handle_data_changed
FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed.
ENDCLASS. "lcl_event_receiver DEFINITION
LOCAL CLASS implementation for data changed in fieldcatalog ALV
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_data_changed.
ENDMETHOD. "handle_data_changed
ENDCLASS. "lcl_event_receiver IMPLEMENTATION*data declaration for event receiver
DATA: event_receiver TYPE REF TO lcl_event_receiver.*end of selection event
END-OF-SELECTION.*setting the screen for alv output for table display and
*changed fieldcatalalogue display
SET SCREEN 600.
On this statement double click it takes you to the screen painter SE51. Enter the attributes
*Create a Custom container and name it CCONT and OK code as OK_CODE.
*Save check and Activate the screen painter.
*Now a normal screen with number 600 is created which holds the ALV grid.
PBO of the actual screen , Here we can give a title and customized menus
*Go to SE41 and create status 'STATUS600' and create THE function code 'SUBMIT'
*and 'EXIT' with icons and icon texts
Also create a TitleBar 'TITLE600' and give the relevant title.&----
*& Module STATUS_0600 OUTPUT
MODULE status_0600 OUTPUT.
SET PF-STATUS 'STATUS600'.
SET TITLEBAR 'TITLE600'.
CREATE ALV GRID CONTROL IF DOES NOT EXISTS INITIALLY
IF cont_dock IS INITIAL.
PERFORM create_alv.
ENDIF.ENDMODULE. " STATUS_0600 OUTPUT* PAI module of the screen created. In case we use an interactive ALV or
*for additional functionalities we can create OK codes and based on the
*user command we can do the coding as shown below
*& Module USER_COMMAND_0600 INPUT
MODULE user_command_0600 INPUT.
CASE ok_code.
WHEN 'SUBMIT'.
*TO GET THE CURRENT FIELDCATALOGUE FROM THE FRONTEND
CALL METHOD cont_alvgd->set_frontend_fieldcatalog
EXPORTING
it_fieldcatalog = it_fielcat.
*refresh the alv
CALL METHOD cont_alvgd->refresh_table_display.
*to Send Buffered Automation Queue to Frontend
CALL METHOD cl_gui_cfw=>flush.*Exit button clicked to leave the program
WHEN 'EXIT'.
LEAVE PROGRAM. ENDCASE.ENDMODULE. " USER_COMMAND_0600 INPUT&----
*& Form CREATE_ALV
&----FORM create_alv.*create a docking container and dock the control at the botton
CREATE OBJECT cont_dock
EXPORTING
dynnr = '600'
extension = 100
side = cl_gui_docking_container=>dock_at_bottom.*create the alv grid for display the table
CREATE OBJECT cont_alvgd
EXPORTING
i_parent = cont_dock.*create custome container for alv
CREATE OBJECT cont_cust
EXPORTING
container_name = 'CCONT'.
*create alv editable grid
CREATE OBJECT cont_editalvgd
EXPORTING
i_parent = cont_cust.* register events for the editable alv
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_data_changed FOR cont_editalvgd. CALL METHOD cont_editalvgd->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified.*building the fieldcatalogue for the initial display
PERFORM build_fieldcat CHANGING it_fielcat it_fielcatalogue.*building the fieldcatalogue after the user has changed it
PERFORM change_fieldcat CHANGING it_fielcatalogue.*fetch data from the table
PERFORM fetch_data.* Get excluding functions for the alv editable tool bar APPEND cl_gui_alv_grid=>mc_fc_loc_append_row TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_loc_insert_row TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_loc_cut TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_sort TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_sort_asc TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_sort_dsc TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_subtot TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_sum TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_graph TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_info TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_print TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_filter TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_views TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_mb_export TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_mb_sum TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_mb_sum TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_mb_paste TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_find TO it_excl_func.
APPEND cl_gui_alv_grid=>mc_fc_loc_copy TO it_excl_func.
*Alv display for the T006 table at the bottom
CALL METHOD cont_alvgd->set_table_for_first_display
CHANGING
it_outtab = it_t006[]
it_fieldcatalog = it_fielcat[].
optimize column width of grid displaying fieldcatalog
it_layout-cwidth_opt = 'X'.* Get fieldcatalog of table T006 - alv might have
modified it after passing.
CALL METHOD cont_alvgd->get_frontend_fieldcatalog
IMPORTING
et_fieldcatalog = it_fielcat[].to Send Buffered Automation Queue to Frontend CALL METHOD cl_gui_cfw=>flush. Display fieldcatalog of table T006 in editable alv grid
CALL METHOD cont_editalvgd->set_table_for_first_display
EXPORTING
is_layout = it_layout
it_toolbar_excluding = it_excl_func
CHANGING
it_outtab = it_fielcat[]
it_fieldcatalog = it_fielcatalogue[].
ENDFORM. " CREATE_alv
*& Form fetch_data
FORM fetch_data.* select data of T006
SELECT * FROM t006 INTO TABLE it_t006 UP TO 50 ROWS.
ENDFORM. " fetch_data
*& Form BUILD_FIELDCAT
FORM build_fieldcat CHANGING it_fldcat TYPE lvc_t_fcat
it_fcat TYPE lvc_t_fcat.
Fieldcatalog for table T006: it_fldcat
to generate the fields automatically CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'T006'
CHANGING
ct_fieldcat = it_fldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.*----
Fieldcatalog for table LVC_T_FCAT:it_fcat
Generate fieldcatalog of fieldcatalog structure.
This fieldcatalog is used to display fieldcatalog 'it_fldcat'
on the top of the screen. CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'LVC_S_FCAT'
CHANGING
ct_fieldcat = it_fcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
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. " BUILD_FIELDCAT
*& Form CHANGE_FIELDCAT
*after the user has modified the fieldcatalogue we build another fieldcat
*for the modified alv display
FORM change_fieldcat CHANGING it_fcat TYPE lvc_t_fcat. DATA ls_fcat TYPE lvc_s_fcat. LOOP AT it_fcat INTO ls_fcat.
ls_fcat-coltext = ls_fcat-fieldname.
ls_fcat-edit = 'X'. IF ls_fcat-fieldname = 'COL_POS' OR ls_fcat-fieldname = 'FIELDNAME'.
ls_fcat-key = 'X'.
ENDIF. MODIFY it_fcat FROM ls_fcat.
ENDLOOP.
ENDFORM. " CHANGE_FIELDCAT
ref:saptechnical tutorial.
Regards,
Anirban -
Accessing input field from the JSP in dynpage
HI all,
I am trying to access the input field of the jsp page in my JSPDynpage but it is always return null.My Input is a normal HTML element not a HTMLB element
JSP File :
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<div class="content">
<table cellpadding="2" cellspacing="2">
<tr>
<td>
<label for="name"><strong>UserName:</strong></label><span id="info_name">(This field is required)</span><br />
<input name="name" id="name" size="10" maxlength="10" type="text" />
</td>
</tr>
<tr>
<td>
<label for="email"><strong>EmailID:</strong></label><span id="info_email">(This field is required)</span><br />
<input name="email" id="email" size="20" maxlength="20" type="text" /></td>
</tr>\
</Table>
JSPDynpage:
InputField myInputField = (InputField) getComponentByName("name");
if (myInputField != null) {
name = myInputField.getValueAsDataType().toString();
InputField myInputField1 = (InputField) getComponentByName("email");
if (myInputField1 != null) {
name = myInputField1.getValueAsDataType().toString();
In both the cases myInputField and myInputField1 are null . My Question is what should be the parameter that i need to pass for getComponentByName method.
Regards,
Raj.hi,
The way you are trying to get the input field value works good with hbj type elements.
either you change your input field to an hbj one or use java script inside your jsp page to catch the value
like
for HTML:
[HTML Input Field|http://www.w3schools.com/HTMLDOM/met_doc_getelementbyid.asp]
and for HTMLB
refer this link:
[SAP HTMLB GuideLines|http://www.sapdesignguild.org/resources/htmlb_guidance/index.html]
Regards,
Srinu -
View Customer number field in the FBL3N report
Hi All,
Is it possible to view the Customer Number Field in the FBL3N report??
Please revert asap.
Rgds,
Kunal Vichare
Moderator: Please, search SDNHello
Please find the process for adding additional field in FBL3N
SPRO->FA->GLA->GL->Line Item->Display line item with ALV->Define Special Fields for finding and sort data
Added the additional field for Customer account number.
Table Field name Field lable
BSEG KUNNR Customer
Thanks
Kameshwar Rao -
Addition of new fields in the standard report QM15
Dear Experts,
i need to add new fields to the standard report t.code QM15 which display the list of items: selection of notifications.
the fields i want to add are:
1. batch no
2. Sample no
3. Main vendor
4. text for CDR
plz let me know how can i do this. if any one can help me with screenshoot doc. this is really helpfull.
Thanks
Sachin
Moderator message: "spec dumping", please work yourself first on your requirement.
Edited by: Thomas Zloch on Sep 28, 2011 9:45 AMHi,
Have you added the selection text for the field ? also check the activation status.
Regards
Bikas -
Adding fields to the standard Report
hi ,
could u plz tell me what r the guidelines we have to follow
while adding fields to the standard Report. (Ver ECC 6.0)
in QA32 Tcode, after executing it will generate a report there i hv to add it.
I could find structure of that main final table, i hv appended desired field also,
Now im looking into Enhancement spot for it, is there any method to do it.
Plz hv eye on it.
Regards
VivekHi ,
this is the exact answer for your question.
Go to the inclide RQALVF14 in this there is a perform call_listviewer_f14, in this the output is displaying using REUSE_ALV_GRID_DISPLAY function module . before this do like this ..
modify the output table p_object_tab like this .
the output table is of structure QALS_D02 you can extend this by appending a structure with the custom fields and there is an enhancement ( i have checked it) in this routine call_listviewer_f14 in RQALVF14. Create an enhancement in this routine at the start of the routine and modify the output table using your custom code in it , then you wil get the data as well as fields into fieldcatalog,.
Regards,
Venkat Appikonda. -
Reg: Adding field in the msci report
Dear All,
In our business process, we are using msci report with user defined say example S966, our requirement is to add the new field in the existing report,
I have found that field in mc18
Incorporated that field in key figures in mc22,
But it is not showing in the report,
Please tell me what else to do to get that field updated in the report.
Regards,
ramHi all,
Any contributions plz........
regards,
ram -
Hiding the Selected field in the Crystal reports 2011
Hi Experts,
I am new to the Crystal reports. How to hide the Selected Field in the Crystal report 2011.
Thanks,
Kavya.CHi Kavya,
You can right click on the field, go to Format Field -> Common Tab. Select/Check the option "Suppress". Or if you want to hide/ Suppress the entire section in a Crystal Report, for e.g. Detail section, right click on Details Section and select Section expert. You can select Hide/Supress accordinly.
That should hide the filed/Section when you run the report.
- Kuldeep -
How to to display the JSP report in Application Server ? URL for displaying
Hi Experts,
Last week, we tried to change the memory of Response Cache and buffer Cache to increase the speed of the Excel report. But it didn’t work out.
And from the below link, I understood we can convert the oracle 9i report to excel by converting the Oracle 9i report to JSP report.
http://www.oracle.com/technology/products/reports/htdocs/getstart/demonstrations/index.html
I’ve converted the Oracle 9i report to JSP report and finding the way to display the JSP report using Application Server. I am trying to find out the REPORT URL of simple JSP report and using Reports Servlet . Right now I am trying to display the JSP report in Application Server.
Please suggest the URL for displaying the JSP report
Thanks & RegardsHi,
You can directly call you .jsp file, http://<host>:<domain>:<port>/<jsp report path>?userid=<if your report requires userid>/<pwd>
Refer to metalink documents:
Frequently Asked Questions About JSP Reports [ID 301714.1]
Here --> Question 4. How do I execute a JSP report?
Also refer, How to deploy JSP reports [ID 220943.1]
Hope this helps.
Regards,
Mithun -
What does the P/C/S fields in the Aggregated report mean?
What does the P/C/S fields in the Aggregated report mean?
'P' stands for Parent (chassis), 'C' stands for Child (card), and 'S" stands for standalone card.
June -
While adding some fields to the exixting report
I am getting the following error while try to add some fields to the existing report.
Invaid page size.Hi,
enable confine mode and expand the frames and then add fields .
--Basava.S -
Add fields to the standard report QM15
i want to add fields to the standard report.
t.code QM15 which display the list of items: selection of notifications.
the fields i want to add are:
1. batch no
2. Sample no
3. Main vendor
please let me know how can i do this. if any one can help me with screenshot doc. this is really helpful.
ThanksHi experts,
I have done with the z** creation of the standard report. I also create the z*include for the standard includes which are in the standard program. But I not able to find the fieldcatlog or include where I can add my new fields.
But I tried with one structure tht is standard structure in tht standard report so i make it as z*structure and I append my new fields to this structure. I debug the report and this works fine and also shows output, but at output when I change the layout to see these new fields it shows dump.
Then I tried with one more thing to give the positioning to my new added fields. (This is what u can say column positioning ).
When I execute this,it goes to dump screen.
Now I don't what to do with this.
If any one like to see the code. Plz let me know I will post the code.
Or if any one have any document on this plz share. Or any other solution.
Thanks in advance.
Thanks
Sachin -
Reporting Question - Detail and Summary info in the same report
Hello All,
I have a situation where I have to report the detail and summary information from one cube (or multiple cubes) in a single report. Following is the example cube with smaple data and the required report
Cube - Char - 0CUSTOMER
0MATERIAL
0MATL_GRP
0CURRENCY
Key Fig - 0AMOUNT
Data
0CUSTOMER 0MATERIAL 0MATL_GRP 0AMOUNT 0CURRENCY
CUS1 MAT1 GRP1 1000 USD
CUS1 MAT2 GRP1 2000 USD
CUS1 MAT3 GRP2 3000 USD
CUS1 MAT4 GRP2 4000 USD
CUS2 MAT2 GRP1 2222 USD
If I run a report to See Which Customers have bought Material MAT1, I want to produce a report like
Material Cust Matl_Gr Amt(Matl) Amt(Cust/Mtgr) Amt(Cust)
MAT1 CUS1 GRP1 1000 USD 3000 USD 10000 USD
MAT1 CUS2 GRP1 2222 USD 2222 USD 2222 USD
Any Ideas to create such a report is welcome. I am open to use multiple cubes, Multicubes, summarized data joins etc.
Thanks in advance for the help.
Amit GuptaAmit,
You can acheive this using single cube.
All you need to do is to define 2 restricted keyfigures the following way.
1. Amount (Cust/Material Group)
In the Restricted KF (either global or local), pull in the Material to the right side, right click on it and select "Constant Selection". Save it.
2. Amount (Customer)
Pull in both Material and Material Group and do the same step as above for both. Save it.
Now run the query and tests it. Let us know if i worked.
Gova -
Hiding selective fields in a report based on other field in the same report
Hello!
I am trying to create a report of the inventory items. 2 of the fields in the report would be the sale price of the item, and one of the properties (prop1) from the Item Master Property tab.
Depending on whether Prop1 is Y/N, the price of the item should be displayed.
If Prop1 = N, Price is displayed
If Prop1 = Y, Price gets hidden
Using queries, is it possible to create this kind of reports?
I am using SAP 2005b PL 42.
Thanks for any suggestions....
PrajwalHello Prajwal,
It is definely possible !!
If you have already created your query pls paste the same here so that I can help you otherwise. I will give you a general guidelines and you can take it from there..
Using the CASE Statement inside your SELECT you can achieve this.
SELECT T1.ItemCode AS 'Item No.', T1.ItemName AS 'Item Description',
CASE WHEN T1.QryGroup1 = 'N' THEN T0.Price ELSE 0 END 'List Price'
FROM [dbo].[ITM1] T0 INNER JOIN [dbo].[OITM] T1 ON T1.ItemCode = T0.ItemCode WHERE T0.PriceList = 1
Maybe you are looking for
-
I have downloaded the latest stable release of Firefox and a couple of variants using Firefox code a number of times, the browser crashes totally on certain pages mostly on the yahoo home page. The main issue is when I manage to avoid the troublesome
-
Hi, At present, we create a single enterprise archive (.ear) containing all utility packages (3rd party, framework) (jars) and EJB deployments. Our current .ear file is approximately 14MB. During a recent investigation to resolve a JNI DLL reloading
-
EBS someEntityEO.xml not Picked up in Weblogic After Change
Hi Experts, I changed a BC4J EO.xml file directly under the EBS $java_top directory, and then rebounce all the Weblogic servers (admin+managed). But the change doesn't seem to be picked up by the appserver. I also bounced the Apache server. Anything
-
Works with firefox not internet explorer
My navigation works with one click in firefox. In internet explorer it takes two. What can I do? When I open the site in dreamweaver it tells me the <object> tags might not work in internet explorer. Is this the same thing? I am new to both of these
-
It would be great if we could be able to change from normal to instrumantel with a switch