Error when passing Date to ViewObject
I am capturing Date and 1 string on form and passing as bind variables to a query in Vo.
I get error oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
The Vo executes fine if the query has only date parameter as a bind variable
but it fails when there are 2 or more bind variables along with date as a bind variable.
I am capturing the date in Co as -
String runDate = pageContext.getParameter("Rundate");
And executing VO in AM as -
vo.setWhereClauseParams(null);
vo.setWhereClauseParam(0,runDate);
vo.setWhereClauseParam(1,interface_code);
vo.executeQuery();
and VO query is
select a, b, c
from table where interface_id = (select interface_id from table where interface_code = :2) and
(payroll_id like 'XX' or payroll_id = 'HEADER') and output_rec_type in (select distinct output_rec_type from table
where interface_id=(select interface_id from table where interface_code = :2) and payroll_id like 'XX') and
run_date = TO_DATE((to_char(trunc(to_date(:1)),'DD-MON-YYYY') ),'DD-MON-YYYY')
The strange thing is that , the VO executes fine if I hard code value for bind variable :2 ,but if fails otherwise.
Are there any limitations in using date as bind variable or I am doing something wrong way.
Thanks in Advance,
Tanveer
By the way instead of using date format directly in query, u can pass java date object in bind variables, it will make your code safe, even if user enters date in some other format by changing his user level preference.
--Mukul
Similar Messages
-
Error when passing data to Business connector
Hi All,
I am getting the error (com.wm.lang.flow.FlowException: [B2BCORE.0049.9010] Service; An error occurred when executing a REMOTE FUNCTION CALL.) when i am passing data from a program to business connector.
I have tested my connection in R/3 and business connector and the connection is fine. Can any one pls let me know how to handle this error.
Thanks,
RajuHi
Answer is pure assumption
Pls check the following OSS notes
(1) Note 412511 - IDocs with segment release 2 and MarketSet Connector
(2) Note 407867 - IDoc segment release 2 (R/3 release < 4.0)
Pls take opinion from SAP / BASIS before implementing the OSS note
Regards
Madhan D -
Error when passing data from app server...
Hello Experts,
I am encountering an error when trying to pass data from application server
to my internal table. Below is the error:
"You cannot convert the character set"
Hope you can help me guys.Thank you and take care!Hi ,
ABAP code for uploading a TAB delimited file into an internal table. See code below for structures. The code is base on uploading a simple txt file.
REPORT zuploadtab .
PARAMETERS: p_infile LIKE rlgrap-filename
OBLIGATORY DEFAULT '/usr/sap/'..
DATA: ld_file LIKE rlgrap-filename.
*Internal tabe to store upload data
TYPES: BEGIN OF t_record,
name1 like pa0002-VORNA,
name2 like pa0002-name2,
age type i,
END OF t_record.
DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
wa_record TYPE t_record.
*Text version of data table
TYPES: begin of t_uploadtxt,
name1(10) type c,
name2(15) type c,
age(5) type c,
end of t_uploadtxt.
DATA: wa_uploadtxt TYPE t_uploadtxt.
*String value to data in initially.
DATA: wa_string(255) type c.
constants: con_tab TYPE x VALUE '09'.
*If you have Unicode check active in program attributes then you will
*need to declare constants as follows:
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
*START-OF-SELECTION
START-OF-SELECTION.
ld_file = p_infile.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
ELSE.
DO.
CLEAR: wa_string, wa_uploadtxt.
READ DATASET ld_file INTO wa_string.
IF sy-subrc NE 0.
EXIT.
ELSE.
SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
wa_uploadtxt-name2
wa_uploadtxt-age.
MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
APPEND wa_upload TO it_record.
ENDIF.
ENDDO.
CLOSE DATASET ld_file.
ENDIF.
*END-OF-SELECTION
END-OF-SELECTION.
*!! Text data is now contained within the internal table IT_RECORD
Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop.
Reward points if it is usefull ..
Girish -
Error when passing data through Business connector
Dear all,
we are getting below exception in BC trace while connecting to the remote url through SAP BC. Please guide us how to solve this problem.
java.lang.RuntimeException: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by TrustDecider
at com.wm.pkg.sap.rfc.ListenerCallHandler.handleRequest(ListenerCallHandler.java:516)
at com.sap.conn.idoc.jco.DefaultJCoIDocServerWorker$IDocDispatcher.handleRequest(DefaultJCoIDocServerWorker.java:72)
at com.sap.conn.jco.rt.DefaultServerWorker.dispatchRequest(DefaultServerWorker.java:141)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.dispatchRequest(MiddlewareJavaRfc.java:2621)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.listen(MiddlewareJavaRfc.java:1919)
at com.sap.conn.jco.rt.DefaultServerWorker.dispatch(DefaultServerWorker.java:258)
at com.sap.conn.jco.rt.DefaultServerWorker.loop(DefaultServerWorker.java:320)
at com.sap.conn.jco.rt.DefaultServerWorker.run(DefaultServerWorker.java:219)
at com.wm.util.TimeWrappingProvider$TimeMesuredTask.run(TimeWrappingProvider.java:40)
at com.wm.pkg.sap.rfc.ListenerThread.run(ListenerThread.java:70)
Caused by: iaik.security.ssl.SSLCertificateException: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by TrustDecider
at com.wm.app.b2b.client.Context.invoke(Context.java:1290)
at com.wm.app.b2b.client.Context.invoke(Context.java:1106)
at com.wm.app.b2b.client.Context.connect(Context.java:764)
at com.wm.app.b2b.client.Context.connect(Context.java:706)
at wm.server.remote.checkConnection(remote.java:888)
at wm.server.remote.checkConnection(remote.java:861)
at wm.server.remote.invoke(remote.java:397)
at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:310)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:699)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:496)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:468)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:574)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:499)
at pub.JSBC_remote.invoke(JSBC_remote.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:310)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:699)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:147)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:279)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:556)
at com.wm.lang.flow.FlowState.step(FlowState.java:427)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:397)
at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:972)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:699)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:481)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:590)
at com.wm.pkg.sap.rfc.ListenerCallHandler.handleRequest(ListenerCallHandler.java:454)
... 9 more
Thanks and Regards,Dear sandeep,
Thank you very much for your fast response.
We have alredy downloaded certificate given by the other party and configured in BC.We are able to get the response from a from third party from url separtely from internet explorer.while executing by using service we are getting the above exception.
Please give us some inputs on this issue.
Thanks and Regards,
Edited by: chandra madapati on Dec 30, 2008 1:28 PM -
Error while passing date parameters in procedure and commit issue
Hi
1) I am doing a archiveing records and pls find my code below and i have couple of issue,pls find my code and want to ensure the commit is happening every 100000 rows inserted but i am archeiving a huge table but when i checks the table frequently it shows 0 records and after it shows count the actual rows around 20 million records.How can i ensure it commiting on every 100000 records. pls find my code my db version is 10g on windows
CREATE OR REPLACE PROCEDURE doins as
cnt number:=0;
FOR x IN (select * from Call_log
where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY'))
LOOP
INSERT INTO call_arch
select * from Call_log
where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY');
cnt := cnt + 1;
IF( cnt = 10000 )
THEN
cnt := 0;
commit;
END IF;
commit;
END LOOP;
2) Error while passing date as parameter i am getting following errors while passing date parameter pls find my code and errors
CREATE OR REPLACE PROCEDURE doins(p_date date) as
cnt number:=0;
begin
FOR x IN (select * from Call_log
where trunc(c_date) = to_char(p_date,'DD-MON-YYYY'))
LOOP
INSERT INTO call_arch
select * from Call_log
where trunc(c_date) = to_char(p_date,'DD-MON-YYYY');
cnt := cnt + 1;
IF( cnt = 10000 )
THEN
cnt := 0;
commit;
END IF;
commit;
END LOOP;
end;
exec doins(11-Aug-2008) then gives
SQL> exec doins(11-Aug-2008);
BEGIN doins(11-Aug-2008); END;
ERROR at line 1:
ORA-06550: line 1, column 16:
PLS-00201: identifier 'AUG' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
if i gave exec doins(11-08-2008) it gaves
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'DOINS'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
rgds
roshCREATE OR REPLACE PROCEDURE doins(p_date varchar2) as
cnt number:=0;
begin
FOR x IN (select A.rowid,A.* from Call_log A
where trunc(c_date) = to_date(p_date,'DD-MON-YYYY'))
--hope that's c_date columne is DATE datatype
LOOP
INSERT INTO call_arch
select * from Call_log
where rowid=x.rowid;
cnt := cnt + 1;
IF( cnt = 10000 )
THEN
cnt := 0;
commit;
END IF;
commit;
END LOOP;
end;
thats your correct procedure - but NOT CORRECT ISSUE.
You should use bulk collect with limit clause and forall clause to do it faster!!! Or Merge clause. -
Error when reading data from socket
Hi,
I am getting the error 'NiRawReadError: An error occured when reading data from socket.' when using the ABAP API 'mo_core_service->invoke_matching'.
And I get this error only when I pass ABAP_TRUE to the paramter 'iv_wait_for_invocation' .
Can anybody help me in correcting this?Hi Narasa,
The following error is already in discussion in the below forum.Plz consult the forum link you will find the error solution.
Problem in ABAP API - NiRawReadError: error when reading data from socket
Rgds
Ankit -
Error when extracting data with extractor 2lis_04_matnr - NEED HELP ASAP !!
Hi experts!
Got an error when extracting data with extractor 2lis_04_matnr.
System says (short dump):
DUMP TEXT START----
Runtime error: CONNE_IMPORT_WRONG_COMP_TYPE
Exception: CX_SY_IMPORT_MISMATCH_ERROR
Error when attempting to import object "MC04P_0MAT_TAB".
The current ABAP program "SAPLMCEX" had to be terminated because one of the statements could not be executed. This is probably due to an error in the ABAP program. When attempting to import data, it was discovered that the data type of the stored data was not the same as that specified in the program.
An exception occurred. This exception is dealt with in more detail below. The exception, which is assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR', was neither caught nor passed along using a RAISING clause, in the procedure "MCEX_BW_LO_API" "(FUNCTION)".
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is: When importing the object "MC04P_0MAT_TAB", the component no. 5 in the dataset has a different type from the corresponding component of the target object in the program "SAPLMCEX". <b>The data type is "D" in the dataset, but "C" in the program.</b>
DUMP TEXT END----
Please, can someone explain me how to solve it?
Really need help ASAP!
Thanks in advance,
Jaume
Message was edited by:
Jaume Saumell
Message was edited by:
Jaume SaumellHi,
Check this note: 328181
So you need to delete entries in SM13/LBWQ for application and also detup table content.
And then refill teh set up table.
If you are in production clear the entries by running collective run no of times for this application 04.
With rgds,
Anil Kumar Sharma .P -
Can anyone list problems/errors when uploading data using BDC's and BAPI's?
Can anyone list the problems/errors when uploading data using BDC's and BAPI's?
Hi,
If you are actually creating a BDC to load data pls be more specific.
Data format incorrect. Tab delimited/ etc
Dates in wrong formats
Currency incorrect formats
Missing screens
Wrong transaction code
File not found,
Missing Mandatory fields,
Screen resoultion.
You should always use refresh for your Bdcdata table.
Loop at internal table.
refresh Bdcdata.
regards,
sowjanya. -
IR webclient: error when uncompressing data retrieved: *Data Error*!
A small (?) number of IR webclient 931 installations we notice the next error when processing: " error when uncompressing data retrieved: *Data Error*! " It does not seem to be user or permission/provision related.
Does anyone have an idea how to solve it. Reinstalling the IR webclient does not solve it.Hi there, I got to the point where I found the cause, but now I still need to solve it. perhaps anyone can give me a hint.
931 bqy's are stored on server as zip files. (although they are renamed as *.1) On 832 they were stored as bqy files (although they were renamed to *.1 too).
The clients which had the error message tried to open their 931 documents with the 832 plugin. Which does not have the capebility to uncompress the .1 file. In that perspective is the error message very obvious.
We need to run both 832 intelligence plugin and the 931 webclient on the same client.
How can we force that the corrcet version is used for openeing the docs? -
Error when sending data request
Hi All,
i have scheduled info package for different type data sources in bi 7.0, for this i am getting the data from ecc 6.0 . all of this schedule's showing the status "error when sending data request" with the following details.
status
diagnosis
the request idoc could not be sent to the source system using rfc
system response
there is an idoc in the warehouse outbox that did not arrive in the ale inbox of the source system
in step by step analysis it is showing
rfc to source system successful showing with ash status
data selection successfully stated and finished ? show with red status
in that details tab
request : showing with green status
everything ok
extraction :showing with red status
missing messages
transfer(idocs and trfc) : missing messeges
processing(data packet) : no data
it is showing technical status with red as processing overdue
processing step call to source system
so it is showing error with 0 from 0 records.
please any body could help me for solving this error.
regards,
naveen.Hi
Seems you have connectivity issues between the Source system and Bi system.
You need to check whether you have data on R/3 side via RSA3 with Full / Delta Update Modes with Target System as your BI system.
RSA13--Source System -- Right click Connection parameters/check/Restore/Activate again Say Replicate All Data Sources (If Possible , provided if you have time because it consumes lot of time )
You need to check the tRFC Queue SM58/59 for any Stucks and WE19/20 for IDocs.
Much of BASIS Issue .
Hope it helps and clear -
Error when getting data (RSDRI_CUBE_READ) - RSCRM_BAPI
Hello Gurus,
I am getting a error when I try to create a extract using RSCRM_BAPI using Process Chain.
I created a job and used that in the Process Chain, Once I run the Process Chain it is executing and
the job is deleted and the extract gives me this error in the Monitor.
Error Message - Error when getting data (RSDRI_CUBE_READ)
If I run manually I am able to see the extracted records.
Please help.
Regards,
RajHi,
"Unknown error when executing MDX" is msg number BRAINOLAPAPI012.
Check out these 3 SAP notes:
1091523 MDX: System error in connection with named sets
1252372 OLE DB for OLAP: Additional corrctions for new MDX parser
1282785 MDX: System error "Invalid MDX command with <internal>
Also test in transaction MDXTEST to see if your statements are syntactically correct.
Rgds,
Colum -
Error when passing URL from OLAP Universe to WebI
Hi Experts,
I am getting 'The Supplier XML is not valid' WebI error when passing a URL from OLAP Universe.
URL example:
'<a href="http://www.sap.com">web link</a>'
I follow Universe Designer Guide:
- typing above URL into Dimension Select statement
- selecting Read As Hyperlink in Object Format.
When I drop this dimension into Result Objects panel in WebI Query and run refresh 'The Supplier XML is not valid' pops up.
What i am trying to achive is to create a pre-formatted as Hyperlink object (dimension) in WebI to make it available for a user to design ad-hoc reports.
Please help
ThanksHi,
Refer the below forum link for more information:
Universe object format in Web Intelligence
I guess you can do some changes in the format of Universe object and use it in Webi.
-Noor. -
Error when using data postion delay
I obtained this error when using data position delay. Can anyone please
tell me the reason why I can not configure the delay to be between 0.7
and 0.8.
Possible reason(s):
Driver Status: (Hex 0xBFFA403F) Unable to configure requested delay property given the current clock rate.
Ensure that the delay value specified is within the valid range for the
frequency specified or do not configure property for delay operation.
Device: PXI1Slot2
Property: Data Position
Sample Rate: 40000000.0
Requested Value: 0.71875
Supported Values: 0.000 through 0.200, 0.300 through 0.700, 0.800 through 1.000,
Status Code: -219401Timothy,
The 656x devices have a limit on the available data delay values based
on frequency. Between 25MHz and 50MHz there are "holes" in the
available delay range. Above 50MHz, the full 0 to 1 data delay is
valid. If you look in the specifications installed with NI HSDIO
for the NI 656x, on page 7, Figure 1, there is an illustration showing
how to compute what the valid range is for the frequency of interest.
For example, at 40MHz, valid values are:
0 to 0.2
0.3 to 0.7
0.8 to 1
In the error message posted below, you tried to input a value of 0.71875 which is not within these ranges. -
EPM11.1.1.2:error when uncompressing data retrieved
After I open a BQY in IR WEB client and click the "table",there is an error happened. The error message is "error when uncompressing data retrieved:*Data Error*". My IE has no google toolbar or any other toolbar. What's wrong?
Hi there, I got to the point where I found the cause, but now I still need to solve it. perhaps anyone can give me a hint.
931 bqy's are stored on server as zip files. (although they are renamed as *.1) On 832 they were stored as bqy files (although they were renamed to *.1 too).
The clients which had the error message tried to open their 931 documents with the 832 plugin. Which does not have the capebility to uncompress the .1 file. In that perspective is the error message very obvious.
We need to run both 832 intelligence plugin and the 931 webclient on the same client.
How can we force that the corrcet version is used for openeing the docs? -
IRWebclient: error when uncompressing data retrieved: *Data Error*!
We experience a sporadic "error when uncompressing data retrieved: *Data Error*!" while processing a query with IR webclient 931. The problem occurs on several webclients but on other desktops it does not. The IHTML processes fine.
Any one an idea? reinstalling interactive webclient on the same pc does not help.
Completely reinstall the pc (os and other client software including interactive webclient) does help.Hi there, I got to the point where I found the cause, but now I still need to solve it. perhaps anyone can give me a hint.
931 bqy's are stored on server as zip files. (although they are renamed as *.1) On 832 they were stored as bqy files (although they were renamed to *.1 too).
The clients which had the error message tried to open their 931 documents with the 832 plugin. Which does not have the capebility to uncompress the .1 file. In that perspective is the error message very obvious.
We need to run both 832 intelligence plugin and the 931 webclient on the same client.
How can we force that the corrcet version is used for openeing the docs?
Maybe you are looking for
-
ID password not accepted anymore (once worked)
Good morning, I am kind of desperate...and I hope somebody is familiar with this problem. I have adobe reader 11 XI, the latest version. I am taking a trainingcourse at Learningtrain. They provide lessonmaterial with certificates / id only. I created
-
I have Itunes 11 and home sharing isnt in the side bar
I have logged in my home sharing and used it before but when I updated to itunes 11 its no longer in the side bar. and i found out how to make the side bar visible its just not there.
-
Report of changes that took place in FPP2
Dear all, I have got a question about SAP FS-CD (collection and disbursement) If I make changes to the master data (FPP2) is there a way to view the changes I have made in a report. It is possible to view the changes via tables but I was wondering if
-
ClassNotFound while narrowing JNDI ref to ejb home interface
Hello everybody I'm quite new to BEA WebLogic. I deployed Jasmine application on Bea WLS7 (example app from Mastering EJB 2). But when i tried to use login servlet, it threw an exception ClassNotFound when narrowing ejb home interface (obtained via J
-
WebLogic Server 5.1 SP11 starting error
Hi, I have installed WebLogic Server 5.1 SP11 in my home PC on Win NT and I tried to start the server, I got the message WebLogic server started, immediatly after that I got a message "IIOP Service not started as 1.3 vm was not found". Any help is ap