Syntax Error: "CS" is not a valid comparison operator.
Hi,
I am using the following query
select bukrs hkont augdt augbl zuonr gjahr
belnr buzei xblnr budat wrbtr
from bsis
into table ts_bsis
where bukrs eq p_bukrs and
hkont eq p_hkont and
zuonr cs p_ebeln and
budat in p_budat and
blart eq c_we.
I am receiving an syntax error:
"CS" is not a valid comparison operator.
Can I use this way or not ?
I need this because ZUONR is of 16 characters and it contains PO number(10) and PO item(6) combined.
So on the selection screen if user specifies PO number range, then he should be able to get the ones that are in match.
Any other solutions are welcome.
Thank you,
Surya
Message was edited by:
Surya
Hi,
You cant use comparision operetor in select where condition.
And in your case best suggestion.....
select bukrs hkont augdt augbl zuonr gjahr
belnr buzei xblnr budat wrbtr
from bsis
into table ts_bsis
where bukrs eq p_bukrs and
hkont eq p_hkont and
***zuonr cs p_ebeln and<----comment out
budat in p_budat and
blart eq c_we.
Later loop the internal table to process on the condition with ...check ts_bsis-zuonr(10) in p_ebeln.
Like this you can make the condition.
Thanks,
Deepak.
Similar Messages
-
Trying to use PL/SQL to automatically create a report that show the following:
Daily:
# of Registered Users
# of Completes (assessment) Average per User
# of Starts (assessment) Average per User
Weekly:
# of Registered Users
# of Completes (assessment) Average per User
# of Starts (assessment) Average per User
Yearly:
# of Registered Users
# of Completes (assessment) Average per User
# of Starts (assessment) Average per User
When I run the PL/SQL I get the following
[error]
ORA-01843: not a valid month
[error]
The error occurs on this part of the PL/SQL
--registered users weekly starts
select count(*), trunc(next_day(sysdate-29, 'SUNDAY')-7), trunc(sysdate-29)
into v_weekly_count_total_ru, v_weekly_start_date, v_weekly_end_date
from entities
where list_id = 3290
and participation_code_id = 10
and trunc(participation_date)
between trunc(next_day(sysdate-29, 'SUNDAY')-7) and
trunc(sysdate-29);I'm using the number 29 because I'm using a test database to test this first before moving it into production. And my test data only goes back to early August 2006.
Also, I'm not doing anything with months, so I am suprised that it is throwing this type of error.
thanksI tested a snippet of code in my production environment, just to see if I would get any results:
--registered users weekly starts
select count(*), trunc(next_day(sysdate-1, 'SUNDAY')-7), trunc(sysdate-1)
--into v_weekly_count_total_ru, v_weekly_start_date, v_weekly_end_date
from entities
where list_id = 3290
and participation_code_id = 10
and trunc(participation_date)
between trunc(next_day(sysdate-1, 'SUNDAY')-7) and trunc(sysdate-1);
COUNT(*) TRUNC(NEXT_DAY(SYSDATE-1,'SUND TRUNC(SYSDATE-1)--INTOV_WEEKLY
1 09/10/2006 00:00:00 09/11/2006 00:00:00I did a double check in my test DB to make sure there is data there:
select count(*)
from entities
where trunc(participation_date)
between to_date('01-08-2006','DD-MM-YYYY')
and to_date('14-08-2006','DD-MM-YYYY')
and list_id = 3290;
COUNT(*)
11So I'm pretty sure that I'm not pulling anything null.
thanks -
Need help in understanding the error ORA-01843: not a valid month - ECX_ACT
Hello All,
We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
And how to enable the log for Transaction Monitor -> Processing Logfile.
Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
thanks
muthu.Hello All,
We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
And how to enable the log for Transaction Monitor -> Processing Logfile.
Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
thanks
muthu. -
SQL execution error, ORA-01843: not a valid month
Im using ASP/VBScript and its my first time starting to use Oracle as a DB provider.
Just having an issue with a statement that I have.
Heres my statement:
SELECT T592_NOON.SHIP_CODE, T592_NOON.REPORT_DATE, T592_NOON.L_B, T592_NOON.AVERAGE_SPEED, T592_NOON.SEASTATE, T592_NOON.DISTANCE, T592_NOON.WIND_DIRECTION, T592_NOON.IFO_MAIN, T592_NOON.IFO_BOILER, T592_NOON.IFO_AUXENGINE FROM T592_NOON WHERE (((SHIP_CODE)='S271') AND (REPORT_DATE BETWEEN to_date('08/02/2004 13:00:00', 'DD-MON-YYYY HH24:MI') and to_date('28/02/2004 18:15:00', 'DD-MON-YYYY HH24:MI')))
Whenever I run it it errors and returns:
SQL execution error, ORA-01843: not a valid month
Can anyone tell why this wouldnt work?
REPORT_DATE type is DATE
REPORT_DATE Sample data: 2003-04-28-12.00.00.000000Changing the format of the date seemed to fix it.
Incorrect: '08/02/2004 13:00:00'
Correct: '08-FEB-2004 13:00' -
Runtime Error 3031. Not a valid password
I am using VB6, DAO connection to connect to Access ACCDB file. The ACCDB file is created with password. But program hit error whenever attempt to open a db connection. The message as below. I have tested the password by directly opening the ACCDB file
in Microsoft Access. Password is correct.
The error message is runtime error 3031. Not a valid password
The code use as below
Sub OpenDB()
Dim db As DAO.Database
Dim ws As DAO.Workspace
Dim rst As DAO.Recordset
Set ws = DBEngine.Workspaces(0)
Set db = ws.OpenDatabase("mydata.accdb", False, False, ";PWD=test12345")
Set rst = db.OpenRecordset("house", dbOpenDynaset)
If rst.RecordCount > 0 Then
rst.MoveLast
MsgBox rst!address
End If
rst.Close
db.Close
End SubHi Jsl,
Your code works well on my side, I can open a database with password. Below is the sample which I have tested:
Option Compare Database
Sub OpenDB()
Dim db As DAO.Database
Dim ws As DAO.Workspace
Dim rst As DAO.Recordset
Set ws = DBEngine.Workspaces(0)
Set db = ws.OpenDatabase("D:\Access Files\StudentDbWithPWD.accdb", False, False, ";PWD=123")
Set rst = db.OpenRecordset("ClassInfo", dbOpenDynaset)
If rst.RecordCount > 0 Then
rst.MoveLast
MsgBox rst!ClassName
End If
rst.Close
db.Close
End Sub
So, it is strange that it does not work for you. Can you send me a copy of your Access file to my hotmail account:
[email protected]
I will try to reproduce it on my side.
Best Regards,
Bruce Song [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
OLE DB error: OLE DB or ODBC error: %1 is not a valid Win32 application
Hi,
I am creating the Cubes with couple of dimensions. My backend is Oracle. I can able to deploy the cube in my local machine which is running 32 Bit Windoes 7 OS. But when I try to deploy the cube in another server which is running Windows 2003 R2 64 bit OS,
returns "OLE DB error: OLE DB or ODBC error: %1 is not a valid Win32 application" this error. The driver whic I am using to connect the Oracel DB is "Native OLE DB\Oracle Provider for OLE DB". I have also installed the Oracle 10g 32 bit client in my machine.
Any solution for this issue?
Thanks,
JeenHi Jeen,
What's the specific version of your SQL Server? Please try to install the latest Service Pack on 64bit box to see if this help.
How to obtain the latest service pack for SQL Server 2005:
http://support.microsoft.com/kb/913089
If you have any feedback on our support, please click
here.
Regards,
Elvis Long
TechNet Community Support -
I have a problem, i can't generate with DPS App Builder "App distribuzione.zip" to be sent to Apple to publish APP, this is the error message: is not a valid distribution certificate Apple. What do I do?
As Bern510 says, you'll need to recreate certificates that are valid. I suggest following our step-by-step publishing guide, which walks through how to obtain certificates correctly.
http://help.adobe.com/en_US/ppcompdoc/Step_by_step_guide_to_dps_se.pdf
Neil -
Import error: File is not a valid HTML DB export file
Hi,
This is driving me a bit nuts: I have made a change to a page and want to move it to another HTMLDB environment. I have 3 environments, DEV, TEST and PROD, they are all version 1.6.0.00.87. I export the page from DEV, then when I try and import it into TEST I get an error "File is not a valid HTML DB export file". The file looks OK to me, I have regenerated it several times, I have tried both DOS and UNIX formats, same result. How can I find out the root cause of this issue, I've been able to export/import individual pages without any problems up to now.
Thanks,
SteveThis was tripping me up for a while too. Make sure that the workspace id (1236351 or some such large number) is the same across all environments. You can ensure this by taking a export of the DEV workspace itself from the Admin interface (login to workspace internal) and importing it into TEST and PROD.
Once the workspace id is the same, you can export/import pages between them without a problem.
Thanks -
Error xc3sd3400a is not a valid board name
hi all;
i work with with fpga xc3sd3400a and i want to generate the file.ace from download.bit ,so i use the xmd and i run the fllowing command makeace download but the error is occur on the xmd display :error xc3sd3400a is not a valid board name;
any one help me please ;
thinks a lot;yes, this spartan-3a dsp board is not a targeted board for the system ace file generating from XMD command
check table 13-3 from the following link
http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_7/est_rm.pdf
For a custom board, use the -configdevice option to specify the JTAG chain and use an OPT file which is mentioned in the above link
else if you have impact tool installed you can generate the system ace file in the gui for the device xc3sd3400a
-
Date error ORA-01843: not a valid month
Hi,
I am in a 4.01 Apex environment with NLS_DATE_FORMAT mm/dd/yyyy. I created a view with a CASE statements using 'when eventstartdate between '08/15/2010' and '06/1/2011' then...' clauses and the view is created fine. I also can query the view with no problem with SQL workshop and the CASE statements work as expected. When I create an interactive report on that view I keep getting ORA-01843: not a valid month. I even tried matching the format in the Interactive Report column format mask to the NLS format for the date and still get error.
What seems especially strange to me is that even if I have the view column defined with a 'to_char' I still get the same error when I use the CASE statement to build the view. Doesn't the Interactive Report just 'see' the View column definitions-- why should it 'care' how the view was built?
The only way I can get the View to work with an Interactive report in any manner is to remove all the CASE statements and define the 'eventstartdate' as text using to_char but that then eliminates my ability to do any filters that require date comparisons with between or '>', '<'.
Help would be appreciated!
Thanks,
PatQuick late night response - always convert your dates for comparison. Apples to apples
Instead of between '01/31/2012', use either
TO_DATE('01/31/2012', 'MM/DD/YYYY')or
DATE '2012-01-31'More related info
http://www.grassroots-oracle.com/2011/03/date-format-tolerance.html
Sorry if I'm off target, thought it may help -
Oracle error "ORA-01843: not a valid month" when trying to run sqlldr
Hi all,
I'm trying to load some data into a staging database via a CSV file using sqlldr, and am running into an issue where it doesn't like the date format I'm using.
Here is my input data:
2012-01-09 16:28:12 -05:00Here is the entry in the .ctl file:
created TIMESTAMP WITH TIME ZONE 'yyyy-mm-dd HH24:MI:SS TZR'And finally, here is the entry in the .sql file:
created TIMESTAMP WITH TIME ZONEAfter I try to load, I get greeted with the dreaded error message: Record 1: Rejected - Error on table WTPART, column CREATED. ORA-01843: not a valid month
I'm really confused as to why it's blowing up on the date, because it seems to me that "01" is indeed a valid date in terms of the date format I'm using. Any ideas? Thanks!
Edited by: Nick Tiberi on Jan 10, 2012 8:06 AMHmmm, not sure exactly what the problem is. It works fine for me on my XE instance.
Set up the control and data files....
tubby@Tubbz:~/test$ cat >> WTPart.csv <<EOF
2012-01-09 16:28:12 -05:00
EOF
tubby@Tubbz:~/test$
tubby@Tubbz:~/test$ cat >> load.ctl <<EOF
LOAD DATA
INFILE WTPart.csv
APPEND INTO TABLE WTPart
FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
created TIMESTAMP WITH TIME ZONE 'yyyy-mm-dd HH24:MI:SS TZR'
EOF
tubby@Tubbz:~/test$
tubby@Tubbz:~/test$ /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlldr tubby/pswd@xe control=load.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Tue Jan 10 10:21:28 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Commit point reached - logical record count 1
tubby@Tubbz:~/test$
{code}
Query the result from the database
{code}
ME_XE?select * from wtpart;
CREATED
09-JAN-12 04.28.12.000000 PM -05:00
1 row selected.
Elapsed: 00:00:00.01
ME_XE?
ME_XE?select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
5 rows selected.
Elapsed: 00:00:00.01
ME_XE?
{code}
Are you sure your CSV file doesn't have some "funky" data in it? -
ITunes set up gives an error message saying not a "valid win32 application"
I am using Windows 7 and trying to download iTunes, but when I try to open the iTunes set up it gives an error message saying that it is not a "valid win32 application". It does the same for downloading quicktime. I have no idea what this means or what to do about it.
That suggests that the installer is getting damaged during the download.
I'd first try downloading an installer from the Apple website using a different web browser:
http://www.apple.com/itunes/download/
If you use Firefox instead of IE for the download (or vice versa), do you get a working installer? -
Error - ORA-01843: NOT A VALID MONTH
I get this Error when I execute a procedure which accepts input paramters to insert into a table. I tried using TO_DATE(Input_param,'MM/DD/YY') too but it still gives me the error. Plz. Help.
> However if I make this modification in the values clause of the insert statement
and if I dont used "TO_DATE" function in the procedure call its giving me the above error.
SQL> values(
,TO_DATE(p_date,'DD/MM/YYYY'));
I'm not clear what modification you are making to what. If p_date is a DATE, there should not be a TO_DATE conversion applied to it inside the procedure - it's already a DATE.
How is your case different from the following example?
SQL> CREATE TABLE testit
2 ( id INTEGER, dateval DATE );
Table created.
SQL> CREATE OR REPLACE PROCEDURE testproc
2 ( p_id INTEGER
3 , p_dateval DATE )
4 AS
5 BEGIN
6 INSERT INTO testit (id, dateval)
7 VALUES (p_id, p_dateval);
8 END testproc;
9 /
Procedure created.
SQL> desc testproc
PROCEDURE testproc
Argument Name Type In/Out Default?
P_ID NUMBER(38) IN
P_DATEVAL DATE IN
SQL> exec testproc(1, sysdate);
PL/SQL procedure successfully completed.
SQL> exec testproc(2, DATE '2006-03-24');
PL/SQL procedure successfully completed.
SQL> exec testproc (3, TO_DATE('23/03/2006','DD/MM/YYYY'))
PL/SQL procedure successfully completed.
SQL> SELECT * FROM testit;
ID DATEVAL
1 24-MAR-2006
2 24-MAR-2006
3 23-MAR-2006
3 rows selected.If the procedure parameter is a DATE and the column is also a DATE, there should be no conversion involved. The "Not a valid month" error occurs when you try to convert a string to a DATE using either the wrong format or a nonsense string such as '2005-94-01'. You need to be clear what is a DATE and what is a string at each stage of processing.
Notice that the default date format can be changed:
SQL> ALTER SESSION SET nls_date_format = 'YYYY-MM-DD';
Session altered.
SQL> SELECT * FROM testit;
ID DATEVAL
1 2006-03-24
2 2006-03-24
3 2006-03-23
3 rows selected.
SQL> ALTER SESSION SET nls_date_format = 'RRRR-MM-DD HH24:MI:SS';
Session altered.
SQL> SELECT * FROM testit;
ID DATEVAL
1 2006-03-24 11:55:45
2 2006-03-24 00:00:00
3 2006-03-23 00:00:00
3 rows selected. -
Syntax error after applying NOTE 2028544
Hello Experts,
We implemented Fiori My Timesheet application and it was working fine except while saving the time data from Fiori we were getting short dump saying conversion error (found during debugging) as mentioned in below screenshot.
To overcome this error we implemented SAP NOTE 2028544 in ECC using SNOTE but it was throwing an syntax error in a interface /IWBEP/IF_MGW_MED_ODATA_TYPES. While during version comparision we found out that the NOTE has removed a line from the program (Below screenshot) which is causing the error. Also we are currently in SAPK-20009INIWBEP version of IW_BEP.
Can anyone please let us know what wrong we did and how to overcome this situation since we cannot revert back the changes because it is asking for access key to manually change the code and when we are trying to reset the NOTE implementation using SNOTE then we are getting syntax error in the above program?
Thanks in advance.
Regards,
Rahul
Tags edited by: Michael Appleby (but please start doing this on your own)Hello Pankaj,
While checking the NOTE 2032088 and the correction instructions, it was mentioned that the prerequisites is to apply NOTE 2028544 (The one in which we are facing error).
But the main problem now is we applied the NOTE 2028544 but it caused a change in a program (mentioned earlier) and we activated it forcefully. Now when we are trying to open My Timesheet application it is giving error. When we try to reset this NOTE implementation then we cannot do because it is saying there is a syntax error in your program.
We are now in deadlock situation where we cannot move forward or backward
Regards,
Rahul -
Syntax Error "Method was not declared or inherited in class"
Dear all,
I am seeing the following syntax error in one of the standard classes CL_ICCMP_BT_INRHISTRESULT_CN01 which says "Method "XYZ" was not declared or inherited in class". Need help to identify when this error would occur or where I should be checking for this error within the class.
I checked other systems for the same class, the method XYZ does not exist there too but still the class has no syntax errors!
Would appreciate your help!
Thank you.
Regards,
Gayathri.Hi Gayathri,
please give detailed information on how and where you get this error.
CL_ICCMP_BT_INRHISTRESULT_CN01 does not exist in our ECC600 system.
Regards,
Clemens
Maybe you are looking for
-
Impossible to install Creative Cloud !
I'm trying to install Creative Cloud for desktop but it's not work. I have the error code 62. I have OS 10.8.5 Do you know what i have to do ? Thanks
-
Audio Drift when importing VHS Tapes-Do I need a Canopus ADVC 300
Embarking on the daunting task of importing/editting >100 2hr VHS tapes, and want to get the best results for my efforts. I pop a tape into a VCR connected via S-Video (video) and RCA (audio) cables to a Sony DVMC-DA1 AD converter, and from there to
-
Bug or feature limitation: can't pin header on Phone version of site
Hi, Check out this file. Look at it in phone view. Preview and note that I can't pin the header/nav. Bug or feature limitation? Dropbox - MicrositeRedesign04.muse.zip Dave
-
Scrapping of materials with approvals
Hello SAP experts, I need your advice for the following issue. Any process or advice is greatly appreciated. (1) Client wants to scrap unsold and out of date materials at end of the each quarter. (2) The scrapping process should include the approvals
-
Rescaling a background video... how?
I want to be able to resize a background video that is in SD format. The project, however, is widescreen HD. I want to be able to resize the background video so that fills the monitor screen completely. How do I do this?