Error in TYPE conversion in Unicode
Hi exprts,
I have got problem in Unicode conversion.
DATA esc_char TYPE x VALUE '1B'.
How to convert above to CHAR format, can anybody pls help on this.
Regards,
Zakir.
DATA esc_char TYPE C VALUE '1B'.
Similar Messages
-
IDoc transfer error - Message Type Conversion
Hi,
While trying to transfer an IDocs from a 46C system, i get the following STATUS message in transaction BD87
Message type RPM_TIME could not be converted
Message no. EA 694
Diagnosis
Conversion entry between long and short names missing.
System Response
IDoc cannot be processed without this entry.
Procedure
Create an appropriate entry for logical message RPM_TIME.
Could you anyone let me know the reason as to why it occurs.
Regards,
RoshithThe problem is the FM for that action is trying to use a material movement to make the transfer. You can't use standard material movements to transfer into QI once you have activated any of the materials inspection types.
What inspection lot is generated by your current action box? I'm guessing an 89. I can't remember.
Have an ABAP'er trace the FM and determine how it is doing the stock transfer. If it is using a 322 it won't work with QM active. You will have to have you ABAP'er modify it to use a 311 or 411 which will then use the 08 inspection type. I suggest you use a copy of 411 or 311 for this.
Craig -
Value error during type conversion (KONP-KBETR to packed nos).
Hi,
I am using TYPE KONP-KBETR whose data element is 'KBETR_KOND'. Its Length is 11 and decimal Places is 2.
Now I want to store this value in a variable with 3 decimal places.
For this I have taken a variable with type P.
Eg : DATA : VALUE2(7) type P decimals 3.
When I store the value of KONP-KBETR in var VALUE2, I get some confusing value.
For Eg: if KONP-KBETR = 300.00 and I pass this value to var VALUE2, then VALUE2 becomes 30.000.
Ideally VALUE2 should have been 300.000.
Can anybody tell why this is so and what needs to be done to get the correct value.?
Thanks.Hi Kumar,
TABLES KONP.
data: val1 TYPE KONP-KBETR value '300.00',
VALUE2(7) type P decimals 3.
value2 = val1.
write: val1,
value2.
the output of the above code, 300.00 300.000.
i didn't get any problem.. check it out once..
Ram -
Hi Friend,
I am working in UNICODE project,i need one help,
I have one error .
Actually, im using one structure(Z0028) and passing values to internal table.
At that time i shows one error.
Actually,this error is due to type conversion problem.
In that structure,i ve one packed datatype ,so, if i select
unicode check it shows error.
I will sent example prg and error also.
Please give some solution to slove.
REPORT YPRG1 .
TABLES: Z0028.
DATA:I_Z0028 TYPE Z0028 OCCURS 0 WITH HEADER LINE .
SELECT * FROM Z0028 INTO TABLE I_Z0028 .
IF SY-SUBRC <> 0 .
WRITE:/ ' NO DATA'.
ENDIF.
LOOP AT I_Z0028.
WRITE:/ I_Z0028.
ENDLOOP.
Regards,
Kalidas.THi,
Display fields
do like this..
REPORT YPRG1 .
TABLES: Z0028.
DATA:I_Z0028 TYPE Z0028 OCCURS 0 WITH HEADER LINE .
SELECT * FROM Z0028 INTO TABLE I_Z0028 .
IF SY-SUBRC 0 .
WRITE:/ ' NO DATA'.
ENDIF.
LOOP AT I_Z0028.
WRITE:/ I_Z0028-field1,
I_Z0028-field2
I_Z0028-field3.
ENDLOOP.
Regards,
Prashant -
I recently subscribed to Adobe ExportPDF and tried to convert a PDF file to MS Word. So far, after many tries, I get soe type of error and the conversion fails. Please advise?
Hi there,
It sounds like there may be an issue with the quality of the PDF. Not all PDFs are created equal, and especially those created from scanned documents can be problematic if the scan quality isn't the best. Is there a dark background on the PDF, or stray marks or smudges?
You can try converting with OCR disabled at outlined in this document: How to disable Optical Character Recognition (O... | Adobe Community. But, while that's a good test to find out where the problem lies, you'll end up with a Word document that isn't editable, so it's not an optimal solution.
Please let us know how it goes.
Best,
Sara -
WebDynpro call Returns an exception: Type conversion error
Hi,
I'm trying to start some of the standard SAP web dynpro .
most of then work fine.
some don't and i get the following error message.
Root Cause
The initial exception that caused the request to fail, was:
+com.sap.aii.proxy.framework.core.DataAccessException: Type conversion error, field TAX_PER_DIEMTAX, complex type class com.sap.xss.tra.tre.model.expenses.Ptrv_Web_General_Data_Int+
+at com.sap.aii.proxy.framework.core.JcoBaseTypeData.propagateJcoException(JcoBaseTypeData.java:130)+
+at com.sap.aii.proxy.framework.core.JcoBaseTypeData.setElementValue(JcoBaseTypeData.java:751)+
+at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValue(DynamicRFCModelClass.java:482)+
+at com.sap.tc.webdynpro.progmodel.context.GenericModelClassCopyHelper.setAttributeValue(GenericModelClassCopyHelper.java:69)+
+at com.sap.tc.webdynpro.progmodel.context.CopyService.copyCorresponding(CopyService.java:55)+
+... 66 more+
See full exception chain for details.
could anyone give me an hint.
jco connetion are made and testet for:
sap_r3_humanresources
sap_r3_finacials
sap_r3_selfservicegenerics
sap_r3_travel
analog the *_MetaData
Thank in advance
MaximilianHello
did you solve this problem? I have the same error
Regards -
DataAccessException Type conversion error complex type class
Hello,
We meet some trouble randomly wrbtr field, we have suspected the jco cache, but after a reboot the problem still occurs.
We currently use this field on others webdynpro applications.
While execute the message displays :
DataAccessException : Type conversion error, field wrbtr complex type class dop.model.Zst_Pp_liste
We have a Z customize structure, which contains a zone "WAERS", used as reference field for wrbtr
Anyone has an idea to look for ?Are you sure you have posted this question in the correct forum? I don't see how this is Web Dynpro ABAP related. You refer to JCo cache and Java style class names. I think perhaps you actually should have posted this question in the Web Dynpro Java forum?
-
Type conversion error, field ABSENCE_TYPE while accessing General Informati
Hi ,
One of the user is facing issue while he is accessing General Information link under Manager Self Service -> Team on portal. He is getting the below error message while accessing it.
500 Internal Server Error
SAP NetWeaver Application Server 7.00/Java AS 7.00
Failed to process request. Please contact your system administrator.
[Hide]
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
Root Cause
The initial exception that caused the request to fail, was:
com.sap.aii.proxy.framework.core.DataAccessException: Type conversion error, field ABSENCE_TYPE, complex type class com.sap.xss.hr.eeprofile.absencedays.model.Hrmss_Rfc_Ep_Read_Absencedays_Input
at com.sap.aii.proxy.framework.core.JcoBaseTypeData.propagateJcoException(JcoBaseTypeData.java:130)
at com.sap.aii.proxy.framework.core.JcoBaseTypeData.setElementValue(JcoBaseTypeData.java:751)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValueAsString(DynamicRFCModelClass.java:669)
at com.sap.xss.hr.eeprofile.absencedays.model.Hrmss_Rfc_Ep_Read_Absencedays_Input.setAbsence_Type(Hrmss_Rfc_Ep_Read_Absencedays_Input.java:192)
at com.sap.xss.hr.eeprofile.absencedays.wdp.IPublicBAbsenceDaysComp$IHrmss_Rfc_Ep_Read_Absencedays_InputElement.setAbsence_Type(IPublicBAbsenceDaysComp.java:579)
... 64 more
See full exception chain for details.
System Environment
Client
Web Dynpro Client Type HTML Client
User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; MS-RTC LM 8)
Version null
DOM version null
Client Type msie6
Client Type Profile ie6
ActiveX enabled
Cookies enabled
Frames enabled
Java Applets enabled
JavaScript enabled
Tables enabled
VB Script enabled
Server
Web Dynpro Runtime Vendor: SAP, build ID: 7.0017.20100223114935.0000 (release=NW04S_17_REL, buildtime=2010-02-23:11:33:08[UTC], changelist=80269, host=pwdfm114), build date: Wed Apr 28 21:07:28 BST 2010
J2EE Engine 7.00 patchlevel 112614.44
Java VM IBM J9 VM, version:2.3, vendor: IBM Corporation
Operating system Linux, version: 2.6.16.60-0.21-smp, architecture: amd64
Session & Other
Session Locale en_GB
Time of Failure Wed Oct 06 12:13:18 BST 2010 (Java Time: 1286363598619)
Web Dynpro Code Generation Infos
sap.com/pb
SapDictionaryGenerationCore 7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:31[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
SapDictionaryGenerationTemplates 7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:37[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
SapGenerationFrameworkCore 7.0017.20060719095755.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:48:53[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
SapIdeWebDynproCheckLayer 7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:06[UTC], changelist=495367, host=PWDFM101.wdf.sap.corp)
SapMetamodelCommon 7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:40[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
SapMetamodelCore 7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:34[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
SapMetamodelDictionary 7.0017.20060719095619.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:58:48[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
SapMetamodelWebDynpro 7.0017.20080801093120.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:03:59[UTC], changelist=495368, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationCTemplates 7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41[UTC], changelist=499141, host=pwdfm101)
SapWebDynproGenerationCore 7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:12[UTC], changelist=495367, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationTemplates 7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41[UTC], changelist=499141, host=pwdfm101)
sap.com/tcwddispwda
No information available null
sap.com/pb_api
SapDictionaryGenerationCore 7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:31[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
SapDictionaryGenerationTemplates 7.0017.20061002105236.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:01:37[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
SapGenerationFrameworkCore 7.0017.20060719095755.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:48:53[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
SapIdeWebDynproCheckLayer 7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:06[UTC], changelist=495367, host=PWDFM101.wdf.sap.corp)
SapMetamodelCommon 7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:40[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
SapMetamodelCore 7.0017.20061002105432.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:49:34[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
SapMetamodelDictionary 7.0017.20060719095619.0000 (release=645_VAL_REL, buildtime=2008-09-17:12:58:48[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
SapMetamodelWebDynpro 7.0017.20080801093120.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:03:59[UTC], changelist=495368, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationCTemplates 7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41[UTC], changelist=499141, host=pwdfm101)
SapWebDynproGenerationCore 7.0017.20080801093115.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:07:12[UTC], changelist=495367, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationTemplates 7.0017.20080829103545.0000 (release=645_VAL_REL, buildtime=2008-09-17:13:16:41[UTC], changelist=499141, host=pwdfm101)
sap.com/tcwdcorecomp
No information available null
Detailed Error Information
Detailed Exception Chain
com.sap.aii.proxy.framework.core.DataAccessException: Type conversion error, field ABSENCE_TYPE, complex type class com.sap.xss.hr.eeprofile.absencedays.model.Hrmss_Rfc_Ep_Read_Absencedays_Input
at com.sap.aii.proxy.framework.core.JcoBaseTypeData.propagateJcoException(JcoBaseTypeData.java:130)
at com.sap.aii.proxy.framework.core.JcoBaseTypeData.setElementValue(JcoBaseTypeData.java:751)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValueAsString(DynamicRFCModelClass.java:669)
at com.sap.xss.hr.eeprofile.absencedays.model.Hrmss_Rfc_Ep_Read_Absencedays_Input.setAbsence_Type(Hrmss_Rfc_Ep_Read_Absencedays_Input.java:192)
at com.sap.xss.hr.eeprofile.absencedays.wdp.IPublicBAbsenceDaysComp$IHrmss_Rfc_Ep_Read_Absencedays_InputElement.setAbsence_Type(IPublicBAbsenceDaysComp.java:579)
at com.sap.xss.hr.eeprofile.absencedays.BAbsenceDaysComp.callRFC(BAbsenceDaysComp.java:291)
at com.sap.xss.hr.eeprofile.absencedays.BAbsenceDaysComp.readAbsenceDaysData(BAbsenceDaysComp.java:236)
at com.sap.xss.hr.eeprofile.absencedays.wdp.InternalBAbsenceDaysComp.readAbsenceDaysData(InternalBAbsenceDaysComp.java:230)
at com.sap.xss.hr.eeprofile.absencedays.BAbsenceDaysCompInterface.readAbsenceDaysData(BAbsenceDaysCompInterface.java:134)
at com.sap.xss.hr.eeprofile.absencedays.wdp.InternalBAbsenceDaysCompInterface.readAbsenceDaysData(InternalBAbsenceDaysCompInterface.java:191)
at com.sap.xss.hr.eeprofile.absencedays.wdp.InternalBAbsenceDaysCompInterface$External.readAbsenceDaysData(InternalBAbsenceDaysCompInterface.java:243)
at com.sap.xss.hr.eeprofile.absencedays.vac.VAbsenceDaysComp.onBeforeOutput(VAbsenceDaysComp.java:259)
at com.sap.xss.hr.eeprofile.absencedays.vac.wdp.InternalVAbsenceDaysComp.onBeforeOutput(InternalVAbsenceDaysComp.java:260)
at com.sap.xss.hr.eeprofile.absencedays.vac.VAbsenceDaysCompInterface.onBeforeOutput(VAbsenceDaysCompInterface.java:143)
at com.sap.xss.hr.eeprofile.absencedays.vac.wdp.InternalVAbsenceDaysCompInterface.onBeforeOutput(InternalVAbsenceDaysCompInterface.java:136)
at com.sap.xss.hr.eeprofile.absencedays.vac.wdp.InternalVAbsenceDaysCompInterface$External.onBeforeOutput(InternalVAbsenceDaysCompInterface.java:212)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.callOnBeforeOutput(FPMComponent.java:603)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:569)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
at c
Regards,
SreedharAre you sure you have posted this question in the correct forum? I don't see how this is Web Dynpro ABAP related. You refer to JCo cache and Java style class names. I think perhaps you actually should have posted this question in the Web Dynpro Java forum?
-
Error in RFC call, after unicode conversion of ERP
Hi,
We have just converted our ERP system to unicode. And we are using xMII 11.5. When i am calling a RFC thro' the BLS, it throws me this error
[ERROR]: RFC Execution Error: An invalid XML character (Unicode: 0x0) was found in the element content of the document.
The same error for all the RFC's i call.
But when i execute the BAPI as such in se37, in ERP , its fine.
What could be the reason for this?Hima ... try this
http://<server>/Lighthammer/JCOProxy?Mode=Reset -
Syntax errors while migrating from non- unicode to Uni code
What are the syntax errors while migrating from non unicode to Uni code
Hi Sudheer,
u can get the information related to errors while migrating from non- unicode to Uni code from the below...pls go through...
Note 765475 - Unicode Conversion: Troubleshooting
these are the notes related to the issues of migration form non unicode to ounicode.
Related Notes
986907 - SQL Server settings for R3load based system copy
954001 - Error fix: ILLEGAL_SUBSTRING_MODIFICATION in SUMG
936441 - Oracle settings for R3load based system copy
928909 - Repair table data in SUMG in Unicode systems
895804 - Problematic rows in table DMEE_TREE_NODE
895560 - Support for languages only available in Unicode system
885441 - Common Migration Errors
842788 - DB Multiconnect: Unicode Migration
837173 - RADCUCNT in Unicode Conversion: Collective Note
756534 - Automatic Assignment of Languages with Character Statistics
753334 - Unicode Conversion: Problem in Japanese device types
726954 - Private Use Areas in Unicode Systems
722193 - RFC legacy non-Unicode clients and Unicode servers
718329 - R3load terminates the export during a Unicode conversion
695196 - Error in the export for Unicode migration
672835 - Textflags could cause problems during Unicode conversion
627764 - Unicode migration: table pools inconsistent after conversion
614550 - Troubleshooting BC-I18
587896 - Add. info on upgrade to SAP R/3 Enterprise Core 4.70 SR1
573044 - Unicode conversion for HR application
480671 - The Text Language Flag of LANG Fields
379940 - Unicode based mySAP availability
79991 - Multi-Language and Unicode support of SAP applications
73606 - Supported Languages and Code Pages
42305 - RSCPINST (I18N configuration tool)
regards,
rudra..
Assign points if helpful -
Character conversion from Unicode to WE8ISO8859P1
Hi,
I am having a text field in which i need to enter Unicode characters also. When entering the Unicode character '€' in the text field and when clicked on the "Save" button it is throwing the error "java.sql.SQLException: Cannot map Unicode to Oracle character". The oracle database characterset is of type "WE8ISO8859P1". Do i need to do the conversion of Unicode character to WE8ISO8859P1 in the Controller explicitly?If so, Please mention the method through which i can achieve the same.Or is there any profile options or setup changes through which i can avoid this error?Can anyone please suggest how to proceed with this?
Thanks,
SreejaPl identify your database characterset
SQL> select * from NLS_DATABASE_PARAMETERS;If the NLS_CHARACTERSET is WE8ISO8859P1, it is not capable of storing the Euro symbol (pl do a google search to find various references).
To store the Euro symbol, you will most likely need to change the database characterset to UTF8 - pl see the MOS Docs mentioned in this thread for details - Adding Greek & German language to R12
HTH
Srini -
Error in global conversion rule for InfoObject 0INCOTERMS2
When I activate BI content 2LIS_12_VCITM with transfer rule, The transfer rule was error with the message " Error in global conversion rule for InfoObject 0INCOTERMS2" and Mgs No. 263.
The transfer rule cannot be activated.
I checked the 0INCOTERMS2 infoObject . The global conversion rule is no error.
The global conversion is in below.
============================================================
PROGRAM CONVERSION_ROUTINE.
Type pools used by conversion program
TYPE-POOLS: RSD, RSARC, RSARR.
TYPES: DE_0INCOTERMS2(000028) TYPE C.
Conversion rule for InfoObject 0INCOTERMS2
Data type = CHAR
ABAP type = C
ABAP length = 000028
FORM CONVERT_0INCOTERMS2
USING RECORD_NO LIKE SY-TABIX
SOURCE_SYSTEM TYPE RSA_LOGSYS
IOBJ_NAME TYPE RSIOBJNM
CHANGING RESULT TYPE DE_0INCOTERMS2 " InfoObject value
RETURNCODE LIKE SY-SUBRC.
$$ begin of routine - insert your code only below this line -
TRANSLATE RESULT TO UPPER CASE.
$$ end of routine - insert your code only before this line -
ENDFORM.
=================================================================
If you have any idea or face the similar problem, please suggest solution.
Thank you.Good afternoon,
If you have not done so already can you apply the SAP note 1387854 in your system and it should prevent the problem from happening again. If you also reactivate the infoobject 0INCOTERMS2 in RSD1 then it should be possible to manually activate the transfer rule.
Best Regards,
Des -
Character array type conversion problem
Hi, I'm using BlazeDS (v3.0.0.544) to remotely call Java code on the server from my Flex client. I'm having trouble when converting a character array type from Java to ActionScript and vice-versa. In my Flex code, if the ActionScript class uses a String type to map to the char[] then the char[] is successfully converted from Java to ActionScript, but not from ActionScript to Java.
// Extract from ActionScript code
private var m_charArray:String;
public function get charArray():String
return m_charArray;
public function set charArray(value1:String):void
m_charArray = value1;
Alternatively, if my ActionScript class uses an Array type then I can successfully send data from the client and populate a char[] field on the server, but can't send an updated char[] back to my ActionScript class.
In fact the Flex console reports:
TypeError: Error #1034: Type Coercion failed: cannot convert "myString" to Array.
The code this time:
// Extract from ActionScript code
private var m_charArray:Array;
public function get charArray():Array
return m_charArray;
public function set charArray(value1:Array):void
m_charArray = value1;
All the other types I have tried work successfully, it's only with char arrays that I've hit a problem.
Any help would be appreciated, thanks.Hi Graeme,
It is how it works. I can see the inconsistency. You can find an example how of echo char[] in blazeds\trunk\qa\apps\qa-regress\testsuites\mxunit\tests\remotingService\dataTypes\CharTy pesTest.mxml. It echos a char[] in return of a string. You can get the char in a string easily string.charAt() and get its length using length(). I think it may be the reason remoting decided to use a string to represent a char[] instead of a generic objects array. It should be more memory efficient. However, I can see that it can turn into problem as what you descibed. When the data has to send back to server, it has to convert back to array. If the char[] type is used inside an object, it is impossible to do the conversion unless the getter and setter are generic
public function get charArray():Object
return m_charArray;
public function set charArray(value1:Object):void
if (value1 is String)
m_charArray = new Array();
//copy the string elements to it
else
m_charArray = value1;
I know it is ugly, but it the only work around I can think of. I think it needs to log a bug to correct this conversion behavior
William -
Run-time error '13': Type mismatch
There are A and B excel files.
And two different POV-dimension in two excel files
VBA code below:
Dim vtGrid As Variant
Dim vtDimNames As Variant
Dim vtPOVNames As Variant
x = HypRetrieve("sheet1")
x = HypUseLinkMacro(True)
Range("b10").Select
x = HypGetSourceGrid("sheet1", vtGrid)
ref = HypMenuVRefresh()
x = HypGetPOVItems(vtDimNames, vtPOVNames)
MsgBox (vtPOVNames(6))
Range("a3").Value = "date: " & vtPOVNames(6) & " - " & vtPOVNames(3)
Range("a4").Value = "dep : " & vtPOVNames(0)
There is not any attribute dimension in pov A excel file.
There is one attribute dimension in pov B excel file.
The same VBA code excute is normal in A excel file.
But the same VBA code excute is "run-time error '13': Type mismatch " in B excel file.
The error '13' in the row of MsgBox (vtPOVNames(6)).
Is attribute dimension in pov cause this question?
And how did I solve this question?Based on where the error is occurring, it looks like the value returned by vtPOVNames(6) is not defaulting to a string datatype for the msgbox.
Try 'cstr(vtPOVNames(6))' to force conversion of the value into a string. Also, you may want to test for nulls using IsNull() and empty variant values using IsEmpty().
It doesn't look like the code you posted shows vtPOVNames being populated. If you're populating the names yourself, you could always use a string array instead of a variant array. Just dim the string array using a statement such as, "Dim strPOVNames(6) as String" or "Dim strPOVNames() as String" in case you need to ReDim the array later to size it for a non-fixed set of POV names.
Hope this helps. -
Need help RE: "Type Conversion"...
Hi, need some urgen help here...
I had done the following below:
=====
import java.awt.*;
import java.applet.*;
public class Demo extends Applet
int ivalue = 3;
double dvalue = 3.9;
int a1 = dvalue;
double a2 = ivalue*2;
public void paint (Graphics g)
g.drawString ("inum is " + a1, 25,50);
g.drawString ("dnum is " + a2, 25,75);
=====
I wanted to convert my 'dvalue' to '3' but can't...Why?
(error: possible loss of precision found :double required: int)
How to retify it?
Converting my 'ivalue' to '6.0' is ok.Listening to Author: angusedison, problem solved!
Second problem, I wanted to calculate the volume of sphere...
=====
import java.awt.*;
import java.applet.*;
public class Sphere extends Applet
double radius, II, volume;
public void paint (Graphics g)
radius = 12.5;
II = 3.142;
volume = 4 / 3 * II * radius * radius * radius;
g.drawString ("Volume is " + volume, 25,50);
=====
& ans from this is "6136.71875", but using my calculator it's "8182.291667" (which is suppose to be the correct answer).
What's the problem & how to solve it???
Do I use Type Conversion too?
Maybe you are looking for
-
Tables for materials and services in SRM
Hello, In what tables can I find the information of materials and services of the COMMPR01 transaction, especially the Orderunit-field? This field is not stored in the COMM_PRODUCT table. Thanks, Aart
-
I make a schedule to run at night for an info package but the power is off at night How I can repeat this request again Do I need to delete the failed request?
-
Hi All, we have three sites at mumbai, pune , delhi. A site to site tunnel is created between mumbai and pune. and tunnel between mumbai and delhi. We donot have tunnel between delhi and pune. Is it possible to route the traffic of delhi from mumbai
-
Hi The company has executed F.5d & 1KEK to transfer AR to PCA without the detailed log. There is an entry in the Dummy profit centre but we are unable to trace to the original FI invoice. We tried via FBL5N customer line items but was unable to match
-
Internal table with data reference variable as component
Hi i have a below structure and itab in my program and i have the issue mentioned below.. Data: begin of wa, col1 type i, col2 type ref to data, end of wa. data itab like table of wa. create data wa-col2 type p decimals 2.