Classes to read OM data

Hi Experts,
I've got an object for WD and have to enhance the assistance class method. As of now, the data is retrieved from PA0001 and now there is a requirement to change the logic to fetch the same data from OM tables (HRP1000 and HRP1001) based on the Central Person and Position information.
I am able to change the code but not having much knowledge in Object Oriented. Can you help me in providing some classes which are used to retrieve data from HRP tables. I have the FMs but business recommends to use classes.
Name of classes/methods would be a great help.
Thanks!
Prateek

Hi Prateek , you can create your own class using se24 , and inside the methode call you existing function module to retrive data

Similar Messages

  • Is there an efficient wrapper class for reading binary data in cocoa/iPhone

    Hi,
    I need to read a data from a binary file in my iPhone application. What is the best way to do it? Is there an efficient cocoa wrapper class for this purpose?
    Thanks,
    Nava

    A char is a 16-bit unsigned value - depending on what you want, it may help.
    I don't understand your reluctance to mask off the upper 16 bits of an integer; all it requires is a single bitwise 'and' statement. I challenge you to measure the impact of such a statement on your program.

  • Problem while reading double data?

    run the program
    then get the output, show below
    have an additional data
    import java.io.*;
    import java.util.*;
    import java.net.*;
    public class SimpleInputStream
         private StringTokenizer tk;
         public SimpleInputStream(String fileName) throws IOException
              String content = readFile(fileName);
              tk = new StringTokenizer(content);
         public SimpleInputStream(String fileName, String delim) throws IOException
              String content = readFile(fileName);
              tk = new StringTokenizer(content, delim);
         public static String readFile(String fileName) throws IOException
              BufferedReader reader = new BufferedReader(new FileReader(fileName));
              StringBuffer buffer = new StringBuffer();
              char temp[] = new char[20];
              while ( reader.read(temp) != -1)
                   buffer.append(temp);
              if (reader != null)
                   reader.close();
              return buffer.toString();
         public int readInt() throws NullContentException
              if (!tk.hasMoreTokens())
                   throw new NullContentException("not more element in content");
              return Integer.parseInt(tk.nextToken());                    
         public float readFloat() throws NullContentException
              if (!tk.hasMoreTokens())
                   throw new NullContentException("not more element in content");
              return Float.parseFloat(tk.nextToken());
         //test if any data can be used
         public boolean hasMore()
              return tk != null && tk.hasMoreTokens();
         public double readDouble() throws NullContentException
              if (!tk.hasMoreTokens())
                   throw new NullContentException("not more element in content");
              return Double.parseDouble(tk.nextToken());
         public void close()
              tk = null;
         public static void main(String[] args)
              try {
                   SimpleInputStream input = new SimpleInputStream("resources/c17.txt");
                   while (input.hasMore())
                        System.out.println(input.readDouble());
              } catch (Exception e) {
                   e.printStackTrace();
    class NullContentException extends Exception
         public NullContentException()
              super();
         public NullContentException(String msg)
              super(msg);
    }file "resources/c17.txt"
    17 11 9 20
    1.12
    1.12
    1.12
    1.12
    1.12
    1.12
    1.12
    1.12
    2.24
    2.24
    2.24
    2.24
    2.24
    2.24
    4.64
    4.64
    4.64
    the output:
    17.0
    11.0
    9.0
    20.0
    1.12
    1.12
    1.12
    1.12
    1.12
    1.12
    1.12
    1.12
    2.24
    2.24
    2.24
    2.24
    2.24
    2.24
    4.64
    4.64
    4.6424 // here the additional data why???
    4.64

    i alway this class to read int data but when i first try to use it to read double data , it is failed, it always generate many other data

  • PI 7.3 - AEX "unable to read configuration data" and login problems

    Hello Friends,
    after installation of AEX, i'm facing some problems.
    1.I'm not able to login with any user, i created during installation wizard. So i cannot check any user in NWA -> User Administration.
    2.Once more, while opening http://<host>:<port>/rep or http://<host>:<port>/dir, i get the following error message.
    Can somebody help me?
    I think, there is a problem with the users, which have been created during installation. How can i check this? Is there any chance?
    Second, if i'm able to login, i have to import the exchange profile again. This should solve the problem. Or is this wrong?
    PI (http://<host>:<port>/dir/start/index.jsp). Below is the part of the error message that is showing up. Appreciate your suggestions:
    Exception class: com.sap.aii.utilxi.prop.api.PropertiesException$InitFailed
    Message
    Unable to read configuration data (ExchangeProfile/aii.properties)
    Stacktrace
    Thrown:
    com.sap.aii.utilxi.prop.api.PropertiesException$InitFailed: Unable to read configuration data (ExchangeProfile/aii.properties)
    at com.sap.aii.utilxi.prop.api.PropertySourceFactory.initServerMode(PropertySourceFactory.java:220)
    at com.sap.aii.utilxi.prop.api.AIIProperties.initServerMode(AIIProperties.java:518)
    at com.sap.aii.ib.server.applcomp.StartupServerProperties.initPropertiesForServer(StartupServerProperties.java:97)
    at com.sap.aii.ibdir.server.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:151)
    at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:43)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
    at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:438)
    at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:203)
    Please let me know if I am not clear.
    Edited by: Clarence on Feb 6, 2012 3:28 PM
    Edited by: Clarence on Feb 6, 2012 3:28 PM

    hi,
    >>>>Second, if i'm able to login, i have to import the exchange profile again. This should solve the problem. Or is this wrong?
    if you have java stack only there is no exchange profile anymore...
    https://weblogs.sdn.sap.com/pub/wlg/28334
    Regards,
    Michal Krawczyk

  • Reading aggregated data from a cube/multiprovider

    Hi BI people
    My project is currently looking for a functionmodule that reads aggregated data from a cube/multiprovider.
    I already have a functionmodule that reads data from a cube and returns it in a flat format. I have debugged this, but have not found any flags that can enable the OLAP functionality needed to perform the aggregation. The functionmodule is "RSDRI_INFOPROV_READ_RFC".
    The situation is that I need to apply the aggregation logic of a profit center hierrarchy to the data I read from RSDRI_INFOPROV_READ_RFC, this means manually replicating the the OLAP engine functionality (keyfigure aggregation exception, ect.) and this is not an option with the available time/budget.
    Please have a look at the example below:
    Say that I have a profit center hierarchy as displayed below (with postable nodes).
    PC1 - $10
         |---- PC2  - $30
         |---- PC3  - $20
    The data I'm getting back from the functionmodule RSDRI_INFOPROV_READ_RFC looks like this:
    PC1 $10
    PC2 $30
    PC3 $20
    But I need the data aggregated. An aggregation utilizing the hierarchy above will make the data look like this:
    PC1 $60
    PC2 $30
    PC3 $20
    Instead of building an aggregation program, it would be usefull if it was possible to extract aggregated data.
    Any comments appreciated.
    Regards
    Martin

    Thx Olivier,
    The problem is that I need a functionmodule that can apply the OLAP aggregation for a hierarchy to the data outpu from RSDRI_INFOPROV_READ_RFC.
    ... or the best alternative would be if there were a fm/class that could provide me with the hierarchy aggregation of the data.
    /Martin

  • Reading binary data from a URL

    Below are 2 snippets of code that read data from a binary file. A small sample of the output is shown at the bottom of each code fragment. The first one uses the URL class to read a remote file. The ouput for this fragment is incorrect in some cases. The second uses a stream reader to read a local file (the output is correct in this case). Both fragments read the same file.
    As you can notice, some of the bytes read are the same in both cases. Some others are not.
    I hope you can suggest how I can fix my URL version.
    Thanks for your help.
    Miguel
    Program A: Reads a remote file with URL
    URL url = new URL("http:localhost//myfile.awg");
    URLConnection connection = url.openConnection();
    BufferedReader bin = new BufferedReader(new InputStreamReader(connection.getInputStream()));
    while(true) {
    System.out.println(Integer.toHexString(bin.read()));
    7d 3 0 0
    22 30 3 3e
    fd b9 2a 0
    b2 2 0 1
    Program B: Rads a local file
    DataInputStream din = new DataInputStream(new BufferedInputStream
    (new FileInputStream("c:\\inetpub\\wwwroot\\myfile.awg")));
    while(true) {
    System.out.println(Integer.toHexString(din.read()));
    8e 3 0 0
    99 30 3 3e
    81 b9 2a 0
    b2 2 0 1

    What can I use instead?
    Thanks,
    MiguelBufferedInputStream as in Program B.

  • Reading Unicode data from a file...

    I am writing an application that needs to read some configuration data from a file. An end user edits the configuration file to provide the configuration data. The Java code reads this file and uses the configuration data supplied by the user.
    The user can also save non-ascii characters as part of the configuration data. hence, I do not want to use java properties files. What are the other options available that allow me reading Unicode data into my Java code and will also allow user to save the configuration file as Unicode?

    Java characters are Unicode characters. Read file data that consists of Unicode characters as Java characters or strings.
    You can read the data as primitive char values using the DataInputStream class. The InputStreamReader class can also read Unicode (UTF-16) data.
    Data can be written using the OutputStreamWriter class.

  • Reading the data from web

    Hi guys ,
    I am new to j2me ,i am going to start a project named onlineNews
    for this project i need to read the data from web.can anyone help me with a sample code for reading a data from web
    thank u for spending your precious time

    that depends on the used technology on top of the web. I believe with J2ME you have access to the URLConnection class, so you can send HTTP requests manually. Otherwise you will need to use low level sockets, or use webservices such as SOAP or XML-RPC.
    There is a lightweight XML-RPC client available for J2ME. It is no longer in development, but that doesn't mean that it doesn't work.
    http://kxmlrpc.objectweb.org/

  • Reading the data from network card

    Hi,
    java.net defines the class NetworkInterface. Currently there are two network cards, one is wireless and another is for LAN.I am able to retrive their names and IP addresses using NetworkInterface methods.How to read the data from a specifc network card? Can we read all TCP packets which are passed through network card?
    using socket?
    Regards
    prasanna

    pdiwadkar wrote:
    Hi,
    java.net defines the class NetworkInterface. Currently there are two network cards, one is wireless and another is for LAN.I am able to retrive their names and IP addresses using NetworkInterface methods.How to read the data from a specifc network card? Can we read all TCP packets which are passed through network card?
    using socket?
    Regards
    prasannaYou may already know that Java is not good at doing some 'low level stuff'.
    You cannot use (pure) Java to access the raw network data.

  • Encoding problem while reading binary data from MQ-series

    Dear all,
    we are running on 7.0 and we have an encoding problem while reading binary data from MQ-series. Because we are getting flat strings from queue we use module "Plain2ML" (MessageTransformBean) for wrapping xml-elements around the incoming data.
    The MQ-Series-Server is using CCSID 850, which we configured in connection parameters in communication channel (both parameters for Queuemanager CCSID and also CCSID of target).If there are special characters in the message (which HEX-values differ from codepage to codepage) we get errors in our adapter while executing, please see stack-trace for further analysis below.
    It seems to us that
    1. method ByteToCharUTF8.convert() expects UTF-8 in binary data
    2. Both CCSID parameters are not used anyway in JMS-adapter
    How can we solve this problem without changing anything on MQ-site?
    Here is the stack-trace:
    Catching com.sap.aii.af.mp.module.ModuleException: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
        at com.sap.aii.af.modules.trans.MessageTransformBean.throwModuleException(MessageTransformBean.java:453)
        at com.sap.aii.af.modules.trans.MessageTransformBean.process(MessageTransformBean.java:387)
        at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl0_0.process(ModuleLocalLocalObjectImpl0_0.java:103)
        at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:292)
        at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0.process(ModuleProcessorLocalLocalObjectImpl0_0.java:103)
        at com.sap.aii.adapter.jms.core.channel.filter.SendToModuleProcessorFilter.filter(SendToModuleProcessorFilter.java:84)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ConvertBinaryToXiMessageFilter.filter(ConvertBinaryToXiMessageFilter.java:304)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ConvertJmsMessageToBinaryFilter.filter(ConvertJmsMessageToBinaryFilter.java:112)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.InboundDuplicateCheckFilter.filter(InboundDuplicateCheckFilter.java:87)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.TxManagerFilter.filterSend(TxManagerFilter.java:123)
        at com.sap.aii.adapter.jms.core.channel.filter.TxManagerFilter.filter(TxManagerFilter.java:59)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.DynamicConfigurationFilter.filter(DynamicConfigurationFilter.java:72)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.PmiAgentFilter.filter(PmiAgentFilter.java:66)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.InboundCorrelationFilter.filter(InboundCorrelationFilter.java:60)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.JmsHeadersProfileFilter.filter(JmsHeadersProfileFilter.java:59)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageInvocationsFilter.filter(MessageInvocationsFilter.java:89)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.JarmMonitorFilter.filter(JarmMonitorFilter.java:57)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ThreadNamingFilter.filter(ThreadNamingFilter.java:62)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.SenderChannelImpl.doReceive(SenderChannelImpl.java:263)
        at com.sap.aii.adapter.jms.core.channel.ChannelImpl.receive(ChannelImpl.java:437)
        at com.sap.aii.adapter.jms.core.connector.MessageListenerImpl.onMessage(MessageListenerImpl.java:36)
        at com.ibm.mq.jms.MQMessageConsumer$FacadeMessageListener.onMessage(MQMessageConsumer.java:399)
        at com.ibm.msg.client.jms.internal.JmsMessageConsumerImpl$JmsProviderMessageListener.onMessage(JmsMessageConsumerImpl.java:904)
        at com.ibm.msg.client.wmq.v6.jms.internal.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:4249)
        at com.ibm.msg.client.wmq.v6.jms.internal.SessionAsyncHelper.run(SessionAsyncHelper.java:537)
        at java.lang.Thread.run(Thread.java:770)
    Caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
        at com.sap.aii.messaging.adapter.Conversion.service(Conversion.java:714)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:538)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:528)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:471)
        at com.sap.aii.af.modules.trans.MessageTransformBean.process(MessageTransformBean.java:364)
        ... 36 more
    Caused by: sun.io.MalformedInputException
        at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:270)
        at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:287)
        at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:337)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:223)
        at java.io.InputStreamReader.read(InputStreamReader.java:208)
        at java.io.BufferedReader.fill(BufferedReader.java:153)
        at java.io.BufferedReader.readLine(BufferedReader.java:316)
        at java.io.LineNumberReader.readLine(LineNumberReader.java:176)
        at com.sap.aii.messaging.adapter.Conversion.convertPlain2XML(Conversion.java:310)
        at com.sap.aii.messaging.adapter.Conversion.service(Conversion.java:709)
        ... 40 more
    Any ideas?
    Kind regards, Stefan

    Hi Stefan,
    for the first MTB now we are using only one parameter: Transform.ContentType = text/plain;charset="ISO-8859-1"
    The second MTB, which does the XML-Wrapping, is configured like this:
    Transform.Class = com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType = application/xml
    xml.conversionType = SimplePlain2XML
    xml.fieldNames = value
    xml.fieldSeparator = §%zulu§%
    xml.processFieldNames = fromConfiguration
    xml.structureTitle = payload
    Both CCSID configuration parameters from the "Source"-Tab we've set to 850.
    Now, we don't get an error anymore - sun.io.malformedInputException - , but, unfortunately, now special character conversion succeeded (we need an "ß" and we get an ISO-HEX-E1 -> á).  E1 is (different from ISO) an "ß" in 850.
    Any ideas?

  • Text file contains data separated by pipe symbol read the data and saved in

    Hi ,
    This is Sreedhar, i am new to java. my query is Report its in text file format it contains data like GLNO,name ,amount. All fields are separated by pipe(|) symbol. I would like to read that
    data and saved into the database. Please anyone can help me.

    thx Ottobonn.
    Scanner is very usefull with string operation like in my problem..but i want try to find java.util.Scanner in j2me, i can't found this class...:(
    so, may be i can't use this class in j2me...
    i new in java, so i try myself to code the simple method for my problem,
    may be anyone can make this class more simple than my coding....:)
    public StringPipe(String _msg){
            String message = _msg;
            int pipe = 0;
            int lengthmessage = message.length();
            int lengthMsgresult = 0;
            while(lengthMsgresult<=lengthmessage){
                String msg = null;
                int pipeX = message.indexOf("|");
                if(pipeX==-1){
                    msg = message;
                else{
                    msg = message.substring(pipe, pipeX);
                    message = message.substring(pipeX+1, message.length());
                    lengthMsgresult += msg.length();  
                // the string seperated by pipe
                System.out.println("msg = " + msg);
                if(pipeX==-1){
                   break;
    }thx...

  • DBMAN350 Error reading MultiCube data over aggregate

    Hi, I have handed down multicube over a Cube, DSO, and IP Aggregate.  When I try to display the data using a LISTCUBE I get errors.  I just noticed I get the same error in my development box.
    1. Error reading the data of InfoProvider Z_C017_A8    Message no. DBMAN305
    Diagnosis - Errors occurred while reading a VirtualProvider outside the BI system. Check whether the previous error messages contain any information about the possible cause of this error.
    It is possible that the error message cannot be displayed because the error message class does not exist in the BI system. If this is the case, only the name of the error class and the message number are displayed. View the error message text in the specified error class in the source system of the VirtualProvider.
    Procedure - Since the error is not necessarily in the BI system, there is no specific procedure for resolving it. With VirtualProviders, problems often occur with the connection to the remote system; these can lead to system termination. If the code for the VirtualProvider is not from SAP, contact the relevant contact person to help resolve the issue.
    If an SQL error is listed in the previous message, see the procedure for SQL errors.
    2. Reading from InfoProvider Z_C017_A8 is not permitted    Message no. RSPLS801
    Diagnosis - Cannot read data from InfoProvider Z_C017_A8 here.
    System Response - The system has cancelled the read operation.
    Procedure - Use InfoProvider Z_P_C017 for the read operation here
    I am suspecting this is why data from the planning aggregate is not showing up on my query, but the query doesn't return an error like listcube does.  It is OK to have planning aggregates in a multiprovider I am assuming because it allows it.
    Any ideas why this error is appearing? 
    I already searched SDN and OSS, but nothing relevant appears.

    Hi Kenneth,
    I found this notes which could be relevant for you:
    Error when reading RemoteCubes in MultiProviders
    SAP Note Number: [1011321|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler]
    DBMAN 305: Error when reading data of InfoProvider ...$N
    SAP Note Number: [1051291|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_whm/~form/handler]
    Additional this thread:
    Remote cube - uncaught exception
    Regards
    Andreas

  • Error reading the data of InfoProvider /APC/FINGLV01

    Hi All,
    Via RSA1 I wanted to check the data but met the following error
    /APC/FIAGLACC_TD01_FQ9CLNT001: The application running deliberately caused an abo
    Error in substep Error reading the data of InfoProvider /APC/FINGLV01
    Also, in all oview view, it displayed "No data available" error.
    Error msg : Error reading the data of InfoProvider /APC/FINGLV01
    Message no. DBMAN305
    Diagnosis
    Errors occurred while reading a VirtualProvider outside the BI system. Check whether the previous error messages contain any information about the possible cause of this error.
    It is possible that the error message cannot be displayed because the error message class does not exist in the BI system. If this is the case, only the name of the error class and the message number are displayed. View the error message text in the specified error class in the source system of the VirtualProvider.
    Procedure
    Since the error is not necessarily in the BI system, there is no specific procedure for resolving it. With VirtualProviders, problems often occur with the connection to the remote system; these can lead to system termination. If the code for the VirtualProvider is not from SAP, contact the relevant contact person to help resolve the issue.
    If an SQL error is listed in the previous message, see the procedure for SQL errors.
    Thanks in advance
    regards,
    Anil
    Edited by: Anil Kumar Koppuravuri on Oct 16, 2009 3:53 AM

    At this point of time, we are unable to implement any patches, we would like to know exact reason behind the error, so that  we can correct it with out implementing a patch.
    And also the problem is not Consistent, Some time it works fine (50% Time it works fine)
    I really appreciate your time
    Message was edited by: TR Palle

  • How can I write a read a data on a SmartCArd

    Hi everyone...
    I would like to know. how I can write and read a data on a SmartCard maybe through a file(IO)
    could you helpme please??
    Thanks a lot...
    Marcos

    Try this mate
    package com.reader;
    import java.util.List;
    import javax.smartcardio.Card;
    import javax.smartcardio.CardChannel;
    import javax.smartcardio.CardException;
    import javax.smartcardio.CardTerminal;
    import javax.smartcardio.CardTerminals;
    import javax.smartcardio.CommandAPDU;
    import javax.smartcardio.ResponseAPDU;
    import javax.smartcardio.TerminalFactory;
    import com.sun.javacard.apduio.Apdu;
    * @author ic008391
    public class Connector extends Thread
         * @param args
         * @param args
         public static void main(String[] args)
              List<CardTerminal> lct = null;
              Card crd = null;
              TerminalFactory tf = TerminalFactory.getDefault();
              CardTerminals cts = tf.terminals();
              CardChannel cch = null;
              try
                   //create APDU Command
                   Apdu apdu = new Apdu();
                   apdu.command[Apdu.CLA] = (byte) 0X00;
                   apdu.command[Apdu.INS] = (byte) 0XA4;
                   apdu.command[Apdu.P1] = (byte) 0X04;
                   apdu.command[Apdu.P2] = (byte) 0X00;
                   //apdu.command[Apdu.P3] = (byte) 0X0a;
                   byte[] data = {(byte)0xa0, (byte)0x0, (byte)0x0, (byte)0x0, (byte)0x62, (byte)0x3, (byte)0x1, (byte)0xc, (byte)0x6, (byte)0x1, (byte)0x7F};
    //wallet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xC:0x6
    // select 0x00 0xA4 0x04 0x00 0x0a 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x6 0x1 0x7F
                   lct = cts.list();
                   System.out.println(lct);
                   CardTerminal ct = lct.get(0);
                   crd = ct.connect("T=0"); //Or "T=1"
                   javax.smartcardio.ATR atr = crd.getATR();
                   byte i[] =atr.getBytes();
                   for (int n = 0; n < i.length; n++) {
              int x = (int) (0x000000FF & i[n]); // byte to int conversion
              String s = Integer.toHexString(x).toUpperCase();
              if (s.length() == 1) s = "0" + s;
              System.out.print(s + " ");
                   System.out.println("");
                   System.out.println("ATR"+(atr.getHistoricalBytes()).toString());
                   System.out.println("ATR"+atr.toString());
                   cch = crd.getBasicChannel();
                   sleep(1000);
                   ResponseAPDU r;
                   //r = cch.transmit(new CommandAPDU(apdu.getCommand()));
                   r = cch.transmit(new CommandAPDU(0,164,4,0,data));
                   System.out.println(apdu);
                   System.out.println(r);
                   //Get Balance
                   //0xB0 0x50 0x00 0x00 0x00 0x02;
                   r = cch.transmit(new CommandAPDU(176,80,0,0));
                   System.out.println(r);
                   //cch.close();
              catch (CardException e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              catch (InterruptedException e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              finally
                   try
                        crd.disconnect(true);
                   catch (CardException e)
                        // TODO Auto-generated catch block
                        e.printStackTrace();
    }

  • Flilter webpart to read the data from XML template

    Hi
    Is there any out of the box webpart to read data from xml file for filtering in sharepoint 2010.
    The filter dialog look like following functionality and allow to select only one value.
      .Paretn1
         chiild1
         child2
     .Parent2
         child1
         child2
    Thanks

    Hi,
    According to your post, my understanding is that you wanted to read data from xml file with the out of the box web part.
    There is no out of the box web part for us to read the data from the xml file in SharePoint 2010.
    However, you can create your own custom web part to achieve it.
    There are some articles about the read the xml file, you can have a look at them.
    http://mosshowto.blogspot.com/2008/10/simplify-xpath-use-c-class.html
    http://social.technet.microsoft.com/Forums/en-US/6ae03f7a-23fe-4361-9e4f-d82bd3802ebf/how-to-read-data-from-an-xml-file-in-sharepoint-2010s?forum=sharepointgeneralprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for

  • How to remove files in "../work/localhost_8080" ?

    Hi all, I am using tomcat, there is one folder at work/localhost_8080 which always grow bigger and bigger everytime i accessed the page. Can anyone explain why is this so ? How to avoid it from growing too big in the future ? Coz currently I am runni

  • Sound out

    first one speaker stopped working then the other. external sound out via socket is ok. i gather this is a logic board issue. anything to resolve the problem?

  • CHaRM, TMS, Monitoring using WILY Interoscope, Maintenance Optimizer

    Hi Folks, I am in urgent need of the configuration guide of SolMan 4.0. as I want to implement CHaRM, TMS, Monitoring using WILY Interoscope, Maintenance Optimizer. Also clearify the below mention doubts. Scenario: SAP is already implemented and Sol

  • Itunes won't sync, won't backup, status of all devices are "other"

    computer is a mac mini 2006 1.66 ghz core duo, 2 gb of ram, macmini 1,1. os x 10.6.8 , itunes 11.4 devices are running ios 8.1 , they can sync and backup perfectly fine to my mac book pro. but they haven't been able to sync or backup to my mac mini f

  • Adobe Air Application Crash After installation

    Hi, We have developed a windows application "DsNetHTML5Player" in Adobe Air which shows HTML pages in sequence using <mx:HTML> control. When I run application in "Flash Builder" all plays fine.After creating its build and installing on system (Window