Unable to read system log details using SXMI_XMB_SYSLOG_READ

Hi All,
I want to access system log contents of SAP system in my java application by calling RFC SXMI_XMB_SYSLOG_READ. I am able to execute this RFC successfully but it is returning only one line as
'System Log: Local Analysis of <Machine name>                    1'
Please guide me on how to retrieve system log contents using this RFC or is their any alternative way to accomplish this?

Hi All,
Below is java code i am using for calling SXMI_XMB_SYSLOG_READ function module.
Date stDate = new Date(02, 9, 2009);
JCO.Function Function_SXMI_XMB_SYSLOG_READ;
               IFunctionTemplate ft =
                    mRepository.getFunctionTemplate("SXMI_XMB_SYSLOG_READ");
               if (ft != null) {
                    Function_SXMI_XMB_SYSLOG_READ = ft.getFunction();
                    Function_SXMI_XMB_SYSLOG_READ
                         .getImportParameterList()
                         .setValue(
                         "vijay",
                         "EXTERNAL_USER_NAME");
                    //                    Function_SXMI_XMB_SYSLOG_READ
                    //                         .getImportParameterList()
                    //                         .setValue(
                    //                         "ps4909",
                    //                         "SERVER_NAME");
                    Function_SXMI_XMB_SYSLOG_READ
                         .getImportParameterList()
                         .setValue(
                         stDate,
                         "FROM_DATE");
                    Function_SXMI_XMB_SYSLOG_READ
                         .getImportParameterList()
                         .setValue(
                         "11:03:19",
                         "FROM_TIME");
                    Function_SXMI_XMB_SYSLOG_READ
                         .getImportParameterList()
                         .setValue(
                         stDate,
                         "TO_DATE");
                    Function_SXMI_XMB_SYSLOG_READ
                         .getImportParameterList()
                         .setValue(
                         "12:58:00",
                         "TO_TIME");
                    Function_SXMI_XMB_SYSLOG_READ
                         .getImportParameterList()
                         .setValue(
                         "X",
                         "PARA_RECS");
                    mConnection.execute(Function_SXMI_XMB_SYSLOG_READ);
                    JCO.Table tableSYSLOG_TBL =
                         Function_SXMI_XMB_SYSLOG_READ
                              .getTableParameterList()
                              .getTable(
                              "SYSLOG_TBL");
                              System.out.println(tableSYSLOG_TBL.getNumRows());
                    for (int i = 0; i < tableSYSLOG_TBL.getNumRows(); i++) {
                         for (int j = 0; j < tableSYSLOG_TBL.getNumColumns(); j++) {
                              System.out.println(
                                   tableSYSLOG_TBL.getName(j)
                                        + "\t\t"
                                        + tableSYSLOG_TBL.getValue(j));
and i am getting same line stated below repeatedly as output
LINE                                System Log: Local Analysis of ps4909                    1

Similar Messages

  • How to write messages into system log(sm21) using c_write_syslog_entry

    Hi,
    May i know how to write my application messages into system log(sm21)
    using "c_write_syslog_entry". Any explanation regarding the Type. ID, Data
    will be useful with examples. Incase of any other FM's or C functions does
    the same Please let me know.
    Thanks
    Prasath

    Hello Prasanth
    I agree with Kareem that you should prefer the application log. If interface IF_RECA_MESSAGE_LIST is available on your SAP system this is the first choice for collecting messages AND storing them as application log.
    For an example you may have a look at my Wiki posting [Message Handling - Finding the Needle in the Haystack|https://wiki.sdn.sap.com/wiki/display/profile/2007/07/09/MessageHandling-FindingtheNeedleintheHaystack]
    Not shown in this example is the storage of the application log. However, if you look at method CF_RECA_MESSAGE_LIST=>CREATE you see that you can add the application log references here.
    Regards
      Uwe

  • Unable to read attachment from javamail using IMAP

    I am unable to read and save attachement in java mail using IMAP, but able to do using POP3
    Sample code below:
    Multipart multipart = (Multipart) message.getContent();
                             for (int i = 0, n = multipart.getCount(); i < n; i++)
                                  Part part = multipart.getBodyPart(i);
                                  String disposition = part.getDisposition();
              // here i am getting dispostion null if use IMAP, if  i use POP3 then i can able to recevive attachment                                                  
                                  if ((disposition != null) && ((disposition.equals(Part.ATTACHMENT) || (disposition.equals(Part.INLINE)))))
                                       System.out.println("file name is " + part.getFileName());
                                       message.setFlag(Flags.Flag.ANSWERED, true);
                                       saveFile(part.getFileName(), part.getInputStream());
    public static void saveFile(String fn, InputStream in) {
              try {
                   FileOutputStream fos = new FileOutputStream(new File("c://test//" + fn));
                   byte[] buf = new byte[1024];
                   int i = 0;
                   while ((i = in.read(buf)) != -1) {
                        fos.write(buf, 0, i);
                   in.close();
                   fos.close();
              } catch (IOException e) {
                   e.printStackTrace();
    Any help is appreciated
    Thanks
    Sami

    If you're getting disposition == null it's because your IMAP server
    isn't returning this information to you. Possibly your IMAP server
    is buggy. You can look at the protocol trace to see what the IMAP
    server is returning, and if it's missing information that should be there,
    report a bug to your IMAP server vendor.
    Your program might need to work around this problem by deciding
    that any body part with a filename is an attachment, or any part
    after the first is an attachment.

  • How read shell log file using DBMS_SCHEDULER

    Hi All,
    I am running a shell script file using DBMS_SCHEDULER and it creates couple of log file. I am trying to run other DBMS_SCHEDULER job2 to read current log file written by job1 display on APEX web page. I am using oracle 10g version. Any suggestions are much appreciated.
    Regards

    james. wrote:
    Thank you Purvesh K. I want to read the log file as soon as I started the my shell script.
    " Just call the Stored program to read the files "
    Can you give me an example of the stored program you mentioned?
    RegardsOracle UTL_File contains example of reading from a UTL_File. (Just in case you are not aware of doing so.)
    What I intended to say was:
    1. You might be having a Job Scheduled/Calling a stored program to create a Log File.
    2. You can directly call the Stored Program (Function/Procedure) that contains the logic to Read the Log File.

  • Unable to read forum news feed using Vienna

    I just discovered that I can no longer use [Vienna|http://www.vienna-rss.org] to watch the rss feed for this forum (and maybe others here). Apparently any User-Agent beginning with 'vienna' (case insensitive) is replied to with HTTP/1.1 403 Forbidden. Anyone know why this would be? Here's how to reproduce:
    <pre style="border: 1px solid #ddd; padding-left: .75ex; padding-top: .25em; padding-bottom: .25em; margin-top: .5em; margin-bottom: .5em; margin-left: 1ex; max-width: 80ex; overflow: auto; font-size: 10px; font-family: Monaco, 'Courier New', Courier, monospace; color: #444; background: #eee; line-height: normal">curl -sA 'vienna' 'http://discussions.apple.com/rss/rssmessages.jspa?forumID=735' | less</pre>
    Then try:
    <pre style="border: 1px solid #ddd; padding-left: .75ex; padding-top: .25em; padding-bottom: .25em; margin-top: .5em; margin-bottom: .5em; margin-left: 1ex; max-width: 80ex; overflow: auto; font-size: 10px; font-family: Monaco, 'Courier New', Courier, monospace; color: #444; background: #eee; line-height: normal">curl -sA 'tienna' 'http://discussions.apple.com/rss/rssmessages.jspa?forumID=735' | less</pre>
    My workaround is to get the feed using curl.

    Appears to have been resolved.

  • Why I am unable to read/write thermocouple data using FIFO

    I like get data using 9213 module. I used example VI for this. And to get the data according to my desired samling rate, I used FIFO.
    The problem is, if I use FIFO, I do not get any data when run the real time VI.
    But, if I like to get data using cluster, then it is OK.
    Also, can you tell me why the error comes when I use FIFO and run the program?
    My sampling desired rate is 1200 sample/sec. I like to acquire data for 30 seconds after the trigger.
    Attachments:
    Error_50400.jpg ‏34 KB
    FPGA.jpg ‏201 KB
    realtime_temp.jpg ‏249 KB

    Good Afternoon,
    I would suggest lowering the number of elements into the invoke node in your real time VI.  You only need the number fo samples times the sampling rate for the number of elements input.  Hope this helps!
    -Cody C

  • System unable to read table in Adhoc Query

    Hi Experts,
    I am trying to extract a report based on Infotype 0022 through Adhoc query. Even after maintaining data for IT0022 for a few employees the system is unable to read the educational details of those employees.
    I am unable to trace the defect . can anybody please tell me what could be the reason. I have checked the table PA0022, there the data is been stored.
    Thanks & Regards,
    Smitha

    Hi paul and experts
    actuall im reading data from 0022 infotype .  im using  macro
    rp_provide_from_last p0022 '11' pn-begda pn-endda.
    no data found for this.
    but in pa30 for that particular employee data is there.
    please help me out of this.
    thanks a lot

  • Transaction code to get the User Log details..

    Hi Friends,
    I need a transaction code or the process to get the User information for the past 40 days..
    I need a details such as, which user has logged in at what time and used what transactions in the past 40 days..
    Reagards,
    Navaneeth.

    Hi dear,
    USER LOGS CHECKS:
    1. ANALYSE APPLICATION LOGS
       TR: SLG1     (Do not select Read from Archive)
    2. READ SYSTEM LOGS
       SM21    (Selected problem and warning only)
    3. User Information Systems
       SUIM    (Select Last one Change Documents for Users)
               (Select then all Selection Criteria for changed Header Data)
    4. IF SUIM doesn't show then trun on Security Audit logs:
       SM19    (Selected All Audit Classes) & Create display profile name
    5. CHECK THE AUDIT LOGS:
       SM20    (Check the audit logs)
    6. SELECTION STATISTICAL RECORDS
       STAD    (selected all posible check and hit Enter)
    Regards
    Angeline

  • Silverlight fills up system.log file

    In order to watch the NBC Olympics, I had to install Silverlight. I had hesitation and now know why. While the player seems to play just fine and all, it is kicking massive error messages to the system.log file. It fills many megabytes and therefore the daily syslog rotation runs bzip2 for a long time each night.
    Here is a sampling from my system.log file, using Safari 4.0.4 on OS-X 10.6.2.
    Feb 22 01:33:28 KR-iMac com.apple.WebKit.PluginAgent[593]: * set a breakpoint in mallocerrorbreak to debug
    Feb 22 01:33:28 KR-iMac WebKitPluginHost[1002]: WebKitPluginHost(1002,0xb071b000) malloc: * error for object 0x1980bf94: pointer being freed was not allocated\n* set a breakpoint in mallocerrorbreak to debug
    Feb 22 01:33:28 KR-iMac WebKitPluginHost[1002]: WebKitPluginHost(1002,0xb071b000) malloc: * error for object 0x5ef8e14: pointer being freed was not allocated\n* set a breakpoint in mallocerrorbreak to debug
    Feb 22 01:33:28 KR-iMac com.apple.WebKit.PluginAgent[593]: WebKitPluginHost(1002,0xb071b000) malloc: * error for object 0x1980bf94: pointer being freed was not allocated
    Feb 22 01:33:28 KR-iMac com.apple.WebKit.PluginAgent[593]: * set a breakpoint in mallocerrorbreak to debug
    Feb 22 01:33:28 KR-iMac com.apple.WebKit.PluginAgent[593]: WebKitPluginHost(1002,0xb071b000) malloc: * error for object 0x5ef8e14: pointer being freed was not allocated
    Feb 22 01:33:28 KR-iMac com.apple.WebKit.PluginAgent[593]: * set a breakpoint in mallocerrorbreak to debug
    Feb 22 01:33:28 KR-iMac com.apple.WebKit.PluginAgent[593]: * process 593 exceeded 500 log message per second limit - remaining messages this second discarded *
    Feb 22 01:33:28 KR-iMac WebKitPluginHost[1002]: WebKitPluginHost(1002,0xb071b000) malloc: * error for object 0x1980bf94: pointer being freed was not allocated\n* set a breakpoint in mallocerrorbreak to debug
    Feb 22 01:33:28 KR-iMac WebKitPluginHost[1002]: WebKitPluginHost(1002,0xb071b000) malloc: * error for object 0x5ef8e14: pointer being freed was not allocated\n* set a breakpoint in mallocerrorbreak to debug
    Notice it exceeds over 500 messages a second. Anyway to mute these messages???

    The problem with just deleting the file, is two fold.
    First, the system needs this file to continue to post system messages. If you delete it, or just trash it, the system will just continue to add to the trashed file using the open file pointers, or simply create a new one.
    Second, Silverlight will continue to generate messages, and ultimately still go into the system.log. Deleting the file is not such a good idea while the operating system is still using it.
    I recommend doing the following to clear the file without deleting it:
    You'll need to Enable the root user on your computer if you haven't yet. Search other threads for how to do this on your version of OS-X.
    In Terminal, log in as root.
    username$ sudo -i
    Change to the /var/log folder.
    root# cd /var/log
    Use the truncate function to simply zero out the file.
    root# >system.log
    You'll need to do this everyday, after running Silverlight, hopefully BEFORE the daily log rotating cron scripts try to rotate the logs and perform a bzip compression of the file (which will tax your system for a few hours). You may want to find any log files ending in .bz2 and remove those. You can delete those, as they are just archives of old system log files and are not used any more.

  • Not able to get the Aduit log details through webservices

    Hi Team,
    I am trying to get the audit log details using according to Michal's PO/PI tips: Audit Logs from a native WS - new feature  but i am getting following result 
    i have used
    key = new MessageKey(msg.getMessageId(), msg.getMessageDirection()); -------------> to generate the message key
    generated value: 02766515-d1fe-11e3-b52d-0000008030fe(OUTBOUND)
    and i have placed that value in the messagekey as shown above but i am not getting any output and it is returned saying fault String please some buddy help me in solving the problem.
    Thanks in advance.
    Regards,
    Avinash.

    If it just for a particular message then another simple solution is to open the message and go to details in pimon.
    http://wiki.scn.sap.com/wiki/display/PIS/AdapterMessageMonitoringVi+service+and+it%27s+methods

  • Error in creating the payment document; read job log

    Hi All,
    Recently we are upgraded to EHP4 pack. While running the payment proposal for the vendor I am getting the error 007 "Error in creating the payment document;read job log" Details of job log is as follows
    >            Due date determination additional log
    > Document 1100001518 line item 001 via ILS          694.00-
    > Terms of payment: 05/23/2011   60  0.000 %    0  0.000 %    0
    >  01 days grace period is being considered
    >  Maximum cash discount should always be taken
    >   Payment must take place before 07/23/2011; next payment on 07/27/2011
    > Item is due with 0.000 % cash discount
    Internal error: doc.balance not zero / comp.code SNXL vendor 1009530510 customer
    Balances:        2,052.00- ILS /        2,052.00- ILS
    >
    >            Posting documents additional log
    >  Currencies in line 1: ILS / ILS  Currencies in line 2: USD / ___
    > Document  company code SNXL currency ILS payment method T
    >  LIt PK Acct         RA            Amount            Tax
    >
    >  001 38 2001520500               3,420.00              0.00
    >                                  1,002.02              0.00
    >  002 50 0032118400               1,026.00              0.00
    >                                    297.21              0.00
    >  003 25 2001520500              72,645.00              0.00
    >                                 20,879.23              0.00
    >  004 50 0032118400              21,793.50              0.00
    >                                  6,312.93              0.00
    >  005 50 0010009101              48,457.50              0.00
    >                                 14,036.70              0.00
    >  006 40 0096100000                   0.00              0.00
    >                                    769.63              0.00
    >
    Information re. vendor 1009530510 / paying company code SNXL ...
    I have checked the configuration of FBZP The configuration settings is correct. Can you please help to solve this problem
    Regards
    Girish

    Hi Girish,
    You should be having error FZ326.
    Please kindly refer to the following link in order to solve the issue:
    http://wiki.sdn.sap.com/wiki/display/ERPFI/PaymentProgram-ErrorMessageFZ326
    or
    http://wiki.sdn.sap.com/wiki/x/jY3YCw
    Apply all notes that are relevant to your support packaged.
    Kind Regards,
    Fernando Evangelista

  • Smsy "Read System Number" customer number unknown for installation

    Hi gurus,
    I 'm configuring SMSY and following the steps outlined in the IMG in the basic settings and trying to configure RFC connections to/from satellite systems. In SMSY, I have 2 systems configured SMA and BIF.
    tcode SMSY-> Systems -> SAP ERP -> SMA , Tab "System Data in SAP Support Portal".
    Click "Read System Number" returns error SAP customer number unknown for installation number 0020179718. <-Why?
    Click "Installation Data" shows data from SMP with correct installation number and correct customer number 706822.
          The S-user listed under "Contact Persons" is not mine, not the correct one. <- Why? How to fix?
          The system number from SMP matches value in System Number field.
    Click "System Data" shows data from SMP also shows correct data.
    Why unable to "Read System Number" when the correct system number is read via "Installation Data" and "System Data"?
    tcode SMSY->Systems->SAP ECC->BIF, Tab "System Data in SAP Support Portal".
    Click "Read System Number" returns error "SAP customer number unknown for installation number 0020472810". <- Why?
    Click "Installation Data" shows data from SMP with correct installation number and correct customer number 706822.
          The S-user listed under "Contact Persons" is correct one.
          The system number from SMP matches value in System Number field.
    Click "System Data" shows data from SMP also shows correct data.
    Why unable to read system number?
    When I login to SMP with same S-user, under System Data Maintenance, the same data is displayed as in "Installation Data" and "System Data" links.

    I don't know what happened. I came into work today and tested the "Read System Number" and it worked. I read thru the 2 notes you mentioned, just read now. The first notes I had already followed before opening this thread. The 2nd notes also talked about turning off BAdI implementation AI_SDK_SP_RFC_RP, of which I did a couple of days ago before opening this thread. I had turned turned off BAdI and simplified the AISUSER table and removed the customer number field, in order to get back to the "single-user number" basic setup in the IMG.
    I had found the problem with the wrong contact info on the SMA system. It was wrong in the SMP system maintenance under installation data.
    Thanks for your help.
    -Don.

  • System log analysis

    Logwatch is old, arcane, difficult to modify, seemingly abandoned upstream, and written in Perl.  I haven't found a decent substitute that addresses all of these shortcomings, so I started hacking up my own: http://tam.hiddenrock.com/projects/cyclops.  It's still rough, but I think it's ready for public consumption.  I'd appreciate it if you would check out the README and TODO, beat on it, let me know how it breaks, point out better Python practices, and suggest improvements.
    Thanks!

    Hi,
    the correct transaction code for reading system log is <u><b>sm21</b></u> ...
    other usefull transactions for system checks :
    DB02 : table and indexes and monitor
    DB04 : DB performance monitor
    DB12 : Backup logs
    DB16 : overview of database check messages
    st02, st03 and st04 can also be usefull ...
    these are all helpfull systemcheck transactions ... Quite usefull to have as an SAP BW specialist ..
    hope this would help !
    best regards,
    Davy

  • When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with pr

    When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with process id 6620 stopped the removal or ejection for the device USB\VID_05DC&PID_C75C\20131215015821328FC8.
    I am running on Windows Server 2012 R2 in Desktop Experience mode.
    Any ideas?
    Roger

    In addition to that symptom, I discovered that even though I had closed all Adobe Reader sessions, the processes kept running and used up 90%+ of my CPU.

  • Unable to read ITResource details using Platform class

    Hi,
    When I try to read the ITResource parameters using Platform class, it says ITResource does not exist, code below:
    tcITResourceInstanceOperationsIntf itTResourceOperationsIntf=Platform.getService(tcITResourceInstanceOperationsIntf.class);
    Hashtable itmap=new Hashtable();
    itmap.put(OIMConstants.ITRESOURCE_NAME, resourceName);
    tcResultSet rset=itIntf.findITResourceInstances(itmap);
    However, if I use the same code by getting the instance of ITResourceInstanceOperations, I am able to read the parameters ?? Any idea on this ??
    Thanks,
    Hrushikesh

    Project folder is a IDE concept, not used by Java itself. Java works with class paths, which designate where it can search for classes and resources.
    Anyway, most of the IDEs handle properties files correctly (i.e. copy them in the right place when building/compiling, so that they can be found by Java when running the program). So you should put them along with java classes, in your packages structure.
    So if you have a properties file named "Toto.properties", which is located in the "titi.tata" package, then you would load it with:ResourceBundle.getBundle("titi.tata.Toto");

Maybe you are looking for

  • Drop ship line did not split, the material have partial receipts, can the PR and PO be canceled?

    hello, I need some help with this issue. We have a drop ship line that have 270 cartons in status awaiting receipt, but in the inventory already received 624 cartons.  The line of that sales order needs to be closed now, to invoice the customer. But

  • How to include a button in report header like rowspan? &logfile generation?

    I am really new to this form and I have some questions on the APEX HTML DB: The project I need to work on is like this: Based on some criteria, I need to do a database lookup. Then in the result, I need to be able to edit the individual record. So fa

  • Cannot Download Purchases

    I recently decided to upgrade my past songs with iTunes Plus. When I go to download them, it gives me the error "Unable to check for available downloads. The network connection timed out. Make sure your network settings are correct and your network c

  • When will Siri be available in India?

    I'm currently in India and I was wandering when will Siri be available to give me directions here in India? I would really like to use it soon so apple please make it available in an update or something!! There's many of my friends that way this as w

  • BI Answer Error

    Hi, How can I get rid of the following error? State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42015] Cannot function ship the following expression: Evaluate( apps.XXVFI_BOREPORT2_PKG.g