Clues about query's - Search for date type at INBOX
Hello Everyone,
At IC Webclient, does anyone experiment to add a new search date type at INBOX, at "search for date" search parameter?
I added a new date type at Date Management, ZDATA_PR.
When I try to assemble the query parts, I use something like this:
CL CL_CRM_QUERYAUI_RUN_BTIL
METH READ_BUSINESS_TRANSACTIONS
CALL METHOD cl_crm_report_qupart=>get_qupart_by_token
EXPORTING
iv_token = 'DAT'
iv_date_type = 'ZDATA_PAR'
iv_from = ls_query_aui-from
iv_to = ls_query_aui-to
IMPORTING
ev_qupart = ls_qupart_range-querypart.
APPEND ls_qupart_and TO lt_query.
APPEND ls_qupart_range TO lt_query.
However, I'm rewarded with an error message telling me that I have problems with the query.
Does anyone can give me clues how to perform this action? I'm clueless and there's not almost no information about this...
Thanks and Kind Regards
Bruno Garcia
Just to solve a mistake at example code:
CALL METHOD cl_crm_report_qupart=>get_qupart_by_token
EXPORTING
iv_token = 'DAT'
iv_date_type = 'ZDATA_PR'
iv_from = ls_query_aui-from
iv_to = ls_query_aui-to
IMPORTING
ev_qupart = ls_qupart_range-querypart.
APPEND ls_qupart_and TO lt_query.
APPEND ls_qupart_range TO lt_query.
does anyone has a suggestion or a clue to give?
Thanks
Bruno
Similar Messages
-
Select query case insensitive for data type VARG
Hi Experts,
I am having trouble in retrieving the results from a table using select query.
I have a table (Users) as below
Name (VARG) Number(INTEGER)
Murthy 0001
murthy 0002
when I am querying the table with select query as -
select * from Users where Name = 'Murthy'
this query is returning only one record which matches with capital letter of 'M', though both the record names are same.
I have seen in IBM forum to make the select query as case insensitive using the UPPER key word, I have tried this as below -
select * from Users where UPPER(Name) = 'MURTHY'
But this query is not working in my case...
My DB2 version is 8.1.5
Can any one please help in fixing this problem...
Thanks in Advance,
MurthyHi Murthy,
your query is the right to one to select both records. I don't see why it doesn't work.
Are you sure you posted the query that you have executed ?
What is the result of this query ?
But i don't really know how an VARG (Varying-length graphic string) will work. It could be that the UPPER-Function will work in another way as it works on VARCHAR.
regards
Kay -
Hi All,
I'm facing a strange problem..
I've developed few reports. they are working fine in develop environment. after successfull testing they were published on web.
in web version, all reports are executing for first time.. if I change any of parameters values or without chaning also..
if I press "View Report" following error occurs..
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for data set 'dsMLGDB2Odbc'. (rsErrorExecutingCommand)
For more information about this error navigate to the report server on the local server machine, or enable remote errors
please suggest any alternative ways to overcome this issue
thanks in adv.in my case the problem is
one virtual machine is for developers
other for testers
in developers i created a report, then save like *.rdl and copy to testers machine, does not work there
the error what testers get is
Error during the local report processing.
Could not find a web-based application at http://developersMachine/AnalyticsReports/DataBaseConnector.rsds
and the solution is to use alternative url or in some cases http://localhost/ -
Domain for data type in Oracle 8i database
Hi Sir,
Does Oracle database supports domain creation for data type.
for example, can I create a domain called shorttext which is VARCHAR2(50). Then when I specify a data type for a column in table, then I just declare the column as domain.
eg. address SHORTTEXT;
--where SHORTTEXT is a domain.
How is this implemented in Oracle database and supported by front end tools like Oracle Developer 6.0.
Hope someone can provide some clear explanation on this.
Thanks.The ordimagesignature is not something you can see or hear. It is strictly binary metadata about the image, used only to compare images to each other.
What are you trying to do?
Larry -
Date type-specific Customizing missing for date type ACTActPln
Hi all.
I'm using a Web Service obtained by copying the CRM 7.0 built-in WS APPTACTCRTRC.
I'm using it to create Appointments using an Adobe Interactive Form.
It goes everything fine (a Date is created in the system, with all the input data properly set) excepted the dates...
The WS uses two TIMESTAMPS, TIMESTAMP_FROM for StartDateTime and TIMESTAMP_TO for EndDateTime, whereas the GUI transaction to create Dates accepts dates and times in separated fields.
Going in Debug I can see that the execution ends with the following error, referred to the involved entity (CRM_APPOINTMENT):
Date type-specific Customizing missing for date type ACTActPln
CRM_APPOINTMENT uses date profile 0000000001 with three possible date types: ORDERACTUAL, ORDERPLANNED and ORDERPROPOSED and I cannot find anywhere date type ACTActPln (just to add it in customizing).
Is anyone able to enlight me?
Thank you in advance!
Alessandro
PS I've years of experience in Java programming but I'm quite new to the SAP world. Maybe the problem is not a problem at all, but it seems to me as such. Even if it has a trivial solution, please let me know. Thx!Hi,
Well I was about to write that you should enter date in decimal format. but you already did that as mentioned in How to set a date in a Form where the bound date format is a decimal?
In response to following from above thread (copied for others to understand my response)
Hi all.
I'm successfully using the LiveCycle Designer and I've managed to remotely create Appointments using a CRM Web Service (a mere copy of APPTACTCRTRC).
The only problem I'm encountering is that I'm not able to set the dates/times (start and end of the appointment).
Dragging each of the two fields from the WSDL based Data Connection I obtain a Decimal Field limited to 15 digits.
How can I write a date and time in such a field?
I've tried with a retroverse date as YYYYMMDDHHmmss (for example, 20100301124500) but it does not work
(the appointment is indeed created, but with the start date and time fields filled with
the current date/time and the end date and time fields filled with the current date and time plus 10 minutes).
The retroverse date above is only 14 digit long, so, maybe, this is the problem.
But, given the field definition, I'm not able to fill a blank space between the date and the time.
I'm not able to put a dot either.
What should I do?
Any suggestions?
Thank you in advance.
Alessandro
15 digit in UTC time format here is fraction of second so you should enter 201003011245000 (add one more zero).
14th Oct 2010 16:00 should be written as 201010141600000, so just try it and and see if it works, I guess if you do not supply end time then by default it will be starttime + 10 min but this is just guess.
Regards,
Gourav -
[Q] Using viewCriteria for Date type
To Query data, I used ViewCriteria.
But it works well for Varchar2, Number type.
But it does not work for Date type.
for example
If I set variables like the below, it works,
attrName = "OrdName";
attrValue = "Nick";
But, If I set variables like the below, it does not work
attrName = "AppDate";
attrValue = "04.5.12";
ViewCriteria vc = order.createViewCriteria();
ViewCriteriaRow vcr = vc.createViewCriteriaRow();
vcr.setAttribute(attrName, attrValue);
vc.addElement(vcr);
order.applyViewCriteria(vc);
order.executeQuery();
Can I solve this problem ?using a custom expression in the view criteria, ex.
vcr.setAttribute("DateField", "LIKE TO_DATE('" + dateField.toString() + "', 'yyyy-mm-dd')");
similarly, you can use other expressions to remove the default BC4J problems w/ dates (>, <, between) - At least I know you can't use = to get it to work right.
The default handling of BC4J is to say = TO_DATE(whatever you put in the value portion) where it needs to be LIKE to work properly - for some reason - probably a patch is available for it. -
Search for data in server based database.
I have a web page (http://gosolivitahomes.com) where I can enter a search for data in my server based database. If I enter a value less than $100,000 in Min Price I get no response. For values >= $100,000 I get the correct response. Why? Please help.
Yesterday I got no properties under $100,000.
To day I tried again and the first time I got 2 results, but when I went back and repeated the same thing, I got no result.
Then, like John Waller suggested, I cleared my cache and the 2 result were back.
Perhaps your problem is a template or other cms cache issue. I don't know very much about it, but when I had a login problem I had to disable user cache i the cms (Joomla).
I hope you will solve the problem -
Query execution failed for data set
Hi,
We are using SQL 2005 server for generating reports.When we ran the reports it taking so much time after some time it shows this error:---
ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set ---> System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Can you help me out.
Thanks,
--AmitMy team is also facing similar problem. The RS trace logs report:
w3wp!processing!13!9/26/2007-15:31:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'. ---> System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Operation cancelled by user.
In our system, Report Server and Database are on different machines. Report Server access database using a service account who has stored proc execute permissions on database.
Problem comes only if the query execution time exceeds 5 mins. Otherwise the report gets generated successfully.
I suspected this to be some timeout issue. But I have checked that all timeout settings in rs config files are as default.
Any pointers?
Thanks
puns
[email protected] -
Conversion Exit for data type FLTP
Can someone suggest me a conversion Exit for data type FLTP?
Hi,
CHAR_FLTP_CONVERSION
FLTP_CHAR_CONVERSION
Have a look at the function module documentation.
Regards,
Reema.
PS. pl. award points to useful answers. -
[Access 2010] Change default formats for data types
Whenever I import data, the default format for Boolean data types is "-1,0." I know how to subsequently change this format to "Yes/No," but I'd like to change the default
setting to "Yes/No." Is this possible?
Thanks in advance.Hi,
I found you post the same question in other place and got the advice. I agree with Mr. Kees suggestion. The data type is a build-in default setting with Access, we can't change it. We may try the workaround via VBA to test.
http://forums.cnet.com/7723-6129_102-627633/access-2010-change-default-formats-for-data-types/#message5617496
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Have a good time.
Regards,
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Error during search for movement type (953)
Hi All,
When I'm trying to issue goods to an internal order, I get the below error
Error during search for movement type (953)
The explanation is as follows
The movement type of the warehouse system and certain parameters are assigned to each movement type of the inventory management system
In this case no movement type of the warehouse management system was assigned to the inventory management movement type used by the paramaters enclosed in parantheses in the eror message.
Is there some config missing in this case?? Please let me know how to overcome this error
Regards,
Ashwinwhen you create new movement types in MM, then you certainly have to create WM movement types too, if you want use the new movement types to post at a warehouse managed storage location.
This customizing needs to be done in IMG > LE > WM > Activities > transfers > define movement types
and
IMG > LE > WM > interfaces > inventory management > define movement types -
Query to search for independent DO
Hi experts,
I need a query to search for independent DO (DO without SO). I have been trying for quite sometime but the results appear to be duplicative and irrelevant. This is the syntax that I am using now,
SELECT DISTINCT T0.[DocNum] as 'SO#', T0.[DocStatus], T0.[DocDate], T0.[CardName], T1.[ItemCode], T1.[Quantity], T3.[DocNum] as 'DO#'
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
RIGHT JOIN DLN1 T2 ON T2.TrgetEntry = T1.DocEntry
INNER JOIN ODLN T3 ON T2.DocEntry = T3.DocEntry
I think there are something wrong with the syntax but I just can't figure out where is wrong. Please help.
Thank you.
Best Regards,
AlexHi Alex,
Try this,
SELECT DISTINCT T0.DocNum as 'SO#', T0.DocStatus, T0.DocDate, T0.CardName,
T1.ItemCode, T1.Quantity, T3.DocNum as 'DO#'
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
RIGHT JOIN DLN1 T2 ON T2.TrgetEntry = T1.DocEntry
INNER JOIN ODLN T3 ON T2.DocEntry = T3.DocEntry
WHERE T2.[BaseRef] = ' '
OR
SELECT T0.[DocNum], T0.[DocStatus], T0.[DocDate], T0.[CardCode], T0.[CardName],
T1.[ItemCode], T1.[Dscription], T1.[Quantity]
FROM ODLN T0 INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T1.[BaseRef] = ' '
Regards,
Madhan. -
Searching for Data in the Report for a non-selected column in display.
Hello,
I have an interactive report as given below:
select user, dept_name, sal, description, title from hr;
Now, in the report display options I remove the title and description from the display as you know title and description are 2000 characters each.
If I show then it takes the whole page to display one record and with this option I can search any text in the Title or Description columns.
Now, I have hidden these two columns and when I search I do not see any records.
Can any one tell me how to achieve this behaviour.
What I am looking is, I do not show the column 'TITLE' or 'DESCRIPTION' and user show be able to search for any important data inside these columns.
Please let me know how can we do this.
Please point me to an already published article or solution or any help on this type.
Appreciate your help on this.
thanks
Edited by: user648778 on Sep 18, 2008 6:13 PMAs far as I can see this will not work. You could use a trick and make a query like this:
SELECT USER, dept_name, sal,
apex_item.hidden (10, mgrdescription || title)
|| '<img src="#IMAGE_PREFIX#some_nice_icon.gif">' title_description
FROM hrThis would not display the title and description but an image and it would give you a possibility to filter on those.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
When Trying to install the newest Flash player, Im asked to fill in my login.
I have no clue what my login is. (It happened very rarely that I was asked to fill in this when installing a new program, and the login I have used before are not valid now.
When I search for help, I am suggested to put in the original installation Cd.. and press the "C" button when I hear the starting sound... but when I do this nothing is happening.
Please Help me If you have an idea for a solution to this problem!
/ JoelYou need the admin password you created when you first set up the machine. Just about every installer running under OS X will require you to authorize the installation by entering an administrator password - even software update requires this. You really should not forget your admin password, as it is required for many things in OS X since, unlike Windows, you often need to manually type in the admin password to proceed with an install or update (whereas Windows will take admin authority, if you are logged in as an admin, by simply clicking continue or yes).
If you cannot remember your admin password, you can reset it from the recovery CD that came with your mac - http://support.apple.com/kb/HT1274 -
Problem in using OCIBindByName for date type column
Hi,
Can you please guide me about my following problem?
I am trying to fetch the data from system table "FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$" in Oracle Express edition 10.2.0.3 database, using the OCI library on Windows with C++
This table has a TIMESTAMP column of date type.
I've the following query as below:
select TIME_STAMP from FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$ where TIME_STAMP > to_date('31/OCT/12 23:59:59', 'DD-MON-YY HH24:MI:SS') order by TIME_STAMP asc;
For this, first I am preparing the query as below:
select TIME_STAMP from FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$ where TIME_STAMP > :PKVAL order by TIME_STAMP asc;
Before calling OCIExecute(), I am setting the PKVAL buffer to following value:
"to_date('31/OCT/12 23:59:59', 'DD-MON-YY HH24:MI:SS') "
& calling the OCIBindByName function with data type as SQLT_DATE.
But when the OCIExecute is called, my program crashes with access violation
Can you please guide me what is the correct way to pass the date value in query to OCI? How do we bind the date values?
Thanks in advance for your time and help.
Best Regards.I had a similar problem. TO_DATE doesn't appear to function w/ BindByName or BindByPos.
You are going to have to bite the bullet and use an actual date.
Here's an example (I am using two dates in my query):
int main (int argc, char **argv, char **envp)
static text invalidQuery = (text )"SELECT f1.my_val, COUNT(f1.my_val) invalid_count, (SELECT COUNT(*) FROM my_db_table f2 WHERE f2.my_val = f1.my_val AND f2.foo_dt = :1 ) total_count FROM my_db_table f1 WHERE f1.foo_dt = :1 AND ( (f1.vld_bar_sw IS NULL OR f1.vld_bar_sw = 'N') OR (f1.vld_foo_sw IS NULL OR f1.vld_foo_sw = 'N') ) group by my_val order by my_val asc";
OCIDate boundDateVal;
sb2 inputYear;
ub1 inputMonth;
ub1 inputDay;
char inputYearStr [] = "0000";
char inputMonthStr [] = "00";
char inputDayStr [] = "00";
/* I get and validate the date as input, but you can set it however you'd like */
inputYear = (sb2) (atoi (inputYearStr));
inputMonth = (ub1) (atoi(inputMonthStr));
inputDay = (ub1) (atoi(inputDayStr));
/* Allocating Date*/
OCIDateSetDate ( &boundDateVal, inputYear, inputMonth, inputDay );
OCIDateSetTime( &boundDateVal, 0, 0, 0);
returnVal = OCIBindByPos(invalidStmt, &firstInputBindHPtr, myErrorHandle, (ub4) 1,
(dvoid *) &boundDateVal, (sword) sizeof(boundDateVal),
SQLT_ODT, /*dty OCIDate*/
(dvoid *) 0, (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT);
if ( !(returnVal == OCI_SUCCESS || returnVal == OCI_SUCCESS_WITH_INFO) )
displayErrors (returnVal, myErrorHandle, "OCIBindByPos-contactDate 1 ");
cleanup();
exit(1);
}//if
returnVal = OCIBindByPos(invalidStmt, &secInputBindHPtr, myErrorHandle, (ub4) 2,
//(dvoid *) &InputArguments.contactDate, (sword) sizeof(InputArguments.contactDate),
(dvoid *) &boundDateVal, (sword) sizeof(boundDateVal),
SQLT_ODT, /*dty OCIDate*/
(dvoid *) 0, (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT);
if ( !(returnVal == OCI_SUCCESS || returnVal == OCI_SUCCESS_WITH_INFO) )
displayErrors (returnVal, myErrorHandle, "OCIBindByPos-contactDate 2 ");
cleanup();
exit(1);
}//if
}//main
** I have had issues w/ OTN not correctly translating certain characters, so hopefully the above example is readable or you can figure out which characters may be missing.
Maybe you are looking for
-
Lista de solução de chamado de serviço
Boa Tarde, Por acaso alguém poderia me ajudar em uma questão. Ao mexer nas configurações de formulário na lista de solução de chamado de serviço de um usuário tirei o campo Criado Em e o campo Titular. Agora quando peço para pesquisar toda lista util
-
Is it necessary to keep Lightroom 3 on my computer when I have just installed Lightroom 4 ?
Is it necessary to keep Lightroom 3 on my computer when I have just installed Lightroom 4, or do they use some of the same files ??
-
Adjust manually changed Object field as per org level values
HI, I have a role wherein a field maintained at org. level has been changes in object manually. hence it no more follows the the org. level values assigned. The requirement is "this object should get adjusted for its field to have values as per the o
-
2012 mbp i have one connected to the minidisplay port now. suggestions ? thank you
-
FCP 7.0 problems opening a large project.
My FCP 7.0 suddenly got slow in opening. Took forever to open despite it having always opened quickly. I have a large project (about 115 minutes) but it still was opening OK until yesterday when it slowed down. I have done the following: 1) Threw awa