Report / procedures
Hi
I have a procedures in db i use in a report. I get the values from the procedures in to the report with a normal sql query.
In my procedures, I have 2 inputs start and a end date. How can I set the start and end dates (with a data picker before the report is run)??
The code for the procedures is here:
PROCEDURE suppl_cal(p_suppl_no IN suppl.suppl_no%TYPE,
p_start_date IN DATE,
p_end_date IN DATE) IS
v_rec TEST_suppl_tmp%ROWTYPE;
BEGIN
delete TEST_suppl_statistic_tmp;
PK.calc_statistics(p_suppl_no => p_suppl_no,
p_start_date => p_start_date,
p_end_date => p_end_date,
p_delayed_pos => v_rec.delayed_po_item_count,
p_delayed_days => v_rec.delayed_day,
p_penalty_value => v_rec.penalty_value,
p_rejected_pos => v_rec.reject_po_item);
INSERT INTO TEST_suppl_tmp (
delayed_po_item_count,
delayed_day,
penalty_value,
reject_po_item)
VALUES (
v_rec.delayed_po_item_count,
v_rec.delayed_day,
v_rec.penalty_value,
v_rec.reject_po_item);
END suppl_cal;
The above issue have been resolved the issue. The problem was our BO administrator changed the Database server on CMC and my report in infoview was failing because of my stored procedure was not found on new database.
Similar Messages
-
Report - PROCEDURE DOESN'T EXIST
Hello,
I am creating a Report using the wizard with 5 tables and 4 join conditions. I have 6 parameters which the User can choose to customize (not Value Required). The Report executes correctly from the .show procedure when but when I use the Customization page and enter a value for a parameter, I get the following error msg. -
MRCIAPPL.QA_SRCH_RPT.show: PROCEDURE DOESN'T EXIST
DAD name: portal30
PROCEDURE : MRCIAPPL.QA_SRCH_RPT.show
URL : http://miranet.mirant.com:80/pls/portal30/MRCIAPPL.QA_SRCH_RPT.show
PARAMETERS :
============
p_action:
RUN
p_mode:
1
p_exec_mode:
p_page_url:
p_redirect_url:
PORTAL30.wwv_component_control.show?p_module_id=1760844468&p_mode=1&p_back_url=http%3A%2F%2Fatlws1149%3A7777%2Fservlet%2Fpage%3F_pageid%3D3%2C22%26_dad%3Dportal30%26_schema%3DPORTA L30%26p_render%3DLIST%26p_otype%3DAPP%26p_octx%3DMRCIAPPL.MRCI_APP%26p_action%3D%26p_caller%3DPORTLET%26p_domain%3Dwwc%26p_sub_domain%3Dappexp%26p_rpth%3D54_APPLICATIONEXPLORER_114 182%26p_orderby%3D%26p_request%3D%26p_min_row%3D1%26p_max_rows%3D49%26p_page_number%3D1
p_reference_path:
p_arg_names:
cievent_ci_qtr_cond
p_arg_values:
%null%
nullCould you provide more information. Also your portal Version.
Just check that you have customize or above privilege on that report.
Thanx,
Chetan. -
Hi All,
How to know whther a conurrent program (report or package) is "Single OU or Multiple OU".
OU: Operating Unit
Any advice appreciated.
ThanksAre you asking how to tell whether a concurrent program can be run for a single Operating Unit in a multi-Operating Unit environment?
If you are asking about standard Oracle concurrent programs, then I would say that they should all be capable of running for a single OU in a multi-OU environment WHERE the module relates to operating units. For example the HR/Payroll modules do not relate to operating units, but rather business groups and concurrent programs in these modules will be able to be run by business group.
If you are asking about custom concurrent programs, then I would suggest the easiest way to tell would be to run them and see, although having an Org ID parameter would be a good indication. -
How to use table name dynamically in report procedure
Hello every body
I want to use table name dynamically means at runtime i want to pass table name.
I can do this by lexical parameter in main query.
But my problem is that i want to crate new format trigger or new function that use 1 cursor in which that lexical parameter : table name is used.
so how to do that?
i can not use that lexical parameter it is giving error.
please help me how to do that.Call a database function which you pass the lexical parameter. Then in the database function you use dynamic sql or the execute immediate option to build the SQL string.
Return the information from this function to build your business logic on in your format trigger.
Marcos -
Crystal Report not showing fields when connected to a stored procedure
I have a Stored Procedure that returns results when run in SQL Server, but when I add this to a Crystal Report it doesn't show any fields in the Field Explorer. But if I try any other SP, it works fine and I can see its fields.
As you can see in the picture below, I am unable to expand the fields in the report while creating the report using standard report procedure too.
I tried different ways, but nothing worked for me here. Please help me here.
(FYI, I am using Crystal Reports 2008, SQL Server 2008R2)Hi Jamie,
I just found out the reason for this issue.
I wrote the stored procedure using the fields in the Datamart but the fields in the datamart in backend are connected to a different database which doesn't have SQL Server Authentication (for the Credentials) and that's the reason I was getting this issue.
Once my BI team granted the permission, for that fields connecting to the backend database, I was able to see all fields in the Crystal Report. -
Can you open a report in Excel/Word desktop instead of the web pugin?
using run_report_object( and web.show_document,
how or can you get a report to open in the desktop/full version of MS Excel/Word instead of the web plugin versions?
I can get the browser to open a report in pdf with my desktop adobe reader, but not with an rtf or xml/delimited desformat.
Currently I don't pass a mimetype when opening as a pdf, but I do pass one in the url when i am destypes of xml, delimited and rtf,
as this is the only way i have found out how to open the reports in word/excel.
I'm in the process of upgrading from forms 6 client/server to 10g developer suite, so this is my try with a web based system.
Does anyone have any suggestions, or where I should look.
Below I listed my code from a procedure.
the first part of the procedure is alot of converting, but if you skip down to the part between the 2 sets of double lines this fairly standard.
PACKAGE BODY pmc_lib IS
-- Procedure to run the report.
procedure run_reports(v_report_name in varchar2, -- Report Name with or w/o a path.
v_commode in number default synchronous, -- commode
v_execmode in number default runtime, -- execute mode
v_file_sys in number default filesystem, -- dummy
v_param_list in paramlist, -- parameter list
v_show_modes in varchar2 default null) is -- used for testing,
-- if set to anthing but null, the report properties will display
-- on the screen through an alert prior to printing.
v_errorcode number;
v_errortext varchar2(600);
v_initialized boolean := false;
v_prop_reportserver varchar2(200);
v_report_path varchar2(200);
v_user varchar2(100);
v_user_sessionid number;
v_forms_version varchar2(100);
v_default_report_server varchar2(200);
v_default_server_domain_path varchar2(200);
v_connect_string varchar2(3) := get_application_property(connect_string);
v_user_name varchar2(35) := get_application_property(username);
report_id report_object;
reportserverjob varchar2(100);
v_jobid varchar2(100);
rep_status varchar2(100);
v_url varchar2(500);
v_url2 varchar2(500);
v_parameter_value varchar2(100);
v_destype_param_value varchar2(100) := null;
v_desformat_param_value varchar2(100) := null;
v_desname_param_value varchar2(100) := null;
v_value_n number := 0;
v_param_type number := text_parameter;
v_prop_execmode number;
v_prop_commode number;
v_prop_destype number;
v_prop_filename varchar2(200);
v_prop_source_block varchar2(200) := null;
v_prop_query_name varchar2(200) := null;
v_prop_desname varchar2(200) := null;
v_prop_desformat varchar2(200) := null;
v_prop_reportserver varchar2(200) := null;
v_prop_other varchar2(200) := null;
v_mimetype varchar2(200) := null;
v_selected_mimetype varchar2(200) := null;
report_not_generated exception;
report_id_not_found exception;
BEGIN
v_forms_version := get_application_property(version);
v_prop_reportserver := get_report_object_property('report1', report_server);
v_report_path := null;
v_user := v_user_name || '/' ||
get_application_property(password) || '@' ||
v_connect_string;
if v_connect_string = 'NNN' then
v_default_server_domain_path := 'pmcoracapp01.aapmc.com/reports/rwservlet';
v_default_report_server := 'rep_pmcoracapp01_frhome1';
else
v_default_server_domain_path := 'oradevsrv.aapmc.com/reports/rwservlet';
v_default_report_server := 'rep_oradevsrv_frhome1';
end if;
v_initialized := true;
-- Check to see what version of forms is running.
if substr(v_forms_version, 1, 1) <> '6' then
-- Check to see if WEB version is running
-- This may be an unnecessary check.
if (get_application_property(user_interface) = 'WEB') then
report_id := find_report_object('report1');
-- id_null won't work on a report_id in Version 6, may put back in 10g once version 6 is gone completly
-- if id_null(report_id) then
-- raise report_id_not_found;
-- end if;
-- Because of Convertions from old system the following are needed.
-- 1) If 'execmode' is runtime, then change it to batch.
if v_execmode = runtime then
v_prop_execmode := batch;
else
v_prop_execmode := v_execmode;
end if;
-- 2) If Report name has an attached path, then remove it.
v_value_n := instr(lower(v_report_name), 'k:\pmc\new\');
if v_value_n = 0 then
v_prop_filename := v_report_name;
else
v_prop_filename := substr(v_report_name, v_value_n + 11);
end if;
-- From looking at the FORMS, 'destype' parameter is always passed in from the FORM.
-- It is either 'preview' or 'file'.
-- This is here for the converstion from Forms 6 to 10g.
-- If for some reason destype has not been passed in as a parameter, you will get a FORM error,
-- saying the parameter does not exists.
begin
-- 3) If 'destype' is one of the following, then change it to cache.
get_parameter_attr(v_param_list, 'destype', v_param_type, v_destype_param_value);
if lower(nvl(v_destype_param_value, 'null')) in ('preview', 'file', 'null') then
v_prop_destype := cache;
-- 3a) If 'destype' was = 'file' then check the 'desformat' and 'desname'.
if lower(nvl(v_destype_param_value, 'null')) = 'file' then
-- 3b) Get 'desformat' value
get_parameter_attr(v_param_list, 'desformat', v_param_type, v_desformat_param_value);
-- 'delimited' was not working, so change all 'delimited' to 'delimiteddata'.
if lower(nvl(v_desformat_param_value, 'null')) = 'delimited' then
v_desformat_param_value := 'delimiteddata';
end if;
-- 3c) If 'desformat' is NOT one of the following, then change it to pdf.
if lower(nvl(v_desformat_param_value, 'null')) not in ('pdf', 'xml', 'rtf', 'delimiteddata') then
v_prop_desformat := 'pdf';
else
v_prop_desformat := lower(v_desformat_param_value);
end if;
-- 4) Get 'desname' property.
get_parameter_attr(v_param_list, 'desname', v_param_type, v_desname_param_value);
v_prop_desname := lower(v_desname_param_value);
end if;
else
v_prop_destype := lower(v_destype_param_value);
end if;
exception
when others then
null;
end;
-- If a desformat is rtf, xml, or delimited then get a mimetype to pass to the url
if lower(v_prop_desformat) = 'rtf' then
v_mimetype := '&mimetype=application/msword';
elsif lower(v_prop_desformat) = 'xml' then
v_mimetype := '&mimetype=application/vnd.ms-excel';
elsif lower(v_prop_desformat) = 'delimiteddata' then
v_mimetype := '&mimetype=application/vnd.ms-excel';
end if;
-- 6) If the Following are not set within the Report Object then
-- set them to the following defaults.
-- These are al required to be set for the Report Object to Function.
-- These are the defaults for AAPMC.
v_prop_execmode := nvl(v_prop_execmode, batch);
v_prop_commode := nvl(v_prop_commode, synchronous);
v_prop_destype := nvl(v_prop_destype, cache);
v_prop_desformat := nvl(v_prop_desformat, 'pdf');
v_prop_reportserver := nvl(v_prop_reportserver, v_default_report_server);
-- Set All Report_Object Properties
set_report_object_property(report_id, report_execution_mode, v_prop_execmode);
set_report_object_property(report_id, report_comm_mode, v_commode);
set_report_object_property(report_id, report_destype, v_prop_destype);
set_report_object_property(report_id, report_filename, v_prop_filename);
set_report_object_property(report_id, report_source_block, v_prop_source_block);
set_report_object_property(report_id, report_query_name, v_prop_query_name);
set_report_object_property(report_id, report_desname, v_prop_desname);
set_report_object_property(report_id, report_desformat, v_prop_desformat);
set_report_object_property(report_id, report_server, v_prop_reportserver);
set_report_object_property(report_id, report_other, v_prop_other);
-- Run Report_Object
reportserverjob := run_report_object(report_id, v_param_list);
v_jobid := substr(reportserverjob, length(v_prop_reportserver) + 2, length(reportserverjob));
-- If Report Status is not 'FINISHED', then loop till it is.
if reportserverjob is not null then
rep_status := report_object_status(reportserverjob);
while rep_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') loop
rep_status := report_object_status(reportserverjob);
end loop;
if rep_status <> 'FINISHED' then
raise report_not_generated;
end if;
-- Create 1st part of url.
v_url := 'http://' || v_default_server_domain_path || '/getjobid' || v_jobid || '?server=' || v_prop_reportserver;
-- Check for mimetype.
if v_mimetype is not null then
v_url := v_url || v_mimetype;
end if;
-- Final part of url.
v_url2 := 'javascript:window.open("' || v_url || '", "", "fullscreen=no, titlebar=no, location=no, toolbar=no, menubar=no, status=no, resizable=yes"); self.close()';
-- This is the built-in that calls a new browser window
web.show_document(v_url2,'_blank');
else
raise report_not_generated;
end if;
end if;
-- Destroy the parameter list.
destroy_parameter_list(v_param_list);
else
-- This section if for Client Server, Version 6 of forms.
-- It will do the same as before the conversion.
-- It is only used before the complete conversion.
if v_report_name is null then
return;
end if;
v_value_n := instr(v_report_name, 'k:\pmc\new\');
if v_value_n = 0 then
v_prop_filename := 'k:\pmc\new\' || v_report_name;
else
v_prop_filename := v_report_name;
end if;
run_product(reports,
v_prop_filename,
v_commode,
v_execmode,
filesystem,
v_param_list,
null);
end if;
-- create history record of the report being run
insert into pmc_report_history values(
s_pmc_report_history.nextval,
v_prop_filename,
v_user_name,
sysdate,
v_forms_version,
v_jobid,
v_destype_param_value,
v_desformat_param_value,
v_desname_param_value,
v_prop_destype,
v_prop_desformat,
v_prop_desname,
v_mimetype,
v_window_open_params);
commit;
exception
when report_id_not_found then
show_user_alert('ERROR: Cannot Find Report Object!', null);
when report_not_generated then
show_user_alert('ERROR: Report Not Generated!', null);
when others then
v_errorcode := SQLCODE;
v_errortext := SQLERRM;
show_user_alert('ERROR : ' || v_errorcode || ' = ' || v_errortext, null);
end;
end;What you could try is downloading the report to the client pc using WEBUTIL_FILETRANSFER.URL_TO_CLIENT, then open the locally save file using something like:
CLIENT_HOST('cmd /c rundll32.exe url.dll,FileProtocolHandler "localfilename"'); -
I think there's a bug in the "bug report" procedure. Says I'm signed in but on next page says sign-in which takes me in a loop.
I have move my 5 x LC around, rebuild pref ?
yes, something like that. Firstly I would try to bring the LCs and XTs to default. Choose "Logic Pro/Preferences.../Control Surfaces/Rebuild Defaults".
If that doesn't help shut down all your devices and delete them from the CS-setup window. Quit Logic and delete
~/Library/Preferences/Logic/com.apple.logic.pro.cs
start Logic. When started switch on the LCs one after the other from left to right.
If that doesn't help, re-write the firmware. And if that doesn't help or if you already did all this:
sorry!
cheers
Martin -
10g Report after Parameter form REP-52007??
I have been struggling for years to display report with parameter form = yes, Report with parameter form=no works perfectly. Report with paramform=yes shows parameter but pressing submit query gives
REP-52007 Parameter form format error
My enviornment is:
Windows 2003 Forms and Report Secrvices 10.0.xx
i found some where before parameter form code can any one has such type of workaround with details
Please help......
Edited by: Zahid Rahim on Mar 18, 2010 2:33 PMThanx Denis...
This is the source of my parameter form.
<html>
<head>
<base href="http://vpn.iwm.com/reports/rwservlet/getfile/HW/YX+JlF07hIshsw7rSixK7d1yytLr6mhU=/28482206.htm">
</head></html>
<html>
<body dir="LTR" bgcolor="#ffffff">
<form method=post action="&report=D:\OracleApps\sales\reports\Order_Booking_Saleman.rdf&destype=CACHE&desformat=pdf&userid=WH/WH@oracle-server&">
*<input name="hidden_run_parameters" type=hidden value="">*
<center>
<p><table border=0 cellspacing=0 cellpadding=0>
<tr>
<td><input type=submit></td>
<td width=15>
<td><input type=reset></td>
</tr>
</table>
<p><hr><p>
<!-- Created by Oracle Reports 10:24 Mon Mar 22 , 2010 -->
<table border=0 cellspacing=0 cellpadding=0 width=357>
<tr><td width=29></td><td width=25></td><td width=1></td><td width=2></td><td width=1></td><td width=55></td><td width=76></td><td width=1></td><td width=1></td><td width=1></td><td width=21></td><td width=113></td><td width=2></td><td width=27></td><td width=2></td></tr>
<tr><td colspan=15 height=38></td></tr>
<tr valign=top>
<td height=9></td>
<td width=326 colspan=13 rowspan=5 align=center><font size=6 face="Arial" color="#ffffff"><b>ORDERS</b></font></td>
<td></td>
</tr>
<tr valign=top>
<td height=9></td>
<td></td>
</tr>
<tr valign=top>
<td height=9></td>
<td></td>
</tr>
<tr valign=top>
<td height=9></td>
<td></td>
</tr>
<tr valign=top>
<td height=9></td>
<td></td>
</tr>
<tr><td colspan=15 height=38></td></tr>
<tr valign=top>
<td height=9 colspan=4></td>
<td width=269 colspan=8 rowspan=3 align=center><font size=4 face="Arial" color="#ffffff"><b>Booking Date</b></font></td>
<td colspan=3></td>
</tr>
<tr valign=top>
<td height=9 colspan=4></td>
<td colspan=3></td>
</tr>
<tr valign=top>
<td height=9 colspan=4></td>
<td colspan=3></td>
</tr>
<tr valign=top>
<td height=9 colspan=4></td>
<td width=134 colspan=5 rowspan=2 align=center><font size=2 face="Arial"><b>FROM</b></font></td>
<td></td>
<td width=134 colspan=2 rowspan=2 align=center><font size=2 face="Arial"><b>TO</b></font></td>
<td colspan=3></td>
</tr>
<tr valign=top>
<td height=9 colspan=4></td>
<td></td>
<td colspan=3></td>
</tr>
<tr valign=top>
<td height=9 colspan=3></td>
<td colspan=4 rowspan=3><INPUT type=TEXT name="pbdatefrom" size=19 maxlength=13 value="15022006"> <BR><font face="Arial,Helvetica" size="-2"> (19120007) </font><P></td>
<td></td>
<td colspan=5 rowspan=3><INPUT type=TEXT name="pbdateto" size=19 maxlength=13 > <BR><font face="Arial,Helvetica" size="-2"> (22032010) </font><P></td>
<td colspan=2></td>
</tr>
<tr valign=top>
<td height=9 colspan=3></td>
<td></td>
<td colspan=2></td>
</tr>
<tr valign=top>
<td height=9 colspan=3></td>
<td></td>
<td colspan=2></td>
</tr>
<tr><td colspan=15 height=9></td></tr>
<tr valign=top>
<td height=9 colspan=5></td>
<td width=55 rowspan=2 align=right><font size=2 face="Arial"><b>Sale Point</b></font></td>
<td colspan=9></td>
</tr>
<tr valign=top>
<td height=9 colspan=5></td>
<td colspan=9></td>
</tr>
<tr valign=top>
<td height=9 colspan=3></td>
<td colspan=8 rowspan=2><SELECT name="pspname" size=1 > <OPTION selected value="ALL SALE POINTS"> ALL SALE POINTS <OPTION value="FACTORY"> FACTORY <OPTION value="GARDEN TOWN"> GARDEN TOWN <OPTION value="GULBERG"> GULBERG <OPTION value="ISLAMABAD"> ISLAMABAD <OPTION value="KARACHI"> KARACHI </SELECT></td>
<td colspan=4></td>
</tr>
<tr valign=top>
<td height=9 colspan=3></td>
<td colspan=4></td>
</tr>
<tr><td colspan=15 height=9></td></tr>
<tr valign=top>
<td height=9 colspan=3></td>
<td colspan=8 rowspan=3><SELECT name="PSRID" size=1 > <OPTION value="1"> 1 - SOHAIL ASLAM <OPTION value="2"> 2 - AKHTAR RIAZ <OPTION value="3"> 3 - SHAHID KHAN <OPTION value="4"> 4 - IBRAHIM MIAN <OPTION value="5"> 5 - ZULFIQAR KHAN <OPTION value="6"> 6 - AZHAR HUSSAIN <OPTION value="7"> 7 - ABDUL MUSTAFA <OPTION value="8"> 8 - SYED WAQAR ABBAS <OPTION value="12"> 12 - REHAN <OPTION value="13"> 13 - FARHAN <OPTION value="14"> 14 - SHAHINA AZIZ <OPTION value="15"> 15 - OMAR FAROOQ <OPTION value="16"> 16 - MUDASSAR ABBAS <OPTION value="17"> 17 - AMJAD ALI RAZI <OPTION value="18"> 18 - MIAN IBRAHIM <OPTION value="19"> 19 - KHURRAM SUMEER <OPTION value="20"> 20 - TAYYAB <OPTION value="21"> 21 - COMMON AT FACTORY <OPTION value="22"> 22 - COMMON AT GULBERG <OPTION value="23"> 23 - COMMON AT GARDENTOWN <OPTION value="24"> 24 - COMMON AT KARACHI <OPTION value="25"> 25 - ADEEL AHMED <OPTION value="26"> 26 - N. A. ABDULLAH <OPTION value="27"> 27 - AZIZ AHMED <OPTION value="28"> 28 - BATOOL FATIMA <OPTION value="29"> 29 - QURATUL AIN AZIZ <OPTION value="30"> 30 - SHAKIR KHAN <OPTION value="31"> 31 - SHAFAQ AROOJ <OPTION value="32"> 32 - NIHAL BAIG <OPTION value="33"> 33 - ALI ASGHAR <OPTION value="35"> 35 - MADIHA JALAL <OPTION value="34"> 34 - ALI FAROOQ <OPTION value="37"> 37 - MALIHA OMER <OPTION value="36"> 36 - KIPTIA <OPTION value="38"> 38 - SHAHZAD <OPTION value="39"> 39 - FAHAD <OPTION value="40"> 40 - FAKHAR SHAHZAD <OPTION value="41"> 41 - ZUBAIR IQBAL <OPTION value="42"> 42 - MUHAMMAD ABBAS <OPTION value="43"> 43 - ABDUL RAHEEM <OPTION value="44"> 44 - ALI RAZA <OPTION value="45"> 45 - MUHAMMAD SABIH <OPTION value="46"> 46 - NAGIEB AHMED <OPTION value="47"> 47 - RAJA TAHIR IRSHAD <OPTION value="48"> 48 - MOAZZAM KHAN <OPTION value="49"> 49 - HAJRA FAREED <OPTION value="50"> 50 - FAHIMUDDIN <OPTION value="51"> 51 - FARKHANDA <OPTION value="52"> 52 - JAWWAD MUNIR <OPTION value="53"> 53 - ARSALAN RIAZ <OPTION value="54"> 54 - HASEEB FAROOQ <OPTION value="55"> 55 - MISBAH GUL AWAN <OPTION value="57"> 57 - YASIR ILYAS <OPTION value="56"> 56 - FIRDOUS IQBAL <OPTION value="59"> 59 - TAHIR MEHMOOD <OPTION value="60"> 60 - ADIL HUSSAIN <OPTION value="61"> 61 - WASEEM AHMED RAJA <OPTION value="62"> 62 - SHAKEEL AHMED <OPTION value="63"> 63 - ABDUL MALIK M. OWAIS <OPTION value="64"> 64 - MIAN ZAHID IQBAL <OPTION value="65"> 65 - AHSAN MUSTAFA <OPTION value="66"> 66 - IRFAN ALI AWAN <OPTION value="70"> 70 - MEHMOOD <OPTION value="71"> 71 - SAJID <OPTION value="73"> 73 - AFZAL <OPTION value="75"> 75 - EHSAN ULLAH BAJWA <OPTION value="76"> 76 - SALE 3 <OPTION value="77"> 77 - SALE 4 <OPTION value="78"> 78 - SALE 5 <OPTION value="79"> 79 - SALE 6 <OPTION value="80"> 80 - SALE 7 <OPTION value="81"> 81 - BILAL <OPTION value="82"> 82 - ALI ASGHAR <OPTION value="83"> 83 - RAJA BILAL KHALID <OPTION value="84"> 84 - M. Irfan Ali <OPTION value="85"> 85 - SALE 5 <OPTION value="86"> 86 - SALE 6 <OPTION value="87"> 87 - SALE 7 <OPTION value="88"> 88 - LATIF A. MALIK <OPTION value="89"> 89 - LATIF A. MALIK <OPTION value="91"> 91 - MAZHAR ALI <OPTION value="93"> 93 - NAEEM AHMAD <OPTION value="94"> 94 - SADIQ NAZIR <OPTION value="95"> 95 - MARIYUM SHEIKH <OPTION value="96"> 96 - ALLAH DITTA <OPTION value="97"> 97 - GHOUS BUX <OPTION value="98"> 98 - MUHAMMAD ZAHID <OPTION value="99"> 99 - sales-3-99 <OPTION value="100"> 100 - FAIZA SIDDIQ <OPTION value="101"> 101 - MUHAMMAD JAVAID <OPTION value="102"> 102 - SAQIB BAIG <OPTION value="103"> 103 - MUSTAFA TAJ <OPTION value="104"> 104 - RASHID IQBAL <OPTION value="105"> 105 - GHULAM SHABBIR <OPTION value="106"> 106 - SAMIULLAH <OPTION value="107"> 107 - BEENISH ATTIQ <OPTION value="108"> 108 - MUHAMMAD UMAIR <OPTION value="109"> 109 - SABIHA FATIMA <OPTION value="110"> 110 - DANISH AHMAD <OPTION value="111"> 111 - TANIA NASIR <OPTION value="112"> 112 - NASIR JAFFERY <OPTION value="113"> 113 - RAMISH FATIMA <OPTION value="114"> 114 - MUHAMMAD SABIR <OPTION value="115"> 115 - MAJID IMRAN <OPTION value="116"> 116 - SHAHID AZIZ <OPTION value="117"> 117 - ADNAN ZULFIQAR <OPTION value="118"> 118 - NADIA YAQOOB <OPTION value="119"> 119 - ASIM QAMAR <OPTION value="120"> 120 - ASHFAQ ALAM <OPTION value="143"> 143 - Nadra Anjum <OPTION value="123"> 123 - ASIF ALI <OPTION value="124"> 124 - OMAR FAROOQ <OPTION value="125"> 125 - ADEEL MUNIR <OPTION value="126"> 126 - sales-1-126 <OPTION value="127"> 127 - sales-1-127 <OPTION value="128"> 128 - sales-1-128 <OPTION value="129"> 129 - sales-1-129 <OPTION value="130"> 130 - sales-1-130 <OPTION value="131"> 131 - sales-1-131 <OPTION value="132"> 132 - sales-1-132 <OPTION value="133"> 133 - sales-1-133 <OPTION value="134"> 134 - sales-1-134 <OPTION value="135"> 135 - sales-1-135 <OPTION value="136"> 136 - sales-1-136 <OPTION value="137"> 137 - sales-1-137 <OPTION value="138"> 138 - sales-1-138 <OPTION value="139"> 139 - sales-1-139 <OPTION value="140"> 140 - sales-1-140 <OPTION value="141"> 141 - sales-1-141 <OPTION value="142"> 142 - IRAM <OPTION value="144"> 144 - Iram Shahzadi <OPTION value="145"> 145 - Rubina Jaffar <OPTION value="146"> 146 - Faiza Nazir <OPTION value="147"> 147 - AWAIS ASHRAF <OPTION value="148"> 148 - IMRAN ASHRAF <OPTION value="149"> 149 - RAHEEL AHMED <OPTION value="150"> 150 - TARIQ MASOOD <OPTION value="151"> 151 - SADIA <OPTION value="152"> 152 - AMAD ZIAFAT <OPTION value="153"> 153 - ABID HUSSAIN <OPTION value="154"> 154 - SUMAIRA SYEDA <OPTION value="155"> 155 - RIZWAN ASLAM <OPTION value="156"> 156 - ANUM MUSHTAQ <OPTION value="157"> 157 - ABDUR REHMAN ASIF <OPTION value="158"> 158 - FAHIM RAFIQUE <OPTION value="159"> 159 - ABBAS ALI <OPTION value="160"> 160 - ATTA ULLAH <OPTION value="161"> 161 - TALIB MUKHTAR <OPTION value="162"> 162 - ASIM MUSHTAQ <OPTION value="163"> 163 - AZHAR HUSSAIN <OPTION value="164"> 164 - TAJAMUL BUTT <OPTION value="165"> 165 - LATIF MALIK <OPTION value="166"> 166 - WARIS ALI <OPTION value="167"> 167 - SAHIBZADA ABDUL SATTAR <OPTION value="168"> 168 - KASHIF NADEEM <OPTION value="169"> 169 - SHAISTA MIRZA <OPTION value="170"> 170 - QAISAR MEHMOOD <OPTION value="171"> 171 - NAZAM MUHAMMAD <OPTION value="172"> 172 - SAJJAD AHMAD <OPTION value="173"> 173 - MUHAMMAD AZIM <OPTION value="174"> 174 - Muhammad Waqar <OPTION value="175"> 175 - KEHAN <OPTION value="176"> 176 - FAISAL NADEEM <OPTION value="177"> 177 - SAJID NAZIR <OPTION value="178"> 178 - MUHAMMAD ALI <OPTION value="179"> 179 - GHULAM SHABBIR <OPTION value="180"> 180 - MUHAMMAD ARSHAD <OPTION value="181"> 181 - AAMIR ABBAS <OPTION value="182"> 182 - FAHAD AQEEL <OPTION value="183"> 183 - RANA MUBASHIR <OPTION value="184"> 184 - BILAL SHEIKH <OPTION value="72"> 72 - SR <OPTION value="74"> 74 - SR74 <OPTION value="185"> 185 - MUHAMMAD SOHAIB <OPTION value="186"> 186 - MUHAMMAD IBRAHIM <OPTION value="187"> 187 - MUHAMMAD WAQAS <OPTION value="188"> 188 - RAGHIB JAVAID <OPTION value="189"> 189 - SAIMA SAYYED <OPTION value="190"> 190 - MUHAMMAD AFZAAL <OPTION value="191"> 191 - TAYYABA SHAHEEN <OPTION value="192"> 192 - MISS HUMA <OPTION value="193"> 193 - MUNEEB ASLAM <OPTION value="194"> 194 - MUHAMMAD NAEEM <OPTION value="195"> 195 - SHAHER BANO <OPTION value="196"> 196 - SHAISTA <OPTION value="197"> 197 - HASHAM BAIG <OPTION value="198"> 198 - WAQAS MUGHAL <OPTION value="199"> 199 - FARAH NAEEM <OPTION value="200"> 200 - ALMINA <OPTION value="201"> 201 - FAZLULLAH <OPTION value="202"> 202 - TANYA KARIM <OPTION value="203"> 203 - IMRAN GILLANI <OPTION value="204"> 204 - KHAWAR QAYYUM <OPTION value="205"> 205 - JAWAD MUNAWAR <OPTION value="206"> 206 - ARSHAD FAROOQ </SELECT></td>
<td colspan=4></td>
</tr>
<tr valign=top>
<td height=9 colspan=3></td>
<td colspan=4></td>
</tr>
<tr valign=top>
<td height=9 colspan=3></td>
<td colspan=4></td>
</tr>
<tr><td colspan=15 height=19></td></tr>
<tr valign=top>
<td height=9 colspan=2></td>
<td colspan=9 rowspan=3><SELECT name="PSALE" size=1 > <OPTION value="D"> D <OPTION value="T"> T </SELECT></td>
<td colspan=4></td>
</tr>
<tr valign=top>
<td height=9 colspan=2></td>
<td colspan=4></td>
</tr>
<tr valign=top>
<td height=9 colspan=2></td>
<td colspan=4></td>
</tr>
</table>
</center>
</body>
</form>
</html>
what should be the value of hidden_run_parameters ????
i have also created 3 parameters in report p_action, p_User_connect and p_servername
i am using the procedure below to call the report
PROCEDURE show_report(pRptServer varchar2,pRptObj varchar2,pRptFormat varchar2,pRptPath varchar2,pRptParameter varchar2,pParamForm varchar2) IS
repid REPORT_OBJECT;
rep_status varchar2(30);
v_rep VARCHAR2(100);
vjob_id varchar2(100);
v_reportserver varchar2(50):=pRptServer;
v_runformat varchar2(50):= pRptFormat;
hidden_action varchar2(1000);
v_report_other VARCHAR2(4000) :='';
c char;
c_old char;
c_new char;
begin
repid := FIND_REPORT_OBJECT(pRptObj);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,pRptPath);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_reportserver);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,v_runformat);
--SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,pRptParameter||' paramform='||pParamForm);
-- code for pfaction
hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME);
hidden_action := hidden_action ||'&destype='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE);
hidden_action := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT);
hidden_action := hidden_action ||'&userid=' ||GET_APPLICATION_PROPERTY(username)||'/'||GET_APPLICATION_PROPERTY(password)||'@'||GET_APPLICATION_PROPERTY(connect_string);
hidden_action := hidden_action ||'&'||v_report_other;
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'pfaction='||hidden_action||' '||pRptParameter||' paramform='||pParamForm);
v_rep := RUN_REPORT_OBJECT(repid);
vjob_id := substr(v_rep,length(v_reportserver)+2,length(v_rep));
rep_status := REPORT_OBJECT_STATUS(v_rep);
while rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
loop
rep_status := REPORT_OBJECT_STATUS(v_rep);
end loop;
if rep_status = 'FINISHED' then
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||v_reportserver||'','_blank');
message('Finished');
else
message('Error');
end if;
end;
Your urgent reply will be highly appreciated.........
Edited by: Zahid Rahim on Mar 22, 2010 11:10 AM -
FRM 41215: CAN NOT FIND REPORT - Please help
Hi,
I am new to oracle 9i. I am trying to convert the forms in 8i to 9i. While i am doing i have many forms calling reports thru run_product. Now i am changing those into run_report_object. Even though i am getting errors like FRM 41215: CAN NOT FIND REPORT , INVALID REPORT ID.
declare
repid report_object;
v_rep varchar2(100);
begin
repid := find_report_object('mrnr0028');
v_rep := RUN_REPORT_OBJECT(repid);
end;
This is the command i have used. Is there anything wrong, or is there any necessity to specify any particular path for report files.
Pls help me asap.
ThanksI HAVE CREATE THIS PROGRAM UNIT(WITH LOT OF HARD WORK) FOR CHARACTRE AS WELL AS DEFAULT REPORT
RUNING ON WEB
-----------------FOR CHARACTER REPORT
procedure web_report_c ( type varchar2,parameter varchar2) is
report_id Report_Object;
report_job_id VARCHAR2(100);
report_status varchar2(100);
FILE_NAME VARCHAR2(100);
web_name varchar2(300);
user_name varchar2(30);
BEGIN
user_name:=get_application_property(username);
if type='PRINTER' THEN
report_id:= find_report_object('REPORTNODE');
file_name:=user_name||to_char(sysdate,'-ddmmyy_hh24miss')||'.RRPT'; --use in case of character mode report
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,file);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,'c:\logiWWW\temp\'||file_name); --where u want to save report TEMPRARY
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'REPSERVER'); --report server name
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,parameter); --passing parameter to report
report_job_id:=run_report_object(report_id);
report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
while report_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') loop --checking report status
report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
end loop;
IF report_status='FINISHED' THEN --if report is finished then make call to report
-- web_name:='HTTP://logi/'||file_name;
WEB.SHOW_DOCUMENT('/logi/'||file_name,'_BLANK');
else
MESSAGE('Report has failed. '||'status is -'||report_status);
end if;
ELSIF type='SCREEN' THEN
report_id:= find_report_object('REPORTNODE');
file_name:=user_name||to_char(sysdate,'-ddmmyy_hh24miss')||'.txt'; --use txt in case of character mode report
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,file);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,'c:\logiWWW\temp\'||file_name); --where u want to save report TEMPRARY
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'REPSERVER'); --report server name
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,parameter); --passing report parameter
report_job_id:=run_report_object(report_id);
report_status:=REPORT_OBJECT_STATUS(report_JOB_id); --checking of report status
while report_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') loop
report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
end loop;
IF report_status='FINISHED' THEN --if report status is finished then make call to report
--web_name:='HTTP://ORACORP/logi/'||file_name;
WEB.SHOW_DOCUMENT('/logi/'||file_name,'_BLANK');
else
MESSAGE('Report has failed. '||'status is -'||report_status);
end if;
end if;
end;
------------FOR DEFAULT REPORT
procedure web_report_c ( type varchar2,parameter varchar2) is
report_id Report_Object;
report_job_id VARCHAR2(100);
report_status varchar2(100);
FILE_NAME VARCHAR2(100);
web_name varchar2(300);
user_name varchar2(30);
BEGIN
user_name:=get_application_property(username);
if type='PRINTER' THEN
report_id:= find_report_object('REPORTNODE');
file_name:=user_name||to_char(sysdate,'-ddmmyy_hh24miss')||'.RRPT'; --use in case of character mode report
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,file);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,'c:\logiWWW\temp\'||file_name); --where u want to save report
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'REPSERVER'); --report server name
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,parameter); --passing parameter to report
report_job_id:=run_report_object(report_id);
report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
while report_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') loop --checking report status
report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
end loop;
IF report_status='FINISHED' THEN --if report is finished then make call to report
-- web_name:='HTTP://logi/'||file_name;
WEB.SHOW_DOCUMENT('/logi/'||file_name,'_BLANK');
else
MESSAGE('Report has failed. '||'status is -'||report_status);
end if;
ELSIF type='SCREEN' THEN
report_id:= find_report_object('REPORTNODE');
file_name:=user_name||to_char(sysdate,'-ddmmyy_hh24miss')||'.txt'; --use txt in case of character mode report
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,file);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,'c:\logiWWW\temp\'||file_name); --where u want to save report
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'REPSERVER'); --report server name
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,parameter); --passing report parameter
report_job_id:=run_report_object(report_id);
report_status:=REPORT_OBJECT_STATUS(report_JOB_id); --checking of report status
while report_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') loop
report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
end loop;
IF report_status='FINISHED' THEN --if report status is finished then make call to report
--web_name:='HTTP://ORACORP/logi/'||file_name;
WEB.SHOW_DOCUMENT('/logi/'||file_name,'_BLANK');
else
MESSAGE('Report has failed. '||'status is -'||report_status);
end if;
end if;
end; -
Hi All,
I have two reports in a sqr ,one is error report and the other is billing report,and i need send these two report as attached to a team,all these should be done in one sqr,so i use new-report function to generate billing report,in this case,we can open PDF from email successfully,however,I face a problem because of this.
That is I can only find one row in billing report,and i use show method it shows at least two emplids come to this billing report procedure,and one more thing ,i use print method to generate report.
Can anyone help me on this,many thanks.
Regards,
JoanCan you share the sample code of the logic used by you to create new-report and print....also specify the order in which you execute the new-report and print (for both reports). I think i know the issue but need to be sure on that.
-
Hi
I have a variable vsWhere.
vsWhere := 'WHERE TABLE.COLUNM1 = 1 AND TABLE.COLUMN2 = 3'
I have too the parameter :P_WHERE in the report
I tried to past the variable to parameter in report, but is not ok. The report show just the word "WHERE", why?
ex: vsOther_parameter := 'PARAMFORM=NO BLANKPAGES=NO P_WHERE='vsWhere;
forms and reports 10g
att,
MarcosOk
vsOther_parametro := 'PARAMFORM=NO BLANKPAGES=NO MAXIMIZE=YES'
vsOther_parametro := vsOther_parametro || ' P_WHERE=WHERE VI_MOVIMENTO_ESTOQUE.TIPO = 1 AND VI_MOVIMENTO_ESTOQUE.STATUS = 2';
P_WHERE is parameter of report.
report_id:=FIND_REPORT_OBJECT('AEF2001');
----- call the procedure
RUN_REPORT_OBJECT_PROC(report_id, vsReport_servname, vsReport_desformat,
CACHE
vsReport_filename,
vsReport_desname,
vsOther_parametro, vsReport_servlet);
----- end call the procedure
--- procedure that call report
PROCEDURE RUN_REPORT_OBJECT_PROC(
report_id REPORT_OBJECT,
report_server_name VARCHAR2,
report_format VARCHAR2,
report_destype_name NUMBER,
report_file_name VARCHAR2,
report_desname VARCHAR2,
report_otherparam VARCHAR2,
reports_servlet VARCHAR2) IS
report_message VARCHAR2(100) :='';
rep_status VARCHAR2(100) :='';
vjob_id VARCHAR2(4000) :='';
hidden_action VARCHAR2(2000) :='';
v_report_other VARCHAR2(4000) :='';
i number (5);
c char;
c_old char;
c_new char;
BEGIN
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_file_name);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (report_id,REPORT_DESFORMAT);
hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
c_old :='@';
FOR i IN 1..LENGTH(report_otherparam) LOOP
c_new:= substr(report_otherparam,i,1);
IF (c_new =' ') THEN
c:='&';
ELSE
c:= c_new;
END IF;
-- eliminate multiple blanks
IF (c_old =' ' and c_new = ' ') THEN
null;
ELSE
v_report_other := v_report_other||c;
END IF;
c_old := c_new;
END LOOP;
hidden_action := hidden_action ||'&'|| v_report_other;
hidden_action := reports_servlet||'?_hidden_server='||report_server_name || encode(hidden_action);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||report_otherparam);
report_message := run_report_object(report_id);
rep_status := report_object_status(report_message);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(report_message);
--rep_status := report_object_status(report_job_id);
END LOOP;
IF rep_status='FINISHED' THEN
vjob_id :=substr(report_message,length(report_server_name)+2,length(report_message));
WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||report_server_name,' _blank');
ELSE
null;
END IF;
END;
--- end procedure that call report
--- procedure encode
FUNCTION ENCODE(URL_PARAMS_IN Varchar2)
RETURN VARCHAR2 IS
v_url VARCHAR2(2000) := URL_PARAMS_IN; -- Url string
v_url_temp VARCHAR2(4000) :=''; -- Temp URL string
v_a VARCHAR2(10); -- conversion variable
v_b VARCHAR2(10); -- conversion variable
c CHAR;
i NUMBER(10);
BEGIN
FOR i IN 1..LENGTH(v_url) LOOP
c:= substr(v_url,i,1);
IF c in (';', '/','?',':','@','+','$',',',' ') THEN
v_a := ltrim(to_char(trunc(ascii(substr(v_url,i,1))/16)));
IF v_a = '10' THEN
v_a := 'A';
ELSIF v_a = '11' THEN
v_a := 'B';
ELSIF v_a = '12' THEN
v_a := 'C';
ELSIF v_a = '13' THEN
v_a := 'D';
ELSIF v_a = '14' THEN
v_a := 'E';
ELSIF v_a = '15' THEN
v_a := 'F';
END IF;
v_b := ltrim(to_char(mod(ascii(substr(v_url,i,1)),16)));
IF v_b = '10' THEN
v_b := 'A';
ELSIF v_b = '11' THEN
v_b := 'B';
ELSIF v_b = '12' THEN
v_b := 'C';
ELSIF v_b = '13' THEN
v_b := 'D';
ELSIF v_b = '14' THEN
v_b := 'E';
ELSIF v_b = '15' THEN
v_b := 'F';
END IF;
v_url_temp := v_url_temp||'%'||v_a||v_b;
ELSE
v_url_temp :=v_url_temp||c;
END IF;
END LOOP;
return v_url_temp;
END;
--- end procedure encode
att,
Marcos -
How to pass bind variable into oracle reports 6i - Parameter form
Hello All,
I want to pass bind variable into Oracle Reports 6I - Parameters.
I have tried out that but got the below error :-
rep-0781 : Bind variables are not allowed in the select statement
Kindly help me is there any option which allow me to pass bind variables into Oracle reports 6I.
Thanks
HARSH SHAHHi,
may be its not possible to use :P_PARAM1 in user parameter of oracle 6i reports
but u can full fill user requirement using oracle forms
create a form as like as report parameter window
then create parameter list and run report
PROCEDURE Run_Emp_Report IS
pl_id ParamList;
BEGIN
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
END;
thanks
mostafiz mitul
Dhaka Bangladesh -
Running Plsql procedure using shell script
Dear All,
Dear All,
I have to generate reports weekly by using a plsql procedure.
For Exapmle : My Proc name is Weekly_report(i number).
Here i is the argument for which i need to run the proc 7 times as follows
exec weekly_report(1)
exec weekly_report(2)
exec weekly_report(3)
exec weekly_report(4)
exec weekly_report(5)
exec weekly_report(6)
exec weekly_report(7)
I need to run them parallely at a time so that time taken will be less. Is there any way doing this through shell script.
Thanks in asdvance.damorgan wrote:
I can't think of anything in the Oracle world left in the dustbin of history I miss less than shell scripts.
Why work in another language, why work in a tool that is non-portable, why have to deal with SysAdmins when dbms_scheduler is many times more capable?
Definitely DBMS_SCHEDULER. Shell scripting is obsolete with perhaps only a few very rare exceptions.+1: shell scripts suck.
DBMS_Scheduler allows you to setup the report procedures as programs that are executed at the same time in a single job (as steps in a scheduler chain). you can also setup email confirmation based on them successfully completing. All good stuff and not difficult to do. -
At some point, I'll see 'bookmark syncing failed', and the browser then acts normally, BUT the behavior is cyclic. I uninstalled 7.0.1 and installed 3.6.20 and the behavior continued. I disabled sync in both installs and the behavior continued. I even deleted the sync server URL in about:config and the behavior *continued*. Oddly, the logs don't show any failures, and report success every time.
BTW, the bug-reporting procedure needs serious clean-up. It is very difficult to navigate the maze. And the help files are atrocious.That maybe fixes some issues, but not this one. This one has to do with Sync and is getting seriously annoying.
-
While applying patch 3653484, Relink of module "ar60desb" fails
Hi All,
While applying patch 3653484, Relink of module "ar60desb" fails
adrelink.log file entry
Starting link of fnd executable 'ar60desb' on Wed Apr 29 10:52:39 PAKDT 2009
ld -s -H512 -T512 -bhalt:4 -brtl -L/erpbkp/oracle/tstora/8.0.6/lib
-L/usr/lib -o /erpbkp/oracle/tstappl/fnd/11.5.0/bin/ar60desb.new
/erpbkp/oracle/tstora/8.0.6/lib//s0main60.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/sslmdgtab.o
/erpbkp/oracle/tstappl/fnd/11.5.0/lib/xitsrw.o
/erpbkp/oracle/tstappl/po/11.5.0/lib/xirpo.o
/erpbkp/oracle/tstappl/po/11.5.0/lib/libpo.a
/erpbkp/oracle/tstappl/fa/11.5.0/lib/xirfa.o
/erpbkp/oracle/tstappl/fa/11.5.0/lib/libfa.a
/erpbkp/oracle/tstappl/ar/11.5.0/lib/xirar.o
/erpbkp/oracle/tstappl/ar/11.5.0/lib/libar.a
/erpbkp/oracle/tstappl/ff/11.5.0/lib/xirff.o
/erpbkp/oracle/tstappl/ff/11.5.0/lib/libff.a
/erpbkp/oracle/tstappl/fnd/11.5.0/lib/xirfnd.o
/erpbkp/oracle/tstappl/fnd/11.5.0/lib/fdxsrw.o
/erpbkp/oracle/tstappl/fnd/11.5.0/lib/libfnd.a
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rwecat.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rwecpf.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rwecty.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rweats.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rwepls.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rxdsql.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rweiap0.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rxsi.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/ui10.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/uiicxd.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rwsng.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rwscl.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rwssc.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rwssc0.o
/erpbkp/oracle/tstora/8.0.6/reports60/lib/rwsdt.o -lrw60 -lgraphics60
-lobx60 -lge60 -locl60 -lnn60 -lrws60 -lde60 -lzrc60 -lrws60 -lnvu60
-lnvc60 -lnvs60 -lucol60 -luicc60 -lca60 -lmmiw60 -lmmov60 -lmma60
-lmmos60 -lmmoi60 -lmmia60 -lmmft60 -lmmcm60 -lvgs60 -luihx60 -luc60
-luipr60 -luimotif60 -lot60 -lrem60 -lree60 -lrec60 -luiimg60 -luimotif60
-luipr60 -luiimg60 -luc60 -lrem60 -luimotif60 -luia60 -ltknqap60 -luipr60
-luimotif60 -lutt60 -lix60 -lixd60 -lrod60 -lror60 -lros60 -lrod60 -lror60
-lros60 -lrod60 -luat
60 -lutc60 -lutl60 -lutsl60 -lplsf -lplsb -lextp
/erpbkp/oracle/tstora/8.0.6/lib/libpsd.a -lplsf -lplsb -lextp
/erpbkp/oracle/tstora/8.0.6/lib//libslax.a -lsql
/erpbkp/oracle/tstora/8.0.6/lib/nautab.o
/erpbkp/oracle/tstora/8.0.6/lib/naeet.o
/erpbkp/oracle/tstora/8.0.6/lib/naect.o
/erpbkp/oracle/tstora/8.0.6/lib/naedhs.o `cat
/erpbkp/oracle/tstora/8.0.6/lib/naldflgs` -lnetv2 -lnttcp -lnetwork -lncr
-lnetv2 -lnttcp -lnetwork -lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3
-lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork -lncr -lnetv2
-lnttcp -lnetwork -lclient -lvsn -lcommon -lgeneric -lepc -lnlsrtl3 -lcore4
-lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3
-lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lld -lm `cat
/erpbkp/oracle/tstora/8.0.6/lib/sysliblist` -lm
/erpbkp/oracle/tstora/8.0.6/rdbms/lib/kpudfo.o -lpthreads
-L/erpbkp/oracle/tstora/8.0.6/network/jre11/lib/aix/native_threads -ljava
-L/usr/lpp/X11/lib/R5 -lXm -lXt -lX11 -lm -lix60 -lixd60 -lX11 -lnlsrtl3
ld: 0706-010 The binder was killed by a signal: Killed
Check for binder messages or use local problem reporting procedures.
make: The error code from the last command is 254.
Stop.
Done with link of fnd executable 'ar60desb' on Wed Apr 29 10:52:39 PAKDT 2009
Relink of module "ar60desb" failed.
See error messages above (also recorded in log file) for possible
reasons for the failure. Also, please check that the Unix userid
running adrelink has read, write, and execute permissions
on the directory /erpbkp/oracle/tstappl/fnd/11.5.0/bin,
and that there is sufficient space remaining on the disk partition
containing your Oracle Applications installation.
Also, relinking modules ar60run, ar60runb, f60webmx, GLAMAS, GLAVAL, GLBAAC, GLBAAR, GLIDEL, GLIGEN, GLIXFR, GLLDEL, GLLEZL fails
Please suggest
Regards,
SKHi Hussein,
i was able to get rid of the relink error, as mentioned above
0706-010 Binder killed by signal Signal, was running out of some memory while linking object files...
continued with adpatch but facing
Failed: file FNDLOADSO on worker 1
worker log file entry:
Start time for file is: Wed Apr 29 2009 21:35:25
/erpbkp/oracle/tstappl/fnd/11.5.0/bin/FNDLOADSO &ui_apps UPLOAD &fullpath_fnd_patch/115/import_fndobjt.lct &fullpath_imc_patch/115/import/US_imc115ts.ldt
Uploading from the data file /erpbkp/oracle/tstappl/imc/11.5.0/patch/115/import/US/imc115ts.ldt
Altering database NLS_LANGUAGE environment to AMERICAN
Dumping from LCT/LDT files (/erpbkp/oracle/tstappl/fnd/11.5.0/patch/115/import/fndobjt.lct(115.5), /erpbkp/oracle/tstappl/imc/11.5.0/patch/115/import/US/imc115ts.ldt) to staging tables
Dumping LCT file /erpbkp/oracle/tstappl/fnd/11.5.0/patch/115/import/fndobjt.lct(115.5) into FND_SEED_STAGE_CONFIG
A database error occurred:
ORA-25153: Temporary Tablespace is Empty
The error occurred while executing the following statement:
INSERT INTO FND_SEED_STAGE_CONFIG (LCT_FILE, CONFIG_ID, ENTITY_NAME, STMT_TYPE, UPLOAD_STMT,GET_WHO_STMT, BIND_VAR_CNT, PK_VAR_CNT, ENTITY_METADATA, PROC_ID ,BIND_VAR0 ,BIND_VAR1 ,BIND_VAR2 ,BIND_VAR3 ,BIND_VAR4 ,BIND_VAR5 ,BIND_VAR6 ,BIND_VAR7 ,BIND_VAR8 ,BIND_VAR9 ,BIND_VAR10 ,BIND_VAR11 ,BIND_VAR12) VALUES( :lct_file, FND_SEED_STAGE_CONFIG_S.NextVal, :entity_name, :stmt_type, :upload_stmt, :get_who_stmt, :bind_var_cnt, :pk_var_cnt, :entity_metadata, :proc_id ,:bind_var0 ,:bind_var1 ,:bind_var2 ,:bind_var3 ,:bind_var4 ,:bind_var5 ,:bind_var6 ,:bind_var7 ,:bind_var8 ,:bind_var9 ,:bind_var10 ,:bind_var11 ,:bind_var12) RETURNING CONFIG_ID INTO :config_id
AD Worker error:
The above program failed with error code 1.
See the AD Worker log file and/or the program log file for details.
Time when worker failed: Wed Apr 29 2009 21:35:25
Evaluating symbolic arguments ....
Done evaluating symbolic arguments.
Could you please suggest?
Regards,
Krishnaraj
Maybe you are looking for
-
How can I include documents in already existed one?
Hi all, I do not mean etc. <include file="" .. Let's say you have a file called index.html. In this file you have a form with two fields cusName and custID. After I submit this page I need to have a page with the name of the ealier one which was. It
-
Merged pdf with "extend features in adobe reader" rights
Hi all, I would like to merge a pdf file into my basic pdf form with "extend features in adobe reader" rights but I would like to keep my basic form without those rights. My problem is that when I try to open my basic form and link to my merged attac
-
Delimiting HR assignments through PPSM for a set of employees
Dear All, Can any one guide me how to delimit the set of employees assigned for a WBS. Thanks in advance Regards Karunakaran
-
IPod nano touch only no longer works on dock
I have a iPod nano touch 6 th generation that no longer charges and/or plays on my Logitech S751i dock. My first generation iPod nano plays on this dock without any problem. Any solution? Suggestion? Thanks in advance...
-
Latest version of itunes advice
After installing the latest version of itunes i now cant work out how to add a cd's artwork manually if the artt work is not found after using the "Get Artwork" function, any help on how this is done would be greatly appreciated many thanks