Data retrieved by JCO formatted incorrectly
Hi everyone,
I'm calling RFC_READ_TEXT via the JCO. However, the results returned are all 'chopped' up haphazardly.
For example, in the MESSAGES table, the results are like this :
TYPE = ET
ID = D 602Text object KON
NUMBER = P is n
MESSAGE = ot available 000000 KONP 00000
LOG_NO = 9953901
LOG_MSG_NO = PR
MESSAGE_V1 = DCLNT300
MESSAGE_V2 =
MESSAGE_V3 =
MESSAGE_V4 =
PARAMETER =
ROW = 0
FIELD =
SYSTEM =
When I entered the same input to RFC_READ_TEXT in SE37 test function, the results are all formatted properly on the GUI.
I'm guessing something might have gone wrong while passing the results to JCO. The data is 'chopped' up and placed in all the incorrect fields in JCO.Table.
Does anyone have any ideas on how to resolve this? My SAP system DB is in Unicode. This problem occurred only after the DB was converted to Unicode. However, there is something in the API documentation which says:
"Note: The preffered way to create meta data should be to use JCO.Repository. In this case the meta data fetched by Repository is correct independent on having unicode and non unicode backend."
I am using the JCO.Repository to create meta data. Does it mean that my JCO already has the capability to talk to Unicode SAP?
Thanks for any advice and insights.
Managed to find some additional info on the issue. I printed out the MetaData for one of the tables used in another function - RFC_READ_TABLE :
table name is FIELDS
FIELDS , ,h,6,4,0,Names (in) and structure (out) of fields read
FIELDNAME , ,C,60,0,0,Field Name
OFFSET , ,N,12,60,0,Offset of a field
LENGTH , ,N,12,72,0,Length (No. of Characters)
TYPE , ,C,2,84,0,ABAP data type (C,D,N,...)
FIELDTEXT , ,C,120,86,0,Short Description of Repository Objects
When I run RFC_READ_TABLE in SE37 test function, and when I view the MetaData from within the SAPGUI, this is what I see :
FIELDNAME CHARACTER 30
OFFSET NUMC 6
LENGTH NUMC 6
TYPE CHARACTER 1
FIELDTEXT CHARACTER 60
So now I know that JCO is formatting all the results incorrectly because of incorrect MetaData. All the field lengths have been doubled judging from the MetaData retrieved by JCO.Repository!
But I do not know how to go about resolving this issue. Are there any special flags which I should set to obtain a Unicode version of the MetaData? In the documentation for JCO, it was mentioned that:
"It is especially important that you don't mix up Unicode and non-Unicode calls. For doing RFC calls to and from a Unicode SAP Systems you will also need a corresponding repository holding the appropriate Unicode meta data. For RFC calls to and from Non-Unicode SAP Systems you will need a repository holding the appropriate Non-Unicode meta data."
Can anyone advise how should I go about creating another set of repository containing Unicode MetaData? Thanks!
Similar Messages
-
Tell me how to format a date retrieved from a MS SQL Server 2000 database?
Tell me how to format a date retrieved from an MS SQL Server 2000 database for various uses in my JSP page?
Or if you want to use JSTL instead of a scriptlet see:
http://forum.java.sun.com/thread.jspa?threadID=676754&tstart=0 -
External table: How to load data from a fixed format UTF8 external file
Hi Experts,
I am trying to read data from a fixed format UTF8 external file in to a external table. The file has non-ascii characters, and the presence of the non-ascii characters causes the data to be positioned incorrectly in the external table.
The following is the content's of the file:
20100423094529000000I1 ABÄCDE 1 000004
20100423094529000000I2 OMS Crew 2 2 000004
20100423094529000000I3 OMS Crew 3 3 000004
20100423094529000000I4 OMS Crew 4 4 000004
20100423094529000000I5 OMS Crew 5 5 000004
20100423094529000000I6 OMS Crew 6 6 000004
20100423094529000000I7 Mobile Crew 7 7 000004
20100423094529000000I8 Mobile Crew 8 8 000004
The structure of the data is as follows:
Name Type Start End Length
UPDATE_DTTM CHAR 1 20 20
CHANGE_TYPE_CD CHAR 21 21 1
CREW_CD CHAR 22 37 16
CREW_DESCR CHAR 38 97 60
CREW_ID CHAR 98 113 16
UDF1_CD CHAR 114 143 30
UDF1_DESCR CHAR 144 203 60
UDF2_CD CHAR 204 233 30
DATA_SOURCE_IND CHAR 294 299 6
UDF2_DESCR CHAR 234 293 60
I create the external table as follows:
CREATE TABLE "D_CREW_EXT"
"UPDATE_DTTM" CHAR(20 BYTE),
"CHANGE_TYPE_CD" CHAR(1 BYTE),
"CREW_CD" CHAR(16 BYTE),
"CREW_DESCR" CHAR(60 BYTE),
"CREW_ID" CHAR(16 BYTE),
"UDF1_CD" CHAR(30 BYTE),
"UDF1_DESCR" CHAR(60 BYTE),
"UDF2_CD" CHAR(30 BYTE),
"DATA_SOURCE_IND" CHAR(6 BYTE),
"UDF2_DESCR" CHAR(60 BYTE)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER DEFAULT DIRECTORY "TMP"
ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE
CHARACTERSET UTF8
STRING SIZES ARE IN BYTES
NOBADFILE NODISCARDFILE NOLOGFILE FIELDS NOTRIM
( "UPDATE_DTTM" POSITION (1:20) CHAR(20),
"CHANGE_TYPE_CD" POSITION (21:21) CHAR(1),
"CREW_CD" POSITION (22:37) CHAR(16),
"CREW_DESCR" POSITION (38:97) CHAR(60),
"CREW_ID" POSITION (98:113) CHAR(16),
"UDF1_CD" POSITION (114:143) CHAR(30),
"UDF1_DESCR" POSITION (144:203) CHAR(60),
"UDF2_CD" POSITION (204:233) CHAR(30),
"DATA_SOURCE_IND" POSITION (294:299) CHAR(6),
"UDF2_DESCR" POSITION (234:293) CHAR(60) )
) LOCATION ( 'D_CREW_EXT.DAT' )
REJECT LIMIT UNLIMITED;
Check the result in database:
select * from D_CREW_EXT;
I found the first row is incorrect. For each non-ascii character,the fields to the right of the non-ascii character are off by 1 character,meaning that the data is moved 1 character to the right.
Then I tried to use the option STRING SIZES ARE IN CHARACTERS instead of STRING SIZES ARE IN BYTES, it doesn't work either.
The database version is 11.1.0.6.
Edited by: yuan on May 21, 2010 2:43 AMHi,
I changed the BYTE in the create table part to CHAR, it still doesn't work. The result is the same. I think the problem is in ACCESS PARAMETERS.
Any other suggestion? -
Data retrieval for Sony handycam with 60G harddrive.
Does BestBuy do data retrieval? I have a handycam with work video on it that accidentaly got formated. I know with a standard harddrive you can still retrieve it if there has not been recording since the formatting but I am not sure about camera harddrives. If BestBuy does not do it, does anyone know where it can be done and approximate cost. I live in the New Orleans area.
I may try the same question in computers if nobody knows. Thanks in advance for any guidance at all.Best Buy sends out for data retrieval. You can have it sent out through geek squad to get the estimate of cost.
Crystal
Superuser
Forum Guidelines | Terms & Conditions | Community Guidelines | What is a Superuser?
*Remember to mark your questions solved and click the star to give kudos to show your thanks!*
While I used to be a Best Buy Employee, I no longer have any affiliation with Best Buy.
My opinions do not in any way shape or form represent Best Buy's Official decisions. -
Data Retrieval Speed in Oracle Spatial vs. ESRI ArcSDE
I would appreciate any opinions regarding data retrieval
performance between Oracle Spatial and ESRI ArcSDE. Would an end-
user (using ESRI software) experience significant differences in
data retrieval speed depending on how the data were stored in
Oracle (MDSYS.SDO_GEOMETRY verses ESRI Binary/Blob formats).
Knowing that the ESRI binary formats are tailored to their
software front-end apps (ArcGIS, ArcMap, ArcCatalog, and
ArcInfo), wouldn't this be a "non-issue" until the spatial
dataset gets "large", and even then, wouldn't performance be
(almost) equal if the spatial indexes were created properly?
Thanks for your inputs,
BruceJohn,
You can't do that type of query in sql from sql*plus using
SDEBINARY. HOwever, you can perform spatial queries in ArcMap
if you are using SDEBINARY.
You can use the query builder to perform point-in-polygon type
queries.
Hope that helps.
For my two cents, I think SDO_GEOMETRY gives you a more robust
database to work with, because you have the added power of
Oracle Spatial functions. If you are using SDEBINARY you are
limited to only what you can do thru ArcGIS.
If you are concerned more about performance than accessibility,
especially with a large number of users, then SDEBINARY might
be the better choice.
I love Oracle Spatial and am hoping that the performance issue
will not be a serious one when we start putting ArcIMS developed
apps into production.
Dave -
Data Retrieval speed from DIAdem Database using Data Finder Toolkit in LabVIEW
I have developed a LabVIEW code using NI Data Finder toolkit for extracting the data from the DIAdem. I have formed queries for extraction the data. But the data retrieval takes more time for extracting the data.
I have attached my LabVIEW code image along with this post. In that i have circled the VI "Results to Waveform", which is Data Finder toolkit VI which takes more time for extraction. From my Testing, query formation is taking only few millisecond to execute, but "Results to Waveform.vi" takes around 35 seconds. Also i want to execute similar kind of search for 5 times. Altogether it will taken around 1.5 mins to 2 mins for execution.
Is there any other alternative way of doing this search? Kindly help me in sorting this out.
Thanks,
Alagar
Solved!
Go to Solution.
Attachments:
Report Gen.JPG 91 KBHi Alagar,
You say that the "Results to Waveform.vi" takes "more" time, but what are you comparing this to? More than what? More than loading the contents of the same file with the TDMS VIs or with the Storage VIs? What file format are you loading data from after querying-- TDMS files, ASCII files, binary files?
What information do you want to retrieve? Do you really need ALL the values of ALL the channels in each data file? Are you interested only in the channel values, or all you interested in scalar properties stored along with the data? If you want only some of the channels loaded or if you want only scalar properties loaded, there are indeed faster ways of doing this.
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
Data retrieval from infotype 0024(Qualification)
hi abapers,
could someone suggest me how to retrieve data from infotype 0024(Qualification)
I tried from pa0024,but no data is stored there.
yogeshHi Yogesh,
Make use of below FMs to fetch the data from IT0024 -
* Fill t_pernr_tmp with employees (PERNRs) as follows -
t_pernr_tmp-plvar = '01'.
t_pernr_tmp-otype = 'P'.
t_pernr_tmp-sobid = '00000001'. "give employee number here
append t_pernr_tmp.
* READ QUALIFICATION
CALL FUNCTION 'RHPP_Q_PROFILE_READ'
EXPORTING
begda = w_low "provide date in sy-datum format
endda = w_high "provide date in sy-datum format
with_stext = c_x
with_qk_info = c_x
TABLES
OBJECTS = t_pernr_tmp
profile = t_qual_data
EXCEPTIONS
no_authority = 1
wrong_otype = 2
object_not_found = 3
undefined = 4
OTHERS = 5.
* here t_qual_data will have qualification data.
*after that make use of FM 'RHPE_QCAT_BRANCH_READ_UP' and the *t_qual_data table to read the branches of qualification data. -
Hi Experts,
I got one problem with my query information. when Im executing my report and drill my info in my navigation panel, Instead of a table with values the message "Result set is too large; data retrieval restricted by configuration" appears. I already applied "Note 1127156 - Safety belt: Result set is too large". I imported Support Package 13 for SAP NetWeaver 7. 0 BI Java (BIIBC13_0.SCA / BIBASES13_0.SCA / BIWEBAPP13_0.SCA) and executed the program SAP_RSADMIN_MAINTAIN (in transaction SE38), with the object and the value like Note 1127156 says... but the problem still appears....
what Should I be missing ?????? How can I fix this issue ????
Thank you very much for helping me out..... (Any help would be rewarded)
David CortéYou may ask your basis guy to increase ESM buffer (rsdb/esm/buffersize_kb). Did you check the systems memory?
Did you try to check the error dump using ST22 - Runtime error analysis?
Edited by: ashok saha on Feb 27, 2008 10:27 PM -
WAD : Result set is too large; data retrieval restricted by configuration
Hi All,
When trying to execute the web template by giving less restiction we are getting the below error :
Result set is too large; data retrieval restricted by configuration
Result set too large (758992 cells); data retrieval restricted by configuration (maximum = 500000 cells)
But when we try to increase the number of restictions it is giving output. For example if we give fiscal period, company code ann Brand we are able to get output. But if we give fical period alone it it throwing the above error.
Note : We are in SP18.
Whether do we need to change some setting in configuration? If we yes where do we need to change or what else we need to do to remove this error
Regards
KarthikHi Karthik,
the standard setting for web templates is to display a maximum amount of 50.000 cells. The less you restrict your query the more data will be displayed in the report. If you want to display more than 50.000 cells the template will not be executed correctly.
In general it is advisable to restrict the query as much as possible. The more data you display the worse your performance will be. If you have to display more data and you execute the query from query designer or if you use the standard template you can individually set the maximum amount of cells. This is described over [here|Re: Bex Web 7.0 cells overflow].
However I do not know if (and how) you can set the maximum amount of cells differently as a default setting for your template. This should be possible somehow I think, if you find a solution for this please let us know.
Brgds,
Marcel -
Result set is too large; data retrieval restricted by configuration
Hi,
While executing query for a given period, 'Result set is too large; data retrieval restricted by configuration' message is getting displayed. I had searched in SDN and I had referred the following link:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d047e1a1-ad5d-2c10-5cb1-f4ff99fc63c4&overridelayout=true
Steps followed:
1) Transaction Code SE38
2) In the program field, entered the report name SAP_RSADMIN_MAINTAIN and Executed.
3) For OBJECT, entered the following parameters: BICS_DA_RESULT_SET_LIMIT_MAX
4) For VALUE, entered the value for the size of the result set, and then executed the program:
After the said steps, the below message is displayed:
OLD SETTING:
OBJECT = VALUE =
UPDATE failed because there is no record
OBJECT = BICS_DA_RESULT_SET_LIMIT_MAX
Similar message is displayed for Object: BICS_DA_RESULT_SET_LIMIT_DEF.
Please let me know as to how to proceed on this.
Thanks in advance.Thanks for the reply!
The objects are not available in the RSADMIN table. -
"It is formatted incorrectly, or is not a format that iBooks can open". Can anyone help me with this message of a book that I purchased on iBooks, read, highlighted in the book and now I can't open it anymore. Please help!!!
Mine does the same thing occasionally, is your phone jailbroken? Sometimes it will work if you delete the book and reinstall it or put your phone into airplane mode then turn it back off.
-
Restored our SSRS 2008 R2 from one server to another; Dates are in UK format and not US
We have restored our SSRS 2008 R2 from one server to another. The original server was in US locale/culture. The new server was in UK locale/culture, when the restore happened. However it should have been in US locale/culture. We have made this change and
new reports work OK.
However existing reports (i.e. saved by a user) are still trying to use the US dates in a UK format and as a result throwing a date cant be below 1753 error.
Has anyone seen this issue before or have any idea what we need to do to fix it?
Thanks
KimberladHi Kimberlad
Have you checked any changes in the Collation?
Please verify Reporting Server Databases and Server Collation is there any mismatch with your Source Server.
and also please post complete Error message..
Nag Pal MCTS/MCITP (SQL Server 2005/2008) :: Please Mark Answer/vote if it is helpful :: -
Somehow my MacBookPro iCloud account has a different name and password from my other devices. Even my date of birth is listed incorrectly. I have tried but can't seem to change this info to match up with my other devices. Can someone help?
Thanks
I have a PC (Windows 7)
Not sure when mobile me changed, but it was this weekend that my storage etc. lapsed (I have paid to keep storage with icloud). So i assume this has something to with it stopping. -
How to get the Date in a particular format?
Hi,
How to get the Date in the below format? I will be passing the year in my method..
2/10/2003 9:46:52 PM
D/M/YYYY H:M:S A
public Date getDate (String year) {
Here i want to get the Date in this format
2/10/<Passed Year> 9:46:52 PM
ThanksThis is my code
public static Date getCalendar(Calendar calendar,int getYear) {
String formatted_date="";
int year = getYear;
int month = calendar.get(Calendar.MONTH+1);
int day = calendar.get(Calendar.DATE);
int hour = calendar.get(Calendar.HOUR);
int min = calendar.get(Calendar.MINUTE);
int sec = calendar.get(Calendar.SECOND);
int am_pm =calendar.get(Calendar.AM_PM);
formatted_date = month+"/"+day+"/"+year+" "+hour+":"+min+":"+sec+" PM";
System.out.println("formatted_date is "+formatted_date);
o/p : formatted_date is 1/4/2006 1:44:21 PM
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
// DateFormat dateFormat =DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
Date passdate = new Date();
try {
passdate = dateFormat.parse(formatted_date);
} catch (ParseException e) {
System.out.println("Invalid Date Parser Exception "+e.getLocalizedMessage()+"DateFormat is "+dateFormat);
System.out.println("The Date inside the function is "+passdate+"and the year passed is "+year);
o/p : The Date inside the function is Sat Apr 01 00:00:00 IST 2006and the year passed is 2006
return passdate;
Expected O/P is 3/1/2006 1:44:12 PM
} -
Printing Date in a Custome Format
hi,
I want to know how to get date in a custome format in print layout designer...for exmple the date is given as 09/10/07 but i need Day - 09 , Month - 10 , Year - 07 seperately in 3 text fields...
Thanks
Malinda WellawaMalinda,
In Print Layout properties the options is only for free text or database or formula or for text box..
U verify with the properties
Thanks,
Anitha
Maybe you are looking for
-
10.5.6 update and coreaudio timestamping crashes?
anybody else experiencing this? i'm having numerous audio application problems since the 10.5.6 update. Reaktor 5 crashes on launch. Many Max/MSP objects crash the app as soon as the audio engine is turned on. any ideas on what happened to coreaudio?
-
Determination of Source for services in SRM rel 4.0
Hi We have requirement to have list of vendors determine automatically in shopping carts for services. In this release 4.0 if you have contracts in R/3 this determining of vendors works for non-service/material items but not for service. I log a call
-
We have an STO between 2 plants where no invoice was ever created. GI posted, the GR posted, but now the GR cannot clear because there is no invoice. Also, it does not show in WE02. All other STO's work for us, it is just this combination of specific
-
Can InDesign recognise a URL from a PDF within a picture box?
I want to find out if InDesign can recognise a URL from a PDF which I have pulled into a picture box? We are using InDesign and DPS to create magazine apps from PDF pages, a lot of these pages have a lot of URL's which we need live in the app. At the
-
Cs4 extended looking for shortcuts video layers
So, let's say I have downloaded a QT video, when I import the video (less than 500 frames) and convert to video to layers I would then take a bunch of the layers and make them a group. Okay, here's where I need the help, I would like to take t