Run Report with Pass Number and Varchar Lexical Parameter values
Dear Sir/Madam
Due to an urgent change required to a report I would most appreciate it if you can please advise me if it is possible to get this report working by either passing in multiple lexical parameters or one signle lexical parameter when calling the SRW.RUN_REPORT command with the following methods:
Firstly: When calling report with a run_no and spr_cd passed in through one lexical:
cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
CP_L_PARAM=RUN_NO=TO_NUMBER(28) AND SPR_CD=SUPP1
Both with a TO_NUMBER and without, whereby I attempt to do a SUBSTR within the query of the called report to derive the RUN_NO Oracle Reports fails to accept the SUBSTR.
Secondly: I am now trying to call the with passing two lexical parameters into the report as follows:
cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
CP_L_RUN_NO=||TO_CHAR(lv_run_no)|| CP_L_SPR_CD=||lv_spr_cd;
NOTE: The above is an output of the actual command line and not what is passed into the command line, thus the quotes are missing. Please also note that the report is running fine with the only a hard coded RUN_NO value PASSED without the SPR_CD.
Unfortunately this is also causing issues as the RUN_NO is a number and as you know you can only pass in strings.
Your urgent help is required on this matter please as our client is expecting a solution this afternoon.
Hope to hear form you soon.
Kind regards
Andrew Mason
Dont Worry I've worked it out...
Similar Messages
-
Report with material number and planned delivery time
Is there any standard report with material number and planned delivery time ?
Hi,
I do not know any standard report. Please try SE16 + MARC...
BR
Csaba -
Asset report with vendor number and vendor desc wise
Hi Gurus
The requirement is to generate asset reports with the below fields:
Asset class, Asset number & desc, vendor number & desc
Suppose say all asset balances should be reported by vendor name and desc.
I couldn't get the right results using an existing or a custom sort version. Do not want to go with a custom report or a SAP query.
Any pointers in this regard would be helpful.
Thanks
SekharHi,
You can use table ANLA.
Populate the asset field then go to settings tab and choose fields.
Check the following fields given below:
BUKRS
ANLN1
ANLKL
LIFNR
TXT50
then execute.
hope it helps.
regards,
otep -
Standard Report with IDOC Number and PR number
Hi
My client need the Standard report with the combination fields of " Purchasing Number , Requirements tracking number in PR,
IDOC number , IDOC Processing status. "
(Our PR will generates through IDOC from other system via XI interface)Hi Nagendra,
for Purchasing Number , Requirements tracking number in PR you can use -ME5A
Purchasing Number-EBAN-BANFN
Tracking number goto- MELB.
table name-EKPO
for IDOC number , IDOC Processing status -we09
For IDOC number -EDID4-DOCNUM
IDOC Processing status-EDIDC-STATUS
Regards,
Krishna.
Edited by: kris_hna on Sep 8, 2011 1:14 PM
Edited by: kris_hna on Sep 8, 2011 1:19 PM -
Stock Report with batch number and its Charactristc values
Our material are batch managed and Char values are entered at the time of GR. We need to prepare stock report showing batches for the material, their stock and characteristics values.
Like to know what tables we should use to find the char values. I could not find value in table CAWNHi,
For characteristcis link and values use below tables:
Characteristics :
CABN Characteristics ( o.a. batch/vendor)
CABNT Characteristics description
CAWN Characteristics ( o.a. material)
CAWNT Characteristics description
AUSP Characteristic Values
Class types and objects :
TCLAO Several class types for object
TCLA Class types ( vb. lfa1 => v10 en 010)
TCLAT Class type text
TCLT Classifiable objects
TCLC Classification status
Links :
INOB Link between Internal Number and Object
KLAH Class header data
KSSK Allocation Table: Object (vb.matnr) to Class
KSML Characteristics for a class (internal number)
for batch stock 0 use tables ilken MCHB, MCHA etc,
hope this helps
Reg
Dheeraj -
Problem running report with BI Publisher and Web Service
Hello,
I actually try to run a Bi Publisher report via the Web Service.
I use the following documents:
- http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_webservice_101331.htm
- "How to integrate Oracle BI Publisher via Web Services in Oracke Forms"
Everything works fine. But when I try to copy it on local computer the file is 0 length. I use the "getReportBytes" method.
Here is the code I tried with:
String userName = “Administrator”;
String passWord = “Administrator”;
System.out.println(”calling ” + myPort.getEndpoint());
System.out.println(myPort.validateLogin(userName,passWord));
ReportRequest repReq = new ReportRequest();
ReportResponse repRes = new ReportResponse();
repReq.setAttributeFormat(”pdf”);
repReq.setAttributeLocale(”en-US”);
repReq.setAttributeTemplate(”World Sales”);
repReq.setReportAbsolutePath(”/Sales Manager/World Sales/World Sales.xdo”);
repRes = myPort.runReport(repReq,userName,passWord);
System.out.println(repRes.getReportContentType());
byte[] binaryBytes = repRes.getReportBytes();
OutputStream out = new FileOutputStream(”D:
out.pdf”);
out.write(binaryBytes);
out.close();
System.out.println(”Success for Run Report”);
Thanks in advance.Hi,
I assume that you use 10.1.3.4. If not, my hint is not relevant for you ....
There's a new parameter in the web service API to set the Chunk-Size. Unfortunaltely is the default value not so, that the behaviour is like in older releases (no chunk-size ... the whole document at once). If you set the chunk size to -1, you should get your document. So try to add
repRequest.setSizeOfDataChunkDownload(-1);
regards
Rainer -
Report with Delivery number and header text as output
Hello all,
I need to create a "quick and dirty" report that which will give me every delivery number, and the corresponding header text, in the month of July for given shipping points. I am having trouble figuring out how to get the header text for the deliveries. I have searched and searched but the solutions given just don't make sense to me.
Regards,
DavisHi,
You need to use the function module READ_TEXT to read delivery header text.
Please go to transaction SE75 and use VBBK as the OBJECT to find the specific ID which is required.
Regards,
Ferry Lianto -
Run report with prev day automatically
I have a report with passed parameters. actually i only need this reprt to run daily at 4am (we have the scheduler) but process the previous day.
I dont need a from to really, just the one day. how do i prefill this in a param for date which is a number field here.The only way you can pre-fill the prompt with 'previous day' is by writing a SQL query (that returns the last day) and adding to the report using the Add Command option and creating dynamic prompt that points to the field in this command object.
Make sure you don't join this command object with the existing tables/queries in the report.
-Abhilash -
Summary Report with 4 Dimensions and 5 Facts
Hello OBIEE Czars:
I have a problem.
I am trying to make a summary report with 4 Dimensions and 5 Facts.
Out of that only 2 Dimensions are Confirmed.
Now when I try to bring in all the facts, I get view display error.
I searched forum for similar issues.
So I have tried following so far.
1) Add other dimensions as source and set level to Total for those dims.
- After doing this, I dont get view display error, but I get blank rows for couple of facts.
2) I am already aggregating all the measures.
Please help me out.
This forum has been very helpful so far.
Thanks.
~VinayHi
This method seems fine until you run a request that includes a filter on an unconformed dimension.
The SQL itself should be quite straightforward (see below) but the BI Server instance does not seem to be joining this data correctly after posting the 2 separate queries to the database.
SELECT
x.dim1, x.dim2
x.fact1_agg_measure
y.fact2_agg_measure
FROM
SELECT
dim1, dim2
SUM(fact1.measure) fact1_agg_measure
FROM
dim1,
dim2, --UNCONFORMED+
fact1
WHERE
.... .... join fact1 to dimensions as normal
AND dim2 = 'BUSINESS_IDENTFIER'
GROUP BY
dim1, dim2
) x,
SELECT
dim1
SUM(fact2.measure) fact2_agg_measure
FROM
dim1,
fact2
WHERE
.... .... join fact2 to dimensions as normal
GROUP BY
dim1
) y
WHERE
x.dim1 = y.dim1
The result set returned in Answers is firstly a correctly aggregated record plus ALL rows from the second query above ??
Just wondering if anyone else has come across this issue?
cheers
Tony -
Problem after run report with spreadsheet
hi evry one
ther an a problem after run report with spreadsheet .
after runing iexplorar open and close fast no thing else
when i check the job from appserver job success with spreadsheet dis format.
what shall i do.
thanks.Hello,
Do you use the Oracle Forms builtin WEB.SHOW_DOCUMENT ?
If yes , take a look to : "IE7 windows opened and closed immediatly"
http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Internet_Explorer/Q_23304982.html
You can test the solution suggested :
We have found the setting that we needed, under the Internet Options
Security tab, if you select the internet zone, and click the custom level
button, then scroll down to the Downloads section, the first option is
Automatic prompting for file downloads, setting this to enable keeps IE 7
from interfering with this sort of download.
Regards
Example with screen shots :
http://www.celt.iastate.edu/webct/securitysettings.html
Regards -
Call Report with ParamForm=yes and Rep-52007
I have forms and report services 10.2.0.2 installed on my Win2003 server.
Reports runs perfectly with paramform=no but when i use paramform=yes it show html param form but pressing submit query it show The page cannot be displayed page. the same report with paramform=no and hard coding paramter runs perfectly.
This is the procedure i am using after adding hidden_action i start getting REP-52007 instead of the page cannot be displayed.....
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) :='';
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;
Edited by: Zahid Rahim on Oct 2, 2009 10:39 AMbut when i use paramform=yes it show html param form but pressing submit query it show The page cannot be displayed page
for Paramform=yes u have to enter values manually.
open the following link.
REP-52007: Parameter form format error
http://www.orafaq.com/forum/t/97088/2/
sarah -
Importing CD to Artist folder\Album folder\file with track number and name:
I have a problem then importing my cd’s to my harddisk using iTunes.
On my previous pc I got what I want, Artist folder, Album folder and file with track number and name:
e.g.
D:\My Music\B.B. King\Blues On The Bayou\01 Blues Boys Tune.mp3
D:\My Music\B.B. King\Blues On The Bayou\02 Bad Case Of Love.mp3
D:\My Music\B.B. King\Blues On The Bayou\03 I'll Survive.mp3
But now I get:
D:\My Music\Compilations\Blues On The Bayou\01 Blues Boys Tune.mp3
D:\My Music\ Compilations \02 Bad Case Of Love.mp3
D:\My Music\ Compilations \03 I'll Survive.mp3
In iTunes my settings are Edit -> Preferences -> Advanced: iTunes Music folder: D:\My Music and checkmark in both: “Keep iTunes Music folder organized” and “Copy files to iTunes Music folder when adding to library”.
My version of iTunes is 8.0.1.11
Thanks in advance
PeterIt will depend on the album. Gracenote considers anthologies, a collection of tracks by the same artist taken from different albums, as a compilation. In iTunes the compliation setting should really only be applied to a collection of tracks by different artists.
tt2 -
Report for Asset number and its Purahcse order number
Hello Friends,
Please give me details of report for Asset number and its Purchase order number .
Regards
Nilesh Vakilhi,
GO to ME2N...
use SHIFT + F4..
there check for the acc. assign cata. field and input the asset and execute..
Regards
Priyanka.P -
Project mat. proc. report with monthly breakup and cumulative for year
Hi All,
can any body suggest a report for "Project material procurement report with monthly breakup and cumulative total for a financial year "
Thanks in Advance.
Regards,Hi Ahmed,
Thank you very much for the response.
I am seeking the std sreport which can give the details for the project material consumption report with monthly breakup with the cumulative month total to year.
ex. jan 10 units , june -10 units , nov 10 units, total (year) =30
regards, -
Please help to get onhand stock report with last purchase and billed date warehouse and item wise
please help to get onhand stock report with last purchase and billed date warehouse and item wise
Hi Rajeesh Ambadi...
Try This
SELECT distinct T0.ITEMCODE , t1.ItemName, T0.ONHAND as 'Total Qty',
T1.LASTPURDAT ,t1.LastPurPrc
FROM OITW T0 INNER JOIN OITM T1 ON T0.ITEMCODE = T1.ITEMCODE
INNER JOIN OITB T2 ON T1.ITMSGRPCOD=T2.ITMSGRPCOD left join ibt1 t3 on t3.itemcode = t0.itemcode and t3.whscode = t0.whscode
WHERE
T0.ONHAND>0
AND T0.WhsCode ='[%0]'
Hope Helpful
Regards
Kennedy
Maybe you are looking for
-
Ok, so after I upgraded to ML I can no longer Boot camp...
Ok, so I just reinstalled OSX 10.8(A clean install) and now I can't boot camp, when I open up the application it says "The startup disk cannot be partitioned or restored to a single partition. The startup disk must be formatted as a single Mac OS Ext
-
ICloud phot library beta - lots of duplicates
i ran iCloud photo library beta on iPad mini and iPhone 6, both running ios 8.2, and photos app on MacBook pro and Mac mini. I ended up with my 130gb library doubling in size to 260gb and loads of duplicates. SO I exported the whole photo library to
-
How to reinstall OS X Lion Server
I'm newbie os x admin . I bought new Mac Mini 2010 with Lion Server. I want to do RAID 0 with my HDD. I make image for Recovery Partition. Then format partition and do RAID 0. I setup with Mac OS X Lion 10.7 GM build 11A511 I success to install but
-
How can I connect my I/pad 2 to Kodak hero7.1 printer?
I have been trying to connect my printer to my I/pad with no success
-
Hi, I have a scenario, ie i am supposed to send back some of the components ie customer returned defective parts ( which have been failed within the warranty period ). So i will be processing a returns PO followed by a return delivery in order to wip