How to log Synchornous Messages in XI

Hi,
how to log Synchornous Messages in XI ?

Michal has explained it clearly .....with screen shots
Check the below blog
The specified item was not found.
Thanks,
Karthik

Similar Messages

  • How to log all messages that are in JtextArea

    Hi all
    how would i log all message that are in the JTextArea????
    i know of java.util.logging but cant find any usefull tutorials on them.......can someone show me the way to go!
    Thanks
    Dilip

    Yeah dude, I could. But what would that accomplish? Oh sure, that may be some cultural pressure; you know, help out a Hindu-bhai kinda thing, but nah... My giving you the answer won't serve to help you in the long run.
    Ask yourself a couple of questions. Shall I log the information simultaneously (to the JTextArea and the file) or shall I write all the information to the text area first and then to the log file? Is the information in the log fle going to be different than that in the JTextArea because, for example, it is needed for audit purposes?
    I hope I stimulated you think more about the requirements and possible solutions.

  • How to log the messages in program scheduled background

    Hi all,
    I have a program and it is to be scheduled to run in the background.
    I want to log the messages within the program while running.
    What could I do?
    (The standard job log is not what I want)
    Thanks.

    Ignore my previous post. It is good that you posted this question, as I learnt something new. Try the code below.
    Regarding help for why you require and why to go for application logs, refer this SAP Help
    http://help.sap.com/saphelp_47x200/helpdata/en/2a/fa0223493111d182b70000e829fbfe/frameset.htm
    DATA: ls_log  TYPE bal_s_log.
    DATA: p_log_handle TYPE balloghndl.
    ls_log-extnumber = 'YMYTEST'.
    ls_log-alprog = sy-repid.
    CALL FUNCTION 'BAL_LOG_CREATE'
      EXPORTING
        I_S_LOG                 = ls_log
      IMPORTING
        E_LOG_HANDLE            = p_log_handle
      EXCEPTIONS
        LOG_HEADER_INCONSISTENT = 1
        OTHERS                  = 2.
    IF SY-SUBRC <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    data: l_s_msg TYPE bal_s_msg.
    data: E_MSG_WAS_DISPLAYED type boolean.
    data: E_MSG_WAS_LOGGED type boolean.
    data: E_S_MSG_HANDLE type BALMSGHNDL.
    l_s_msg-msgid = '00'.
    l_s_msg-msgty = 'E'.
    l_s_msg-msgno = '001'.
    l_s_msg-msgv1 = 'This is a test message from 20130810'.
    CALL FUNCTION 'BAL_LOG_MSG_ADD'
      EXPORTING
        I_LOG_HANDLE              = p_log_handle
        I_S_MSG                   = l_s_msg
    IMPORTING
       E_S_MSG_HANDLE            = E_S_MSG_HANDLE
       E_MSG_WAS_LOGGED          = E_MSG_WAS_LOGGED
       E_MSG_WAS_DISPLAYED       = E_MSG_WAS_DISPLAYED
    EXCEPTIONS
       LOG_NOT_FOUND             = 1
       MSG_INCONSISTENT          = 2
       LOG_IS_FULL               = 3
       OTHERS                    = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    data: I_T_LOG_HANDLE type BAL_T_LOGH.
    append p_log_handle to i_t_log_handle.
    CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'
    EXPORTING
    *   I_S_DISPLAY_PROFILE          =
        I_T_LOG_HANDLE               = i_t_log_handle
    *   I_T_MSG_HANDLE               =
    *   I_S_LOG_FILTER               =
    *   I_S_MSG_FILTER               =
    *   I_T_LOG_CONTEXT_FILTER       =
    *   I_T_MSG_CONTEXT_FILTER       =
    *   I_AMODAL                     = ' '
    * IMPORTING
    *   E_S_EXIT_COMMAND             =
    EXCEPTIONS
       PROFILE_INCONSISTENT         = 1
       INTERNAL_ERROR               = 2
       NO_DATA_AVAILABLE            = 3
       NO_AUTHORITY                 = 4
       OTHERS                       = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Subramanian V.

  • How to log the messages in an internal table n display

    Hello guys,
    This is my first post in SDN.
    I am uploading some data from application server. I am doing lot of varifications, based on that I have to display the messages.
    So I asked not to use the write statements to display the messages but asked me to create an internal table and display the messages afterwards..
    like I am using some BAPI to upload after the bapi call i have to log the result for each record into an internal table and show...
    can anyone guide me how to do it?

    Thanks for your info Azad,
    here I am posting my code... can u go through it once and lemme me whether i am in right track or not?
    FORM FORM_POST_DATA.
      IF X_POST = 'X'.
        CALL FUNCTION 'BAPI_ACC_BILLING_POST'
          EXPORTING
            DOCUMENTHEADER          = WA_DOCUMENTHEADER
           CUSTOMERCPD             = WA_CUSTOMERCPD
    IMPORTING
      OBJ_TYPE                =
      OBJ_KEY                 =
      OBJ_SYS                 =
          TABLES
            ACCOUNTRECEIVABLE       = IT_ACCOUNTRECEIVABLE
            ACCOUNTGL               = IT_ACCOUNTGL
            ACCOUNTTAX              = IT_ACCOUNTTAX
      CRITERIA                =
      VALUEFIELD              =
            CURRENCYAMOUNT          = IT_CURRENCYAMOUNT
            RETURN                  = IT_RETURN
      SALESORDER              =
      SALESAMOUNT             =
           EXTENSION1              = IT_EXTENSION1
        LOOP AT IT_RETURN.
          MOVE-CORRESPONDING IT_RETURN TO IT_MESSAGES.
        ENDLOOP.
      ENDIF.
    WRITE: / 'Result of Post:'.
      WRITE : / REF_TYPE,REF_KEY,REF_SYS.
      PERFORM FORM_SHOW_MESSAGES.
    ENDFORM.              "FORM_POST_DATA
    FORM FORM_SHOW_MESSAGES.
      IF IT_RETURN[] IS INITIAL.
        WRITE: / 'no messages'.
      ELSE.
        SKIP 1.
        LOOP AT IT_RETURN.
          WRITE: /    IT_RETURN-TYPE,
                 (2)  IT_RETURN-ID,
                      IT_RETURN-NUMBER,
                 (80) IT_RETURN-MESSAGE,
                    IT_RETURN-LOG_NO
                    IT_RETURN-LOG_MSG_NO
                    IT_RETURN-MESSAGE_V1
                    IT_RETURN-MESSAGE_V2
                    IT_RETURN-MESSAGE_V3
                    IT_RETURN-MESSAGE_V4
                 (20) IT_RETURN-PARAMETER,
                 (3)  IT_RETURN-ROW,
                      IT_RETURN-FIELD.
                    IT_RETURN-SYSTEM
        ENDLOOP.
      ENDIF.
      ULINE.
    ENDFORM.                               " Show_messages
    Nisha...

  • How to log inbound messages for Seeburger OFTP-Adapter

    Hello,
    we use the XI 3.0 SP9 with the Seeburger OFTP-Adapter to exchange EDI (ODETTE) Messages. At the moment we have the problem, that we don't see any inbound calls from our edi-partner in the logfiles of the oftp-Adapter. We can successfully connect to the ofpt-adapter by using telnet (as described in the documentation).
    Do anybody know, how we can log the incoming calls?
    Thanks!
    Stefan

    Hello Stefan,
    the SEEBURGER Adapters are using  the certified AdapterFramework Log Infrastructure. You can for example see the Logfiles with the J2EE Engine LogViewer.
    First you have to make sure anything is logged: In the "Log Configurator" you find in the
    |ROOT/Applications/Exchange Infrastructure/
    category a child named
    |  .../AdapterFramework/ThirdPartyRoot/
    under this subtree there is the
    |   .../SEEBURGER/
    tree where you find the technical adapters (like OFTP). Define here an loglevel of INFO or DEBUG.
    Then you can access the logs in the J2EE Administrator service "Log Viewer":
    |Cluster/Server 0/usr\sap/
    |..SID\DEVBMGS00\j2ee\cluster\server0\log
    |....applications
    |......com.seeburger.xi.oftp
    |........oftp.log
    You can also see this as a file on the system where the AF is installed (however it is better readable with the Log viewer):
    /usr/sap/XIT/DVEBMGS00/j2ee/cluster/server0/og/applications/com.seeburger.xi.oftp
    I have some screenshots which will make this more clear, please drop me an email so I can send them to you: [email protected]
    Greetings
    Bernd

  • How to log in to Service Desk to create sample message to SAP?

    Dear all,
    How to log in to Service Desk under my Solution Manager server to create sample message to SAP under Component: SV-SMG-SUP?
    Regards
    GN

    Hi GN,
    You have different options to create messages in test component SV-SMG-SUP-TST:
    1. if you are on 7.1 you can create message using CRM_UI
    2. If you are using lower vrsion then either you can create message using Workcenter or using transaction NOTIF_CREATE or using menu --> Help --> Create support message.
    Thanks
    Regards,
    Vikram

  • How do I log into my iCloud account. I have iCloud installed on my iPad but can not figure out how to log into my iCloud account to restore a message

    How do I log into my iCloud account. I have iCloud installed on my iPad but can not figure out how to log into my iCloud account to restore a message

    Settings / iCloud on the iOS device to view your settings and options.
    Storage & Backup / iCloud Backup is how you restore the device with your last backup.

  • How to log the exception using Log action in Oracle Service Bus

    Hi,
    Whenever an exception is raised how to log the exception using Log action in oracle service bus.After logging where I have to find the logged message.

    It would be in the log file for the managed server which ran the request. If you are logging the message at a lower level than your app server, however, you won't see it. You should be logging the exception at Error level.

  • HOW TO LOG IN INTO ROUTER SETTINGS FROM YOUR COMPU...

    Hello there,
    I am in need of help!
    I am a mac user, and experiening severe wireless prblemns with my router. I came across this discussion on apple support: https://discussions.apple.com/message/23693056
    and like in this forum:
    https://community.bt.com/t5/Other-Broadband-Queries/No-802-11-Ac-on-Home-Hub-5/td-p/1067592
    They suggest setting the router to: No 802.11 Ac on Home Hub 5.
    Now, I know what I need to do, but how do it do it?! 
    I don't know even how to log into my router! Can you help?
    Your help with be very much aprreciated. Thank you very much,
    regards,
    Jenny

    jennylee wrote:
    Thank you so much for your help!
    I managed to log in, and it all seems in order. so the problem must be with my computer. 
    when i go to the tab of the wireless it just says: "Wi-fi: Looking for Networks" all the time! 
    Then it find a networks, then it drops, then it finds it again. it's a pain. I think it has gotten worse since I uptated the system from Snow Leopard to Maverick. Any suggestions? Anyone else with this problem?
    Thank you so much!
    Jessy
    Hi there,
    It sounds to me like you could have a corrupt network preferences file.
    Here's what I suggest you do:
    1. Open System preferences from the dock icon.
    2. Navigate to Network and open that pane.
    3. Click on Wi-Fi, in the left hand pane and highlight it.
    4. Click the minus button at the bottom of the pane to remove Wi-Fi from the list.
    5. Click Apply.
    6. Click on the plus button and select "Wi-Fi" from the drop down list.
    7. Click Apply.
    8. Quit System preferences.
    You should now have effectively reset your Wi-Fi interface. Now try connecting to your wireless network again and (hopefully) everything should work as expected.
    I hope this info helps.

  • How to log to a file using the log-configuration.xml?

    Hello *,
    I created following log-configuration.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
    <log-configuration>
         <log-formatters>
              <log-formatter name="DefaultFormatter" pattern="%25d %-60l %s: %m" type="TraceFormatter"/>
         </log-formatters>
         <log-destinations>
              <log-destination count="10" effective-severity="ALL" limit="1000000" name="DefaultDestination" pattern="FDLB_GUI.%g.trc" type="FileLog">
                   <formatter-ref name="DefaultFormatter"/>
              </log-destination>
         </log-destinations>
         <log-controllers>
              <log-controller effective-severity="ALL" maximum-severity="FATAL" minimum-severity="DEBUG" name="DefaultController">
                   <associated-destinations>
                        <destination-ref association-type="LOG" name="DefaultDestination"/>
                   </associated-destinations>
              </log-controller>
         </log-controllers>
    </log-configuration>
    From a Web Dynpro view I want to use the log-controller. I'm using the default logger:
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(EinstiegView.class);
    In the wdInit method I want to log a simple message:
      public void wdDoInit()
        //@@begin wdDoInit()
        logger.setEffectiveSeverity(com.sap.tc.logging.Severity.ALL);
        logger.fatalT("test logging to new file logger");
        //@@end wdDoInit()
    I see the message in the defaultTrace.0.log, but my own log file doesn't appear.
    How to address the log-controller of my log-configuration.xml?
    Thanks in advance,
    Jürgen Dufner

    Hi,
    I guess the follwing part of your log-configuration is wrong:
    <log-controller
    effective-severity="ALL"
    maximum-severity="FATAL" m
    nimum-severity="DEBUG"
    name="DefaultController">
    Try to change in log-configuration the value for name in <log-controller> to the start sequence of the packages to be logged. E.g., all our packages should start with com.yourcompanyname.projectname
    To log all messages from classes in these packages make the name = com.yourcompanyname.projectname.
    Hope that helps,
    Regards, Astrid
    Therefore I list

  • Write message to Job log with message class and message number

    hi folk,
    When running a background job I'm able to write a message to the job log using the statement - Message "some text..." type 'I'.
    In the Job log I can see the message "some text.." with a "default" message class and message number (but in my report i don't specify any message ID) so I have no idea it comes from.
    Then I try to send a message where I specify the message class/number etc...using message id 'Z1' number 000 with "some text..." In the job log I now can see the "right" message class "Z1" and the number 000, but the message is empty?
    Please advice how to write a message with the message class and message number.
    Best regards
    LinhNg

    Hi Linh,
    How did you provide the text "Some message"? Did you hard code it or used a text element?
    Regards,
    Immanuel.

  • How to print error messages in browser?

    When I visit a jsp file in browser, there's some errors in the jsp file, so the browser returns
    The page cannot be displayed
    There is a problem with the page you are trying to reach and it cannot be displayed.
    I want the detail error messages, so I can debug my problem. How to print error message in browser or find the message in some log file?

    Hi Kanaraja,
    Thanks for your answer. I need to get certain information from the list. So, I use LIST_To_ASCII FM. However, may I know the ascii_tab should be type to what? And after this FM, do I have to use another FM to display the ascii list?
    data ABAPLIST type ABAPLIST OCCURS 0.
    SUBMIT  RPCALCU0 VIA SELECTION-SCREEN
    with PNPXABKR = 'US'
    with PNPTIMRA = 'X'
    with PNPPABRP = '10'
    with PNPPABRJ = '2003'
    with PNPPERNR-LOW = '100750'
    with PNPPERNR-LOW = '109202'
    with PNPPERNR-LOW = '100255'
    with PNPABKRS-LOW = 'US'
    with SCHEMA = 'ZUSP'
    with RADI_EDT ='X'
    with EDT_VARI = 'CUS&SAP_US'
    with TST_ON = 'X'
    EXPORTING LIST TO MEMORY and RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject       = ABAPLIST
    EXCEPTIONS
       NOT_FOUND        = 1
       OTHERS           = 2.
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        list_index         = -1
      TABLES
        listasci           = asci_tab
        listobject         = ABAPLIST
      EXCEPTIONS
        empty_list         = 1
        list_index_invalid = 2
        OTHERS             = 3.
    IF sy-subrc NE '0'.
      WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
    ENDIF.

  • How to make error message as warning message

    how to make error message as warning message? ie  i get error message hence cannot save the slaes order   i want to make that error message as warning so that i can save the sales order please help.

    Hi
    If a message is a custom message, then by changing the message type from E(Error) to W (warning)   we can convert the message type into error message. This is done with the help of development guy. A change in the code is needed.
    If it is a standard message, then it depends on whether we have teh access to change the message type. If access is there, then it is possible to change the message from Warning to Error. i.e. If we are capturing std SAP message in our code and displaying then we can change it, else if SAP message is displayed directly, we cant change it.
    So, to change it, capture the error message from SAP in some Zcode and then convert that message into a custom message of message type E.
    The whole change needs ABAP support.
    Try with tcode <b>OVA2</b> settings selecting for sales order or in SAPRO--SD-BF-Log of Incompletion Items
    Message was edited by:
            SHESAGIRI.G

  • Developing the Wrapper class to log the message in XI server

    Hi All,
    We are trying to develop  wrapper class on the SAP Logging API, in that I am unable to log the message in the log file(whose path is mentioned in the properties file).
    We use this for storing when exception raised during message transformation due to certain error conditions...
    Procedure:
    My Wrapper class will take the parameters from Property file and store/log the message in the specified location,
    This is working outside of XI environment
    Please suggest how to make to work in XI environment
    Also suggest do I need to do any configurations in SAP web As
    Thanks,
    venu.

    HI,
    With the above blog ref by Michal , see the below links also,
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    /people/amjad-ali.khoja/blog/2005/12/16/slaw-a-new-logging-tracing-framework-for-xi
    /people/amjad-ali.khoja/blog/2006/02/07/using-dom4j-in-xi--a-more-sophisticated-option-for-xml-processing-than-sap-xml-toolkit
    Also my be useful..
    /people/community.user/blog/2007/01/09/enterprise-soa-explorations-reflections-on-database-integration
    /people/anne.tarnoruder/blog/2006/10/26/reusing-code-with-pdk-for-net
    /people/piers.harding/blog/2006/05/18/ruby-on-rails-with-ajax
    Regards
    Chilla

  • How To Set JMS Message ID

    Hi,
    I am working for a client that uses a MQ Series as their interface routing infrastructure.  They have written some custom tools that log MQ messages.  Their tools expect the MQ message ID to be in a specific format YYYY_MM_DD_HHMMSS_AAAAAA where AAAAAA is a unique set of characters based on the millisecond.
    Is it possible to set the JMS message ID on a JMS receiver adapter?
    Thanks in advance for your help,
    Craig

    Hi Craig,
    as it looks you have to set the Message Id in a special format. I am not sure if this is possible at all. I didn't find a way to influence how XI sets the JMS Message Id.
    Maybe you could work with the JMS Correlation ID instead and have your client adapt his tools. You can use either a User-Defined Function or a Java Mapping, setting the so-called Adapter-specific attribute DCJMSCorreleationId
    Here you can find an example how to do this in the User-Defined Function:
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    In a Java Mapping it is similar:
    http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm
    This example uses the File Adapter, but the same applies for the JMS Adapter.
    The JMS Adapter has the namespace http://sap.com/xi/XI/System/JMS
    Have a look at this one to find out more about the Adapter-specific attributes of the Receiver JMS Adapter:
    http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/frameset.htm
    I hope that this information is of some help for you.
    regards,
    Peter

Maybe you are looking for