Issue while using CountNode()
Hi All,
I am stuck at this issue:-
I am using a file adapter to read a file which has some repeated tags and I want to count the number of repeated nodes.I came across this function and used in my code. But instead of given the total count of the nodes( in my case it should return 4) but it is given 0 all the time. I have tried some changes in the function but it didn't help.
Here is the Schema file I am referring :-
<?xml version="1.0" encoding="windows-1252" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.org"
targetNamespace="http://www.example.org"
elementFormDefault="qualified">
<xsd:element name="City">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="CityList" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="LongName" type="xsd:string"/>
<xsd:element name="ShortName" type="xsd:string"/>
<xsd:element name="Language" type="xsd:string"/>
<xsd:element name="Capital" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Here is my .bpel file for that in which I have used the countnode():
<partnerLinks>
<partnerLink name="read_Dvm_value" partnerLinkType="ns1:Read_plt"
myRole="Read_role"/>
</partnerLinks>
<variables>
<!-- Reference to the message passed as input during initiation -->
<variable name="receiveInput_Read_InputVariable" messageType="ns1:Read_msg"/>
<variable name="countNodes" type="xsd:int"/>
</variables>
<sequence name="main">
<!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->
<receive name="receiveInput" variable="receiveInput_Read_InputVariable" createInstance="yes"
partnerLink="read_Dvm_value" portType="ns1:Read_ptt"
operation="Read"/>
<assign name="Assign1">
<copy>
<from expression="ora:countNodes('receiveInput_Read_InputVariable','body','/ns2:City/ns2:CityList')"/>
<to variable="countNodes"/>
</copy>
</assign>
</sequence>
</process>
Please suggest.
Thanks,
Mohit
Thanks Bob. I changed the code accordingly:
New Code:
rem Local object &oWorkApp1, &oWorkSheet1, &oWorkBook, &oRange, &oCells;
Local string &newstring;
&oWorkApp1 = CreateObject("COM", "Excel.Application");
MessageBox(0, "", 0, 0, "&oWorkApp1:" | &oWorkApp1);
&oWorkApp1.DisplayAlerts = False;
ObjectSetProperty(&oWorkApp1, "Visible", False);
&oWorkBook1 = ObjectGetProperty(&oWorkApp1, "Workbooks");
rem &oWorkBook1.Open(&sDataFile);
&oWorkBook1 = &oWorkApp1.Workbooks.Add();
&rs_Awards = CreateRowset(Record.MSU_TEST_JOB);
&rs_Awards.Fill("order by EMPLID");
&oWorkSheet1 = &oWorkApp1.Worksheets("Sheet1");
&oWorkSheet1.Name = "Karthik";
For &ie = 1 To &rs_Awards.activerowcount
&oWorkSheet1.Cells(&ie, 1).Value = &rs_Awards.getrow(&ie).MSU_TEST_JOB.EMPLID.Value;
End-For;
&oWorkSheet1 = &oWorkApp1.Worksheets("Sheet2");
&oWorkSheet1.Name = "test";
For &ie = 1 To &rs_Awards.activerowcount
&oWorkSheet1.Cells(&ie, 1).Value = &rs_Awards.getrow(&ie).MSU_TEST_JOB.EMPLID.Value;
End-For;
&oWorkApp1.ActiveWorkbook.Saveas("\\nacrtcdell160\cust\temp\Directory.xls");
ObjectSetProperty(&oWorkApp1, "Visible", True);
&oWorkApp1.ActiveWorkbook.Close();
&oWorkApp1.DisplayAlerts = true;
&oWorkApp1.Quit();
And also we have the write permission on the path to write a file. Still should i need to change anything on this?
Similar Messages
-
Issue while using SUNOPSIS MEMORY ENGINE (High Priority)
Hi Gurus,
While using SUNOPSIS MEMORY ENGINE to generate a .csv file using the database table as a source it is throwing an error in the operator like.
ODI-1228: Task SrcSet0 (Loading) fails on the target SUNOPSIS ENGINE connection SUNOPSIS MEMORY ENGINE.
Caused By: java.sql.SQLException: unknown token
(LKM used : LKM Sql to Sql.
IKM used : IKM Sql to File Append.)
can you please help me regarding this ASAP as it has became the show stopper for me to proceed further.
Any Help will be greatly Appreciable.
Many Thanks,
Pavan
Edited by: Pavan. on Jul 11, 2012 10:22 AMHi All,
The Issue got resolved successfully.
The solution is
we need to change the E$_,I$_,J$_,...... to E_,I_,J_,.... ((i.e; removing the '$' Symbol)) in the PHYSICAL SCHEMA of SUNOPSIS MEMORY ENGINE as per the information given below.
When running interfaces and using a XML or Complex File schema as the staging area, the "Unknown Token" error appears. This error is caused by the updated HSQL version (2.0). This new version of HSQL requires that table names containing a dollar sign ($) are surrounded by quotes. Temporary tables (Loading, Integration, and so forth) that are created by the Knowledge Modules do not meet this requirement on Complex Files and HSQL technologies.
As a workaround, edit the Physical Schema definitions to remove the dollar sign ($) from all the Work Tables Prefixes. Existing scenarios must be regenerated with these new settings.
It worked fine for me.
Thanks ,
Pavan Kumar -
Mapping issues while using MapwithDefault Node function for Idoc
Hi Experts,
We are facing issues while trying to generate nodes at reciver side even though it does not exist at sender side.
we are using the matmas05 and we want the nodes E1marcm and e1mardm to generated at target structure.
the structure is like this
Matmas05
idoc
E1maram
segment
E1marcm
segment
msgfn
.....other fields
E1mardm (can be many segments)
segment
lgort
..other fields
E1mpgdm
segment
...e1mpgdm fields
the mapping has been done like:
e1marcm -mapwithdefault-e1marcm
constant -segment
werks-mapwithdefault-werks
other fields(one to one mapping)
e1mardm-mapwith default-e1mardm
lgort-mapwithdefault(value 1000)-lgort
other fields -one to one mapping
now the problem we are facing is when e1mardm is not existing in source structure the values from the other node of e1mardm(which exists) are getting overwritten into it.
we want only the lgort to be 1000 and the segment should populate at target side.
like
e1mardm
segment
lgort value 1000
Could you please assist in solving this issue and give your valuable suggestions as how could we handle it.
Thanks and regards,
jyotiU will achieve this using UDF function. Map the below Like.
e1mardm-mapwith default(Value Constant)-e1mardm
lgort (A) ---
e1mardm-mapwith default(Value Exit)u2014(EqualsS) (B)- (UDF1)- lgort
Constant(Value Exit)---
Constant(Value 1000)(C)---
Other one to one mapping fields also you should use one more UDF.
Other one to one fields (A) ---
e1mardm-mapwith default(Value Exit)u2014(EqualsS) (B) - (UDF2)- Target
Constant(Value Exit)---
UDF1:
Argument A,B,C and select queue.
//write your code here
int j = 0;
for(int i=0;i<a.length;i++)
if (b[j].equals("true"))
result.addValue(c[0]);
i--;
result.addValue(ResultList.CC);
else
result.addValue(a<i>);
j++;
UDF2:
Argument A,B and select queue.
//write your code here
int j = 0;
for(int i=0;i<a.length;i++)
if (b[j].equals("true"))
i--;
result.addValue(ResultList.CC);
else
result.addValue(a<i>);
j++; -
Issue while using SUBPARTITION clause in the MERGE statement in PLSQL Code
Hello All,
I am using the below code to update specific sub-partition data using oracle merge statements.
I am getting the sub-partition name and passing this as a string to the sub-partition clause.
The Merge statement is failing stating that the specified sub-partition does not exist. But the sub-partition do exists for the table.
We are using Oracle 11gr2 database.
Below is the code which I am using to populate the data.
declare
ln_min_batchkey PLS_INTEGER;
ln_max_batchkey PLS_INTEGER;
lv_partition_name VARCHAR2 (32767);
lv_subpartition_name VARCHAR2 (32767);
begin
FOR m1 IN ( SELECT (year_val + 1) AS year_val, year_val AS orig_year_val
FROM ( SELECT DISTINCT
TO_CHAR (batch_create_dt, 'YYYY') year_val
FROM stores_comm_mob_sub_temp
ORDER BY 1)
ORDER BY year_val)
LOOP
lv_partition_name :=
scmsa_handset_mobility_data_build.fn_get_partition_name (
p_table_name => 'STORES_COMM_MOB_SUB_INFO',
p_search_string => m1.year_val);
FOR m2
IN (SELECT DISTINCT
'M' || TO_CHAR (batch_create_dt, 'MM') AS month_val
FROM stores_comm_mob_sub_temp
WHERE TO_CHAR (batch_create_dt, 'YYYY') = m1.orig_year_val)
LOOP
lv_subpartition_name :=
scmsa_handset_mobility_data_build.fn_get_subpartition_name (
p_table_name => 'STORES_COMM_MOB_SUB_INFO',
p_partition_name => lv_partition_name,
p_search_string => m2.month_val);
DBMS_OUTPUT.PUT_LINE('The lv_subpartition_name => '||lv_subpartition_name||' and lv_partition_name=> '||lv_partition_name);
IF lv_subpartition_name IS NULL
THEN
DBMS_OUTPUT.PUT_LINE('INSIDE IF => '||m2.month_val);
INSERT INTO STORES_COMM_MOB_SUB_INFO T1 (
t1.ntlogin,
t1.first_name,
t1.last_name,
t1.job_title,
t1.store_id,
t1.batch_create_dt)
SELECT t2.ntlogin,
t2.first_name,
t2.last_name,
t2.job_title,
t2.store_id,
t2.batch_create_dt
FROM stores_comm_mob_sub_temp t2
WHERE TO_CHAR (batch_create_dt, 'YYYY') = m1.orig_year_val
AND 'M' || TO_CHAR (batch_create_dt, 'MM') =
m2.month_val;
ELSIF lv_subpartition_name IS NOT NULL
THEN
DBMS_OUTPUT.PUT_LINE('INSIDE ELSIF => '||m2.month_val);
MERGE INTO (SELECT *
FROM stores_comm_mob_sub_info
SUBPARTITION (lv_subpartition_name)) T1 --> Issue Here
USING (SELECT *
FROM stores_comm_mob_sub_temp
WHERE TO_CHAR (batch_create_dt, 'YYYY') =
m1.orig_year_val
AND 'M' || TO_CHAR (batch_create_dt, 'MM') =
m2.month_val) T2
ON (T1.store_id = T2.store_id
AND T1.ntlogin = T2.ntlogin)
WHEN MATCHED
THEN
UPDATE SET
t1.postpaid_totalqty =
(NVL (t1.postpaid_totalqty, 0)
+ NVL (t2.postpaid_totalqty, 0)),
t1.sales_transaction_dt =
GREATEST (
NVL (t1.sales_transaction_dt,
t2.sales_transaction_dt),
NVL (t2.sales_transaction_dt,
t1.sales_transaction_dt)),
t1.batch_create_dt =
GREATEST (
NVL (t1.batch_create_dt, t2.batch_create_dt),
NVL (t2.batch_create_dt, t1.batch_create_dt))
WHEN NOT MATCHED
THEN
INSERT (t1.ntlogin,
t1.first_name,
t1.last_name,
t1.job_title,
t1.store_id,
t1.batch_create_dt)
VALUES (t2.ntlogin,
t2.first_name,
t2.last_name,
t2.job_title,
t2.store_id,
t2.batch_create_dt);
END IF;
END LOOP;
END LOOP;
COMMIT;
end;
Much appreciate your inputs here.
Thanks,
MK.
(SORRY TO POST THE SAME QUESTION TWICE).
Edited by: Maddy on May 23, 2013 10:20 PMDuplicate question
-
Authorization issue while using business content objects
Hi all,
I am getting an authorization error while loading from DSO to Cube (for standard business content objects only). Even i am not able access the data in Bex reports from Standard cubes or DSO.
The user is assigned to SAP_ALL .
But there is no such issue while accessing user defined DSO or cubes.
any solutions will be helpful.
Regards,
VarmaHi,
Have you seen the error thru the SU53 t-code ? There you should see what is the missing authorization with the user.
Regards, Federico -
UIImagePickerController Custom Overlay Black Screen issue while using Video trimming controller
Hello Everyone ,
I have problem while opening camera in recording mode using UIImagePicker Controller with custom overlay and it should open first time properly .But when i push to next view controller and return back again to open camera at that time camera displays black screen for few time.
The Logic in the inside view controller is for VideoTrimming . For video trimming i have used "SAVideoRangeSlider" controll. SAVideoRange Silder perform task to get all thumbnail images from video which i have assign . It uses AVAsset image generator class provided by apple to get image frames from videos and it runs in background using its handler method.
Handler Method ::
[self.imageGenerator generateCGImagesAsynchronouslyForTimes:times
completionHandler:^(CMTime requestedTime, CGImageRef image, CMTime actualTime,
AVAssetImageGeneratorResult result, NSError *error) {
I have nilling all the objects related to image generator class when i came back to Camera screen. still issues of black screen occur while opening camera.
This issue occur in ios7 but not in ios6.
Can anyone have any idea about this ...Please relply me ASAP.Hello Everyone ,
I have problem while opening camera in recording mode using UIImagePicker Controller with custom overlay and it should open first time properly .But when i push to next view controller and return back again to open camera at that time camera displays black screen for few time.
The Logic in the inside view controller is for VideoTrimming . For video trimming i have used "SAVideoRangeSlider" controll. SAVideoRange Silder perform task to get all thumbnail images from video which i have assign . It uses AVAsset image generator class provided by apple to get image frames from videos and it runs in background using its handler method.
Handler Method ::
[self.imageGenerator generateCGImagesAsynchronouslyForTimes:times
completionHandler:^(CMTime requestedTime, CGImageRef image, CMTime actualTime,
AVAssetImageGeneratorResult result, NSError *error) {
I have nilling all the objects related to image generator class when i came back to Camera screen. still issues of black screen occur while opening camera.
This issue occur in ios7 but not in ios6.
Can anyone have any idea about this ...Please relply me ASAP. -
Network speed issues while using osx
this may seem a little bit strange, and i can't make any sense out of it but if anyone can figure out what my problem might be it would be greatly appreciated.
i have an older duel os (win xp, leopard) mbp and have had a lot of problems with hardware/software (osx) in the past, and have ended up, to my dismay, almost exclusively using windows.
anyway, just yesterday i decided it was time to give osx another chance. so besides having it hanging constantly while doing simple tasks, i have noticed my network speed is drastically reduced.
i ran a test on speedtest.net and ended up with 500kps average download speed, and 70kbps upload speed, with the closest server in my town at 800 ping.
i straight away restarded into windows and ran the test again, and achieved 13500kbps download, and 600kpbs upload, with a ping of 66.
NOTHING changed between the time of restarting. The router was left as it was, no other computers are switched on, and nothing is downloading.
In the past when using osx i have had frequent connection dropping issues, but as i run wireless i always just attributed it to my router. Although since using windows exclusively this has also ceased.
I have looked through airport settings and cannot find anything that looks like it may be the problem, although i'm not as experienced at getting into the back-end settings on osx.
the part that confuses me the most is the ping. latency generally increases with distance, not so much speed. i dont understand how the same server situated nearby can give 66 ms in windows and 800 in osx.
if anyone has any ideas, i thank you in advance.
p.s. i have osx 1.5.4 and was updating to 1.5.5 but the slow download speeds caused me to create this post. it does mention an increase in network performance in update notes for 1.5.5, if that will solve this than i apologize, although i doubt this drastic speed difference could have existed for so long if everything is set up correctly.You are certainly not alone. I have the same problem. Download speed seems to be limited to 500KB/s (any program, any service) and 2.18MB/s using Windows. I tried two different routers with the same results. Even downloading the same files using rapidshare led to this. Very strange.
This has nothing to do with the DNS server. My connection speed is pretty fast. With and without the recommended OpenDNS server settings. I just re-installed Leopard and updated to 10.5.6. Nothing changed.
Seems like something is throttling the max. dl speed. Odd! -
Cisco Nexus 3K Layer 3 Connectivity Issue while using Optical SFP
Dear All,
Am facing L3 reachability issue between N3k switched, even in same subnet. Also checked that VLAN is allowed under trunk port.
I can able to see the switch details as CDP neighbour.
We are using SVI, and found all the SVI and Interface protocol status is up/up. So to test I use a host to directly connect N3k with Optical SFP in access port, found failure on reachability, but while replacing with SFP ethernet module instead of SFP optical module reachability is okay.
Please help me to resolve this issue.
Thanks,
Kannan,Hello Amit,
Pls find the following details..
We use SFP-10G-LR Modules on both end, we also replaced and checked with SFP-10G-SR modules as well..
Software
BIOS: version 1.9.0
loader: version N/A
kickstart: version 6.0(2)A1(1b)
system: version 6.0(2)A1(1b)
Power Sequencer Firmware:
Module 1: version v3.1
BIOS compile time: 10/13/2012
kickstart image file is: bootflash:///n3500-uk9-kickstart.6.0.2.A1.1b.bin
kickstart compile time: 9/5/2013 14:00:00 [09/05/2013 22:37:16]
system image file is: bootflash:///n3500-uk9.6.0.2.A1.1b.bin
system compile time: 9/5/2013 14:00:00 [09/06/2013 02:25:01]
Hardware
cisco Nexus 3548 Chassis ("48x10GE Supervisor")
Thanks for the reply,and sry for my delayed response.. -
Transformation issue while using IF condition.
hi everyone,
i am using bpel transformation based on the condition of field using IF condition.
A B C D
10 20 30 40
20 20 30 50
30 30 20 60
40 40 20 70
now i need to apply IF condition in transformation on the filed B. if B = 20 transfer the data to one table or B NE 20 to other table
now my issue is, it is able to differentiate the rows, but the data in the field in second table remains same 20.
as i hope its storing the data in buffer location and writing it. after mapping with the fields in source.
can anyone suggest, how to get the actual value after differentiating the records.Declare an internal table with two fields lar and another field for seconds.
IF v_lar01 = 'MSTD' and v_vge01 = 'MIN'.
it_time-lar = lar1
it_time-seconds = t_plpo-vgw01 * 60 " minutes to seconds
else.
it_time-lar = lar1
it_time-seconds = t_plpo-vgw01 " second
endif.
append it_time.
IF v_lar02 = 'MSTD' and v_vge02= 'MIN'.
it_time-lar = lar2
it_time-seconds = t_plpo-vgw02 * 60 " minutes to seconds
else.
it_time-lar = lar2
it_time-seconds = t_plpo-vgw02 " seconds
endif.
append it_time.
and so on...at the end sum it_time-seconds and do the calculate to get hrs n minutes from seconds
Mathews -
Fonts issue while using FM 7.1
Hi,
I am using the XML file as a source and port the content to FM 7.1. I have to port 8 languages like Arabic, Russian, Korean, and so on. I am facing the following issues with few of the languages:
Korean - The Korean fonts (Gulim, GulimChe, Dotum, and DotumChe(True type)) are available in the FrameMaker font list, but when I copy andpaste the content in FrameMaker and apply the fonts, the content is not thesame, there are “?” in between.
Russian - The Russian font (Arial) is available in theFrameMaker font list, but when I copy and paste the content in FrameMaker, thecontent shows “?”
zh-hans - The Chinese Simplified font (simsun) is available in theFrameMaker font list, but when I copy and paste the content in FrameMaker, thecontent shows “?”
zh-hant - The Chinese Traditional font (mingliu) is available in theFrameMaker font list, but when I copy and paste the content in FrameMaker, thecontent shows “?”
Can anyone help me to resolve this issue or if there are any websites/fonts available to download?
Thanks,
KeerthiKeerthi,
As Michael Kazlow mentioned using FrameMaker 7.1 is one stumbling block. Using FrameMaker 8 or later will remove the problems with Russian and Eastern European languages, provided you are using fonts that support all necessary characters. Arial as FrameMaker 7 sees it does not contain Cyrillic glyphs, add Russian keyboard settings to your system and during this process a virtual font "Arial CYR" will be made available.
With Arabic there is no real option with special tricks. FrameMaker does not and never did support right-to-left languages. All »solutions« I have heard of worked with tricks like mirrored fonts and could not take advantage of the built-in features of Windows and therefor need a proprietary editor to prepare the input.
Regarding all non-Western languages, copy & paste requires that your system is set to the appropriate system locale.
I am wondering why you talk about XML and also Copy & Paste. Are you going to handcraft the documents and the input is by chance in an XML document or are you planning to design a structured application? With the latter, please move the discussion to the Structured forum.
- Michael -
Issue while using FM L_TO_CREATE_POSTING_CHANGE
Hi All,
We are facing an issue when creating a transfer order using the FM
L_TO_CREATE_POSTING_CHANGE.
We have developed a custom program to change the status (Zfield) of a
specific SU in LQUA and update its stock category. The program creates
the material document and posting change document in the background.
During this process, the badi MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE gets
triggered where we call the above FM in the background task. During TO
creation, we have also implemented the badi LE_WM_LE_QUANT to update
the quant with the specific SU which was changed by the user in the
custom program. (We get this from the custom data base table).
The TO is created for mvt types 321, 322, 343, 344, 349 and 350.
We do not pass the t_LUBQU table in the above FM so that the program
gets the updated quant from the badi. The issue is that the FM
sometimes does not process properly and ends up without creating the
TO. We are not able to get the exact scenario for which it is
failing. When we debug it, we get message S178 - Foreground processing
is required.
Can anyone let me know what is the problem here?
Thanks in advance,
ChetanAs mentioned by Madhan
you are trying to do a chicken and egg thing...
You have to commit the MM posting of the BAPI to create the change posting in WM before you can convert the change posting using the FM...
In other words.
call BAPI_GOODSMVMT_CREATE
commit work and wait
call L_TO_CREATE_POSTING_CHANGE
be aware that you still might get locking problems. the commit work and wait does not handle that all the time correctly...
bjorn -
Apple Cinema Display 23" brightness issue while using with Microsoft Vista
Hello there,
I have the following issue and was wondering if someone has an idea what the reason is or what can I do to fix this:
I have a 23" Apple Cinema Display running with a MacPro 2,8 GHz. When I switch to PC using BootCamp 2.1 with Windows Vista Service Pack 1 32bit the screen becomes extremely dark.
At first, on the PC side, the display has the correct brightness but after two seconds it switches to a very low brightness setting.
When I go back to the Mac side the brightness setting on my Cinema Display has changed to the lowest point.
I also have a MacBookPro, with Microsoft XP installed also using BootCamp (I cannot find the version of this Boot Camp, but it is an earlier version) to change to PC. In XP, there is a driver installed that allows me to use a slider on the PC to control the monitor brightness. But with Vista this slider is nonexistent.
I already tried changing the graphic's card NVIDIA 8800 driver to see if I can manipulate the brightness on the monitor. I realized there is brigthness slider on the Nvidia driver, but when you make brighter, the colors just get messed up, and the brightness stays as dark as before.
We have lately upgraded to Snow Leopard and had installed Spyder on the Mac side to create a monitor profile for the Cinema Display. I already deleted the profile to see if there is a change. Nothing. I already went back in time on my PC (Restore Point), also nothing.
Could I download a driver for Vista, so that I have a brightness slider on the PC side, so that I can adequately change the brightness to its correct setting.
It is amazing how the lack of correct brightness in a monitor, can ruin your entire working day! Very frustrating!
It would be greatly appreciated if someone has a solution for this issue! Thanks a lot!
EmilOkay, I came across a thread that implies there is a problem with using the Apple ADC-to-DVI adapter to attach the older "acrylic" 23" Cinema Display to a Mac Pro DVI graphics card. Basically, the workaround is to NOT use the USB part of the adapter (disconnect it).
1) In OS X, set the desired display brightness.
2) Disconnect the USB cable coming from the converter to the Mac.
3) Restart into Windows.
The brightness setting should now remain as it was under OS X.
Confirmed to work on my Mac Pro v1,1 (dual 2.66 Core 2 Duo) with nVidia GeForce 7300 GT video card running Windows 7 x64.
Link here: <http://forums.macrumors.com/showthread.php?t=790910> for credit to resolution.
Of course, you lose the functionality of the 2-port built-in USB hub in the Cinema Display, but an external USB hub can make up for that. -
Need help regarding Issues while use T=0/T=1 Protocol
Hi Friends..
I developed an Simple Applet to be Personalized by Datacard Machine..
This Applet is downloaded and installed in 2 difference protocol, (T=0 and T=1)..
This is a little description of my Applet :
CLA used is (byte) 0x80, otherwise SW 6E00 returned
INS (byte) 0x20 : is used for Ingoing Command (To Send Data to Applet)
INS (byte) 0x30 : is used for Outgoing Command (To Get Data From Applet)
P1 = (byte) 0x00 : is used to Send Data and Get Data for field Employee code
Case T=0 :*
I tried to send this APDU through Datacard Machine :
80 20 00 00 05 01 02 03 04 05 00
the SW resulted is 90 00
After that i tried to send this APDU through Datacard Machine :
80 30 00 00 00
There's no Response Data, and the SW resulted is 61 08
But, if i try to Get Data using SmartCardIO, i can get Data as i want, and the SW is 90 00
What is the meaning of SW 61 08?
I think this SW tells me that there's 8 bytes remaining data (but i don't know whether this is correct)..
But in the Case T=1 Protocol :*
I did the same thing, and there's no error returned..
i can Read an Write without any error..
Please correct me if i'm wrong..
Any help would be appreciated..
Thanks
Edited by: Leonardo Carreira on Oct 27, 2010 7:49 PM
Edited by: Leonardo Carreira on Oct 28, 2010 6:22 PM
Change the titleLeonardo Carreira wrote:
After that i tried to send this APDU through Datacard Machine :
80 30 00 00 00
There's no Response Data, and the SW resulted is 61 08
But, if i try to Get Data using SmartCardIO, i can get Data as i want, and the SW is 90 00 The datacard machine may not handle the GET RESPONSE apdu for you. SmartcardIO does this transparently.
What is the meaning of SW 61 08?SW '61XX' = SW2 encodes the number of data bytes still available. This is because you are using T=0.
I think this SW tells me that there's 8 bytes remaining data (but i don't know whether this is correct)..That is correct
But in the Case T=1 Protocol :*
I did the same thing, and there's no error returned..
i can Read an Write without any error..This is due to the differences between T=0 and T=1 protocols. T=1 will send you a response containing the data, T=0 will send you the numbder of bytes it expects to return and waits for a GET RESPONSE before sending you the data. As mentioned above, SmartcardIO handles this for you transparently while other libraries mat not (RAW PC/SC does not). You can read more about this in ISO7816-3
Cheers,
Shane -
Audio issues while using Adobe connect
I am unable get audio when attending Live Webinars thru adobe connect on my iPad 2 WiFi+3G. For recorded webinars there is no issue. I use Puffin browser in order to play the flash player. Is there a solution?
Hi gailperdue-
This sounds like an issue with the website gavirtualschool.org. Does this problem happen when you open the website with other browsers like Safari or Chrome? If so, then you know for sure the problem lies with either Adobe Connect or the website. If that is the case I would recommend you contact the website support or Adobe for assistance. -
Issues while using Migration Workbench to convert MYSQL Database
Please help me out to convert mysql database to oracle database. I have been trying various ways yet I hanging with certain issues.
I have downloaded SQLDEVELOPER 1.2.2998. It required plugin mysql-connector-java-5.0.6.jar file. I specified the directory of jdbc as mysql-connector-java-5.0.6.jar file while in execution of sqldeveloper 1.2.2998. I am working in Windows xp platform. I am able to
connect to mysql database.
create a source mode.
connect to new oracle database
create migration repository
capture the mysql database
Issues arised are :
Java lang Null Pointer assignment.
further the captured data is not effected in the captured model.
please give me soln I am onlineHi Vishnu,
For converting date and time into timestamp form:
CONVERT DATE <date variable>
TIME <time variable>
INTO TIME STAMP <timestamp variable>
TIME ZONE SY-ZONLO.
After this statement, the timestmap variable contains the timestamp form of the provided date and time.
Hope this helps.
Regards,
Swarna Munukoti.
Maybe you are looking for
-
SAP TM - Change in Search help in UI structure does not reflect in FPM screen
Hi Experts, We have a FBI view in which we have added a search help to a UOM field by adding the standard search help /SCMTMS/SH_QUANTITY in the UI structure. The standard search help is showing in the UI. Now we want to add a filter in the search he
-
My phone is full and I need to clean photos from its memory. When I plug it into my mac mini, the download goes OK, then slows, then stops at the picture I was using for wall paper on the phone. It won't go beyond that file and none of the options
-
- I just installed flash player v 14. I've got Windows 7, IE 11. Flash Player's not working. It says it's installed in Windows Add/Remove programs, and enabled in IE Tools/Manage Add-Ons.
-
Final Cut Server Error Result Too Large
In Final Cut Server when trying to check out a project or add files to a project i get the following error :: Error: could not read block 5469422 of relation 1663/16385/16653: Result too large I have seen similar post's but no resolution. Final Cut S
-
For webdynpro component SALV_WD_TABLE, how do we deactivate the toolbar
For webdynpro component SALV_WD_TABLE, how do we deactivate the toolbar for the alv list display?