Problem with Output parameter in HR function
Hi,
I have a function "Z" done with tx PE04, the country it's venezuela, and i define the IT table as entry and output parameter.
When i run the payroll, ithe changes that i did by abap code in order to change one concept of the IT table doesn't appears in the log. I do this in others versions of sap and works... I working with SAP ECC 6.0.
Thanks,
Albio.-
Hi,
This function it's not of the transaction se37, it was created using the transaction pe04, there are two types of parameters entry and output for the payrolls' log.
I have created several functions with pe04, and never this happened.
Thanks in advance.
Albio.-
Similar Messages
-
Problems with output using html2fo function
Hello,
I have a problem with output when using html2fo function.
My sample xml:
<?xml version="1.0" encoding="UTF-8"?>
<RTECODE>
<![CDATA[
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
]]>
</RTECODE>
Can anybody explain why the rtf template output is different in pdf, rtf, excel ? It looks ok only in pdf.
Thanks in advance.Check these
http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rtf_tmpl.htm#CHDCEEIJ
https://blogs.oracle.com/xmlpublisher/entry/html_in_xml_support
If helps mark
Edited by: Srini VEERAVALLI on Feb 25, 2013 10:04 AM -
Chart - problem with realize one of the function under CR XI
Post Author: mrowa
CA Forum: Charts and Graphs
Hello,
I have
problem with realize one of the function under CR XI. I would be persuade if
any of us would like to help me.
1)
1) From
database (basically from one table), I take data to make report. Each of record
have appropriate fields:
dteData
intYear
intMonth
intDate
2)
2) I
want to realized comparison data from two or more periods of time on one chart
and in one table. For easily explanation I will describe problem on two
periods.For instance, user want to display and compare
on chart date (type monthly -sum data of each month) from 2007.02 u2013 2007.05
with date from 2006.03 u2013 2006.06. So we compare month 2007.02 with 2006.03;
2007.03 with 2006.04; 2007.04 with 2006.05; 2007.05 with 2006.06
On char I would like to display bars with comparison
of months.
Problem is that I donu2019t know how to write
something similar. I can use one period without any problems, but two and mores
I canu2019t realized.
Detail description:
I passed
two parameters two report:
{?from}, {?to} u2013for first period
{?offset}, it means {?from}+{?offset},
{?to}+{?offset} - for second period
On axis Y I have Sum(intDate);On
X (year + month). But on each value x( example 20007.02) I need to have
two values (bars). Value for standard period and offset.
For example for x=2007.02, I need
two bars one equal 2007.02 and second with offset u2013 2006.03
Movement to next value (bar) is
persuade by fields {data.rok}&{data.month} first or second period. This is
combination of two elements year&month defined under Formula. Problem
persist in that both period has different year.month and here problem starts once
again. I donu2019t know how to solve it. I have found out one solution but it
limits user only for two periods (I want to compare more).
My idea for compare only two
periods:
I make one query in CR for one
period and second query for second period.
Firs query:
"SELECT
year ,
month
Second query
"SELECT
year + FLOOR({month + offset} % 13),
{month + offset} % 13
Then in CR I connect two periods and
make u201Ctableu201D (results of queries) with JOIN on fields year and month.
This solution is not functional,
because I need to make reports for days and hours as well. In this solution I
canu2019t use (%31), because not all months has 31 days.
I use CR in WEB app made in Visual
Studio 2005. Maybe from aspx we can manipulate with date to get exact solution,
and solve problem with SELECT.
Hope my description clearly
describe problem and someone will be able to help me. I would be thankful.I have had similar problem before.
Because I had too many data, the legend would not display all the data. Also the chart would not display all the data. But I was able to find a work around.
In your case, Right click on the Legend text and click on Format Legend Entry.
Change the font of the legend to 4 (which is the minimum). This may work.
If you are also having problem with data labels, you could change the font size of the data labels.
Hope this helps.
Thank you. -
Problem with output string to command
hey i have no idea why this aint working
its a simple output string to command.
what it is supposed to do is make a new directory given by the input string
e.g. mkdir /home/luke/dep
thanks for the help
//methods input save files
saveFile = JOptionPane.showInputDialog("Save Files To : ");
//method command for saving files
//Stream to write file
FileOutputStream fout;
try { Process myProcess = Runtime.getRuntime().exec("mkdir" + saveFile );
InputStreamReader myIStreamReader = new InputStreamReader(myProcess.getInputStream());
fout = new FileOutputStream ("file.txt");
while ((ch = myIStreamReader.read()) != -1) { new PrintStream(fout).print((char)ch); } }
catch (IOException anIOException) { System.out.println(anIOException); }What you fail to understand is that "aint working" and "Problem with output string to command" tells us absolutely squat about what your problem is. This is the same as saying to the doctor "I'm sick" and expecting him to cure you. As mentioned by Enceph you need to provide details. Do you get error messages? If so post the entire error and indicate the line of code it occurs on. Do you get incorrect output? Then post what output you get, what output you expect. The more effort you put into your question the more effort others will put in their replies. So until you can manage to execute a little common sense then the only responses you will get will be flames. Now is your tiny little brain able to comprehend that?
-
After upgraded ios6 i got problem with whatapp. "last seen" function is not working
HI eveyone
after upgraded ios6 i got problem with whatapp. "last seen" function is not working .. it's doest show last seen who enter the chat . is anyone have the same problem .. i even restore and reinstall to my ph but it's not work .. if someone know how to fix it, plz tell me how to do .. thanksAlso, when I check this post several times a day, I always see warning 'Connection is untrust'. If I close browser and reopen immediately everything is ok.
-
Problem with the MVMapView.print(printMapDiv,) function.
Hello,
I have a problem with the MVMapView.print(printMapDiv,) function.
My FOIs are displayed correct on the screen but on the printed letter
the stroke(border) color and the labels of a circle are not displayed.
the fois have a custom style:
var xmlDef = '<svg width="1in" height="1in">'+
'<g class="marker" '+
'style="width:40;height:40;stroke:0xff0000;fill:0x00ff00;stroke-width:1.5">'+
'<circle r="20"/>'+
'</g>'+
'</svg>';
markerStyle = new MVXMLStyle("my_vector_icon_" + i + '_' + j, xmlDef)
and are created like this:
v_result = new MVFOI(p_geofeature.foiId, p_geofeature.foiGeomertyObject, markerStyle, null, 30, 30);
v_result.setHTMLElement('1',0,0);
Browser: I can see the map with a green circle, a red border and '1' as a label on
top of the Circle.
Printed Letter: I see the map with the green circle but no red border Color and no label.
The implmentation of the printing function uses the same techique like the "Oracle Maps Tutorial"
It is a javascript function called through a href link:
function mapPrint()
var a=document.getElementById("printmap");
global_gdi.mapviewer.mapview.print(a);
Version is Ver11_1_1_5_B110527
Does anbody know how to print the map properly including the contents of the
MVFOI class set trough setHTMLElement function?
Greetings
AndreThanks for your reply but it is not working and i can prove that.
I have a small example based on the mapviewer print tutorial. To run it you need a
mapviewer installation and copy the text into a html file. In the browser you can see
a green point with a red border and red label text on a map.
If you use the print button everything except the label text will be printed.
I think this is a mapviewer css-api bug.
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
@media screen
.noscreen {display: none;}
@media print
.noprint{display: none;}
</style>
<script language="Javascript" src="/mapviewer/fsmc/jslib/oraclemaps.js"></script>
<script language=javascript>
var mapview;
var baseURL = "http://"+document.location.host+"/mapviewer";
function showMap()
mapview = new MVMapView(document.getElementById("map"), baseURL);
mapview.addMapTileLayer(new MVMapTileLayer("mvdemo.demo_map"));
mapview.setCenter(MVSdoGeometry.createPoint(-122.45, 37.6706,8307));
mapview.setZoomLevel(4);
mapview.display();
//adds custom foi with label
var xmlDef = '<svg width="1in" height="1in">'+
'<g class="marker" '+
'style="width:40;height:40;font-family:sans-serif;font-size:20pt;stroke:0xff0000;fill:0x00ff00;stroke-width:1.5">'+
'<circle r="20"/>'+
'</g>'+
'</svg>';
var markerStyle = new MVXMLStyle("my_vector_icon_", xmlDef);
mpoint = MVSdoGeometry.createPoint(-122.30, 37.73,8307);
var v_result = new MVFOI("11", mpoint, markerStyle, null, 60, 60);
v_result.setHTMLElement('test label',0,0);
mapview.addFOI(v_result);
function mapPrint()
var a=document.getElementById("printmap");
mapview.print(a);
</script>
</head>
<body onload=javascript:showMap()>
<div id="map" style="position:absolute;top:50px; left:10px; width:600px; height:450px;border:0px"></div>
<div id="printmap" class="noscreen"></div>
<p>Please click <a href="javascript:mapPrint()">here</a> to print map</p>
</body>
</html>
Edited by: user12005064 on 27.02.2012 02:37 -
I am having problems with copy and then paste function
Within the past month, I noticed that I am having a problem with my copy and paste function on my IMAC. I have an intel based IMAC with the Mac OS 10.5.8 running. Is there anyone experiencing this problem? Any assistance, recommendations?
Then try a SMC reset:
Resetting the SMC (System Management Controller) on Intel-based Macs:
http://support.apple.com/kb/ht3964 and
http://support.apple.com/kb/HT1237?viewlocale=en_US
Resetting your Mac's PRAM and NVRAM:
http://support.apple.com/kb/ht1379 -
Hi
I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time.
I am using MS Visual Studio 2008 (BIDS) and our SQL Server is Windows Server 2008 R2
I need to allow the users of the report to choose a start date and an end date
The Start Dates are held in a field called PhaseStartDate
The End Dates are held in a field called PhaseEndDates
I have tried multiple ways to try to get this to work with no success and with the latest attempt I get the message
"An error occurred during local report processing. The definition of the report 'JKVoidLoss' is invalid. The report parameter 'StartDate' has a default value or ValidValue that depends on the report parameter"Startdate". Forward dependancies
are not valid"
I will explain how I set up the Startdate. The EndDate is set up the same with the relevant values and fields.
I created a new data source called StartDate. Under QUERY I have Select PhaseStartDate from QLHRA_VoidPhases. This runs okay when tested in Query designer and RUN.
Under FIELDS I have Field name as PhaseStartDate and Field Source as PhaseStartdate
Under PARAMETERS I have Parameter Name as PhaseStartDate and Parameter Value as [@StartDate]
I set up a Parameter called StartDate with Data type as Date/Time
Under Available Values I selected Get values from a query with Dataset being StartDate, Value field being PhaseStartdate and Label field being PhaseStartDate
There are no Default Values
I have tried moving the parameters up and down using the blue arrows under report data. I have tried multiple different methods to resolve this by changing values in the Properties screens.
I also tried removing the DataSets and just using the Parameters with default settings. in preview, this ran the report but no matter what dates where entered the output was always the same.
Any assistance will be greatly appreciated as I have spent hours on this so far
Regards
JohnHi
I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time.
I am using MS Visual Studio 2008 (BIDS) and our SQL Server is Windows Server 2008 R2
I need to allow the users of the report to choose a start date and an end date
The Start Dates are held in a field called PhaseStartDate
The End Dates are held in a field called PhaseEndDates
I have tried multiple ways to try to get this to work with no success and with the latest attempt I get the message
"An error occurred during local report processing. The definition of the report 'JKVoidLoss' is invalid. The report parameter 'StartDate' has a default value or ValidValue that depends on the report parameter"Startdate". Forward dependancies are not valid"
I will explain how I set up the Startdate. The EndDate is set up the same with the relevant values and fields.
I created a new data source called StartDate. Under QUERY I have Select PhaseStartDate from QLHRA_VoidPhases. This runs okay when tested in Query designer and RUN.
Under FIELDS I have Field name as PhaseStartDate and Field Source as PhaseStartdate
Under PARAMETERS I have Parameter Name as PhaseStartDate and Parameter Value as [@StartDate]
I set up a Parameter called StartDate with Data type as Date/Time
Under Available Values I selected Get values from a query with Dataset being StartDate, Value field being PhaseStartdate and Label field being PhaseStartDate
There are no Default Values
I have tried moving the parameters up and down using the blue arrows under report data. I have tried multiple different methods to resolve this by changing values in the Properties screens.
I also tried removing the DataSets and just using the Parameters with default settings. in preview, this ran the report but no matter what dates where entered the output was always the same.
Any assistance will be greatly appreciated as I have spent hours on this so far
Regards
John
As I understand what you need to do is to just remove parameter from the dataset query for populating the date values and then it should work fine
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to turn a stored procedure with a parameter into table function?
Could someone please let me know how to turn the SP below into table-value function? I want to be able to run this function by using SELECT statements with the parameter. Thanks
CREATE
PROCEDURE
[dbo].[Transformation](@year
varchar(4))
AS
BEGIN
Declare@Q1
Varchar(100)=
'['+@year+'Q1'+']'
Declare@Q2
Varchar(100)=
'['+@year+'Q2'+']'
Declare@Q3
Varchar(100)=
'['+@year+'Q3'+']'
Declare@Q4
Varchar(100)=
'['+@year+'Q4'+']'
Declare@StrQuery
Varchar(1000)
Set@StrQuery
= 'Select Date, Job, [Cost Elements],Units,
'+@Q1+'+'+'+'+@Q2+'+'+'+'+@Q3+'+'+'+'+@Q4+'
as [Amounts], ''Update'' as [Description] From Export with (nolock)'
--Print @StrQuery
Exec(@StrQuery)
ENDYou cannot use dynamic SQL in user-defined functions.
Work around (not an ideal solution, it has problems): OPENQUERY.
Blog: http://www.sqlusa.com/bestpractices2005/selectfromsproc/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Dunning as PDF - Problem with output
Hi experts,
I have a problem with the dunning as email.
Everything works fine here with the dífferent threads (BTE 1040) - but the output is not in PDF-format. When I look at SOST, the attachment ist in *.EXT format...
Does anybody know what's the problem?
Thanks
Michael
Additional information: The file is an .pdf file - when I save it as .pdf, I can open it normally...Hi,
In transaction SCOT, check the format for Sapscript/Smartforms. Double click on the node for email. e.g .SMTP. In the pop-up window there is a section for supported address types. Beside 'Internet', click on the button SET. In here select PDF as the output format for Sapscript/Smartforms and for ABAP lists.
Also in SCOT, check Setttings -> Device types for Format Conversion, ensure that PDF is the target format.
Regards,
Aidan -
Problem with output from report to excel, calling the report from form 10g
Hi everyone, I'm having a problem generating a excel from a report, which is called from a form, I'm using Forms 10g. The problem is this: My report has a variable number of columns. These columns appear according to data obtained from the database, these columns are dates, In vesion 6 excel file generated shows the columns one after another starting in column A1 to column CP. I mean that the dates are correlative. But in version 10g the excel file generated shows the same report starting in column A to column T, only shows the 20 dates correlative corresponding to this columns, the rest of the dates are down the excel sheet in groups of 20 dates, it's something, the file in 6i grows across and in 10g grows down the excel sheet. The report (rdf file) is the same in 6i and 10g, I compiled the 6i version to obtain the 10g version. The excel sheet generated in 10g looks like the report was in pdf format, because PDF format, cuts the report in pages and the file grows down, if I generate the report in PDF format it has the same structure excel file in 10g has. I hope yo can help because I have days trying to solve this but I have no succes. If someone could help I could email the excel files generated in two versions. Here I put the code I use to generate the files in 6i and 10g. I have tried with DESFORMAT=SPREADSHEET in 10g but the result is the same. Thanks for your help. Greetings for all.
Code for version 6i (Works Very well)
PROCEDURE GUARDAREXCEL IS
pl_id ParamList;
nom_rep varchar2(20);
cla_rep varchar2(20);
cod_dis varchar2(4);
nom_arch varchar2(100);
fec date;
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');
IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
cod_dis := :BK_PARAMETROS.LI_COD_DIS;
END IF;
IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
ELSE
Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
:BK_PARAMETROS.TI_COD_CLI:='%';
END IF;
IF :BK_PARAMETROS.CLAS_REP=1 THEN
cla_rep := '001';
ELSE
IF :BK_PARAMETROS.CLAS_REP=2 THEN
cla_rep := '002';
ELSE
IF :BK_PARAMETROS.CLAS_REP=3 THEN
cla_rep := '003';
ELSE
cla_rep := '004';
END IF;
END IF;
END IF;
Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );
select sysdate into fec from dual;
IF :BK_PARAMETROS.TIPO_REP=1 THEN
BEGIN
nom_rep := 'tdvenrli1577.rep';
nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
END;
ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
BEGIN
nom_rep := 'tdvenrli1578.rep';
nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
END;
ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
BEGIN
Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');
nom_rep := 'tdvenrli1576.rep';
nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
END;
ELSE
BEGIN
nom_rep := 'TDVENRLI1545.REP';
nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
END;
END IF;
--Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
standard.commit;
Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
EXCEPTION WHEN Run_Product_Failure THEN
message('Error');
END;
Code for version 10g
PROCEDURE GUARDAREXCEL IS
pl_id ParamList;
nom_rep varchar2(20);
cla_rep varchar2(20);
cod_dis varchar2(4);
nom_arch varchar2(100);
fec date;
--byt12122007.sn
repid REPORT_OBJECT;
vURL VARCHAR2(500);
rep_status VARCHAR2(20);
vJobID VARCHAR2(100);
v_rep VARCHAR2(100);
VAR NUMBER;
w_name_repserv VARCHAR2(30);
--byt1212007.en
BEGIN
--w_name_repserv:=F_OBTIENE_SERVREP;
w_name_repserv:='repserv';
pl_id := Get_Parameter_List('mytmp_params');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('mytmp_params');
IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
cod_dis := :BK_PARAMETROS.LI_COD_DIS;
END IF;
IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
ELSE
Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
:BK_PARAMETROS.TI_COD_CLI:='%';
END IF;
IF :BK_PARAMETROS.CLAS_REP=1 THEN
cla_rep := '001';
ELSE
IF :BK_PARAMETROS.CLAS_REP=2 THEN
cla_rep := '002';
ELSE
IF :BK_PARAMETROS.CLAS_REP=3 THEN
cla_rep := '003';
ELSE
cla_rep := '004';
END IF;
END IF;
END IF;
Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
/*Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );*/
select sysdate into fec from dual;
IF :BK_PARAMETROS.TIPO_REP=1 THEN
BEGIN
repid := find_report_object('tdvenrli1577');
--nom_rep := 'tdvenrli1577.rep';
nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1577');
END;
ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
BEGIN
repid := find_report_object('tdvenrli1578');
--nom_rep := 'tdvenrli1578.rep';
nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1578');
END;
ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
BEGIN
repid := find_report_object('tdvenrli1576');
Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');
--nom_rep := 'tdvenrli1576.rep';
nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1576');
END;
ELSE
BEGIN
repid := find_report_object('tdvenrli1545');
--nom_rep := 'TDVENRLI1545.REP';
nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1545');
END;
END IF;
--Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
--Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
standard.commit;
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESNAME,nom_arch);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, 'File');
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'DELIMITED');
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, w_name_repserv);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_OTHER, 'paramform=no');
v_rep := RUN_REPORT_OBJECT(repid, pl_id);
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
vJobID := SUBSTR(v_rep, INSTR(v_rep, '_', -1)+1);
vURL:='/reports/rwservlet/getjobid'||vJobID||'?'||'server='||w_name_repserv;
END IF;
WEB.SHOW_DOCUMENT(vURL, '_blank');
IF NOT form_success THEN
MESSAGE('Error: PL/SQL held against Button failed to execute');
RAISE FORM_TRIGGER_FAILURE;
END IF;
/*Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
EXCEPTION WHEN Run_Product_Failure THEN
message('Error');*/
END;There are two problems with your VI. First, the basic logic of writing/appending to a file (Excel, TDMS, anything) should go something like this: Open the file, position yourself at the end of the file, then, in the loop, acquire data and write it to the file until you are finished with data acquisition. When you exit the acquire/write to file loop, then close the file. In particular, the opening and the closing of the file should not be inside the loop.
As others have pointed out, writing to Excel might not be optimal, particularly if you are acquiring data at a high rate (and would therefore be writing a lot of data). We actually use Excel in our data acquisition routine, mainly reading from a WorkSheet to get the parameters of a particular stimulus, but also writing the outcome of the response to the stimulus. As it happens, our "acquisition rate" in this example is on the order of several samples per minute, so there's no problem using Excel (we also sample 16 channels of analog data at 1 KHz -- this gets written as a binary file).
Second, if you really do want to use Excel, use the (existing) Excel file to which you want to append as the "template" argument of the New Report function. Then use the Excel Get Last Row function to position yourself at "end of file", as noted above.
Good Luck.
Bob Schor -
Getting error while Calling Oracle Stored Procedure with output Parameter
HI All,
From long days i am working on this but i unable to solve it.
Even i have studied so many forums in SAP but i didn't find the solution.
I am calling Oracle Store procedure with 3 inputs and 1 output without cursor.
Store Procedure:-
CREATE OR REPLACE PROCEDURE PDS.send_rm
IS
proc_name VARCHAR2(64) := 'send_rm';
destination_system VARCHAR2(32) := 'RAWMAT';
xml_message VARCHAR2(4000);
status_code INTEGER;
status_message VARCHAR2(128);
debug_message VARCHAR2(128);
p_ret INTEGER;
BEGIN
DBMS_OUTPUT.PUT_LINE( proc_name || ' started' );
xml_message := '<RAW_MATERIAL>'||
'<BAR_CODE>10000764601</BAR_CODE>'||
'<MATERIAL>1101448</MATERIAL>'||
'<VENDOR_CODE/>'||
'<PRODUCTION_DATE>0000-00-00</PRODUCTION_DATE>'||
'<EXPIRE_DATE>0000-00-00</EXPIRE_DATE>'||
'<BATCH/>'||
'<PO_NUM/>'||
'<MATERIAL_DESCRIPTION>POWER SUPPLY</MATERIAL_DESCRIPTION>'||
'<SPEC_NAME/>'||
'<STOCK_CODE>BSW-JH</STOCK_CODE>'||
'<INSPECTION_LOT>00</INSPECTION_LOT>'||
'<USAGE_DECISION_CODE/>'||
'<MATERIAL_GROUP>031</MATERIAL_GROUP>'||
'</RAW_MATERIAL>';
dbms_output.put_line('XML '||xml_message);
-- vp_interface.load_rawmat@cnprpt1_pds(SYSDATE, destination_system,
-- xml_message, p_ret);
vp_interface.load_rawmat(SYSDATE, destination_system,
xml_message, p_ret);
dbms_output.put_line('Return Code '||p_ret);
COMMIT;
EXCEPTION
WHEN OTHERS THEN
status_code := SQLCODE;
status_message := SUBSTR(SQLERRM, 1, 64);
-- Extract_Error_Logger(proc_name, 'LOCAL', SYSDATE, -999,
-- status_message, 0, debug_message);
ROLLBACK;
END send_rm;
And while i am calling this Store procedure in MII, I am facing error.
I have tried different ways but didnt solved
In SQL Query, i kept mode as: FixedQueryOutput
Can anyone tell me or send code for calling above store procedure
And onemore thing, While creating store procedure in Oracle for MII. Do we need to Create output parameter as cursor or normal.
Thanks,
Kind Regards,
Praveen Reddy MHi Praveen
Our wrapper was created because we could not modify the procedure we call (it was not returning a cursor).
CREATE OR REPLACE PROCEDURE CHECK_PUT_IN_USE
(STRCMPNAME in varchar2,
STRSCANLABEL in varchar2,
RCT1 out SYS_REFCURSOR
AS
charDispo Char(1);
charStatus Char(1);
intCatNo Integer;
charCatDispo Char(1);
strCatQual VarChar2(2);
strCatDesc VarChar2(30);
strMsg VarChar2(128);
BEGIN
qa.check_put_in_use@AR(STRCMPNAME,
STRSCANLABEL,
charDispo,
charStatus,
intCatNo,
charCatDispo,
strCatQual,
strCatDesc,
strMsg);
OPEN RCT1
FOR Select charDispo,charStatus,charDispo,charStatus,intCatNo,charCatDispo,strCatQual,strCatDesc,strMsg from Dual;
END;
Hope this helps
Regards
Amrik
then with a FixedQueryWithOutput
call mixar.qasap.wrapper_update_put_in_use('[Param.1]','[Param.2]',[Param.3],?)
Hope this helps. -
Problem with output in smart forms
Hi All,
I am getting some problem with the field list in smartforms. When i tried to drag and drop some fields its not allowing me drop in text editor. So i hard code some of the fields and some systems fields. But in ouput i am getting every thing like in the top its showing "Print Preview of page 001 of 007. Its showing all the Filed descriptions and every thing. But its displaying all the field values and system values as &wtab-vebln& &wtab-erdat& &wtab-ernam&
&wtab-vebln& &wtab-erdat& &wtab-ernam&
&wtab-vebln& &wtab-erdat& &wtab-ernam&
Untill end of loop for all pages. In the same way for each end of the page i am trying to print out &sy-pagno& but for evry page i am getting only the &sy-pagno& but not the page number.
When i debug the internal table itab is populated with the data.I dont know why the field list is not allowing me to drag and drop fields and when i hard code why i am getting output like that.
Some where i read that the we have to change in cofiguration of smartform in order to drag and drop is it right?
Suggest me how to correct this error.Hi Ben..
You cannot drag&Drop the Fields into Text Editor ..
You have to do this in Graphical PC Editor (This will be the default editor Generally)
Otherwise you have to use the Icons INSERT FIELD(+) DELETE FIELD ( - )
On the Toolbar above the PC Editor.
Remember your field should be displayed with Gray shade. then only the Value of the Symbol is displayed. Otherwise it will be displaying the Symbol name as it is.
For page no You have to use the System field of Smartforms &SFSY-PAGE&
not &sy-pagno&.
<b>Reward if Helpful</b> -
Problems with PL/SQL Calling Java Function that returns String []
Hi,
I have written the following code. It's not compiling OK.
DECLARE
TYPE Tokens_Type IS VARYING ARRAY(20) OF VARCHAR2(20);
s1 Tokens_Type DEFAULT NULL;
SQL_STR VARCHAR2(2000) DEFAULT NULL;
BEGIN
SQL_STR := 'CREATE OR REPLACE FUNCTION Schema1.SPLIT_STR (S2 VARCHAR2(20)) ' ||
'RETURN s1 ' ||
'AS LANGUAGE JAVA ' ||
'NAME ''String_Mani.split_it (String) return java.lang.String []''';
EXECUTE IMMEDIATE SQL_STR;
END;
What's the problem with this?You cannot create a function with a locally defined return type. As soon as this script is executed, Oracle no longer knows what the TOKEN_TYPE type is any more, so the function will be invalid.
You need to use a collection type defined at the database level or defined in a package - somewhere where it will persist. -
Problem with output data when calling into Oracle stored procedure
I have a problem that I think I've seen posted by others, but I can't find it anywhere on the forum. Here's what it looks like:
I have a application that sends a query parameter called custID in a URL to a JSP page.
http://domain.com/decrypt.jsp?custID=ewsw
The JSP subsequently calls into the method below to run a decryption stored procedure on an Oracle db. The custId parameter works fine from most clients. However, I have seen the decryption stored procedure return invalid information on some clients in the following case:
http://domain.com/decrypt.jsp?custID='eirwx
Here is how I define my call to the DCUSTID (decryption stored procedure):
public long dCustID(String sCustID)throws SQLException {
CallableStatement cs = null;
try {
long nCustID = 0;
if(conn == null || conn.isClosed()) {getLocalConnection();}
String sp = "BEGIN DCUSTID(?,?);END;";
cs = conn.prepareCall(sp);
cs.setString(1, sCustID);
cs.registerOutParameter(2,java.sql.Types.NUMERIC);
cs.execute();
nCustID = cs.getLong(2);
return nCustID;
}finally { release(cs); }
I have not been able to find a problem with the stored procedure (although Im not counting that out). Is there any way that the jsp or the code above is corrupting the data before it gets to the stored procedure? I'm very suspicious of the single quote at the begining of the custID query string parameter.
Thanks>
The JSP subsequently calls into the method below to
run a decryption stored procedure on an Oracle db.
The custId parameter works fine from most clients.
However, I have seen the decryption stored procedure
e return invalid information on some clients in the
following case:
The back tick doesn't matter.
How do you know that the routine that you posted returns invalid information? Are you printing the value retreived before you return in the code that you posted? That is the only way to tell if that code is the problem vs some translation problem in something else.
And what do you mean by 'invalid'? It does return a numeric value right? Is it negative? Or so large that it couldn't be a key? Or what?
The input parameter to the stored proc is a varchar and not a char correct?
Maybe you are looking for
-
Install Windows 7 Professional 64-bit on MBP A1226 2.2Ghz 15-inch?
So the MBP model I have is above, and I get this error message when I try to boot from my Windows 7 Prof disc: "1. 2. Select CD-Rom Boot Type:_" And once I do get it installed, where are the 64-bit drivers? I don't have my backup disc as this MBP I
-
Find my iphone/ipad doesn't work
Hello everyone... I open this discussion because find my iphone/ipad doesn't locate it when it conected on wifi and with the location and find my iphone/ipad activated. I have tried everything that you can imagine and what you can't thing for solve t
-
Iphone isnt connecting to computer or charging
so i got my iphone 2 days ago and everything was working great till today. i tryed charging it and nothing showed up. so then i tryed connecting to my computer with it and my computer says it dosnt recognize the device at all and isnt charging. Ive n
-
How can we capture additional information on interaction Wrap-up screen
Hi, We need to capture the additional information (for e.g. the contract number created during the interaction) on the call wrap-up screen. But the Doc# field is disabled and there are no DFFs as well. Any suggestions would be very helpful. Thanks an
-
My lightroom 4 stops working after a minute or so every time I turn it on. What can I do?