Application Log. Report

Hi All,
My task is. Develop a report, in background  it has to create a log with all details in report.
ie online  display in screen, background put it in log file.
How to create application log  with report informationt.
Thanks,
Balamurugan.R

please follow the below stpes.
you can create object and subobject in SLGO tcode
you can able to see the log in SLG1 tcode 
DATA: lt_obj_long_no TYPE STANDARD TABLE OF balnri,
             lt_messages TYPE STANDARD TABLE OF balmi,
             lwa_message TYPE balmi.
       REFRESH lt_messages.
       lwa_message-msgty  = 'E'.
       lwa_message-msgid  = 'YCA_DATA_MIGRATION'.
       lwa_message-msgno  = '110'.
       lwa_message-msgv1   = wa_as91-aibn1.
       lwa_message-msgv2   = wa_as91-aibn2.
       APPEND lwa_message TO lt_messages.
       CLEAR lwa_message.
       CALL FUNCTION 'APPL_LOG_WRITE_MESSAGES'
         EXPORTING
           object              = 'YFICC006'
           subobject           = 'YFICC006'
           update_or_insert    = 'I'
         TABLES
           messages            = lt_messages
         EXCEPTIONS
           object_not_found    = 1
           subobject_not_found = 2
           OTHERS              = 3.
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
       CALL FUNCTION 'APPL_LOG_WRITE_DB'
         EXPORTING
           object                = 'YFICC006'
           subobject             = 'YFICC006'
         TABLES
           object_with_lognumber = lt_obj_long_no
         EXCEPTIONS
           object_not_found      = 1
           subobject_not_found   = 2
           internal_error        = 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.

