Sintax problem in procedure..passing a date range
Hio guys, I built an alter view using a stored procedure. Everything is ok ( it's a big procedure) but the date in where Archived..etc. It comes from the procedure below. Any advice? I tried with "' '" '' but nothing...syntax problem. Thanks a
lot.
with cte as (
select nmonth, customer, [ecode], [echarge],archived from ArchiveBillable where Archived between 2014-11-03 and 2014-11-07
or Archived between 2014-12-03 and 2014-12-07
), cte2 as (select nmonth, customer, [echarge], CONVERT(varchar(6), archived, 112) as archived
from cte where [ecode] in ('armani','valentino')),
cte3 as (
select customer, archived,Nmonth, SUM(CAST([echarge] AS DECIMAL (20,4))) AS charge from cte2 group by
customer, nmonth, archived)
select * from cte3
PIVOT
sum(charge)
FOR archived
IN (
[201411], [201412]
) AS PivotTableAlias
select nmonth, customer, [ecode], [echarge],archived from ArchiveBillable where Archived between '+@fromone+' and '+@toone+'
or Archived between '+@from+' and '+@to+'
), cte2 as (select nmonth, customer, [echarge], CONVERT(varchar(6), archived, 112) as archived
from cte where [ecode] in (''armani'',''valentino'')),
cte3 as (
select customer, archived,Nmonth, SUM(CAST([element charge] AS DECIMAL (20,4))) AS charge from cte2 group by
customer, nmonth, archived)
select * from cte3
PIVOT
sum(charge)
FOR archived
IN (
['+@inPIVOT2+'], ['+@inPIVOT+']
) AS PivotTableAlias'
Guys tanks to everyone, probably I didn't explain correctly my issue. Everything is fine, structure, data, date. Everything but this part (this is part of the view created by the procedure):
select
nmonth, customer,
[element code], [element charge],archived
from ArchiveBillable
where Archived
between
2014-11-03
and
2014-11-07
or Archived
between
2014-12-03
and
2014-12-07
There is no apex.
It should be:
select
nmonth, customer,
[element code], [element charge],archived
from ArchiveBillable
where Archived
between '2014-11-03'
and '2014-11-07'
or Archived
between '2014-12-03'
and '2014-12-07'
with the apex.
The part of the procedure involved:
DECLARE
@From varchar(10)
DECLARE
@To varchar(10)
DECLARE
@FromOne varchar(10)
DECLARE
@ToOne varchar(10)
DECLARE
@FIRSTALTER VARCHAR(MAX)
DECLARE
@SECONDALTER VARCHAR(MAX)
DECLARE
@inPIVOT VARCHAR(6)
DECLARE
@inPIVOT2 VARCHAR(6)
SELECT
@FirstDayOfCurrentMonth =
DATEADD(MONTH,
DATEDIFF(MONTH,
'01/01/1900',
Current_timeStamp),
'01/01/1900')
SELECT
@From
=DATEADD(DAY,
2, @FirstDayOfCurrentMonth)
@To=DATEADD(DAY,
6, @FirstDayOfCurrentMonth)
@FromOne=DATEADD(DAY,
2,
DATEADD(MONTH,
-1,
@FirstDayOfCurrentMonth))
@ToOne=DATEADD(DAY,
6,
DATEADD(MONTH,
-1,
@FirstDayOfCurrentMonth))
set
@inPIVOT=left(@from,4)+SUBSTRING(@from,6,2)
set
@inPIVOT2=left(@fromone,4)+SUBSTRING(@fromone,6,2)
SET
@FIRSTALTER='Alter view
ChargePivot as
with cte as (
select nmonth, customer, [ecode], [echarge],archived from ArchiveBillable where Archived between '
+@fromone+'
and '+@toone+'
or Archived between '
+@from+'
and '+@to+'
), cte2 as (select nmonth, customer, [echarge], CONVERT(varchar(6), archived, 112) as archived
from cte where [ecode] in (''armani'',''valentino'')),
cte3 as (
select customer, archived,Nmonth, SUM(CAST([element charge] AS DECIMAL (20,4))) AS charge from cte2 group by
customer, nmonth, archived)
select * from cte3
PIVOT
sum(charge)
FOR archived
IN (
+@inPIVOT2+'],
['+@inPIVOT+']
) AS PivotTableAlias'
exec
(@firstalter)
I pass the parameter but I don't pass the apex...
Similar Messages
-
MDM ABAP API query to pass the date range
Hi
I want to retrieve certain data from MDM repository based on filter criteria by date stamp.
Not sure how to do it to pass the select option value in the query.
select-options: s_cdate for sy-datum obligatory .
DATA wa_query TYPE mdm_query.
DATA: v_search_date1 TYPE MDM_CDT_DATE_TIME.
data: v_datestamplow1 type string.
data: v_datestamplow type TZNTSTMPL.
concatenate s_cdate-low '000000' into v_datestamplow1
v_datestamplow = v_datestamplow1.
clear wa_query.
wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
wa_query-operator = 'EQ'.
wa_query-dimension_type = mdmif_search_dim_field. "Field search
wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
I am able to get the data when I just pass the low value from selecct option. But I dont how to pass the date range.
v_search_date1-CONTENT = v_datestamplow.
ET REFERENCE OF v_search_date1 INTO wa_query-value_low.
APPEND wa_query TO gt_query.
CALL METHOD cl_api->mo_core_service->query
EXPORTING
iv_object_type_code = 'Vendors'
it_query = gt_query
IMPORTING
et_result_set = gt_result.
II could see the below operator types . Although EQ says "Like standard select-options parameter" not sure how to pass the value.
EQ Equal to (like standard select-options parameter)
NE Not equal to (like standard select-options parameter)
LT Less than (like standard select-options parameter)
LE Less than or equal to (like standard s-o parameter)
GT Greater than (like standard select-options parameter)
GE Greater than or equal to (like standard s-o parameter
SW Starts with (MDM specific parameter)
Thanks,
Krishna.Hi,
To get the date range for select options, pass the low value with 'GE' operator and another query option with 'LE' operator for high value.
select-options: s_cdate for sy-datum obligatory .
DATA wa_query TYPE mdm_query.
DATA: v_search_date1 TYPE MDM_CDT_DATE_TIME.
data: v_datestamplow1 type string.
data: v_datestamplow type TZNTSTMPL.
concatenate s_cdate-low '000000' into v_datestamplow1
v_datestamplow = v_datestamplow1.
clear wa_query.
wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
wa_query-operator = 'GE'.
wa_query-dimension_type = mdmif_search_dim_field. "Field search
wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
GET REFERENCE OF v_search_date1 INTO wa_query-value_low.
APPEND wa_query TO gt_query.
concatenate s_cdate-high '235959' into v_datestamphigh1
v_search_date2 = v_datestamphigh1.
clear wa_query.
wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
wa_query-operator = 'LE'.
wa_query-dimension_type = mdmif_search_dim_field. "Field search
wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
GET REFERENCE OF v_search_date2 INTO wa_query-value_low.
APPEND wa_query TO gt_query.
CALL METHOD cl_api->mo_core_service->query
EXPORTING
iv_object_type_code = 'Vendors'
it_query = gt_query
IMPORTING
et_result_set = gt_result.
Thanks. -
Possible to pass a date range to a subreport?
Hi,
I've created a report with three groups and I suppress the second and third group. The first group displays a summary of the details. If I "hide" the details I have a nice summary looking report which I can then click on to drill down into the details. However, I cannot enable the "hide" functionality because of two reasons: 1. I'm using the crystal java viewer and it has serious limitations when using the hide/drill-down feature; and 2. in order to print I have to click on each group item in order to print - so when I have 20 values in my group I'm going into each group 20 times and printing 20 times.
So, I still want a summary view of all my group summaries at the front of my report. How can I consolidate the group values into a single summary view? I attempted creating a subreport that is the same as the main report however the issue is that the initial parameter used is a date *range". I'd like to pass the date range to the subreport and then I'm sure this would all work. Does crystal support passing a date range to a sub-report? If so, how is this done?
thx!
MarkHi Mark,
Yes, you can pass a date range value to the SUbreport!
Here's how its done:
1) Create a formula in the Main report; call it Start_date:
Minimum({?Date_parameter})
2) Create a second formula in the Main report and call it End_date:
Maximum({?Date_parameter})
3) Insert the sub-report and then Right-click the sub-report > Select Change Subreport links > Move the Start_date and End_date formulas to 'Fields to Link to' area and make sure you uncheck the 'Select data in subreport based on field' option.
4) Edit the sub-report (Right-click > Edit) and insert a Record Selection formula to include the parameters from the Main Report.
Go to Report > Selection Formulas > Record:
{date_field} >= {?Pm-@Start_date} and {date_field} <= {?Pm-@End_date}
Hope this helps!
-Abhilash -
Passing a date range to a Crystal Report using OpenDocument
Hi,
I am trying to call up a Crystal report in InfoView using a hyperlink with the OpenDocument function call.
It is working fine with the following URL:
http://<server name>:<port>/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=ARcnOcErTA1FidjRJ_sT0Yw&sType=rpt&sRefresh=Y&lsSCompany+Code=1300&lsMCost+Center=[12345],[67890]&lsSCost+Element=0000100123
However, once I added the date range into the parameter string, like this:
http://<server name>:<port>/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=ARcnOcErTA1FidjRJ_sT0Yw&sType=rpt&sRefresh=Y&lsSCompany+Code=1300&lsMCost+Center=[12345],[67890]&lsSCost+Element=0000100123&lsRFiscal+Year+Period=[Date(1,1,2011)..Date(1,9,2011)]
It returns an error message, "An error has occurred: java.util.Date ", to my browser.
I am wondering if I am missing any Java library or Java class path.
Any thoughts are appreciated.
Joyce
Edited by: Joyce Chan on Aug 30, 2011 12:25 PMHow do I check if the parameter passing in is in date type?
the following is exactly what I've tried:
&lsRFiscal+Year+Period=[Date(2010,10,10)..Date(2010,10,15)]
Would the error message be logged in the server, maybe I can find more information for the error log? -
Pass a date Range from VB to a parameter
Hello,
I'm thinking this is an easy question, but ...
In a Visual Studio 2008 VB program, I'm allowing the user to pick a starting and ending date from DateTimePickers. (works fiine).
In a CR 2008 report, I have a paramter defined as "pDateRange", Type = date, Allow Range Values = Yes.
In the Record Selection, I use a formula of {tblData.INSTALLDT} in {?Date_Range}.
When I run the report, I can enter the date ranges in via the Enter Values prompt screen, and it works file,
All I need to know is - how do I pass the dates the user selected in the VB program to the pDateRange parameter?
Thanks very much,
CarlThanks Ludek for the reply.
Unfortunately, I canu2019t seem to puzzle this out. None of the examples seem to work. This is an example, along with their comments.
I get the error "The parameter field current values cannot contain range values because the ValueRangeKind property is set to discrete." on the last line.
I could REALLY use some help getting past this issue.
Dim myReportDocument As New CRS_Tab_Prod_Org_Cnt_Params2
Dim crParameterFieldDefinitions As ParameterFieldDefinitions
Dim crParameterFieldDefinition As ParameterFieldDefinition
Dim crParameterValues As ParameterValues
Dim crParameterRangeValue As ParameterRangeValue
crParameterFieldDefinitions = myReportDocument.DataDefinition.ParameterFields
'Access the individual subreport parameter field "Date_Range"
crParameterFieldDefinition = crParameterFieldDefinitions.Item("Date_Range")
'Cast the variable to hold the values to pass to the Report before execution
crParameterValues = crParameterFieldDefinition.CurrentValues
'Cast the variable to hold the range value for the parameter
crParameterRangeValue = New ParameterRangeValue()
'Set the Date range and include the upper and lower bounds. Use the Cdate function as insurance
'to ensure that the value passed is cast to the appropriate data type
With crParameterRangeValue
.EndValue = CDate("1/1/1997")
.LowerBoundType = RangeBoundType.BoundInclusive
.StartValue = CDate("12/20/1997")
.UpperBoundType = RangeBoundType.BoundInclusive
End With
'Apply the Date range to the values to be passed to the Report
crParameterValues.Add(crParameterRangeValue)
'Pass the parameter values back to the report
crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
Thanks for your help,
Carl -
Passing the Date range within the query
Hi ,
In my query , I have two date characteristic, and while doing the selection I have to do selection on only one date field.
This selection is a date range selection , So I have used a selection variable for this.
Can anyone please let me know if it is possible to pass the selection range to other variable. Is it possible to use Customer exit to pass the complete range.
Thanks
AltairHi,
You can do it in the user exit.And that is the only approach to transfer the values of one variable to other variable .
Search this forum for the code. you will find lot of postings.
With rgds,
Anil Kumar Sharma .P -
Pass date range parameter to SQL stored procedure.
Hi,
I'd like to pass a date range parameter from Crystal Reports to a sql stored procedure. Does anyone know if this is possible?
I've had no problem passing standard datetime (single value) paramaters to and from but am struggling with getting a range value parameter to work.
Environment: Crystal Reports 10/XI and SQL 2000 MSDE version or SQL 2005 Express Edition.
Any help would be appreciated.C5112736 wrote:>
> And then these 2 formulas 'Formula # 1' and 'Formula # 2' can be used to pass on to the stored procedure.
Can someone please demonstrate exactly how to use formula results as date parameters to a SQL stored procedure? Keep in mind, there are two parameters to the stored procedure.
I have gleaned this much: Use Add Command and insert the procedure with
EXEC ServerName.dbo.usp_sprocName;1 '{?StringParameter}'
but if I try to do
{CALL ServerName.dbo.usp_SprocName({@Formula1},{@Formula2})}
then it gives the error "No value given for one or more required parameters".
Both of the parameters are VARCHAR(50).
I have finally found this link: [http://msdn.microsoft.com/en-us/library/ms710248(VS.85).aspx|http://msdn.microsoft.com/en-us/library/ms710248(VS.85).aspx]
This Microsoft site defines the format of the ODBC escape sequences, but I still do not know how to convince Crystal to insert it's parameter results or formula results.
Pulling what's left of my hair out . . .
~ Shaun -
Date Range according to Financial year-end
Hi
I'm building this Discoverer report and one of my parameters is a LoV date field, which gives me a date range from Jan to Dec each year. Now my problem is, I want my date range to be as per our Financial Year End, which is from 01-Oct-03 to 30-Sep-04.
You'd find "<All>" amongst the range. This "All" currently indicates date between Jan 2003 - Dec 2003. Now I need to write a query/trigger that will put my date range to be between 01-Oct-02 to 30-Sep-03 recurring automatically after each Financial year-end.
ThanksHi,
Although I haven't tried it, you should be able to use a combination of hierarchies and alternative sorts to accomplish this.
How have you created your list of values? If your LOV is a list of months and years e.g. JAN-2003, FEB-2003 etc, you can create a alternative sort which will make OCTOBER the first month of the year - i.e. with value 1, and NOVEMBER = 2 and so on...
Sorry this is a bit vague. I will try and test tomorrow and see if it works, but this should be enough to give you an idea of how to progress. -
Hi
I'm building this Discoverer report and one of my parameters is a LoV date field, which gives me a date range from Jan to Dec each year. Now my problem is, I want my date range to be as per our Financial Year End, which is from 01-Oct-03 to 30-Sep-04.
You'd find "<All>" amongst the range. This "All" currently indicates date between Jan 2003 - Dec 2003. Now I need to write a query/trigger that will put my date range to be between 01-Oct-02 to 30-Sep-03 recurring automatically after each Financial year-end.
ThanksHi,
You might want to post the Q on Discoverer Forum also
Discoverer
Navneet. -
Possible to do limited date range changes in Calendar?
If I set up a filter, say, for days since my last sync AND I'm doing a two-way sync, will only those changes sincy my last sync be synced or will I lose everything not in that date range? Since I make changes to the calendar in Outlook and on the device this is especially important to me. This could save me a lot of time, but I don't want to lose any other calendar data
Also, I assume that I set the filter to use 'start date' and uncheck the box that says ' Delete from device any data that does not match the filter'. I am using DM 4.6 and OS 4.3
IrwinII
Please remember to "Accept as Solution" the post which solved your thread. If I or someone else have helped you, please tell us you "Like" what we had to say at the bottom right of the post.Hi Mark,
Yes, you can pass a date range value to the SUbreport!
Here's how its done:
1) Create a formula in the Main report; call it Start_date:
Minimum({?Date_parameter})
2) Create a second formula in the Main report and call it End_date:
Maximum({?Date_parameter})
3) Insert the sub-report and then Right-click the sub-report > Select Change Subreport links > Move the Start_date and End_date formulas to 'Fields to Link to' area and make sure you uncheck the 'Select data in subreport based on field' option.
4) Edit the sub-report (Right-click > Edit) and insert a Record Selection formula to include the parameters from the Main Report.
Go to Report > Selection Formulas > Record:
{date_field} >= {?Pm-@Start_date} and {date_field} <= {?Pm-@End_date}
Hope this helps!
-Abhilash -
Hi guys,
i have a selection screen where i need to give range of date.
say from 01.01.1998 to 01.02.2007.
i need to pass this date range to 'Z' funtion module how can i do it.
do i need to define it in tables declaration. if yes what will be the reference type of this field.
I want this range of dates in function module.
Please explain.Hi ahmed
Let us assume s_date is the select option for the date range defined like
DATA: s_date for p0001-begda.
Now while calling the FM pass the s_date-low and s_date-high as 2 parameters for the FM.In the FM create 2 parameters begda and endda of type begda. Use the low value and high value in the FM to populate the range table and u can use this range table for further processing of the dates in the FM.The range table can be forwarded as follows:
r_date-low = begda.
r_date-high = endda.
also provide the sign and options for the ranges table. -
Opendoc date range into Bex query
We are having an issue when trying to pass a date range in an Opendoc link. The report is built off a BEx query, within the report we have an Opendoc link into a child version of the report. I can pass all the other prompts with no issue except for one which is the date range.
I am defining the date range as "[19000101]..[19000101]" but we keep getting this error message:
Has anyone lese had this issue?
ThanksHi,
Try This
"[Date(2014,04,01)]..[Date(2014,04,11)]"
"[Date(yyyy,MM,dd)]..[Date(yyyy,MM,dd)]"
http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_opendocument_en.pdf#page=26
http://<servername>:<port>/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=Aa6GrrM79cRAmaOSMGoadKI&sID
Type=CUID&sRefresh=Y&lsRTime+Period:=[2000..2004)
http://<servername>:<port>/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=Aa6GrrM79cRAmaOSMGoadKI&sID
Type=CUID&sRefresh=Y&lsRparamStringDR=[h..i]&lsRparamNumberDR=[7..8]&lsRparamCurrencyDR=[3..4]&lsRparamDat
eDR=[Date(2003,6,7)..Date(2003,6,8)]&lsRparamDateTimeDR=[DateTime(2003,6,1,7,1,1)..Date
Time(2003,6,1,8,1,1)]&lsRparamTimeDR=[Time(1,1,7)..Time(1,1,8)]&lsRparamUnbound1=(..6)&lsRpara
mUnbound2=[6..)&lsRparamStringR=[a..d]&lsRparamNumberR=[1..3]&lsRparamCurrencyR=[1..3]&lsRparam -
Date range query problem in report
Hi all,
I have created a report based on query and i want to put date range selection but query giving problem.
If i am creating select list selection then it is working fine means it will display all records on the particular date.
But what i need is that user will enter date range as creation_date1,creation_date2 and query should return all the records between these date range. i want to pass it by creating items, i created two items and passing creation_date range to display all records but not displaying and if not passing date then should take null as default and display all records
Here is the query:
/* Formatted on 2006/12/10 20:01 (Formatter Plus v4.8.0) */
SELECT tsh."SR_HEADER_ID", tsh."SALES_DEPT_NUMBER", tsh."COUNTRY",
tsh."LOCAL_REPORT_NUMBER", tsh."ISSUE_DATE", tsh."SUBJECT",
tsh."MACHINE_SERIAL_NUMBER", tsh."MACHINE_TYPE", tsh."MACHINE_HOURS",
tsh."STATUS"
FROM "TRX_SR_HEADERS" tsh, "TRX_SR_PARTS" tsp
WHERE (tsh.status LIKE :p23_status_sp OR tsh.status IS NULL)
AND (tsh.machine_type LIKE :p23_machine_type_sp)
AND ( tsh.machine_serial_number LIKE
TO_CHAR (:p23_machine_serial_number_sp)
OR tsh.machine_serial_number IS NULL
AND ( TO_CHAR (tsh.failure_date, 'DD-MON-YY') LIKE
TO_CHAR (:p23_failure_date_sp)
OR TO_CHAR (tsh.failure_date, 'DD-MON-YY') IS NULL
AND ( TO_CHAR (tsh.creation_date, 'DD-MON-YY')
BETWEEN TO_CHAR (:p23_creation_date_sp)
AND TO_CHAR (:p23_creation_date_sp1)
OR TO_CHAR (tsh.creation_date, 'DD-MON-YY') IS NULL
AND (tsh.issue_date LIKE :p23_date_of_issue_sp OR tsh.issue_date IS NULL)
AND (tsh.country LIKE :p23_country_sp OR tsh.country IS NULL)
AND ( tsh.local_report_number LIKE TO_CHAR (:p23_local_rep_num_sp)
OR tsh.local_report_number IS NULL
AND ( tsp.part_number LIKE TO_CHAR (:p23_part_number_sp)
OR tsp.part_number IS NULL
AND tsh.machine_type IN (
SELECT DISTINCT machine_type
FROM trx_sales_dept_machine_list
WHERE sales_department_id IN (
SELECT DISTINCT sales_department_id
FROM trx_user_sales_department
WHERE UPPER (user_name) =
UPPER ('&APP_USER.'))
AND SYSDATE >= valid_from)
AND tsh.sr_header_id = tsp.sr_header_id
can any one tell me wat is wroung in this query.
Any other way to write this?
Thank You,
AmitHi User....
Here is some date range SQL that my teams uses with some success:
For date columns that do not contain NULL values, try this (note the TRUNC, it might help with your "today" problem).
The hard coded dates allow users to leave the FROM and TO dates blank and still get sensible results (ie a blank TO date field asks for all dates in the future.
AND TRUNC(DATE_IN_DATABASE)
BETWEEN
decode( :P1_DATE_FROM,
TO_DATE('01-JAN-1900'),
:P1_DATE_FROM)
AND
decode( :P1_DATE_TO,
TO_DATE('31-DEC-3000'),:
:P1_DATE_TO)
For date columns that contain NULL values, try this (a little bit trickier):
AND nvl(TRUNC(DATE_IN_DATABASE),
decode( :P1_DATE_FROM,
decode( :P1_DATE_TO,
TO_DATE('30-DEC-3000'),
NULL),
NULL)
BETWEEN
decode( :P1_DATE_FROM,
TO_DATE('01-JAN-1900'),
:P1_DATE_FROM)
AND
decode( :P1_DATE_TO,
TO_DATE('31-DEC-3000'),
:P1_DATE_TO)
Note the 30-DEC-3000 versus 31-DEC-3000. This trick returns the NULL dates when the FROM and TO date range items are both blank.
I hope this helps.
By the way, does anyone have a better way of doing this? The requirement is given a date column in a database and a FROM and a TO date item on a page,
find all of the dates in the database between the FROM and TO dates. If the FROM date is blank, assume the user want all dates in the past (excluding NULL dates). If the TO date is blank, assume that the user wants all of the dates in the future (excluding NULL dates). If both FROM and TO dates are blank, return all of the dates in the databse (including NULL dates).
Cheers,
Patrick -
Stored Procdure date range problem
Hi All,
My Vendor created a Stored procedure which asks for a date range when first creating a standard report. Once the date range is entered then I select which data fields I want to display, etc. Once in the report, I can see the parameter fields, but they have a [?] with a weird little yellow icon, and I cannot see the parameter fields in the parameter tab. My users need to be able to change the date range in InfoView, but since there isn't a date range parameter, they cannot, and I also cannot get it to show up in the report in CR 2008. The only time I can get the date range entered is when creating a report, here is the procedure that the vendor gave me:
XSAC_GET_TEST_COUNT
( P_REPORT_CURSOR IN OUT XSAC_REPORTS.TEST_COUNT_VIEW_TYPE,
P_START_DATE IN DATE ,
P_END_DATE IN DATE )
Not sure how to fix this, and neither does the Vendor, although they created it.
Any help would be much appreciated.
I have other reports where I have successfully created a date range parameter, and they work fine, this is my first time with a stored procedure. and it asking for a date range when selecting the data source. Not from a date field in the reportHi All,
I found the problem,
The first Option is: Show on (Viewer) Panel, it was set to Do Not Show . So it was hidden.
I changed it Editable and it works fine.
Hopefully this will help someone in the future. -
Passing XMLType Data into oracle stored procedure using JDBC
Hi Friends,
I have requirement where my oracle stored procedure accepts XML file as an input. This XML File is generated in runtime using java, I need to pass that xml file using JDBC to oracle stored procedure. Please let me know the fesibile solution for this problem.
Following are the environment details
JDK Version: 1.6
Oracle: 10g
Server: Tomcat 6.x
Thanks in Advanceuser4898687 wrote:
I have requirement where my oracle stored procedure accepts XML file as an input. This XML File is generated in runtime using java, I need to pass that xml file using JDBC to oracle stored procedure. Please let me know the fesibile solution for this problem.As stated - no.
A 'file' is a file system entity. There is no way to pass a 'file' anywhere. Not PL/SQL. Not java.
Now you can pass a file path (a string) in java and to PL/SQL.
Or you can pass xml data (a string) in java and to PL/SQL. For PL/SQL you could use eithe a varchar2, if the xml is rather small, or a blob/clob.
Maybe you are looking for
-
Nach Aufsetzen meines neuen MAC mit Migrationsassistent bekomme ich die Adobe Cloud nicht mehr zum laufen. Das Fenster Creative Cloud wird angezeigt - aber leer. Ich kann keien Apps installieren oder runterladen. Jemand eine Idee? (Adobe Claeaner sch
-
I am trying to restore my i phone 3gs but an error message occurs at the end and it cannot finish off the process of retoring to factory settings through I tunes, my phone will not let me call out or receive calls in it says it needs to be restored o
-
My iphone4 is not working after I tried to update it and it wont let me restore it?
My husbands iphone 4 is refusing to restore or really do anything since he tried to update it to the new operating system. It just alternates between the apple sign, and the thinking circle. I updated mine on the computer right before he tried so we
-
Use view objects to display muti lines graph
I need to create multiple lines on a line graph using data from view objects. I did see the demo that allows to add series but the data seems from tabular data. http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/index.jspx?_afrLoop=396444837
-
Contacts missing on PC - but works on mac???
I use two computers/two operating systems. When I use skype on my mac ALL my contacts shows up but when I login on my pc I only have 25 percent of my contacts?. Help. I need skype to sync all contacts on all platforms that I use. Is there a setting