Regarding data truncation
Hello,
I have a currency field in the backend ( CURR 13 ). The data stored in the table is say 34.838.839,00.
Now when I extract this field to BW, I can see the data in PSA as required.
But when it gets loaded to the master data infoobject, the data is seen as 3483884.
The infoobject corresponding to this field is of type NUMC 14. I cannot make it of type CURR as it is should be a characteristic, not a key figure.
I believe this is because of a conversion routine problem.
Could someone help me out pls?
Regards,
Suraj
Thanks for your reply
Why do you have to do that on your own? It's the databases task to correctly truncate a String, if necessary (and inform you of the fact by issuing a Warning).
But when i insert a string of size greater than 100 bytes i am getting an SQL Exception.
Also, is the size of the text field really restricted by the number of bytes instead of the number of characters? I've seen that in some DBs (can't remember which ones), but it's a pretty bad idea and fortunately not all do it that way.
I am using Oracle9i and the size of text field is restricted by the number of bytes.
Also, your code assumes that the database uses the same encoding as the default locale of the machine running your code. Workaround: find out the encoding of the Database and use that when calling getBytes().Points taken. Thanks.
Similar Messages
-
We are on oracle version 9.2.0.7. Our application is web based and we use Oracle thin client (ojdbc14.jar) to connect to database. We have a dblink to a SQL server 7.0 database. When we use ojdbc14.jar for 9.2.0.5 there is no problem. If we use version 9.2.0.8 or higher there is data truncation on some fields. Query is very simple and no functions are used in the query. Please help.
Trying to understand the problem,
+ If you are connecting to SQL server 7.0 through Oracle are you using Oracle Gateway
to connect to a different kind of server?
Now about the database & data
+ What is the character set of SQL server?
+ What is the character set of the Database?
+ What is the type on the field that you are selecting?
+ What is the size of data that you are trying to select?
regards,
Ashok -
Appropritate forum to put queries regarding data archiving
Hi All,
Which one is the appropriate forum to put queries regarding data archiving?
Thanks in advance.
VithalprasadYes you can use this forum, also there is one forum for Data Transfers.
Regards,
Altaf Shaikh -
hi gurus, i have some doubt regarding dates function.
if i enter any date of present month i wand the first date of next month.
for example if i enter any date in january from 01/01/2007 to 31/01/2007 i want
first date of february. ie 01/02/2007. plz help me.
regards
vamsi.Hi
use this coding
data : d1 type sy-datum,
d2 type sy-datum,
d3 type sy-datum,
d4(8),
m(2),
y(4).
d1 = sy-datum.
CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
EXPORTING
I_DATE = d1
IMPORTING
E_DATE = d2 .
write : d1.
skip 3.
m = d2+4(2).
y = d2+0(4).
concatenate y m '01' into d4 .
d3 = d4.
write : / d3.
write : / d2.
write / '***********2 month****************************'.
d3 = d2 + 1.
CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
EXPORTING
I_DATE = d3
IMPORTING
E_DATE = d2 .
write :/ d3,
/ d2.
write / '**************3 month ***************************'.
d3 = d2 + 1.
CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
EXPORTING
I_DATE = d3
IMPORTING
E_DATE = d2 .
write :/ d3,
/ d2. -
hi all,
i need some information regarding date types infotype 41.
i need to print date types in sequential manner like dar01 dar02 dar03 like upto 12 date types.
can you please suggest me how should i print them.
thanks,
madhavi.Hi,
Steps to create a HR Infotype:
1) Go to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the 'Employee Infotype' radio button.
4) Select the 'PS Structure Infotype'.
5) Click on Create... A separate table maintenance window appears...
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on 'All' push button. It takes a few moments.
10) Click on 'Technical Characteristics'. Infotype list screen appears
11) Click on 'Change'(pencil) button
12) Select your Infotype and click on 'Detail' (magnifying glass) button
13) Give 'T591A' as subtype table
14) Give 'T591S' as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on 'Infotype Characteristics' ... Infotype list screen appears
18) Click on 'Change' (pencil) button
19) Click on 'New Entries'
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirement...
25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select 'Layout Editor' and click 'Change'.
27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Don't forget to 'Activate at every level)
Subtype Creation :
Transaction PM01 Goto Subtype Characteristics. Click on Append and then subtype. Enter the name and description of subtype on screen.
Then goto technical Characteristics and maintain the details of subtype there. I.e name of subtype i.e. component name defined in PSnnnn. Subtype table is T591A.
Subty.text tab is T591S and time const tab is T591A.
See:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
HR related site:
http://www.sapdevelopment.co.uk/hr/hrhome.htm
Enhancement of Infotype
Check the following
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
Infotype Enhancement overview screen
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
with regards,
Hema SUndara. -
Urgent regarding Data & Task Audits Back Up
Hi Experts
Here my question is regarding Data Audit and Task audits in V 11.1.2.1
-->If we take the back up of Data & Task audit tables data in to other backup_tables in same schema how this can be viewed through task audit and data audit through HFM?
-->Whether any third part tools available to audit the tasks (DATA & TASK ) information...?
-->Whether EPM maestro can be used here..?
Thanks in advance
Edited by: RajaKK on May 29, 2012 6:19 PMUse the Audit Extract utility bundled with HFM 11.1.2.1 to export this information periodically to a CSV file that you can view offline through any text editor, or even Excel. There is a command line feature for this as well, so you could incorporate this into a batch routine.
For anyone attending Kaleidoscope in San Antonio, TX next month, I will present the various utilities that ship with HFM including this one. Hope to see you there!
--Chris -
Error when executing statement for table/stored proc DB2 - Data Truncation
Hi,
I have one call sp in XI with n parameters int and two parameters out.
well, to implement the interface gives the following error
com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'SPSAPAR9' (structure 'Statement'): java.sql.SQLException: The number of parameter values set or registered does not match the number of parameters
Thanks for your help
Ximena
Edited by: Ximena Gonzalez on Feb 19, 2008 11:50 AM
Edited by: Ximena Gonzalez on Feb 20, 2008 12:17 PMMy Error is change
Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'SAPPRG.SPSAPAR9' (structure 'Statement'): java.sql.DataTruncation: Data truncation
but de change DT SP
<?xml version="1.0" encoding="UTF-8" ?>
<ns1:AlistReqDet2_MT xmlns:ns1="urn:proxl:tmuc:proxl01:AlistReqItems">
<Statement>
<SPSAPAR9 action="EXECUTE">
<table>SAPPRG.SPSAPAR9</table>
<ISAPNU1 isInput="TRUE" type="STRING">0080000353</ISAPNU1>
<ISAPEM1 isInput="TRUE" type="STRING">'LU'</ISAPEM1>
<ISAPC05 isInput="TRUE" type="STRING">15353</ISAPC05>
<ISAPSEC isInput="TRUE" type="STRING">10</ISAPSEC>
<ISAPLOT isInput="TRUE" type="STRING">'lats'</ISAPLOT>
<ISAPCA1 isInput="TRUE" type="STRING">10</ISAPCA1>
<ISAPCA2 isInput="TRUE" type="STRING">10</ISAPCA2>
<ISAPKIL isInput="TRUE" type="STRING">10</ISAPKIL>
<ISAPES1 isInput="TRUE" type="STRING">'T'</ISAPES1>
<ISAPSW isOutput="TRUE" type="STRING" />
</SPSAPAR9>
</Statement>
</ns1:AlistReqDet2_MT> -
Hi,
Im getting following ODBC warning while connecting with TT database.
I understood its thrown after SQLDriverConnect() in my application.
This error was noticed after changing my DSN.
[TimesTen][TimesTen 7.0.2.0.0 CLIENT] Data truncated. ODBC Error/Warning = 01004, TimesTen Error/Warning = 0
Both the server dsn connection character set is JA16SJIS .
Connection is done and I could do operations on the DB .
Thanking in advance
sanalHi thanks ,
This is the connection.DLL contains the following method
int getConnection(SQLHENV henv,SQLHDBC hdbc,char * dsn){
SQLRETURN rc = SQL_SUCCESS; //* General return code for the API
SQLHSTMT hstmt = SQL_NULL_HSTMT; //* Statement handle
SQLCHAR connOut[255];// Buffer for completed connection string
SQLSMALLINT connOutLen;//Number of bytes returned in ConnOut
SQLCHAR connStr = (SQLCHAR)dsn;//Connection string
/* FOR LOGGING THE MESSAGE IN THE LOG*/
logMessage('D', __FILE__, "getConnection", __LINE__, "Entering connection"); //logging a 'DEBUG'
rc = SQLAllocEnv(henv);
if (rc != SQL_SUCCESS){
logMessage('E', __FILE__, "getConnection", __LINE__, "Unable to allocate an environment handle!");
exit(1);
logMessage('D', __FILE__, "getConnection", __LINE__, "Allocating Connection Handle"); //logging a 'DEBUG'
rc = SQLAllocConnect(*henv, hdbc);
if (rc != SQL_SUCCESS){
printf("unable to allocate connection handle hdbc");
chkReturnCode(rc, *henv, SQL_NULL_HDBC, SQL_NULL_HSTMT, "Unable to allocate a connection handle\n", __FILE__, __LINE__, 1);
logMessage('D', __FILE__, "getConnection", __LINE__, "Creating the connection"); //logging a 'DEBUG'
rc = SQLDriverConnect(*hdbc, NULL,connStr, SQL_NTS,connOut, sizeof(connOut),&connOutLen,SQL_DRIVER_NOPROMPT);\
chkReturnCode(rc, henv, hdbc, SQL_NULL_HSTMT, "Error in connecting to the data store\n", __FILE__, __LINE__, 1);
return rc; // Connection will be closed in the calling program
Im passing the env and connection handles from my calling program as follows
rc=getConnection(&henv,&hdbc,connStr);
where connStr="DSN=sanal_dsn;PermSize=64"
even if rc =1 ,surprisingly connection is there and i can do operations on DB.
thanks for ur time,
sanal -
Data truncation: Out of range value adjusted for column
I encountered the following error while working thru "Creating Your First LiveCyle ES Application" and have not been able to find a solution. Any assistance would be greatly appreciated.
javax.ejb.TransactionRolledbackLocalException: Data truncation: Out of range value adjusted for column 'loanamount' at row 1; CausedByException is:
Data truncation: Out of range value adjusted for column 'loanamount' at row 1
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:247)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
at $Proxy284.writeObject(Unknown Source)hmm, i have sloved the error already. I have make my longtitude double(40,20).
-
Hello,
we have the phenomena that when an application is commiting a transaction and then terminating,
often not all events regarding Data Cache are dispatched by the TCP kodo.RemoteCommitProvider.
It seems that the JVM on termination is not waiting until RemoteCommitProvider has dispatched all events regarding Data
Cache. In this way we sometimes loose some cache synchronization and some of our customers run into serious problems.
Is there a way to guarantee that all Data Cache events are dispatched before the aplciation terminates
(maybe implementing a shutdown hook?).
best regards
Guenther Demetz
Wuerth-Phoenix SRLHi,
as nobody answered to my question I try to explain it more simple:
Are the TCP-kodo.RemoteCommitProvider threads acting as user threads or as threads of type 'deamon' ?
I hope that soon someon can answer
best regards
Guenther Demetz
Wuerth-Phoenix SRL
G.Demetz wrote:
Hello,
we have the phenomena that when an application is commiting a transaction and then terminating,
often not all events regarding Data Cache are dispatched by the TCP kodo.RemoteCommitProvider.
It seems that the JVM on termination is not waiting until RemoteCommitProvider has dispatched all events regarding Data
Cache. In this way we sometimes loose some cache synchronization and some of our customers run into serious problems.
Is there a way to guarantee that all Data Cache events are dispatched before the aplciation terminates
(maybe implementing a shutdown hook?).
best regards
Guenther Demetz
Wuerth-Phoenix SRL -
Is there any way to restore data truncated with TRUNCATE query in Oracle9i
Hi, Is there any way to restore data truncated with TRUNCATE query in Oracle9i DB...
Thanks in advance...Hi,
you can flash back DML queries like insert, update
but it is not possible for some DDL like truncate, alter, and and drop columns etc that change structure of table.
e.g.
SQL> select * from t2;
C1
3
SQL> select dbms_flashback.get_system_change_number from dual;
GET_SYSTEM_CHANGE_NUMBER
496378
SQL> truncate table t2;
Table truncated.
SQL> select * from t2 as of scn(496378);
select * from t2 as of scn(496378)
ERROR at line 1:
ORA-01466: unable to read data - table definition has changed
Andrey -
"Data truncation: Incorrect datetime value" Error Message
Hello,
I'm running Coldfusion 8 with a MySQL database. The s10Date
column is of type "datetime".
What would cause the following error to occur when I'm
entering data into the database?
Data truncation: Incorrect datetime value: '{ts '2008-09-03
17:16:01'}' for column 's10Date' at row 1
The error occurred in
C:\ColdFusion8\wwwroot\Websites\questnbs.info\components\DataMgr\DataMgr.cfc:
line 1602
Called from
C:\ColdFusion8\wwwroot\Websites\questnbs.info\components\DataMgr\DataMgr.cfc:
line 1170
Called from
C:\ColdFusion8\wwwroot\Websites\questnbs.info\components\DataMgr\DataMgr.cfc:
line 1633
Called from
C:\ColdFusion8\wwwroot\Websites\questnbs.info\parsed\quest_c_registrations.processregistr ationform.cfm:
line 37
Called from
C:\ColdFusion8\wwwroot\Websites\questnbs.info\parsed\quest_c_registrations.processregistr ationform.cfm:
line 5
Called from
C:\ColdFusion8\wwwroot\Websites\questnbs.info\parsed\quest_c_registrations.processregistr ationform.cfm:
line 1
Called from
C:\ColdFusion8\wwwroot\Websites\questnbs.info\fusebox5\Application.cfc:
line 228
Called from
C:\ColdFusion8\wwwroot\Websites\questnbs.info\fusebox5\Application.cfc:
line 218
Called from
C:\ColdFusion8\wwwroot\Websites\questnbs.info\fusebox5\fusebox5.cfm:
line 57
Called from
C:\ColdFusion8\wwwroot\Websites\questnbs.info\index.cfm: line 12
1600 : <cfquery name="qQuery"
datasource="#variables.datasource#" username="#variables.username#"
password="#variables.password#"><cfloop index="i" from="1"
to="#ArrayLen(aSQL)#" step="1"><cfif IsSimpleValue(aSQL
)><cfset temp =
aSQL>#Trim(PreserveSingleQuotes(temp))#<cfelseif
IsStruct(aSQL
)><cfset aSQL = queryparam(argumentCollection=aSQL
)><cfswitch
expression="#aSQL.cfsqltype#"><cfcase
value="CF_SQL_BIT"><cfif aSQL
.value>1<cfelse>0</cfif></cfcase><cfcase
value="CF_SQL_DATE">#CreateODBCDateTime(aSQL.value)#</cfcase><cfdefaultcase><cfif
ListFindNoCase(variables.dectypes,aSQL
.cfsqltype)>#Val(aSQL.value)#<cfelse><cfqueryparam
value="#aSQL
.value#" cfsqltype="#aSQL.cfsqltype#" maxlength="#aSQL
.maxlength#" scale="#aSQL.scale#" null="#aSQL
.null#" list="#aSQL.list#" separator="#aSQL
.separator#"></cfif></cfdefaultcase></cfswitch></cfif>
</cfloop></cfquery>
1601 : <cfelse>
1602 : <cfquery name="qQuery"
datasource="#variables.datasource#"><cfloop index="i"
from="1" to="#ArrayLen(aSQL)#" step="1"><cfif
IsSimpleValue(aSQL)><cfset temp = aSQL
>#Trim(PreserveSingleQuotes(temp))#<cfelseif
IsStruct(aSQL)><cfset aSQL
= queryparam(argumentCollection=aSQL)><cfswitch
expression="#aSQL
.cfsqltype#"><cfcase value="CF_SQL_BIT"><cfif
aSQL.value>1<cfelse>0</cfif></cfcase><cfcase
value="CF_SQL_DATE">#CreateODBCDateTime(aSQL
.value)#</cfcase><cfdefaultcase><cfif
ListFindNoCase(variables.dectypes,aSQL.cfsqltype)>#Val(aSQL
.value)#<cfelse><cfqueryparam value="#aSQL.value#"
cfsqltype="#aSQL
.cfsqltype#" maxlength="#aSQL.maxlength#" scale="#aSQL
.scale#" null="#aSQL.null#" list="#aSQL
.list#"
separator="#aSQL.separator#"></cfif></cfdefaultcase></cfswitch></cfif>
</cfloop></cfquery>
1603 : </cfif>
1604 :
Thank you in advance for your assistance.
SimonJust a note, I had the same problem and resolved it by making
sure my cfsqltype in cfqueryparam is cf_sql_timestamp instead of
cf_sql_datetime (which is not a valid value).
Also, just a note that when working with a datetime value in
cfqueryparam, using cf_sql_date for cfsqltype will truncate the
time to 00:00:00. -
Com.mysql.jdbc.MysqlDataTruncation: Data truncation
Hi, i have these error
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value adjusted for column 'longtitude' at row 1
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2932)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1616)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1708)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3255)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1293)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1566)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1480)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1465)
at dao.PlacemarkDAO.add(PlacemarkDAO.java:52)
at web.AddPlacemarkServlet.processRequest(AddPlacemarkServlet.java:70)
at web.AddPlacemarkServlet.doGet(AddPlacemarkServlet.java:86)
in my database, i have declare longtitude as double(255,30) but i still dont know why got error data truncation? Can anyone please guide me?hmm, i have sloved the error already. I have make my longtitude double(40,20).
-
I need some help regarding data element ZEXPDT. I used it in an infoquery that was transported to QAS and it does not exist in QAS. I thought it might be locked in a transport, but the below screen clip says it is not locked. It was created in 3/2014. Thanks.
Either trick the system, SE11, add a space at end of text desciption and save,
Or call transport workbench (SE01, SE10) create a transport request or use an existing one, then double-click on a task, switch to modify mode, add a line with R3TR DTEL name of the data element, save, then object list, lock in request/task menu.
Or SE80, contextual menu of data element. (other functions, write transport entry)
Regards,
Raymond -
I am unable to access iTunes. Receive error regarding data execution prevention. I've changed the Performance Options to exclude DEP for iTunes and I've tried unloading/reloading. Still no success. Suggestions?
Try updating your QuickTime to the most recent version. Does that clear up the DEP errors in iTunes?
Maybe you are looking for
-
I have an IMAC running tiger and a macbook running Leopard. I wnat to purchase a NAS (possibly a mini Stack) so that files can be shared so it doesn't matter what computer my kids get on they'll have access to their files, music, email, etc. I'm conc
-
Cannot copy and paste between some CS2 programs
Using MAC OS X 10.3.9 and CS 2 Copy and paste does not function between some programs of CS2. For example, Photoshop might say "Could not complete the Paste command because of a program error". Illustrator never says anything when the paste operation
-
Hey-- I am running OSX 10.4 on a MacBook Pro. Recently, as I was shutting down my computer, my Finder started constantly relaunching (every 1 second or so). As such, I can't open any programs, open any windows or do anything. Even when I force shut d
-
Please help to rewrite this logic to improve the performance.
Hi Experts, In this procedure we are inserting data into the same table using same columns and same values with different WHERE conditions. IN the WHERE clause we have some common conditions in all select statements. Thanks.
-
Hi all, This morning I was playing around with audio messages with a friend on our iPhones. Everything was working fine. We were sending messages just fine, receiving them just fine, and they were auto-expiring as expected. Then once I turned on my c