Similar Messages

  • How to make a downloadable report of application log file.

    Hi Every One,
    i am new to this ABAP environment, I have application logs in my system, i need to generate the reports based on my filter condition and i need to download them as file/report, For example;
    I need a Application Log report for:
    only Particular User
    only particular time
    only importent logs
    only errors
    like that....so on..
    Can any one give me step by step, how to make a report of application logs, i know only i can see logs use transaction CodeSLG1. I want to make report them.
    Thank you
    Regards
    Ravi

    Found answer in log itself

  • Same Application Error - while checking the auditing log report in site settings

    dear all,
    I am getting application error - when I am checking the audit log report from
    Site Settings ->Audit log->Run a custom report ->In the save location - when I click browse button.
    Any inputs to solve the issue will be helpful?
    Cheers
    Sathya

    Hi,
    Try to configure audit settings for a site collection as the link below:
    https://support.office.com/en-us/article/Configure-audit-settings-for-a-site-collection-f5a346d0-ee0f-4412-a5e6-d9b5abaa1012
    Or check the blogs below:
    http://sharepointthomas.blogspot.com/2011/07/how-to-enable-audit-functionality-in.html
    http://www.codeproject.com/Articles/431342/Auditing-A-Built-in-Feature-of-SharePoint
    Did you check the ULS log?
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • No Data to display in Application failure report for a specific Application

    Hi ,
    For a specific application,Application failure report showing no data to display but for the same application other reports shows value.
    Application failure reports seems to work fine for some other application except few.Need to know the root cause.
    Kindly help us to sort this issue.
    Thanks & Regards,
    Preethi S

    Hi,
    Is there any error message when you run Application Failure Analysis report for the specific application?
    Does this application have any failure alerts?
    You may also look into operation manager even logs to check is there any errors or warnings.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to write to application log at BBP_CREATE_BE_PO_NEW

    Dear all,
    I am running in a strange problem. I want to log to application log (SLG1) in BADI BBP_CREATE_BE_PO_NEW. As soon as I call a function from there I get an error at the shopping cart position. Changing values in the given data does work without any problems. In EBP 3.5 we used the BADI BBP_CREATE_PO_BACK and this worked with logging without any problems.
    Thanks for support.
    Regards
    Roman

    Hello , there is an example of application logging usage in report SBAL_DEMO_01.
    You need an application log instance to be created before you can add messages that will be displayed using tx SLG1. Maybe its because you dont have a logging object instance in your badi.
    Hope it helps.
    Regards, Luciano.

  • Exporting and Importing Data of Application Log

    Hello,
    We do migrate an application from SAP System A to SAP System B.
    Despite the application logic, we do need to migrate some data, too.
    For this we do write an export report in System A that writes the data of some tables to  files on the app server..
    Another report in system B takes the files and fills the respecting tables.
    So far so good:
    One table (which reports certain actions)  contains the handle to the application log, which was created for this action.
    I do want to extract this application log and later import this log in the other system, but do not know how this can be done in the best way.
    Do you have any suggestion ?
    Best regards
    Michael

    In my experience, it's an unrealistic expectation.
    SAP doesn't provide a straight path to migrate logs the way you plan to do. It's kept in a combination of tables and index files on the system. So even if you were to successfully extract it, when you load the data into system B you will lose the date and time stamp. When you create a log entry, it picks up system date and time. That's what an auditor would look for.
    An alternate solution would be to read the application log and store it in a new custom table in system B.
    Any reporting should be done off that as of a specific date.

  • Issue regarding application log in standard program RPCLMSU0

    System Status: SAP ECC6, SP15.
    This probem has been observed after we have upgraded from 4.6C.
    In the include RPCLMSUF of the Report RPCLMSU0, there is an FM BAL_LOG_MSG_ADD, which adds messages to an application log.
    A structure is passed to the FM, of type bal_s_msg.
    The first 3 components of the structure are of type:
    sy-msgt, sy-msgid and sy-msgno.
    These should normally be filled in by values from the FM called just above it: BAL_LOG_CREATE.
    But this doesnu2019t happen.
    So, SAP has hardcoded values for these 3 as u2018Eu2019 (Message type), HRPAYNA_ALV (Message ID) and u2018998u2019 (Message no).
    These are the values that get printed when the program is tested. i.e. the hardcoded text is getting displayed.
    Output in the ALV : HRPAYNA_ALV:998 ***********No records found***********
    We have checked the documentation for the FMs, and even gone through a few sample programs that SAP has created like SBAL_DEMO_02. The output is perfect here.
    Since this is code that SAP has added (Entire form added "SL0K008292) by SAP to its standard code, they must believe that these hardcoded text will still not get printed. Can this error can be corrected by making some configuration changes in the system (SLG1?).
    The code of the suroutine where this FM is called is given below:
    FORM alv_appl_msg_add USING iv_text1 TYPE any
                                iv_text2 TYPE any
                                iv_text3 TYPE any
                                iv_text4 TYPE any.
    Constants delcation.....
      CONSTANTS: lc_msgid TYPE sy-msgid VALUE 'HRPAYNA_ALV', " Message ID
                 lc_msgty TYPE sy-msgty VALUE 'E'.  " Message Type
    Data declarations.....
      DATA  ls_msglog TYPE bal_s_msg.      " Structure for msg log
      ls_msglog-msgty     = lc_msgty.
      ls_msglog-msgid     = lc_msgid.
      ls_msglog-msgno     = gv_msgno.
      ls_msglog-msgv1     = iv_text1.
      ls_msglog-msgv2     = iv_text2.
      ls_msglog-msgv3     = iv_text3.
      ls_msglog-msgv4     = iv_text4.
    Function module is used to add the messages to message log
      CALL FUNCTION 'BAL_LOG_MSG_ADD'
        EXPORTING
          i_s_msg = ls_msglog
        EXCEPTIONS
          OTHERS  = 1.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.                               " IF sy-subrc <> 0
    ENDFORM.                               " alv_appl_msg_add

    Hi
    Pass IDoc Number, Date, Time from EDIDC table to FM-
    'APPL_LOG_READ_DB'.
    You'll get all log details of that IDoc.
    For only Message, check FM - 'IDOC_GET_MESSAGE_ATTRIBUTE'.
    Regards.

  • Event_ID34700 in Application Log

    Hi - In Crystal Reports I enherrited 2 problems at the moment.
    1) When adding a report as Administrator or as a member of the administrator group, I get a error.
    At the same time I get error 34700 in the Application Log. 
    Source: BusinessObjects_wca
    Category: Transport
    Type: Warning
    Event_ID: 34700
    Description: Transportfout: ongeldige objectverwijzing.
    The Error I see as user in Crystal Reports:
    Lezen van gegevens uit rapportbestand C:\WINDOWS\Temp\Top 10 incidenten op hardware v1.rpt is mislukt.
    Reden: Programma D:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\win32_x86\plugins\desktop\CrystalEnterprise.Report\ReportAdd kan niet worden gestart voor het toevoegen van het rapport aan het systeem.
    Both files are on the server (the report in the temp and ReportAdd.exe & ReportAdd.dll in the Enterprise.Reprt Folder). NTFS-rights on both folders and content are Full control. (The report in the Temp-folder disapaers after the failed action, but is there during the attempt to add).
    Does anyone know how I might be able to add reports again?
    2) The option to add a new folder on the highest level is grayed out - again I'm logged in as Administrator.
    Does anyone know how to enable this tab again?
    Thanks!

    Hi Scott,
    Use this command:
    Set-EventLogLevel -Identity "Exchange01\MSExchangeSA\OAL Generator" -Level High
    http://technet.microsoft.com/en-us/library/aa998905(v=exchg.150).aspx
    Thanks,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • Daily Logging Report

    Oracle Apps 11i
    Database : 9i
    can i get users logging report to a specific responsibility / apps on daily basis
    i have this query can anyone correct if i am wrong or is there any other way -
    select b.user_id,user_name, a.description,first_connect, last_connect,r.RESPONSIBILITY_name
    from fnd_user a, icx_sessions b, fnd_responsibility_vl r
    where a.user_id = b.user_id
    and r.RESPONSIBILITY_ID = b.RESPONSIBILITY_ID
    ------and a.user_name like '%abc%'
    and r.RESPONSIBILITY_name like '%In%Lo%Pur%'
    and b.last_connect >= sysdate
    order by first_connect
    Regards,

    Hi,
    You can run "Signon Audit Users", "Signon Audit Responsibilities" concurrent programs to get these details.
    If you want to get the same from the backend, please refer to:
    Note: 295206.1 - How to Count Total Number of Users Connected to ORACLE Application
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=295206.1
    USERS CONNECTED
    Re: USERS CONNECTED
    Number of users logged in last two months
    Number of users logged in last two months
    Regards,
    Hussein

  • Deleting expired application logs is key to improving mass activity performance issues

    During mass activity runs reference is made to the system's application logs during the process of line item selection. Performance based issues can be overcome by deleting old/expired application logs from the system, and rebuilding the affected table index. Based on my analysis on these issues, there has been a significant observation of 90% improvement in performance.

    Dear Astrid,
    Depending on the performance trace observed using transaction ST12, if for instance the SELECT on a particular table takes the most time, deleting all expired application logs and rebuilding the table index will result in a significant performance improvement.
    Yes 90% improvement will be observed across the entire mass activity run. In my example below I use table BALHDR.
    1. Run report SBAL_DELETE to delete all expired
    application logs from table BALHDR
        1.1. At the selection screen of report
    SBAL_DELETE, set the radio button for the expiry date to 'Only logs which have
    reached their expiry date’
        1.2. Under the tab for 'Selection
    conditions', enter the affected transaction code. e.g FPVA
        1.3. To delete the entries, set the radio
    button under the Options tab to 'Delete immediately'
        1.4. Finally, execute or use shortcut F8 to
    delete logs
    2. Rebuild index 1 on table BALHDR (create a
    secondary index on the table).
    I hope this helps.
    Kind Regards,
    Adrian

  • Application Usage Report Blank - ARD 3.8

    We are trying to run an Application Usage Report on one of our clients. We are using both 3.8 Admin and Client.
    It will run the report but the output is simply blank.
    Has anyone seen this before? Any advice. Tried it on several clients and same issue each time.

    Hi all - I'm suffering from similar ARD/VNC/ScreenSharing problems, too - in this case however Yosemite to Yosemite!
    Client computer:
         Laptop: MacBook Pro
         Yosemite 10.10.2
         ARD 3.8.3
    Remote Computer:
         Desktop: MacMini
         Yosemite 10.10.3
         ARD 3.8.3
    I cannot connect to my remote machine (to control or just view it), neither with ARD nor with VNC.
    It does not work with Remote Management enabled nor Screen Sharing.
    Attempting a connection reports - after a while - the error "Connection failed ... Please make sure that Screen Sharing ... is enabled" (but it is enabled!)
    In the log on the client machine the following entry appears:
    Screen Sharing: SSSessionView.m:1815:-[SSSessionView ssSession:connectDidFail:]: Communications error
    In the log on the remote machine the following entry appears:
    com.apple.xpc.launchd[1]: (com.apple.screensharing[692]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.screensharing.server
    Note, however that other functions work:
    - On my Laptop ARD reports that the remote computer is available and displays the user and the current application correctly
    - A connection does seem to be established between the client and the remote machine, because I can send a "Message to the Administrator" from the remote machine back to the client machine, which is correctly displayed on the client machine.
    Come on Apple - you seem to have forgotten your credo "It just works!"
    I thought I would never say it, but thank god for TeamViewer!

  • How to create Application Log

    Hi,
    I have written a report which gathers errors in a test data container.
    These errors are stored in a internal table of type stringtab.
    I want to create a Application Log of these errors so that the user can
    view it at a later time.
    Are there predefined function modules available in ABAP for creating and viewing log?
    Kindly provide me the details.
    Regards,
    Bikash.

    Hi Monika,
    Is it necessary to  add messages from message class in
    BAL_LOG_MSG_ADD --> Put message in log.
    Is there any way where a string can also be added and viewed from a application
    log?
    For my use case i actually have a stringtab for which i want to have a log.
    Regards,
    Bikash.

  • Error about the dll crdb_dao.dll - In Event Viewer - Application log

    We have classic ASP application and we are using Crystal XI for reports viewing and printing. We are keep getting the following error logged in the event view application log.
    Faulting application dllhost.exe, version 5.2.3790.3959, faulting module crdb_dao.dll, version 11.0.0.1282, fault address 0x0001b130.
    What is Causing this error. When this happens, the components stops responding and we have re-start the server.

    Hi ABC,
    CR XI is past it's patch life cycle so all I can suggest is you download the last Service Pack and test again. If it still happens then you can update to XI R2 and try again.
    You can get to downloads from here: http://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm
    And to upgrade go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    Thank you
    Don

  • Application logs for log handling in lsmw idoc method

    Hi Abapers,
          Im using LSMW IDOC method for data transfer from legacy to sap system.Now the requirement is to handle application logs for log handling i.e i have to make use of custom report to handle logs,can any one tell me what all steps to be done for this or if any one can share a link related to application logs would be greatly appreciated.
    Thanks.
    Edited by: saeed.abap on Dec 27, 2011 5:13 PM

    Hi Saeed,
    Please check with this fms
    1) BAL_DSP_LOG_DISPLA
    2) APPL_LOG_READ_DB
    3) IDOC_GET_MESSAGE_ATTRIBUTE
    There is a wiki [Error Log Lsmw|http://wiki.sdn.sap.com/wiki/display/Snippets/ErrorLogProgramforBAPIandIDocMethodin+LSMW] available.
    Regards,
    Madhu.
    Edited by: madhurao123 on Dec 28, 2011 8:25 AM

  • Runtime error for Audit Log reports

    Hi,
    I have activated Reports feature at Site Collection level and then tried to run custom report for Dashboard library under Audit Log Reports but I got Run Time error. I tried on my local machine and on server.
    Can any body let me know how to resolve this issue to get custom report?
    Any help would be appreciated.
    BELOW IS THE ERROR MESSAHE:
    Server Error in '/' Application
    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed
    by browsers running on the local server machine.
    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application.
    This <customErrors> tag should then have its "mode" attribute set to "Off".
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>
    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>
    AEDLA.

    The audit log reporting is kind of tricky to work with...until you know what you're doing.
    Some things to check: Do you have the Reporting feature enabled?  Do you have auditing enabled on sites in this site collection?  Have any events been triggered that would have written to the audit logs?  Did you specify an output library
    for the report?  Will the report have any data?
    Also, look at the SharePoint logs in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\ and let us know any "Unexpected" errors.
    Bob Guidinger
    Please remember to click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

Maybe you are looking for

  • Can't play any music or videos after 7.4.3.1 upgrade

    Any body seen this type of problem after the update?? After upgrading to iTunes 7.4.3.1 I can't play any music on my PC. iTunes allows me to select the tune piece from the library, loads the player and just sits there not advancing the song. If I try

  • JavaCode to create IT Resource, Group and UserForm in OIM

    Hi, Is it possible to create the ITResource, Group and UserForm in OIM using java code(java apis). Has anyone tried creating. Regards, Manju

  • ORA-29279 553 error

    ORA-29279 553 error Can someone explain me what you mean by the following error: ORA-20001: ORA-29279: SMTP permanent error: 553 5.1.3 multiple addresses not allowed: I am passing multiple valid email addresses. I am able to send email to these addr

  • Monitor went to save power mode

    hi, i have a ibm netvista 8306, i loaded in win xp, but lost my drivers but the main problem i have is that i installed the correct graphics driver for this desktop comp. but when i restarted the comp. the comp. went onto save power mode, icant seem

  • Takeover values coming with grey mode

    Hi!!! Please help me somebody.... I hve a problem... I create asset on AS91 but when i put a Asset capitalization date in XX.XX.2009 the Takeover values coming with grey mode but if i put Asset capitalization date in XX.XX.2008 I can fill the takeove