Check the report
Please check the output of this report.
*& Report YCLASSICALREPORT4
REPORT YCLASSICALREPORT4 NO STANDARD PAGE HEADING MESSAGE-ID ZMSG20 LINE-SIZE 100 LINE-COUNT 65(3).
TABLES : EKKO,MARC,EKPO.
DATA : BEGIN OF I_MARC OCCURS 0,
MATNR LIKE MARC-MATNR,
WERKS LIKE MARC-WERKS,
PSTAT LIKE MARC-PSTAT,
EKGRP LIKE MARC-EKGRP,
END OF I_MARC.
DATA : BEGIN OF I_EKPO OCCURS 0,
EBELN LIKE EKKO-EBELN,
EBELP LIKE EKPO-EBELP,
MATNR LIKE EKPO-MATNR,
MENGE LIKE EKPO-MENGE,
END OF I_EKPO.
*******SELECTION SCREEN*********
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : P_WERKS LIKE MARC-WERKS OBLIGATORY VALUE CHECK.
SELECT-OPTIONS : S_EBELN FOR I_EKPO-EBELN OBLIGATORY NO INTERVALS NO-EXTENSION.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R2 RADIOBUTTON GROUP G1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
***************INITIALIZATION**************
INITIALIZATION.
P_WERKS = 1000.
S_EBELN-LOW = '414-0100'.
S_EBELN-SIGN = 'I'.
S_EBELN-OPTION = 'EQ'.
APPEND S_EBELN.
CLEAR S_EBELN.
****************AT SELECTION OUTPUT****************
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF R1 = ' X ' AND SCREEN-NAME = 'S_EBELN-LOW'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
IF R2 = ' X ' AND SCREEN-NAME = 'P_WERKS'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
AT SELECTION SCREEN***********************
AT SELECTION-SCREEN.
SELECT SINGLE *
FROM EKKO
INTO EKKO
WHERE EBELN IN S_EBELN.
IF SY-SUBRC NE 0.
SET CURSOR FIELD 'S_EBELN-LOW'.
MESSAGE E999 WITH 'ENTER VALID ENTRY'.
ENDIF.
************START OF SELECTION**************************
*START-OF-SELECTION.
IF R1 = 'X'.
SELECT MATNR
WERKS
PSTAT
EKGRP
FROM MARC
INTO TABLE I_MARC
WHERE WERKS = P_WERKS.
IF SY-SUBRC NE 0.
MESSAGE 'NO DATA FOUND' TYPE 'I'.
SUBMIT (SY-REPID) VIA SELECTION-SCREEN.
ENDIF.
WRITE : / 'Material Number',20 'Plant',30 'Maintenance status',50 'Purchasing Group'.
SKIP.
LOOP AT I_MARC.
WRITE : / I_MARC-MATNR,I_MARC-WERKS,I_MARC-PSTAT,I_MARC-EKGRP.
ENDLOOP.
ENDIF.
IF R2 = 'X'.
SELECT EBELN
EBELP
MATNR
MENGE
FROM EKPO
INTO TABLE I_EKPO
WHERE EBELN IN S_EBELN.
WRITE : / 'PD NUMBER',20 'ITEM NUMBER',35 'MATERIAL',50 'PO QUANTITY'.
LOOP AT I_EKPO.
WRITE : / I_EKPO-EBELN,I_EKPO-EBELP,I_EKPO-MATNR,I_EKPO-MENGE.
ENDLOOP.
ENDIF.
*******************TOP OF PAGE**************
TOP-OF-PAGE.
IF R1 = 'X'.
ULINE AT / 0(70).
WRITE : / 'Material Number',20 'Plant',30 'Maintenance status',50 'Purchasing Group'.
ULINE AT / 0(70).
ENDIF.
IF R2 = ' X '.
WRITE : / 'PD NUMBER',20 'ITEM NUMBER',35 'MATERIAL',50 'PO QUANTITY'.
ENDIF.
******************END OF PAGE***************
WRITE : /20 'PAGE NUMBER',SY-PAGNO.
HI,
use like this.
ULINE AT /0(70).
do't leave any space between / and 0.
rgds,
bharat.
Similar Messages
-
How to Check the report is Finished while calling a report from Forms 6i
Dear All,
I am Calling a report from oracle forms 6i, after runing report in " Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);"
I need to copy the pdf to store it in another place once the report is generated.
My Problem is : that i want ot Check first the report has generated after " Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);" is executed ? How to check the report is generated ot not?
As i tried to use the below procedure after "Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);"" but his does not work... nothing happens
{code}
PROCEDURE FPC_COPY_REPORT (p_report_name varchar2) IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
lv_id varchar2(1000);
BEGIN
repid := find_report_object('AMTP_995.RDF');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if rep_status = 'FINISHED' then
message('Report Completed'); message('Report Completed');
else
message('Error when running report.'); message('Error when running report.');
end if;
END;
{code}
Any Helpactually My code is this:
declare
ln_alert number;
pl_id ParamList;
lv_report_name varchar2(10000);
lv_path varchar2 (100) := 'C:\';
lv_shared_path varchar2(1000);
lv_copy_file varchar2(10000);
cursor cr_dir_path IS
select v_dir_path
from md_directory
where v_dir_code ='SHR';
lv_file_name varchar2(1000);
BEGIN
open cr_dir_path;
fetch cr_dir_path into lv_shared_path;
close cr_dir_path;
lv_report_name := lv_path||:fn_cntl.nb_ref_no||'_M08600000_'||to_char(sysdate,'YYYYMMDD-HHmmss')||'.pdf';
if ffn_check_fields THEN
pl_id := Get_Parameter_List('LAI');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('LAI');
if :fn_cntl.nb_report_name ='MMAT_REPORT'
then
if :fn_cntl.nb_report_desc ='EXPORT'
then
Add_Parameter(pl_id, 'PARAMFORM',TEXT_PARAMETER, 'NO');
Add_Parameter(pl_id, 'DESTYPE', TEXT_PARAMETER,'File');
Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, lv_report_name);
Add_Parameter(pl_id, 'DESFORMAT',TEXT_PARAMETER,'PDF');
Add_Parameter(pl_id, 'p_mat_no',TEXT_PARAMETER, :fn_cntl.nb_mat_no);
Add_Parameter(pl_id, 'p_ref_no', TEXT_PARAMETER, :fn_cntl.nb_ref_no);
Add_Parameter(pl_id, 'p_verified_by',TEXT_PARAMETER, user);
Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);
DECLARE
repid REPORT_OBJECT; v_rep VARCHAR2(100); rep_status varchar2(20);BEGIN
/* REP_OBJ= REPORT OBJECT CREATED UNDER REPORT NODE AT FORM */
repid := find_report_object('MMAT_REPORT'); v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if rep_status = 'FINISHED' then
message('Report Completed'); message('Report Completed');
--copy_report_object_output(v_rep,'c:\local.pdf');
-- host('netscape c:\tlocal.pdf');
else message('Error when running report.');
message('Error when running report.');
end if;
END;
end if;
end if;
if :fn_cntl.nb_report_desc ='EXPORT'
then
error_handler('This report will be Storde in ' ||lv_report_name||' and '||lv_shared_path|| ' Location',3);
lv_copy_file :='copy '||' "'||lv_report_name||'" "'||lv_shared_path||'"';
host(lv_copy_file,no_screen);
error_handler('Report Has been Generated Sucessfully.',3);
end if;
end if;
END;I will try first the another solution you have replied perviously... and will let you no the results... thanks a lot... -
How to check the report builder version from the rdf file
Hi,
I have a rdf file but I don't the developer using which version of report builder to develop the rdf file. So, does anyone knows how to check the rdf file is developed by which version of report builder?
When I try to use the notepad to open the rdf file, it shows the string "ROS.60050". So, does it means that the rdf file is developed by Oracle report 6i?
Besides, do anyone knows if Oracle report 6i are still offer from Oralce (as I know, the latest verison of oracle report is 11g). So, in case Oralce not offer oracle 6i and I need to buy oracle report 11g, do u know it is compatiable or I need to do the migration from 6i to 11g?
Thanks!Hi,
The ROS version you are seeing in the RDF file does not mean the version where that RDF was developed. I am not aware of a way to check this but something that may help is that when you try to open a RDF developed in a higher version
of Reports with a lower version of Reports builder the following warning will be displayed
Warning. Opening a report saved with a newer version of Reports Builder.
Functionality may be lost. Continue?
"You tried to open a report with a version of Reports Builder older than the version used to
create the report. If the report uses functionality unavailable in the older version, that
functionality will be eliminated from the report.
Regarding Oracle Developer 6i. This version is not supported any more. Regarding how to upgrade Reports 6i to 11g and what to have in mind during the upgrade please review the following documentation.
References
http://docs.oracle.com/cd/E24269_01/doc.11120/e24478/toc.htm
How To Migrate Forms and Reports From 6i and/or 9i To 11g? (Doc ID 1275515.1)
Hope it helps.
Regards, RZ -
hi,
i writen the report by using bolck alvs then iam not getting the field value in RS_SELFELD structure so that iam not able to check condition like
if rs_selfield-fieldname = 'vbeln'.
so that to rectify this is there any other solution plz send with code. iam also sending source code.
REPORT ZSSALV_BLOCKED.
TYPE-POOLS : SLIS.
TYPES: BEGIN OF ST_VBAK,
VBELN TYPE VBAK-VBELN,
ERDAT TYPE VBAK-ERDAT,
VBTYP TYPE VBAK-VBTYP,
NETWR TYPE VBAK-NETWR,
WAERK TYPE VBAK-WAERK,
END OF ST_VBAK.
TYPES: BEGIN OF ST_VBAP,
VBELN TYPE VBAP-VBELN,
POSNR TYPE VBAP-POSNR,
MATNR TYPE VBAP-MATNR,
MATKL TYPE VBAP-MATKL,
POSAR TYPE VBAP-POSAR,
MEINS TYPE VBAP-MEINS,
END OF ST_VBAP.
DATA: IT_VBAK TYPE TABLE OF ST_VBAK,
W_VBAK TYPE ST_VBAK,
IT_VBAP TYPE TABLE OF ST_VBAP,
IT_TABLE TYPE SLIS_TABNAME,
W_VBAP TYPE ST_VBAP,
IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
W_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
W_IS_LAYOUT TYPE SLIS_LAYOUT_ALV,
IT_EVENT TYPE SLIS_T_EVENT,
REPID TYPE SY-REPID.
REPID = SY-REPID.
REFRESH IT_VBAK.
SELECT VBELN ERDAT VBTYP NETWR WAERK FROM VBAK INTO TABLE IT_VBAK UP TO 10 ROWS.
W_FIELDCAT-FIELDNAME = 'VBELN'.
W_FIELDCAT-COL_POS = '1'.
W_FIELDCAT-SELTEXT_L = 'SALES_DOCU_NO'.
APPEND W_FIELDCAT TO IT_FIELDCAT.
CLEAR W_FIELDCAT.
W_FIELDCAT-FIELDNAME = 'ERDAT'.
W_FIELDCAT-COL_POS = '2'.
W_FIELDCAT-SELTEXT_L = 'SALES_DOCU_DATE'.
APPEND W_FIELDCAT TO IT_FIELDCAT.
CLEAR W_FIELDCAT.
W_FIELDCAT-FIELDNAME = 'VBTYP'.
W_FIELDCAT-COL_POS = '3'.
W_FIELDCAT-SELTEXT_L = 'SALES_DOCU_TYPE'.
APPEND W_FIELDCAT TO IT_FIELDCAT.
CLEAR W_FIELDCAT.
W_FIELDCAT-FIELDNAME = 'NETWR'.
W_FIELDCAT-COL_POS = '4'.
W_FIELDCAT-SELTEXT_L = 'NET_VALUE'.
APPEND W_FIELDCAT TO IT_FIELDCAT.
CLEAR W_FIELDCAT.
W_FIELDCAT-FIELDNAME = 'WAERK'.
W_FIELDCAT-COL_POS = '5'.
W_FIELDCAT-SELTEXT_L = 'CURRENCY'.
APPEND W_FIELDCAT TO IT_FIELDCAT.
CLEAR W_FIELDCAT.
W_IS_LAYOUT-ZEBRA = 'X'.
W_IS_LAYOUT-NO_VLINE = 'X'.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
I_CALLBACK_PROGRAM = REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IT_EXCLUDING =
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
IS_LAYOUT = W_IS_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
I_TABNAME = IT_TABLE
IT_EVENTS = IT_EVENT
TABLES
T_OUTTAB = IT_VBAK
EXCEPTIONS
PROGRAM_ERROR = 1
MAXIMUM_OF_APPENDS_REACHED = 2
OTHERS = 3.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
DATA: IT_TABLE1 TYPE SLIS_TABNAME,
IT_EVENT1 TYPE SLIS_T_EVENT,
IT_FIELDCAT1 TYPE SLIS_T_FIELDCAT_ALV,
W_FIELDCAT1 TYPE SLIS_FIELDCAT_ALV,
W_IS_LAYOUT1 TYPE SLIS_LAYOUT_ALV.
CASE R_UCOMM.
WHEN '&IC1'.
IF RS_SELFIELD-FIELDNAME = 'VBELN' .
REFRESH IT_VBAP.
SELECT VBELN POSNR MATNR MATKL POSAR MEINS FROM VBAP INTO TABLE IT_VBAP WHERE VBELN = RS_SELFIELD-VALUE.
ENDIF.
ENDCASE.
W_FIELDCAT1-FIELDNAME = 'VBELN'.
W_FIELDCAT1-COL_POS = '1'.
W_FIELDCAT1-SELTEXT_L = 'SALES'.
APPEND W_FIELDCAT1 TO IT_FIELDCAT1.
CLEAR W_FIELDCAT1.
W_FIELDCAT1-FIELDNAME = 'POSNR'.
W_FIELDCAT1-COL_POS = '2'.
W_FIELDCAT1-SELTEXT_L = 'ITEM_NOS'.
APPEND W_FIELDCAT1 TO IT_FIELDCAT1.
CLEAR W_FIELDCAT1.
W_FIELDCAT1-FIELDNAME = 'MATNR'.
W_FIELDCAT1-COL_POS = '3'.
W_FIELDCAT1-SELTEXT_L = 'MATERIAL_TYPE'.
APPEND W_FIELDCAT1 TO IT_FIELDCAT1.
CLEAR W_FIELDCAT1.
W_FIELDCAT1-FIELDNAME = 'MATKL'.
W_FIELDCAT1-COL_POS = '4'.
W_FIELDCAT1-SELTEXT_L = 'MATKL'.
APPEND W_FIELDCAT1 TO IT_FIELDCAT1.
CLEAR W_FIELDCAT1.
W_FIELDCAT1-FIELDNAME = 'POSAR'.
W_FIELDCAT1-COL_POS = '5'.
W_FIELDCAT1-SELTEXT_L = 'POSAR'.
APPEND W_FIELDCAT1 TO IT_FIELDCAT1.
CLEAR W_FIELDCAT1.
W_FIELDCAT1-FIELDNAME = 'MEINS'.
W_FIELDCAT1-COL_POS = '6'.
W_FIELDCAT1-SELTEXT_L = 'MEINS'.
APPEND W_FIELDCAT1 TO IT_FIELDCAT1.
CLEAR W_FIELDCAT1.
W_IS_LAYOUT1-ZEBRA = 'X'.
W_IS_LAYOUT1-NO_VLINE = 'X'.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
IS_LAYOUT = W_IS_LAYOUT1
IT_FIELDCAT = IT_FIELDCAT1
I_TABNAME = IT_TABLE1
IT_EVENTS = IT_EVENT1
TABLES
T_OUTTAB = IT_VBAP
EXCEPTIONS
PROGRAM_ERROR = 1
MAXIMUM_OF_APPENDS_REACHED = 2
OTHERS = 3.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
REFRESH IT_VBAP.
ENDFORM.
bye.Hi Abhay,
check if you are taking work area for every Internal Table in Smartform or not .
just have to drag and drop that work area field into the position you want to display
<i>Reward Points if it helps solves query .</i>
Regards,
Amber S -
Sequence header at the end of the sequence in the report
Good afternoon everyone,
I have a strange issue with my TestStand Report (any kind of report type) : some time ago the headers (with the name, the parameter's values, the module time, the status) of the sequence and sub-sequence were at the begining. Now they are a the end of the sequence, which means instead of having the status of the sequence first, I have the status of all the steps contained in the sequence BEFORE having the status of the sequence.
I have checked and double checked the Report options : nothing tells that the headers must be at the end.
I have 2 bench on which my sequences are running and one of them has the sequence headers upside down in the report and the other has the headers in the proper order. Their report options are exactly the same and I can't find where the configuration is different !
Does anyone have some idea ? Please ?
TestStand revision : 2010To Norbert :
The steps in the body are ok, in the correct order yes.
I've attached two extract of report (check the Report Correct first), change the extention from ".txt" to ".html", the html one wasn't authorized by the forum.
To jiggawax
I'm not using XML format, only text or html. Where is located the ReportOptions.ini file ? I cannot find it with a basic search, could it be hidden ? As I am not managing this file in the configuration of the benches, it might be the origin of the problem !
Both benches are running the same client sequence indeed : the client sequence are located on a network reachable by the benches.
I doubt that one the client sequence can override a report callback but afterall I should make sure of this possibility.
Thanks for your help !
Attachments:
Report Correct.txt 12 KB
Report Upside down.txt 15 KB -
Scheduling the report from Infoview portal does not show up data
"The crystal report is based on a SAP BI query. The parameters of the report are basically the parameters(SAP variables) of the SAP BI query. When we run the crystal report in the CR Report Designer tool, it runs fine showing all the data correctly. Then we published the crystal report to the Crystal Enterprise Server from the SAP BI system. Through the Infoview portal, the user clicks on the 'Schedule' link for the report and sets the parameters. When the 'Schedule' button is clicked, it runs successfully but no data is seen in the report except for the template. But under the same report, in Infoview portal, if the user selects "View" link, sets the parameters and then clicks the 'Execute' button, it runs successfully showing all correct data.
Dont understand why it works for 'View' link but doesn't work for 'Schedule' link. Is there any setting that needs to be made for this?"
Thanks in advance,
SriHi Sri,
When we are able to see the report and unable to schedule the report with in the Info view, then check with the user rights.
Just try to login with admin account and try to schedule the report.
Also check the report in CMC and see the preview of the report.
If the user doesn't have enough rights to schedule the report, then it doesn't allow it.
Also check with in the Folder rights with in the report is saved.
Regards,
Naveen. -
Error while executing the Report( Need your help gurus) !!!
Hi,
Today morning when i was checking the report for monthly data i,e from 1sept to 28th sept.
I got this below error msg. Can you pls guide me why its throwing an error.
<b>Error SQL Error: 1555
Error Error when generating the SQL statement
Error Error reading the data of InfoProvider POS_IS1
Cancel System error in program SAPLRRK0 and form RSRDR;SRRK0F30-01-</b>
Points Assured.
Urs,
RK.hi,
There is some time limit set for the request to run when you run a program in the foreground or in the background. If the time limit exceeds this will occur, run the program again then this might not happen.
This might be related to table space issue, or roll area or memory. Show the short dump (ST22) to your Basis person and tell me to adjust/increase the respective tablespace .
Regards
Pankaj -
"The report is being generated. Please try again later. " for last 4 hours
Hi,
I am try to check the report function which the azure portal has for Azure Active Directory Premium. However, it's showing "The report is being generated. Please try again later." everywhere for
4 hours already.
Is there anybody can help me to figure it out what's happen? Maybe I miss something?
Thanks!
KevinHello,
Since we have not heard back from you we are archiving the thread.
Please let us know if you are still facing the issue.
Regards,
Neelesh -
Data not displaying the report (Help me out Urgent)
Hi Folks,
When i am executing the query and web reports for the date 27/11/2007 & 28/11/2007 am not getting the data its saying "No applicable data found"
But i can see the data in the ODS for those dates.
Report is working fine till 26/11/2007.
But when the user is trying to check the reports for the above mentioned dates its not displaying.
Even in checked it the RSRT as well but the same case over there the data is not displaying.
Its bit urgent as its month end user wants to see the reports.
Any help or any clue will be great helpfull and appreciated.
Urs,
RK
*****Points CommittedHI Suchitra,
<i>First check out how many records are there in the ODS as on 27th and 28th</i>
There are totally 750 & 427 records on 27th and 28th.
<i>At the time of executing the query,are using giving any variable entries?</i>
Yes we are using variables entires like PO Date & PO number we usually check the reports giving the date in PO Date variable,
Any other clue please?
Urs,
RK. -
Fin year is oct -sep (ie: leading ledger), want to see the report Apr - mar
Dear All
Case 1) Our Company finacial year is Oct2007 - Sep2008,( ie : Leading Ledger) and we have run the dep , and I want to see the effect on Non Leading ldger ( April - March).Please let me know how do i check the report.
With Regards,
kamalnathamHi Kamal,
First see to which depreciation area u had assigned the non leading ledger, hopefully it must be for international (dep area 30). Go to OADB in that go to dep area 30 and check whether u had given non leading ledger, if u had given then u can see the same in asset explorer.
Also as you are saying that your non leading ledger is having different fiscal year variant, check SAP Note 844029 for more information.
regards
srikanth. -
Symptom: Sometimes, when you want to reinstall the Reporting Server Role for Operation Manager 2012,
but you may encounter an issue that the Reporting Server Role cannot be reinstalled after you successfully uninstall it. When you check the System Center Operation Manager installation log, you can find the following error as shown in Figure 1.
Figure 1: Reporting Server Role cannot be reinstalled
It seems that the SQL Server Reporting Service has not been configured properly. When you open Reporting Services Configuration Manager to check the settings, the settings seem fine though.
Even you recreate Reporting Service Database, the error remains.
After reviewing the OpsMgrSetupWizard.log, we get the following errors when wizard try to connect to SQL Server Reporting Instance (Figure 2).
[07:24:05]: Error: :CheckHttpAddressResponse failed: Threw Exception.Type: System.Net.WebException, Exception Error Code: 0x80131509, Exception.Message:
The remote server returned an error: (500) Internal Server Error.
[07:24:05]: Error: :StackTrace: at System.Net.HttpWebRequest.GetResponse() at Microsoft.EnterpriseManagement.OperationsManager.Setup.ReportingComponent.CheckHttpResponseFromSRSUrl(String
httpSite)
Figure 2: Error Log -1
It indicates the Reporting Service encounters an internal error. The Website cannot handle the request. So you may check the Reporting Service log which is located in C:\Users\Administrator.SCOM2012\AppData\Local\SCOM\LOGS
and the following errors may be found (Figure 3).
library!ReportServer_0-18!1448!03/30/2014-02:53:23:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
Unable to load assembly Microsoft.EnterpriseManagement.Reporting.Security, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ---> System.IO.FileNotFoundException:
Could not load file or assembly 'Microsoft.EnterpriseManagement.Reporting.Security' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.EnterpriseManagement.Reporting.Security'
Figure 3: Error Log -2
Reason: After the Reporting Server is installed on a SSRS instance, the Reporting Server of SCOM
needs to modify the web.config and rsreportserver.config file to add its own assembly to make the Reporting Server work. But it does not change it back when Reporting Server is uninstalled. So the assembly cannot be loaded and the SSRS cannot respond
our requests.
Resolution: When the Reporting Server is installed, the old web.config and rsreportsserver.config
files will be backed up to web.config1 and rsreportsserver.config1. So you just need to change the files’ name back, then try to install Reporting Server of SCOM again. Everything would go smoothly.
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.Hi AakashGhare,
According to your error message, SQL Server 2008 databases are version 655. SQL Server 2008 R2 databases are 661. When you are trying to attach an 2008 R2 database (v. 661) to an 2008 instance and this is not supported. As other post, once the database has
been upgraded to an 2008 R2 version, it cannot be downgraded. You'll have to either upgrade your 2008 SP2 instance to R2, or you have to copy out the data in that database into an 2008 database (such as using the data migration wizard).
In addition, if you want to use a Windows Batch file code and command to automatically login to SQL Server, detach database and attach a new one database, there is a similar details about batch code for attaching database to a new database, you can refer
to this article.
http://notesbyparth.wordpress.com/2012/06/29/run-sql-commands-from-windows-batch-file-or-attachdetach-database-automatically-using-batch-script/
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Urgent : i am not able to coonect the report through oracle forms 10g
i created a report "test1" through oracle report 10g and calling from oracle forms 10g
i tried to run the report from forms builder but i am getting the following error
"server can not connect 41213 error"
from run mode i already given the following command for running the report server
rwserver server=rep_fsprod
The help is saying like that
cause: There is a problem connecting to the specified Report server. Action: Check the Report server and make sure it is up and running. Level: 20
Any pleae provide me the necessor setting for this issue and give me some good reselution
But i am not sure where is the problem
If anybody thats will be helpfull for me. please provide the step that i need to take
the following are the code
------------------------------------------------------------>
Declare
PL_Id ParamList;
v_Report VarChar2(30) := 'TEST1';
v_Rep_Id Report_Object;
v_Rep_Job_Id VarChar2(100);
v_Job_Id VarChar2(100);
v_Rep_Status VarChar2(100);
v_Rep_URL VarChar2(1000);
v_Host_Name VarChar2(100) := 'localhost';
v_Port VarChar2(100) := '8889';
v_Rep_Server VarChar2(100) := 'abc';
Begin
PL_Id := Get_Parameter_List(v_Report);
If Not Id_Null(Pl_Id) Then
Destroy_Parameter_List(Pl_Id);
End If;
Pl_Id:=Create_Parameter_List(v_Report);
Add_Parameter(PL_Id, 'Usr_Id', Text_Parameter, 'cms');
Add_Parameter(Pl_Id, 'ParamForm', Text_Parameter, 'NO');
--Find Report Object
v_Rep_Id := Find_Report_Object('TEST1');
--Communication Mode
Set_Report_Object_Property(v_Rep_Id, Report_Comm_Mode, Synchronous);
Set_Report_Object_Property(v_Rep_Id, Report_Desformat, 'HTML');
--Handled Destination Type and Name
Set_Report_Object_Property(v_Rep_Id, Report_DesType, CACHE);
--Specify Report Server and Report File Name
Set_Report_Object_Property(v_Rep_Id, Report_Server, v_Rep_Server);
Set_Report_Object_Property(v_Rep_Id, Report_FileName, v_Report);
--Run Report
v_Rep_Job_Id := Run_Report_Object(v_Rep_Id, PL_Id);
v_Rep_Status := Report_Object_Status(v_Rep_Job_Id);
If v_Rep_Status = 'FINISHED' Then
v_Job_Id := SubStr(v_Rep_Job_Id, length(v_Rep_Server)+2);
v_Rep_URL := 'http://' || v_Host_Name || ':' || v_Port || '/reports/rwservlet/getjobid' || v_Job_Id || '?server=' || v_Rep_Server;
Message(v_Rep_URL);
Web.Show_Document(v_Rep_URL, '_blank');
Else
Message('Error Running Report');
End If;
End;
------------------------------------------------------------>i am facing same please do some favour me for this report issue
-
HTML links from Full Check Accessibility report do not open the corresponding PDF links
I regularly generate full Check accessibility reports for the PDF user guides I create in MSWord. However, when I click the links in the HTML file/report generated, they are supposed to link/highlight the corresponding errors in the PDf file. Instead, I get an error message that "There was an error opening this document. Bad parameters."
How can I get the links to work so I know which section in my PDF has the error (inaccessible items).
ThanksI understand you are creating HTML reports and then using them to find errors/view the PDFs.
Is this a new problem or have you always had problems with the links? If it's a new problem, what has changed on your system?
Can you view other PDFs in your browser?
Have you moved any of the files since you created the report -- as you may know the HTML report references a specific lcoation on your hard drive and if you moved the PDF after creating the report, it may not be able to find the file. -
Printing the header of a report and checking the join statement...
Hi All,
This report of mne is working fine but there are things that i want to include: when i print this report i want it to display heading of which is in the html_top_of_page but it does not print it, i am not familiar with smart forms so i won't be able to use smart forms.If anyone can help me out i will really appreciated and will immediately reward points......please help me guys as the due date is very close...and please check the joins on the select statement, not sure whether i've joined the tables properly!
REPORT Z_ORDER_AUDIT_NEW.
TYPE-POOLS: SLIS.
LIST OF TABLES
Tables: vbak, likp, vbrk, kna1, vbrp, nast.
DEFINITION OF FIELDS *
DATA: itb_fieldcat TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
w_fieldcat TYPE slis_fieldcat_alv.
DATA: w_cnt LIKE sy-tabix.
DATA: lv_layout TYPE slis_layout_alv,
lv_tab_group TYPE slis_t_sp_group_alv,
lv_repid LIKE sy-repid,
lv_events TYPE slis_t_event,
lv_print TYPE slis_print_alv,
lv_user TYPE slis_formname VALUE 'USER_COMMAND'.
SELECTION SCREEN *
SELECT-OPTIONS:
s_lfdat FOR likp-lfdat,
s_imwrk FOR likp-imwrk.
DEFINITION OF AN INTERNAL TABLE *
DATA: Begin of i_ordertab occurs 0,
audat LIKE vbak-audat,
vbeln LIKE vbak-vbeln,
lfdat LIKE likp-lfdat,
erdat LIKE likp-erdat,
vbeln1 LIKE likp-vbeln,
vbeln2 LIKE vbrk-vbeln,
erdat1 LIKE vbrk-erdat,
kunrg LIKE vbrk-kunrg,
name1 LIKE kna1-name1,
regio LIKE vbrk-regio,
inco1 LIKE vbrk-inco1,
vrkme LIKE vbrp-vrkme,
ntgew LIKE vbrp-ntgew,
gewei LIKE vbrp-gewei,
volum LIKE vbrp-volum,
voleh LIKE vbrp-voleh,
netwr LIKE vbrk-netwr,
End of i_ordertab.
READ THE DATA *
SELECT vbakaudat vbakvbeln likplfdat likperdat likpvbeln vbrkvbeln
vbrkerdat vbrkkunrg kna1name1 vbrkregio vbrkinco1 vbrpvrkme
vbrpntgew vbrpgewei vbrpvolum vbrpvoleh vbrk~netwr
FROM likp join kna1 on likpkunnr EQ kna1kunnr
join vbrk on kna1kunnr EQ vbrkkunrg
join vbrp on vbrkvbeln EQ vbrpvbeln
join vbak on kna1kunnr EQ vbakkunnr
INTO i_ordertab
WHERE likp~lfdat IN s_lfdat
AND likp~imwrk IN s_imwrk.
APPEND i_ordertab.
ENDSELECT.
PERFORM STATEMENTS *
PERFORM build_fieldcatalog.
PERFORM build_layout.
PERFORM build_event.
PERFORM build_print.
PERFORM display_alv_report.
FORM build_fieldcatalog.
w_cnt = 1.
itb_fieldcat-fieldname = 'AUDAT'.
itb_fieldcat-seltext_m = 'Document date'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
itb_fieldcat-key = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'VBELN'.
itb_fieldcat-seltext_m = 'S/O number'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'LFDAT'.
itb_fieldcat-seltext_m = 'Deliv. date'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'ERDAT'.
itb_fieldcat-seltext_m = 'Del. Crt Date'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'VBELN1'.
itb_fieldcat-seltext_m = 'Delivery No.'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'VBELN2'.
itb_fieldcat-seltext_m = 'Invoice No.'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'ERDAT1'.
itb_fieldcat-seltext_m = 'Invoice Date'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'KUNRG'.
itb_fieldcat-seltext_m = 'Payer'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'NAME1'.
itb_fieldcat-seltext_m = 'Payer-Description'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'REGIO'.
itb_fieldcat-seltext_m = 'Region'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'INCO1'.
itb_fieldcat-seltext_m = 'Incoterms'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'VRKME'.
itb_fieldcat-seltext_m = 'Billed Quantity'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'NTGEW'.
itb_fieldcat-seltext_m = 'Net weight'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'GEWEI'.
itb_fieldcat-seltext_m = 'Weight Unit'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'VOLUM'.
itb_fieldcat-seltext_m = 'Volume'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'VOLEH'.
itb_fieldcat-seltext_m = 'VOLUME UNIT'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
w_cnt = w_cnt + 1.
itb_fieldcat-fieldname = 'NETWR'.
itb_fieldcat-seltext_m = 'Net Value'.
itb_fieldcat-col_pos = w_cnt.
itb_fieldcat-emphasize = 'X'.
itb_fieldcat-ref_tabname = 'VBRK' .
itb_fieldcat-ref_fieldname = 'NETWR' .
itb_fieldcat-do_sum = 'X' .
APPEND itb_fieldcat TO itb_fieldcat.
CLEAR itb_fieldcat.
ENDFORM.
FORM build_layout.
lv_layout-no_input = 'X'.
lv_layout-colwidth_optimize = 'X'.
lv_layout-totals_text = 'Totals'(201).
lv_layout-detail_popup = 'X'.
ENDFORM.
FORM build_event.
DATA i_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = lv_events[].
READ TABLE lv_events WITH KEY name = slis_ev_user_command
INTO i_event.
if sy-subrc = 0.
MOVE lv_user TO i_event-form.
APPEND i_event TO lv_events.
endif.
ENDFORM.
FORM build_print.
lv_print-reserve_lines = '2'.
lv_print-no_coverpage = 'X'.
ENDFORM.
*& FUNCTION ALV DISPLAY
FORM display_alv_report.
lv_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = lv_repid
I_CALLBACK_USER_COMMAND = slis_ev_user_command
I_CALLBACK_HTML_TOP_OF_PAGE = 'HTML_TOP_OF_PAGE' " see FORM
I_CALLBACK_HTML_END_OF_LIST = 'END_OF_LIST_HTML' "see FORM
IS_LAYOUT = lv_layout
IT_FIELDCAT = itb_fieldcat[]
IT_SPECIAL_GROUPS = lv_tab_group
I_SAVE = 'X'
IT_EVENTS = lv_events
IS_PRINT = lv_print
TABLES
t_outtab = i_ordertab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
ENDFORM.
*& Form html_top_of_page
FORM html_top_of_page USING document TYPE REF TO cl_dd_document.
DATA: text TYPE sdydo_text_element.
CALL METHOD document->add_gap
EXPORTING
width = 100.
text = 'Cadbury: Daily Audit of Orders'.
CALL METHOD document->add_text
EXPORTING
text = text
sap_style = 'HEADING'.
CALL METHOD document->new_line.
CALL METHOD document->new_line.
CALL METHOD document->new_line.
text = 'User Name : '.
CALL METHOD document->add_text
EXPORTING
text = text
sap_emphasis = 'Strong'.
CALL METHOD document->add_gap
EXPORTING
width = 6.
text = sy-uname.
CALL METHOD document->add_text
EXPORTING
text = text
sap_style = 'Key'.
CALL METHOD document->add_gap
EXPORTING
width = 50.
text = 'Date : '.
CALL METHOD document->add_text
EXPORTING
text = text
sap_emphasis = 'Strong'.
CALL METHOD document->add_gap
EXPORTING
width = 6.
text = sy-datum.
CALL METHOD document->add_text
EXPORTING
text = text
sap_style = 'Key'.
CALL METHOD document->add_gap
EXPORTING
width = 50.
text = 'Time : '.
CALL METHOD document->add_text
EXPORTING
text = text
sap_emphasis = 'Strong'.
CALL METHOD document->add_gap
EXPORTING
width = 6.
text = sy-uzeit.
CALL METHOD document->add_text
EXPORTING
text = text
sap_style = 'Key'.
ENDFORM.
FORM end_of_list_html USING end TYPE REF TO cl_dd_document.
DATA: ls_text TYPE sdydo_text_element,
l_grid TYPE REF TO cl_gui_alv_grid,
f(14) TYPE c VALUE 'SET_ROW_HEIGHT',
w_lines type i,
w_lines1(9) type n.
DESCRIBE TABLE i_ordertab LINES w_lines.
w_lines1 = w_lines.
concatenate: 'TOTAL NUMBER OF RECORDS SELECTED: ' w_lines1 INTO ls_text
SEPARATED BY space.
adds test (via variable)
CALL METHOD end->add_text
EXPORTING
text = ls_text
sap_emphasis = 'strong'.
adds new line (start new line)
CALL METHOD end->new_line.
*set height of this section
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = l_grid.
CALL METHOD l_grid->parent->parent->(f)
EXPORTING
id = 3
height = 14.
ENDFORM. "end_of_list_html.
--END OF THE REPORT--Hi
1. first remove the ENDSELECT..use INTO table itab or INTO CORRESPONDING fields, Since you are joining the more tables this will take lot of time.
2. You are just using two fields from LIKP as selection screen fields to fetch the so much data.
see the table linkings apartfrom KUNNR between the tables
LIKP-VBELN = LIPS-VBELN
LIPS-VGBEL = VBAK-VBELN and LIPS-VGPOS = VBAP-POSNR
and
VBRP-AUBEL = VBAK-VBELN and VBRP-AUPOS = VBAP-POSNR and
VBRP-VGBEL = LIKP-VBELN and VBRP-VGPOS = LIPS-POSNR
use the above links and code again.
<b>Reward points for useful Answers</b>
Regards
Anji -
Hi all
I've got a error msg when try to generate a report using Cisco history report tool:
Error | An Exceptional Error occurred. Application exiting. Check the log file for error 5022
It only happens when choose report template: ICD_Contact_Service_Queue_Activity_by_CSQ_en_us.
User tried samething on other PC, it working fine.
only on user' own PC and only choose this report, error appears.
user runing windows 7 and do not have crystal report installed
tried reinstalled the software, doesn't work.
also tried this: (https://cisco-support.hosted.jivesoftware.com/thread/2041254) - doesn't work
then tried https://supportforums.cisco.com/docs/DOC-6209 - doesn't work
attached the log file.
thanks.wenqianyu wrote:From the log file:Looks like you get a Login Window.Error message showed up after username/password be enteredThere is an error in the log: Error happened in comparing UCCX version and HRC versionYou may need to do a clean uninstall, download the Historical report from the server, and install it again on the PC.Does this only happen to one PC or to every PC with this application?Wenqian
I have completely uninstalled the HRC, and download from server install again -- still doesn't work with exactly same error.
this matter only happens on this PC, when user try same thing on other PC, it works.
so i think it not relate to server or account.
Maybe you are looking for
-
Kernel Panics during startups - cannot boot anymore
First: Sorry for my bad english - i hope you still can understand... The facts: - MacBook 2,0Ghz - 2gb Ram. - After 8 weeks --> random shutdowns. In OSX, in Bootcamp, in any application, even during booting OSX - Replacement of the logic board, after
-
I am having a hard time zipping up an EJB. I would like to zip the META-INF folder and it's contents along with the package structure and files in the package. Now that you know the end result, let me ask the question. How does one use the ZipOutputS
-
I am used to the Printer Control Panel in Windows, which has an option to print only in Black & White, I have tried two printers on my Mac, and can't find the equivalent option... There must be a better way than converting the file to black & white f
-
CAN WE RUN DBMS_JOB WITHIN DBMS_JOB ORACLE
hi Kamal i have situation like this --- Main JOB calling proc1 Calling JOB 2 sample code DECLARE X NUMBER; BEGIN SYS.DBMS_OUTPUT.PUT_LINE('Job Number is1: ' || to_char(x)); SYS.DBMS_JOB.SUBMIT ( job => X ,what => 'COM_BATCH_PROCESS_PRC1;' ,next_date
-
Help, try to backup and sync my IPad with PC
After installing IOS5 on my IPad2 and Itune 10.1 on my pc, I was asked to restore IPad to factory setting. When I finished adding photos, apps and musics to itune and tried to sync to ipad, it takes forver on the backup process(step 2 of 7) before I