How to determine the type of the jobject... similar to instanceof
hi,
I would like to know how to determine the jobject reference of an instance is of which class.
this is something similar to instanceof we use in java.
is there any thing like 'instanceof' in JNI. if there how to use it?
i got this as objective question for which answers were(i do not remember exactly)
1.instanceof
2.assignedto
i could nt het much help in googling.
thanks in advance
Hi
The JNI provides a native version to the java instanceof operator, this function takes two arguments
an object refrence and a class refrence and reports JNI_TRUE.
jclass myclass = env->FindClass("your class name");
if(env->IsInstanceOf(obj,myclass) == JNI_TRUE)
// obj is of type myclass
}Regards
pradish
Similar Messages
-
How to find out the type of the value stored in a string variable?
Hi,
How do i find out the type of the value stored in a string variable?
for example,
I have a string variable str, in which the following type of values wil be stored
1) Intger
2) Long
3) boolean
4) Char
Is there any method to find out the type of the value, anything like str.getType()?. Please kindly help me. Thanks in advance.Hi All, i'm sorry for the double posting, by mistake it occured.
Thanks for your replies, i have a string variable str, in which the value is stored and i have another string variable type, in which the type of the value is stored.
For example,
String str = "15";
String type = "Integer";
Is there any way to verify whether the value stroed in str is of type stored in the variable 'type'. I want to write a method of type boolean, it will throw true of the value stored in str is of type 'type'. Thanks -
How to find out the type of the object ?
how would i find out the type of an object reference variable ?
it would be nice if there was some sort of getType() method that would return a string to tell me the type of the object -- just for testing purposestry
Object.getClass().getName();
or just
Object.getClass().toString();
so something like this in your code:
Object obj = new Foo();
System.out.println(""+obj.getClass());
etc. -
How to check data type of the field symbol at run time
Hi,
My code is as following:
LOOP AT <fs> ASSIGNING <wa_covp_ext>.
ASSIGN COMPONENT 86 OF STRUCTURE <wa_covp_ext> TO <f_zzname>.
IF sy-subrc = 0.
ASSIGN COMPONENT 158 OF STRUCTURE <wa_covp_ext> TO <f_pernr>.
IF sy-subrc = 0.
SELECT SINGLE sname INTO <f_zzname> FROM pa0001
WHERE pernr = <f_pernr>
AND endda GE sy-datum
AND begda LE sy-datum.
ENDIF.
ENDIF.
ENDLOOP.
This query is giving dump when <f_zzname> is type P length 8 and decimals 2, because it tries to put PA0001-sname into it which is type C length 30. So I want to check the type of <f_zzname> before the select statement. If it is character 30, then I will write the select statement else not.
How to check data type of the field symbol at run time? If it's not possible, then can somebody suggest a workaround? Thanks.check this ...
write describe statement ...
field-symbols : <f_zzname> .
data : sname like pa0001-sname,
typ(10).
assign sname to <f_zzname>.
describe field <f_zzname> type typ.
write : typ. <-- typ contains character type in this case ..
U can check if typ is of character(C) if so .. write the select statement ... -
How to garantee IDOC types are the same on two communicating sap systems.
Hi all:
how to garantee IDOC types are the same on two communicating sap systems, including segments and versions, using bd64?
what's more, what bd64 using for besides generating parter profiles, must we use bd64 for outbound idocs?
Thank you very much
best regards ?Hi jingying Sony
You can compare the Idoc type and Version between Sender System and Reciver System.
Use TCode SCMP and Compare the Table EDIMSG in Both System.
This will solve your issue.
Thanks
Ramesh -
How can I enlarge the types in the taskbar?
I changed my monitor from 22´´ to 27´´ and enlarged the types to 150% in the general windows settings. Photoshop and other adobe programs does not take this settings, the taskbar has only very little types, drop-down menue is ok. Are there any settings to enlarge the types in the taskbar?
I think you are stuck with what you have got for the time being at least. There are apparently issues with Microsoft that making a similar provision for Windows, to what was done for Apple Retina displays, problematic. In fact it might not happen at all!
That res at 27 inch shouldn't be too bad though. We have posters here with 14 inch laptops with 3500 pixel wide screens. Now that would be difficult to use! -
How to determine IE type(32 bit or 64 bit) in a task sequence while updating Java
How to determine IE type(32 bit or 64 bit) in a task sequence
Hi,
Currently i have to update new version of Java after removing all the previous existing version of Java by using TS in SCCM 2007.
we have both 32 bit and 64 bit browser in the environment. I am stucked in determining whether the browser is of 32 bit or 64 bit.
How to determine IE type(32 bit or 64 bit) in a task sequence so that respective java can be installed for that IE browser.
will highly appreciate quick response.
Thanks in advance.
DayaBut you also need to install JRE x86 on x64 systems, since most people actually use the 32bit browsers on x64 systems.
The detection logic is actually pretty simple -- just check the right registry hive to find the installation location of the BIN\JAVA.DLL. Both pathnames are stored in HKLM\Software\JavaSoft\Java Runtime Environment\1.7 in the registry value "JavaHome",
but the x86 path is stored in the 32-bit hive and the x64 path is stored in the 64-bit hive.
Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
SolarWinds Head Geek
Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
http://www.solarwinds.com/gotmicrosoft
The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds. -
How to determine itab type at run time
I need to write a subroutine that organizes data in internal tables for presentation by a smartform. There are a few similarly structured internal tables all with the same field name ("recipe_type") by which the data is sorted. My problem is that how I can determine the type of the itab inside my subroutine at run time? Is it ever possible in ABAP?
The subroutine code is attached below. Thanks for any help.
FORM beautify_itab TABLES itab_in TYPE table
USING v_type TYPE any
CHANGING itab_out TYPE table.
Data declaration
DATA: v_data_row LIKE LINE OF itab_in, " THIS WON'T COMPILE!
v_blank_row LIKE LINE OF itab_in. " blank row
Organize the display of the table data
LOOP AT itab_in INTO v_data_row.
IF v_type <> itab_in-recipe_type. " 'recipe_type' is the sort key for the incoming itabs
v_type = itab_in-recipe_type.
IF sy-tabix > 1.
APPEND v_blank_row TO itab_out.
ENDIF.
APPEND v_data_row TO itab_out.
ELSE.
CLEAR v_data_row-recipe_type.
APPEND v_data_row TO itab_out.
ENDIF.
ENDLOOP.
ENDFORM. "beautify_itabThe following code does what I want, but only if the input itab structure is declared first in the program. It won't work if the itab is declared as itab_in TYPE TABLE OF sflight. This is because the function 'GET_COMPONENTS_LIST' only can load the structure of a field declared explicitly in the program. Does anybody know of any method to load the structure of an itab based off a dtab?
Thanks you guys for answers. Points have been rewarded.
*& Report Z_GET_ITAB_TYPE_AT_RUN_TIME
REPORT z_get_itab_type_at_run_time.
DATA: BEGIN OF itab_in OCCURS 0,
seatsocc_b LIKE sflight-seatsocc,
fldate LIKE sflight-fldate,
END OF itab_in,
itab_out TYPE TABLE OF string,
wa_itab_out TYPE string.
SELECT seatsocc_b fldate
INTO TABLE itab_in
FROM sflight
WHERE carrid = 'AA' AND
connid = '0017'
ORDER BY seatsocc_b.
PERFORM beautify_itab
TABLES
itab_in
USING
sy-repid
'itab_in'
'SEATSOCC_B'
CHANGING
itab_out.
LOOP AT itab_out INTO wa_itab_out.
WRITE: / wa_itab_out.
ENDLOOP.
*& Form beautify_itab
text
-->ITAB_IN text
-->V_KET_FIELD text
-->ITAB_OUT text
FORM beautify_itab TABLES itab_in TYPE table
USING v_prog_name LIKE sy-repid
v_itab_in_name TYPE any
v_key_field_name TYPE rstrucinfo-compname
CHANGING itab_out TYPE table.
DATA: itab_fields TYPE TABLE OF rstrucinfo,
v_field_name LIKE rstrucinfo-compname,
v_old_key TYPE string,
v_field_value TYPE string,
v_data_line TYPE string,
v_tabix LIKE sy-tabix,
c_blank_row TYPE string VALUE ''.
FIELD-SYMBOLS: <fs_field>,
<fs_data_line>,
<fs_field_list> TYPE rstrucinfo.
gets all of the components of a structure
CALL FUNCTION 'GET_COMPONENT_LIST'
EXPORTING
program = v_prog_name
fieldname = v_itab_in_name
TABLES
components = itab_fields.
LOOP AT itab_in ASSIGNING <fs_data_line>.
v_tabix = sy-tabix.
LOOP AT itab_fields ASSIGNING <fs_field_list>.
v_field_name = <fs_field_list>-compname.
ASSIGN COMPONENT v_field_name OF STRUCTURE
<fs_data_line> TO <fs_field>.
v_field_value = <fs_field>.
IF v_key_field_name = v_field_name.
IF v_old_key <> v_field_value.
v_old_key = v_field_value.
IF v_tabix > 1.
APPEND c_blank_row TO itab_out.
ENDIF.
ELSE.
CLEAR v_field_value.
ENDIF.
ENDIF.
CONCATENATE v_data_line v_field_value INTO v_data_line
SEPARATED BY space.
ENDLOOP.
APPEND v_data_line TO itab_out.
CLEAR v_data_line.
ENDLOOP.
ENDFORM. "beautify_itab -
The type and the length of the members of the structures
I am making the BC-XAL program.
Reading `XAL_Interface_Documentation_11.pdf', now I succeeded in "Reading All Saved Monitor Sets" and "Reading All Monitors of a Monitor Set". but I can't find the type and the length of the member of the Structure BAPITNDEXT, so I cannot get the Monitoring Tree of a Monitor.
where can I get any documents or information ?This is how it looks in my 46c system.
MTSYSID SYSYSID CHAR 8 0R/3 System, name of R/3 System
MTMCNAME ALMCNAME CHAR 40 0Alert: name of monitoring context
MTNUMRANGE ALTIDNUMRG CHAR 3 0Alert: monitoring type number range (perm., temp, ...)
MTUID ALTIDUID CHAR 10 0ALert: Unique Identifier for Monitoring Types (used in TID)
MTCLASS ALTIDMTCL CHAR 3 0Alert: monitoring type class (perf., single msg.,...)
MTINDEX ALTIDINDEX CHAR 10 0Alert: internal handle for TID
EXTINDEX ALTIDINDEX CHAR 10 0Alert: internal handle for TID
ALTREENUM ALTREENUM INT4 10 0Alert: MT Tree info: Number of tree
ALIDXINTRE ALIDXINTRE INT4 10 0Alert: Tree Info: Index of MT in Tree
ALLEVINTRE ALLEVINTRE INT4 10 0Alert: Tree Info: Level of MTE in Tree
ALPARINTRE ALPARINTRE INT4 10 0Alert: Tree Info: Index of Parent of MT in Tree
OBJECTNAME ALMOBJECT CHAR 40 0Alert: Name of Monitoring Object
MTNAMESHRT ALMTNAMESH CHAR 40 0Alert: Short Name of Monitoring Type
CUSGRPNAME ALCUSGROUP CHAR 40 0Alert: Customization: Name of Customization Group
DELIVERSTA ALDELIVSTA INT4 10 0Alert: MT Val: Delivery Status
HIGHALVAL ALVALUE INT4 10 0Alert: alert value (1 = green, 2 = yellow, ....)
HIGHALSEV ALSEVERITY INT4 10 0Alert: severity (alerts, monitoring type custom..)
ALSYSID SYSYSID CHAR 8 0R/3 System, name of R/3 System
MSEGNAME ALMSEGNAME CHAR 40 0Alert: name of monitoring segment
ALUNIQNUM ALAIDUID CHAR 10 0Alert: Unique Identifier to be used in AID (char10)
ALINDEX ALINDEX CHAR 10 0Alert: internal handle
ALERTDATE ALDATE DATS 8 0Alert: date
ALERTTIME ALTIME TIMS 6 0Alert: Time value in timeformat
DUMMYALIGN ALDUMMYC2 CHAR 2 0Alert: Dummy field. Purpose: Alignment of date/time 16 byte
LASTVALDAT ALDATE DATS 8 0Alert: date
LASTVALTIM ALTIME TIMS 6 0Alert: Time value in timeformat
LASTVALDUM ALDUMMYC2 CHAR 2 0Alert: Dummy field. Purpose: Alignment of date/time 16 byte
ACTUALVAL ALVALUE INT4 10 0Alert: alert value (1 = green, 2 = yellow, ....)
ACTUALSEV ALSEVERITY INT4 10 0Alert: severity (alerts, monitoring type custom..)
VALSYSID SYSYSID CHAR 8 0R/3 System, name of R/3 System
VMSEGNAME ALMSEGNAME CHAR 40 0 Alert: name of monitoring segment
VALUNIQNUM ALAIDUID CHAR 10 0 Alert: Unique Identifier to be used in AID (char10)
VALINDEX ALINDEX CHAR 10 0 Alert: internal handle
VALERTDATE ALDATE DATS 8 0 Alert: date
VALERTTIME ALTIME TIMS 6 0 Alert: Time value in timeformat
VALERTDUM ALDUMMYC2 CHAR 2 0 Alert: Dummy field. Purpose: Alignment of date/time 16 byte
COUNTOFACT ALCNTACTAL INT4 10 0 Alert: MT Val: Count of active Alerts
COUNTSUM ALCNTSUMAL INT4 10 0 Alert: MT Val: Sum of Alerts in MT
VISUSERLEV ALVISILEVL INT4 10 0 Alert: MTE type dev cust: Visible on user level (op,exp,dev)
TDSTATUS ALTDSTATUS INT4 10 0
Alert: MT: Type Def Status
Welcome to SDN.
Regards,
Rich Heilman -
The type of the database table and work area are not Unicode convertible
***Data declaration
TYPES : BEGIN OF t_zle_lagerplanung,
SEl, "stores which row user has selected
kdauf TYPE zle_lagerplanung-kdauf,
kdpos TYPE zle_lagerplanung-kdpos,
etenr TYPE zle_lagerplanung-etenr,
papiermaschine TYPE zle_lagerplanung-papiermaschine,
runnr TYPE zle_lagerplanung-runnr,
prio TYPE zle_lagerplanung-prio,
werk TYPE zle_lagerplanung-werk,
durchmesser TYPE zle_lagerplanung-durchmesser,
breite TYPE zle_lagerplanung-breite,
anzle TYPE zle_lagerplanung-anzle,
lgpla TYPE zle_lagerplanung-lgpla,
lgtyp TYPE zle_lagerplanung-lgtyp,
art TYPE zle_lagerplanung-art,
anzhoehe TYPE zle_lagerplanung-anzle,
fa TYPE zle_lagerplanung-fa,
END OF t_zle_lagerplanung.
DATA : it_zle_lagerplanung TYPE STANDARD TABLE OF t_zle_lagerplanung INITIAL SIZE 0,
wa_zle_lagerplanung TYPE t_zle_lagerplanung.
Here I am getting the data in internal table by using thiis select statement.
SELECT kdauf kdpos etenr papiermaschine runnr prio werk durchmesser breite
anzle lgpla lgtyp art anzhoehe fa
FROM zle_lagerplanung INTO CORRESPONDING FIELDS OF TABLE it_zle_lagerplanung
WHERE kdauf IN s_kdauf
AND KDPOS IN s_kdpos
AND werk = p_werks.
But while updating the particular field in zle_lagerplanung using this statement
UPDATE zle_lagerplanung from table it_zle_lagerplanung.
it is giving syntax error
"The type of the database table and work area (or internal table)
"IT_ZLE_LAGERPLANUNG" are not Unicode convertible. "
Could any one help me out how to resolve this problem....
Thanks in advanceDear Shayamal,
XXX....are not Unicode convertible
This error comes while inserting or updating database and the fields are not matching between data base table and structure .
Check you fields of data base table and "zle_lagerplanung" and struture "it_zle_lagerplanung" . There fields must match.
thanks and regrds,
Anup Banerjee -
Creating a structure, knowing the name and the type of the components
hi, following problem:
i have uploaded an excel file from a different system with the information about the names and the types of the components of several structures.
how can i create a structure with this informatin on my system?ok, i think i have to give you some more details:
i want to update a table from a table saved on another system using a report.
(only inserts are important, no updates)
the problem is, that tables may not have the same components.
therefore i have created several excel sheets with following content (using mehtod gui_download):
name1 ; name2 ; name3.... | name of the component
typ1 ; typ2 ; typ3 ... | type of the component
content11 ; content12 ; content13
content21 ; content22 ; content23
uploading the file into table <uploadtable>
now need dynamic structure: let' s say dynamicwa
name1 typ1
name2 type2
then: loop at <uploadtable> into dynamicwa.
move-corresponding dynamicwa to destinationwa.
insert destination_wa into destination_table.
endloop.
but how can i create this dynamicwa?
Message was edited by: Michael
Michael Dirndorfer -
Why is the type in the navigation bars so tiny?
The type in the menu bar and navigation bar is so small that I can't read it without bringing my face very close to the screen. I have tried increasing font size on "Options" but it just increases font sizes on the content of the page. The print in the navigation bar is little more than a blur. How do I change this?
Try:
*Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/ -
Hi All,
Currently I am working in a WCF project here when I try to send data from WCF Project 1 to WCF project 2 I am getting the below error.
The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:subscriber. The InnerException message was 'The use of type 'Integra.Business.ICC.ObjectChangeTracker'
as a get-only collection is not supported with NetDataContractSerializer. Consider marking the type with the CollectionDataContractAttribute attribute or the SerializableAttribute attribute or adding a setter to the property.'. Please see InnerException
for more details.
I don't understand what issue this is since I am new to WCF. Please help me on this thanks in advance.You've posted to a forum for Microsoft Project - a project management program. Please re-post your question to the WCF forum:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf
Sorry - I cannot seem to move your post for you.
Julie -
The types of the parameter field and parameter field current values are not compatible.----
HI,
I am attempting to set report parameters in my .jsp code via URL parameters.
I am able to set the report name, server connection dynamically however when attempting to set the Parameters I receive:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: The types of the parameter field and parameter field current values are not compatible.---- Error code:-2147213303 Error code name:invalidParameterField
The parameter on the report is a String Type, named for this example p1.
The value that p1 represents is LERAD
My code:
String stringValue = request.getParameter("p1");
CRJavaHelper.addDiscreteParameterValue( clientDoc, "","p1", stringvalue);
returns the above mentioned error.
I have tried:
String stringValue = (String)request.getParameter("p1");
which returns the above error
And;
String stringValue = new String(request.getParameter("p1")).toString();
which returns
java.lang.NullPointerException
java.lang.String.<init>(Unknown Source)
org.apache.jsp.callReport_jsp._jspService(callReport_jsp.java:105)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
I notice that the CRjavaHelper.java declares this addDiscreteParameterValue as accepting an Object type for the newValue.
Any ideas???Hi,
nevermind.
case sensitivty strikes again.
my URL param was P1 ( case sensitive) -
The type of the database table and work area (or internal table)...
Hello
I am trying to use a database and select all records from it and store them into an internal table.
My code:
Select * from xixi_dbcurrency into table gt_currency.
The error:
"The type of the database table and work area (or internal table) "GT_CURRENCY" are not Unicode-convertible . . . . . . . . . . "
Any suggestions?
Thank youHi Thomas,
Thank you for your inputs above.
But as you suggested is we use INTO CORRESPONDING FIELDS OF TABLE then it resolve the error.
But I have below piece of code:
DATA: it_new_source TYPE STANDARD TABLE OF _ty_s_sc_1,
wa_source TYPE _ty_s_sc_1,
wa_new_source TYPE _ty_s_sc_1,
ls_target_key TYPE t_target_key.
SELECT * INTO CORRESPONDING FIELDS OF TABLE it_new_source
FROM /bic/afao06pa100
FOR ALL ENTRIES IN SOURCE_PACKAGE
where /bic/fcckjobno = SOURCE_PACKAGE-/bic/fcckjobno
and /bic/fcckjitid = SOURCE_PACKAGE-/bic/fcckjitid.
But since this is reading into corresponding fields of table the data load from one DSO to other DOS is running for long more that 15 hours and still not getting completed and giving dump.
So if I switch the search to below:
SELECT * FROM /bic/afao06pa100
INTO TABLE it_new_source
FOR ALL ENTRIES IN SOURCE_PACKAGE
where /bic/fcckjobno = SOURCE_PACKAGE-/bic/fcckjobno
and /bic/fcckjitid = SOURCE_PACKAGE-/bic/fcckjitid.
Then I am getting below error:E:The type of the database table and work area (or internal table) "IT_NEW_SOURCE" are not Unicode convertible.
Can you please advice on this, as performance need to improve in start routine code.
Thank You. -
I am attempting to use the Integration Services Import Project Wizard within Microsoft Visual Studio and am getting this error
Unable to create the type with the name 'MSORA'. (Microsoft.SqlServer.ManagedDTS)
upon Import.
Can anyone shed some light for me on this cryptique error message?
Thanks for your review and am hopeful for a reply.If you have the SSIS and SSDT (BIDS) installed then
I believe the DTS assemblies got derigistered, a typical outcome of corrupted software, so a full re-install would be the best option. VS +SQL Server + more
Otherwise, as a quick fix try to
reference the SSIS assemblies, like Microsoft.SQLServer.ManagedDTS.dll + more.
They are by default in C:\Program Files\Microsoft SQL Server\<number>\SDK\Assemblies.
Arthur
MyBlog
Twitter
Maybe you are looking for
-
Delivery date in scheduling agreement
If delivery date in scheduling aggrement is 20th and vendor has supplied the material on 15 th iteslf then are we able to do grn on 15th or Not. Or we should wait for the date 20th. Thanks, Kiran
-
HI, I am trying to implement one marketing application, where the goods will be dispatched via some transportation. The receipt name is lr number or lrno. Some times for same lr no., 2-3 goods will be dispatched. Now, I am developing one application,
-
Upgrading from Mac OS X v10.4.11 to Snow Leapord v10.6.3
I just purchased snow leapord version 10.6.3 and i am running off of a intel core dual processor tiger v.10.4.11. I was just wondering will my mac be able to upgrade from tiger to snow leapord without the full box set. i dont have the money to purcha
-
Just a little concerned...
I have a brief story to precede my question. Bear with me. I just bought a MacBook less than a month ago, and until this past Saturday, everything worked fine. Last week, I traveled to Atlanta for a conference, and stayed in a hotel that offered free
-
Hi All Had a basic query on SNMP polling for CSS 11501.. Im polling a CSS through Ethernet Management Interface, and the SNMP servers are detecting the system name as "Support" instead of the hostname of the device.. SNMP get sysname from x.x.x.x wit