How to execute the report 6i more faster?
Hi guys,
Im doing a report in Oracle 6i and it has a lot of Column Formula used. The problem was i want to execute my report faster.
Thank you.
Regards,
Lala
At the risk of stating the blindingly obvious, the only option is to tune the report. If you have a large number of formula columns, check the queries. If they are all retrieving different columns from the same row of a table, then you should create a single formula column containing the query and then create placeholder columns for the others and populate them from the formula.
The only other thing you can do is to tune the queries within the report.
If you are running the report in EBS, then you should put a trace on the report and then run TKPROF on the output to identify the problem areas.
Hope this helps.
Mike
Similar Messages
-
How to know the User name and date, who executed the report last time.
Hi All,
We are collecting a list of reports which are not executed for past 3 months. Can anybody tell me how to know the username and date they executed the report last time.
Is there any table to look ? or is there any process ?
Thanks,
Ravi.Ravi,
Use SE16 - then look at rszcompdir.
We look up Version = 13 for queries.
Regards
Gill -
Performance Problem when executing the report for the first time.
Hi,
We have a Zreport...to improve the performance i created Index on few Data Base table..before my changes it used to take more than 15 minutes after the changes it taking less than 1 min for the same variant and for other variants also.
But when executing the first in morning its taking the same time more than 15 min.Please let me know how to increase the performance when executing first time also,
Thanks,
Kiran.Hi all,
Appreciate your valuable replies...
@ Thomas: i do accept with your solution running a background job..but user is not accepting for it..thanks for your reply.
@Siegfried Boes : for testing purpose Im running this manytimes..but for user they may
require when ever they need to know open oders.the volume of the data is barongs 300-350 at
max.
@Brad Bohn : After creating the index the repose time reduced to half ...i hope i have
created a right index.
Observation here...I executed the report in production system more than 5 times it took the
same time, my changes are still in quality..so i think may be for selecting the right index
its taking this much time.and for the next time is taking right index n doing it so it taking
less.
Do you accept it?.if so Please let me know how to explicitly say the select statement to
use my index.
Thanks,
kiran. -
Getting different result while executing the report by debugger
Hi All,
I am facing a peculiar issue. When i execute the report from SE38 i am getting a particular set of values in a alv report.
But if i start debugging the report by using /h and execute . i am getting another set of result. How does it happen any idea.
Without debugger result is
a
b
c
With debugger i am getting result as
a
d
e
f
What may be the reason . Kindly help.
Thanks in advance.
S.VelsankarHi,
you mean you have'nt change anything while debugging and results are different when ALV is displayed?
I don't really understand your issue... Could you give more details?
Kr,
m. -
The report displays more than 3000 pages with same content.
Respected Sir
I have a report with form letter layout.
The report contains only one page,but while running the paper layout ,the report displays more than 3000 pages with same content.
please anyone give a solution to this problemI think there is no bad joining. b'se when the querry is executed in sql, it is working properly(means returns only one record) . This problem is not for a particular report. Any report using the "form layout", the same problem occurs.
Why this problem occurs. How can we solve it.
Bye -
How to execute the logical database.
how to execute the logical database.
There are two ways of using a logical database - either by linking it with the executable program(specify the LDB name in the program attributes) or by using the function module LDB_PROCESS.
1.Data read by the logical database is passed back to the program using the interface work areas.Use GET statements in the report.
GET events are implemented internally as FORM routines.
2.If you call the logical database using the above function module, the selection screen of LDB is not displayed.It uses special subroutines called callback routines, which are called by the function module and filled with the required data.
Please refer the following link for more details.
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm -
How to find the report for the SAP query (Query exists in table AQLQCAT)
Hello Experts,
I need to find the tables used in the SAP Query but i don't have access to transaction SQ01,SQ02 and SQ03 to check the same.
Therefore i checked table AQLQCAT and got the SAP Queries in the system. Then searched for the reports that would have been generated for the same passing AQusergroupquery name* in transaction SE38.
But unfortunately the program does not exists for the given paramenter.
Could you please let me know how to get the report name for the SAP Query.
Secondly please suggest any other way of checking the tables used in the SAP Query.
Also the table name from where i can download the SAP Queries.
Thanks in advance.
Regards,
Rahul SinhaI suggest you a simple method.
Execute the query. When the selection screen is showed, go to menu and click to SYSTEM->STATUS.
Check the program name and double click it to access the program code.
Search for tables or functions into the source code in order to understand where data are taken.
If you do not find anything , go to the program atttribute and check for logic database, sometimes they are used....
Best regards. -
Need a Syatem variable for Executing the report by RFC.
Hi Experts,
Need a Syatem variable for Executing the report by RFC.
what i mean to say is,i can execure the report directly ...then no issues.
But if i execute the Report by RFC ,then i should put a condition with system variable...
Please suggest me ,how can put a condition when i am executing the report through RFC.
Thanks
BabuHello Friend,
what I understood that you want to put some extra condition if that report is getting called from RFC...
you can use the system variable SY-CPROG....it will hold the value of the report when it is geeting executing directly...
but when it is getting executed therough RFC...it will hold that RFC name...
Thanks
Krish -
Button on toolbar after executing the report i.e. after result display
Hi, after executing the report result is being displayed.Now at this stage I want a button on the application toolbar clicking on which will allow a perform to get triggered.
I tried in following manner:
SELECTION-SCREEN: FUNCTION KEY 1.
*INITIALIZATION.
TABLES: SSCRFIELDS.
*MOVE icon_mail TO sscrfields-functxt_01.
*form SEND_EMAIL .
IF sy-ucomm = 'FC01'.
PERFORM SEND_MAIL_ASSET_STATUS.
ENDIF.
But it's not ok.The above way is not working.
Please note: I want button on toolbar only after executing the report i.e. after result display.
How can I do this?
Kindly guide.
Best regards.hi
if you are using alv than just pass 3 values to function call
I_CALLBACK_PROGRAM = SY-REPID " program name
I_CALLBACK_PF_STATUS_SET = 'STATUS' "PF-STATUS
I_CALLBACK_USER_COMMAND = 'UCOMMAND' " subroutine name
and check the value of UCOMM in subroutine -
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 execute the parametered stored procedure in sql *plus ?
how to execute the parametered stored procedure in sql *plus ?
my storedprocedure format
CREATE OR REPLACE PROCEDURE SMS_SELECTMPLOYEE
(empDOB out date, empEmpName out varchar2)
thanks & regards
mk_murOh, sorry... making many reading-too-fast mistakes today...
You can't declare date variables in SQL*Plus (seel help var), but you can cast to varchar2:
TEST> CREATE OR REPLACE PROCEDURE SMS_SELECTMPLOYEE (empDOB out date, empEmpName out varchar2) IS
2 d date := sysdate;
3 e varchar2(10) := 'bob';
4 begin
5 empdob := d;
6 empempname := e;
7 end;
8 /
Procedure created.
TEST> var d varchar2(30)
TEST> var n varchar2(30)
TEST> call SMS_SELECTMPLOYEE(:d,:n);
Call completed.
TEST> print d n
D
11/07/06
N
bobYoann. -
How to execute the content of varchar variable like a simple query
Hi everyone!
I did a PL/SQL region in apex, in this region I did the query which is storaged in a variable; it was did it concatenate several times,
in the procedure I have several sentences.
I thought that the command 'execute immediate' would get a good result but it do not print the result.
declare
variable varchar2(1000);
begin
--sentences
--execute inmmediate( variable );
--return variable
end;
I only want to how to execute the content of varchar variable.
For example, suppose that the result of this procedure is
'SELECT SYSDATE FROM DUAL'
How and what do I must do for this query execute like a normal query that is in apex?
I expect your prompt reply.
Thank you for your help.
Best regardsLet us say your table containing SQL is
t_sql_table
and has two columns
primary_key
and
sql_query.
You would need to do the following:
1. Create a Report of type "Function returning SQL Query"
2. Put the following there:
DECLARE
v_query VARCHAR2 (4000);
BEGIN
SELECT sql_query
INTO v_query
FROM t_sql_table
WHERE primary_key = 1;
RETURN v_query;
END;Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Executing the report in the background
Hi Frnds,
I want to execute a report in background.After executing the report I want to receive a mail.
I think this is possible through reporting agent.
so i need the steps for this how to do...pls do the need ful..waiting for reply..
Thanks and Regards
Rajasekar.Hi,
there are two parts of it -
a. you have some exceptions & you run report in background & are informed if exception occurs, for that kind of scenario look at -
http://help.sap.com/saphelp_bw33/helpdata/en/d3/a850390aa3b608e10000000a11402f/content.htm
b. Without exception you can play with WEb template & get informed -- I am not very sure.see this --
http://help.sap.com/saphelp_bw33/helpdata/en/9e/9f653ade969f4de10000000a114084/content.htm
If you are on BW350, it can be achieved by Information Broadcasting feature. see this -
http://help.sap.com/saphelp_nw04/helpdata/en/a5/359840dfa5a160e10000000a1550b0/content.htm
Hope it helps
regards
VC -
How to debug the report which isrunning in Background?
Hi all,
1.How to debug the report which is running in Background?
thanks & regards
vishnuvardhanHello,
Do like this.
Create an infinite loop before the line u want debug.
data: lf_flag.
do.
if lf_flag = 'X'.
exit.
endif.
enddo.
Now execute the report in background. In Tcode SM37 select ur job and in menu job--> Capture Active Job
IT will stop at the point of infinite loop.
Regards,
Vasanth -
How to execute the messages in status 'scheduled' automatically?
Hi.
I find some messages every day which have status 'scheduled' for a long time - more then several hours. These messages use http adapter. When http server is not working, the messages scheduled, but not executed after http server become working. How to execute the messages automatically?http://help.sap.com/saphelp_nw70/helpdata/en/96/8412417301ee6fe10000000a1550b0/content.htm
Is yours a EOIO scenario?
Maybe you are looking for
-
hi i am trying to get on to my mirco soft word and there is a question mark placed on it. when i try to open the app it wont. help
-
Because of the horrible battery life with Mountain Lion (10.8.2), I am looking to downgrade to Lion. I have a Time Machine backup of my current machine, running ML. I do not want to restore all the way back to my last Lion backup, because that was a
-
Java.lang.NullPointerExecption error with ExecuteWithParam data control
Hello, my application has a database connexion ; with the wizards, I made a Businness Components from Tables ; after that, I've changed the querry of my one and only View (btw, there are 4 entity objects). I put on a view criteria with a bind variabl
-
CRAZY Frustrating! Upgraded to iTunes7 and now have no sound when trying to play anything through iTunes (no music, no podcasts, no videos, etc.) Can hear it just fine through the sub, but nothing through the speakers. Sounds work fine with any other
-
Keynote exports to low quality PDF file
I exported my presentation to PDF file which looked perfect on my laptop screen. But when the presentation was projected on a large conference screen it looked awful - not contast and not well-readable. Does anybody know how to increase the quality o