Want to pass report jobid into report
Hi guys,
I call report from Form, I want to pass jobid into report. code as below
set_report_object_property(p_repid,REPORT_OTHER,'p='||v);
lv_rep := run_report_object(p_repid,plid);
lv_rep_status := report_object_status(lv_rep);
if lv_rep_status = 'FINISHED' then
lv_job_id := substr(lv_rep,length(lv_reportserver)+2,length(lv_rep));
rep_url := '/reports/rwservlet/getjobid'||lv_job_ID||'server='||lv_reportserver;
Actually , we can define user parameter using 'set_report_object_property', but the job_id is set after run_report_object(). How can i pass jobid into reports?
Thanks in advance!
Appcat
Hello,
The jobid is computed by the Reports Server when it receives the request.
The only way to pass it to the reports engine is to create your own Engine Implementation class that will extend the "default" Reports Engine Class.
An example of "custom Engine" is available in the "Oracle 9i Reports Software Development Kit" :
"PluginEngine.java" provided in the "Reports Engine" example in the "Oracle 9i Reports Software Development Kit" :
http://www.oracle.com/technology/products/reports/apis/plugEngine/index.html
Here below an example of class :
package oracle.reports.engine;
import oracle.reports.RWException;
public class EngineJobid extends oracle.reports.engine.EngineImpl
public EngineJobid() { }
* Set command line into engine to run
* @param accessKey - engine access key
* @param jobId - job id related to the command line
* @param commandLine - command line string
public void setCommandLine(String accessKey,int jobId,String commandLine) throws RWException
commandLine = commandLine + " jobid=" + jobId;
super.setCommandLine(accessKey,jobId,commandLine);
Regards
Similar Messages
-
Want to pass STRS2 field into sales order and contract.
Hi Friends.
I am creating Sales order using function module IDOC_INPUT_ORDERS and Contract using SD_SALESDOCUMENT_CREATE.
Now I want to pass STRS2(House number field into Sales Order/Contract). In IDOC I tried to pass E1EDKA1-STRS2, but its not coming into Sales order output.But SD_SALESDOCUMENT_CREATE dont have an option to pass the field value.
So in that case how can I achieve the desired functionality, Is there any user exit or let me know the suitable method to achieve the functionality.
Thanks
GowrishankarYes I tried that also.I passed the value from program to user exit MV45AFZZ and updated the structure XVBADR in USEREXIT_SAVE_DOCUMENT_PREPARE, but its not getting reflected in Sales Order/Contract.
Anyone have suggestion..plz let me know.
Thanks
Gowrishankar -
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 -
How to call a java method so I can pass a file into the method
I want to pass a file into a java method method from the main method. Can anyone give me some help as to how I pass the file into the method - do I pass the file name ? are there any special points I need to put in the methods signature etc ?
FileReader file = new FileReader("Scores");
BufferedReader infile = new BufferedReader(file);
Where am I supposed to put the above text - in the main method or the one I want to pass the file into to?
ThanksIt's a matter of personal preference really. I would encapsulate all of the file-parsing logic in a separate class that implements an interface so that if in the future you want to start taking the integers from another source, e.g. a db, you wouldn't need to drastically alter your main application code. Probably something like this, (with an assumption that the numbers are delimited by a comma and a realisation that my file-handling routine sucks):
public class MyApp{
public static void main(String[] args){
IntegerGather g = new FileIntegerGatherer();
Integer[] result = g.getIntegers(args[0]);
public interface IntegerGatherer{
public Integer[] getIntegers(String location);
import java.io.*;
public class FileIntegerGatherer implements IntegerGatherer{
public Integer[] getIntegers(String location){
FileInputStream fs=null;
try{
File f = new File(location);
fs = new FileInputStream(f);
byte[] in = new byte[1024];
StringBuffer sb = new StringBuffer();
while((fs.read(in))!=-1){
sb.append(new String(in));
StringTokenizer st = new StringTokenizer(sb.toString(),",");
Integer[] result = new Integer[st.countTokens()];
int count = 0;
while(st.hasMoreTokens()){
result[count]=Integer.valueOf(st.nextToken());
count++;
catch(IOException e){
//something sensible here
finally{
if(fs!=null){
try{
fs.close();
catch(IOException f){
return result;
Once compiled you could invoke it as java MyApp c:\myInts.txt
Sorry if there are typos in there, I don't have an ide open ;-> -
How to pass table data into below code for alv
hi
i want to pass table data into alvgrid
i dont know how to pass table data.
here instead of passing ABC into internal table
i want to pass table data .
please help me
ialv-test1 = 'ABC'.
form get_data.
ialv-test1 = 'ABC'.
ialv-test2 = 'DEF'.
append ialv.
ialv-test1 = 'GHI'.
ialv-test2 = 'JKL'.
append ialv.
ialv-test1 = '123'.
ialv-test2 = '456'.
append ialv.
endform
thanks in advanced.Have a look at below links. It gives you sample code of alv grid.
http://sap.niraj.tripod.com/id64.html
http://www.sap-img.com/abap/sample-programs-on-alv-grid.htm
Have a look at below links for SAP Help.
http://help.sap.com/saphelp_nw04/helpdata/en/8d/e994374c9cd355e10000009b38f8cf/content.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/12/904f42d5f811d2b469006094192fe3/content.htm
Best Regards,
Vibha
*Please mark all the helpful answers -
FROM - TO Dates passed from prompt into the Title of the WEBi report
What is the right approach to pass two reporting period dates (FROM /TO) from user's input into the Title(Header) of the Universe based WEBi report, like "Tickets submitted from:MM-DD-YY to:MM-DD-YY"
Maybe this is trivial but it is easier to do in CR and I am not sure how to do it using Universe objects.
These are my first steps in building real production Universe.
Thanks in advance!
Alexi dunn know if i understand you well, but it seems like you want to pass 2 dates (from, to) to some report and to have those 2 dates in the report title.
its too easy, first at the universe level you have to have a Date objects, which comes in the time dimension.
when you create a report usin Webi, just drag this Objects to the query filter and make the operator "between" and make both of them "prompt"
give two texts to the prompts lets say "From Date" and "To Date",,,, and run the report.
at the report design mode there is a function called "UserResponse"
in the report title text add this =userresponse("From Date")
you can modify the text as you require.
good luck
Amr -
Dont want to display "Report Successfully Run" applet
Dear Users....I Dont want to display "Report Successfully Run" applet after my report runs successfully. I'm calling report from Forms-10g Rel.2 and my browser is Internet Explorer ver.6. I'm sending my report directly to printer using Web.Show_Document.If my report is sent to printer successfully there is no need to display browser window with the above mentioned message. Is there any solution for this???
Code in when-button-pressed
DECLARE
V_Usr_Prm Varchar2 (1000);
BEGIN
V_Usr_Prm :=
'FROM_REF_NO='
|| P_FRM_REF_NO
|| '+TO_REF_NO='
|| P_FRM_REF_NO
|| '+P_PRE_BY='
|| P_PRE_BYE
|| '+P_VR_TYPE='
|| P_VOR_TYP
|| '+YEAR1='
|| P_VOR_YER
|| '+MNU_IDE=0'
|| '+P_PRN_FLG=1';
web_show_document_proc ('HTMLCSS', 'Y:\02\\02\VOR_PRN.REP', V_USR_PRM);
END;
Procedure Web_Show_Document_Proc is
PROCEDURE WEB_SHOW_DOCUMENT_PROC (runformat varchar2,
reportname varchar2,
userparameters vARCHAR2)
IS
i NUMBER (10);
v_a VARCHAR2 (10);
v_b VARCHAR2 (10);
vc_url VARCHAR2 (1000);
vc_url_temp VARCHAR2 (1000);
vc_user_name VARCHAR2 (30) := GET_APPLICATION_PROPERTY (username);
vc_user_pw VARCHAR2 (30) := GET_APPLICATION_PROPERTY (password);
vc_user_connect VARCHAR2 (30)
:= GET_APPLICATION_PROPERTY (connect_string) ;
BEGIN
vc_url :=
'userid='
|| vc_user_name
|| '/'
|| vc_user_pw
|| '@'
|| vc_user_connect;
FOR i IN 1 .. LENGTH (vc_url)
LOOP
v_a := LTRIM (TO_CHAR (TRUNC (ASCII (SUBSTR (vc_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 (vc_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;
vc_url_temp := vc_url_temp || '%' || v_a || v_b;
END LOOP;
vc_url :=
'/reports/rwservlet?server=rep_appsrv_frhome1+'
|| vc_url_temp
|| '+report='
|| reportname
|| '+destype=Printer+desformat='
|| runformat
|| '+paramform=No+'
|| userparameters;
WEB.SHOW_DOCUMENT (vc_url, '_blank');
END; -
Dont want to display "Report Successfully Run"
Dear Users....I Dont want to display "Report Successfully Run" applet after my report runs successfully. I'm calling report from Forms-10g Rel.2 and my browser is Internet Explorer ver.6. I'm sending my report directly to printer using Web.Show_Document.If my report is sent to printer successfully there is no need to display browser window with the above mentioned message. Is there any solution for this???
Code in when-button-pressed
DECLARE
V_Usr_Prm Varchar2 (1000);
BEGIN
V_Usr_Prm :=
'FROM_REF_NO='
|| P_FRM_REF_NO
|| '+TO_REF_NO='
|| P_FRM_REF_NO
|| '+P_PRE_BY='
|| P_PRE_BYE
|| '+P_VR_TYPE='
|| P_VOR_TYP
|| '+YEAR1='
|| P_VOR_YER
|| '+MNU_IDE=0'
|| '+P_PRN_FLG=1';
web_show_document_proc ('HTMLCSS', 'Y:\02\\02\VOR_PRN.REP', V_USR_PRM);
END;
Procedure Web_Show_Document_Proc is
PROCEDURE WEB_SHOW_DOCUMENT_PROC (runformat varchar2,
reportname varchar2,
userparameters vARCHAR2)
IS
i NUMBER (10);
v_a VARCHAR2 (10);
v_b VARCHAR2 (10);
vc_url VARCHAR2 (1000);
vc_url_temp VARCHAR2 (1000);
vc_user_name VARCHAR2 (30) := GET_APPLICATION_PROPERTY (username);
vc_user_pw VARCHAR2 (30) := GET_APPLICATION_PROPERTY (password);
vc_user_connect VARCHAR2 (30)
:= GET_APPLICATION_PROPERTY (connect_string) ;
BEGIN
vc_url :=
'userid='
|| vc_user_name
|| '/'
|| vc_user_pw
|| '@'
|| vc_user_connect;
FOR i IN 1 .. LENGTH (vc_url)
LOOP
v_a := LTRIM (TO_CHAR (TRUNC (ASCII (SUBSTR (vc_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 (vc_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;
vc_url_temp := vc_url_temp || '%' || v_a || v_b;
END LOOP;
vc_url :=
'/reports/rwservlet?server=rep_appsrv_frhome1+'
|| vc_url_temp
|| '+report='
|| reportname
|| '+destype=Printer+desformat='
|| runformat
|| '+paramform=No+'
|| userparameters;
WEB.SHOW_DOCUMENT (vc_url, '_blank');
END; -
How can I want run the reports on AD, if I have no access to AD server?
I am not an AD administrator and I do not have permissions to AD server. But I have admin permissions to a site in AD and using RSAT, can administer the site. How can I want run the reports listed below? AD is on Windows 2008R2 server.
All Administrator logons
Logon statistics
Logons during non-business hours
Multiple logon failures
Password resets (other than Security Administrator)
Successful logon after several failures
User behavior anomalies
Logons of already logged-on users
All Logons Over Weekend
Audit Policy Changed
Computer Accounts ChangedHello,
Some of your reports can be done using RSAT with Active Directory Powershell module. Some of them including
Computer Accounts Changed needs auditing to be enabled for directory object changes. These are not predefined reports which you can simply run my friend. Can you please be more specific?
Mahdi Tehrani |
|
www.mahditehrani.ir
Please click on Propose As Answer or to mark this post as
and helpful for other people.
This posting is provided AS-IS with no warranties, and confers no rights.
How to query members of 'Local Administrators' group in all computers? -
I want to create report on Sybase which provider I should use.
I want to create report on Sybase which is good provider that I should use. I don't want to use the DSN.
CR no longer has a native Sybase driver. Your only option is to u se ODBC or possibly a JDBC driver if they have one or their client supports one. Look on Sybases site for options.
-
I want to run report from FORM
I want to run report from FORM. The report will save in PDF format then OPEN automatically in PDF
Every PDF file should have a unique file name.
I am using Form 6i and Reports 6iDECLARE
vParamList PARAMLIST;
BEGIN
vParamList:=GET_PARAMETER_LIST('MyRep');
IF NOT ID_NULL(vParamList) THEN
DESTROY_PARAMETER_LIST(vParamList);
END IF;
vParamList:=CREATE_PARAMETER_LIST('MyRep');
SET_REPORT_OBJECT_PROPERTY('report_path\emp_rep_def',REPORT_DESFORMAT,'PDF');
RUN_PRODUCT(REPORTS,'report_path\emp_rep_def',ASYNCHRONOUS,RUNTIME,FILESYSTEM,vParamList,NULL);
END; -
I Want to create report that do
Hello All
I want to make sql statment to dispaly months from jan and up to special (varible) month ,main reson is that i have table for empployees salaries every month and i want to make report to display employees salaries from start of year till to special
month supose my system installed in may 2005 i want report to display jan,feb.mar,april with value of zero
tank uCreate a table with months, and use an outer join to this table to retrieve records even if there are no salary data.
Look here:
Re: Empty records -
Dear All,
I can't post in fiscal year 2010. So, I posted data in fiscal year 2008. But when I run reports, system have error message :"Message no. MQ593: Current fiscal year 2008 in company code 1000 does not match present year"
How do I do? if I want to see reports.Help me.
Thanks
Tora
SEARCHIts funny how you can keep asking basic questions, even after your previous threads are locked.
Please read and respect forum rules. -
Please help apps. Crashing on 64 gb 4 gen touch. Run 5.0.1 I know the temp fix of logging in but want to fix report shows "low mmemory crash" which is not true
Why do you say "not true"? The 4G iPod only has 256 MB of memory and out of memoty errors are not uncommon with iOS 5.
memory is different that the 8, 32 ir 64 GB or storage on the 4G iPods.
To resolve double click the Home button and delete the apps from the mulitasking dock that you are not using and the power off and back on the iPod. You have to do that periodically. -
hi ,
i want to FI reports so pls send ASAP .
THANKSHi Arun,
Thanks a lot for answering me on time. But I need some more information from you,i want to do report on FAGL_FC_VAL what we get in r/3 to BI and do some manipulation in that. First i need to know which data target will be suitable for this. whether standard is available or customisation.
thanks a lot
Good day
regards
Arun
Maybe you are looking for
-
My macbook Air storage says that it has 57 GB of "other" i was wondering what it was and how to get rid of it.
-
I download the app from the app store and it wont show it loading onto the screen.When it says its fully downloaded (watching from the app store) it still doesnt show onto the screen. From the app store I try to open it, but it wont open. Any help?
-
Hi, I create a new database a few weeks back (11.1.0.7 on AIX 6.1). Now i planned to upgrade it to 11.2.0.1 but it is showing me that APEX component is invalid. Can anyone guide me how to make it valid again? Comp ID Component
-
SAP posting to GR/IR account when RSO is posted for MIGO.
Hi all, Whenever a PO is created without a material master but with a material group, the SAP is posting to SR/IR account instead of GR/IR account. ie the PO is behaving as if it is a service PO. Please suggest. Thanks, Muneer.
-
Mira and Manta TR1 USB Receiver for Mac Pro question
Hi, I would like to buy the Mira software and Manta TR1 USB Receiver for my Mac Pro. Can the Mira and Manta TR1 USB Receiver slow down my computer? thanks