BAPI job log messages are disabled

Can not view messages in a BAPI in the job log?

the bapi is .
CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        poheader         = lw_poheader
        poheaderx        = lw_poheaderx
      IMPORTING
        exppurchaseorder = lv_ebeln
        expheader        = lw_expheader
      TABLES
        return           = lt_poreturn
        poitem           = lt_poitem
        poitemx          = lt_poitemx
        poaccount        = lt_poaccount
        poaccountx       = lt_poaccountx
        poservices       = lt_poservices.
the report is run in beckground and the register of the job appear to me all the messages of type E, W, S, I return that returns the structure of the BAPI. I am interested only messages type S, E.
Help
Edited by: francesco aiello on Jan 20, 2010 9:38 AM
Edited by: francesco aiello on Jan 20, 2010 9:47 AM

Similar Messages

  • Job log messages in BPM

    Hi All,
    I am doin Business Process Monitoring for monitoring batch jobs of a satellite system so that we will be getting tickets when some job is cancelling.
    for cancellation of jobs SD tickets are generating.
    now the requirement is to genarate a SD ticket for the successful job completion.
    in BPm we have one option as "job log messages" in Background job monitoring type.
    can we do it from there? How will the information be displayed in the ticket for job completion?
    we are defining some threshold values also in that option. how those threshold values will help in generating SD ticket.
    can anyone please suggest some idea.
    thanks
    Tripti

    Hi,
    You can monitor job log message with Business Process Monitoring in two ways (for an alert description see http://help.sap.com/saphelp_smehp1/helpdata/en/99/b45f54119044f19d389b2cad3430bc/frameset.htm)
    a) Error messages:
    Use case: You want to create alerts/notifications if background job creates more than N error messages in the job log.
    -> Use the upper limit for yellow/red alerts.
    -> Example: Job canceled ->monitor message of class 00 and with ID 564 (type A)
    b) Success messages:
    Use case: You want to create alerts/notifications if background job creates less than N success messages in the job log (Usually you want to watch the create of follow documents or the successful update of documents)
    -> Use the lower limit for yellow/red alerts
    -> Example: Job finished without error -> monitor message of class 00 and with ID 517 (type S).
    In both cases you will get a green rating - but no notification - if conditions for yellow/red alert are not met. Notifications (manual and automatic creation) are allowed for yellow and red alerts only.
    See also the documentation for Job Scheduling Management:
    http://help.sap.com/saphelp_smehp1/helpdata/en/c5/7edcbd58ce4e29bc1baf1c4761d71f/frameset.htm
    Best regards,
    Martin

  • Databsase log messages are not written to custom OutputStream

    I am using BDB 2.3.10 via Java API.
    I've enabled BDB log messages and could see them output fine to the console, but I couldn't output these messages into a file.
    Here is what I am doing:
    EnvironmentConfig envConfig = EnvironmentConfig.DEFAULT;
    envConfig.setErrorStream( new FileOutputStream ( errorLogFile ) );
    envConfig.setMessageStream( new FileOutputStream ( messageLogFile ) );
    XmlManager.setLogCategory( XmlManager.CATEGORY_ALL, true );
    XmlManager.setLogLevel( XmlManager.LEVEL_DEBUG, true );
    Environment env = new Environment(new File( dbLocation ), envConfig );
    XmlManager xmlManager = new XmlManager(env, xmlManagerConfig );
    All log messages are going to the console, instead of going to messageLogFile and errorLogFile .
    What am I doing wrong?

    Hi Basil,
    Exception handling and debugging for DBXML applications is explained in chapter 2 in the guide here:
    http://www.oracle.com/technology/documentation/berkeley-db/xml/gsg_xml/java/BerkeleyDBXML-JAVA-GSG.pdf
    Did you check your code so that you catch any exception that may be thrown ? Is there any exception thrown at all ?
    It may be more helpful if you post the small piece of code that demonstrates the issue. Put the code within pre tags surrounded by square brackets ([ pre ] <code here> [ /pre ] eliminate the spaces inside the brackets).
    Regards,
    Andrei

  • Suppress job log messages

    Folks, we have a custom program that calls the BAPI_SALESORDER_CHANGE and it writes a number of information messages (like "Date is in the past", "Not possible to determine a batch", "PO number already exists", so on and so forth) which gets written to the job log. To clarify, when you go to SM37 and select your job and click Job Log, a number of these messages are shown which is generating such a huge log that our job gets cancelled due to its sheer size.  Please note that this is not the SPOOL I am talking about.
    I have tried to call the BAPI in several ways like using "DESTINATION 'NONE'", calling in background task, and also SUBMIT but I still haven't gotten any luck. The huge log is causing problems with one of our jobs and we need it for UAT next week. I have opened a note with OSS and we are running into administrative issues. We do not want to go the Call transaction route.
    Is anybody familiar with this sort of issue? I searched everywhere and could not find anything similar or maybe I am not searching it right. Any help would be greatly appreciated.
    Sridhar

    Thanks Greetson. What you have provided are Sales Order create BAPI's. The RETURN parameters are different from the log messages. Look at my code below. I have no write statements but the BAPI is writing out these. This is an uncommon situation for some. I would appreciate if you can point me to some FM which changes sales order. Thanks a lot.
    report zzsritest2.
    tables vbak.
    parameters: p_vbeln like vbak-vbeln obligatory default '11658'.
    data: l_order like bapivbeln-vbeln,
          l_order_header_inx like bapisdh1x,
          l_bapischdl like bapischdl occurs 0 with header line,
          l_bapischdlx like bapischdlx occurs 0 with header line,
          l_return like bapiret2 occurs 0 with header line.
    start-of-selection.
      move p_vbeln to l_order.
      l_order_header_inx-updateflag = 'U'.
      l_bapischdl-itm_number = l_bapischdlx-itm_number = '00100'.
      l_bapischdl-sched_line = l_bapischdlx-sched_line = '0001'.
      l_bapischdl-req_dlv_bl =  '  '.  " CHANGE HERE
      l_bapischdlx-req_dlv_bl = 'X'.
      l_bapischdlx-updateflag = 'U'.
      append: l_bapischdl, l_bapischdlx.
      call function 'BAPI_SALESORDER_CHANGE'
        exporting
          salesdocument    = l_order
          order_header_inx = l_order_header_inx
        tables
          schedule_lines   = l_bapischdl
          schedule_linesx  = l_bapischdlx
          return           = l_return.
      read table l_return with key type = 'S'
                                   id = 'V1'
                                   number = '311'.
      if sy-subrc eq 0.
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait = 'X'.
      endif.

  • PL/SQL log messages are not printing from Java concurrent program

    Hi,
    I have a strange issue while submitting the Java concurrent program through PL/SQL.
    I have a PL/SQL concurrent program which will invoke the Java concurrent program inside the package by use of "FND_GLOBAL.SUBMIT_REQUEST". It worked and submitted successfully. From that Java concurrent program we are calling some other PL/SQL packages and printing some log messages over there. But problem here is the request is only printing the Java log messages in view log but not the PL/SQL log messages.  But if I submit the Java concurrent program directly from SRS form at that it is printing both Java and PL/SQL log messages.
    I am just wondering how the log messages has not printed. Please provide your inputs to solve this problem.
    Thanks
    Suriya

    I'm adding log messages in the package body , but these messages are not printing after completion of concurrent prog.
    Any suggestions.
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Data Test :');Do you have COMMIT in your code?
    https://forums.oracle.com/forums/search.jspa?threadID=&q=%27FND_FILE.PUT_LINE%27+AND+commit&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • FND LOG messages are not printing in LOG file for Concurrent program

    Hi,
    I'm adding log messages in the package body , but these messages are not printing after completion of concurrent prog.
    Any suggestions.
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Data Test :');
    Thanks.

    I'm adding log messages in the package body , but these messages are not printing after completion of concurrent prog.
    Any suggestions.
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Data Test :');Do you have COMMIT in your code?
    https://forums.oracle.com/forums/search.jspa?threadID=&q=%27FND_FILE.PUT_LINE%27+AND+commit&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Reporting agent in BW 3.0b- Job log message is-No alert data found

    Hi,
    I am using reporting agent in BW 3.0b to send and alert email to the user.
    There is a query in which I have used one restricted key figure to calculate the exception. I am able to display this in the report. In Bex analyzer I am getting the value.
    But When I schedule the package for Reporting agent I am getting in the job log as " No alert data has been found".
    I searched sdn before posting and did not get proper solution for this.
    Could you please let me know the use of expception in Reporting agent in BW 3.0b. Do I need to write any user exit for this???
    Reards,
    Raghu

    Hi,
    You can define threshold values (exceptions) for a query. Data that varies from these thresholds is highlighted in color or marked with icons. You can use these exceptions to identify deviations from expected results at a glance.
    Defining and Changing Exceptions
    1. In the Exceptions screen area, choose New Exception in the context menu. An entry with the default text Exception <Number> appears and you can edit the description directly.
    2.In the context menu, choose Edit. The exception editor appears; it displays the relevant parts for the definition on tab pages.
    You can also call the exception editor from the Properties screen area by choosing the Edit pushbutton.
    3.      Make the required settings for the definition of the exception. For more information, see Definition of Exceptions.
    4.      Choose OK. You return to the query definition.
    5.      Choose Save Query.
    Removing Exceptions from Queries
           1.      In the Exceptions screen area, select the relevant exception and choose Remove in the context menu.
           2.      Choose Save Query.
    Result
    You have defined or changed an exception for a query. Execute the query. The exception is evaluated online. The cell areas that are affected by the exception appear highlighted in the appropriate color or, where applicable, with icons in Web applications.
    You can display the exception descriptions and activate or deactivate the exceptions you want.
    For more info go through the below link
    http://help.sap.com/saphelp_nw70/helpdata/en/68/253239bd1fa74ee10000000a114084/frameset.htm
    Regards,
    Marasa.

  • Change Job Log to English

    Hi all,
    is there an easy way to change the "default" language (for example from German to English) in which Job Log messages are displayed?
    Thanks,
    Riccardo

    Hi,
    Finally I got it!
    In order to have the job log in English, you have to modify also the locale language of Data Services using the SAP Data Services Locale Selector tool.

  • Display error message in batch job log

    Hello
    I have a batch job running and I have an error coming during some validation logic.
    The problem is I need to continue the batch job when this error message comes and it should not cancel the batch job as it is doing currently but display that error message in batch job log, there are more similar error messages coming in job log and job gets finished, but when my error message comes job gets cancelled.
    I cannot give it as info message as it will give wrong idea about message type.
    Is there any FM by which we can add message in job log?

    Sanjeev I have done that but problem is I do not want to give that as Information message but Error message only and continue processing.
    If you see in screenshot 3rd message is given by me as information and you can see error messages also 6th and 7th and job continued till it is finished
    Basically I want that 'I' to be displayed as 'E'.
    Display error message in batch job log 

  • Reading and writing a JOB LOG

    Hi
    How do we read the job log?
    How do we display it?
    Regards
    Nishant

    HI
    GOOD
    GO THROUGH THIS
    Use
    All message types issued by a program running in the background are stored in a job log, which you can display either to obtain information on a prematurely terminated program or to complete a detailed investigation of a particular background processing run. A separate log file is created for each job.
    Deleting Log Files
    You should never delete log files directly. If you want to clear the log directory, you must delete the jobs to which the logs belong. In the process, the logs are also deleted.
    Job logs are held in the TemSe temporary sequential objects storage facility. TemSe is configured to always store job logs as operating system files in the shared SAP directories. If you delete log files directly at the operating system level, you create inconsistencies in the TemSe database, which you'll then need to eliminate with the Consistency check function in Transaction SP12.
    Log Messages
    Log messages are generally output using ABAP keyword MESSAGE. With the exception of ABAP breakpoint statistics, no other data is normally output to the job log.
    ABAP Short Dumps
    If an ABAP program generated a dump when it terminated abnormally, you can display the dump by clicking on the Abend message.
    Batch Input Messages
    Messages output during batch input sessions are not recorded in the job log. These messages are output only to the batch input system.
    Procedure
           1.      Go to Select Background Jobs using Transaction SM37 or by choosing CCMS ® Jobs ® Maintenance.
           2.      Select the jobs you want to review in the job log by specifying conditions that identify the job or jobs, including job name, user name, job status, start condition, or contents of a job step. Execute this selection to see a list of jobs that match these criteria.
           3.      In the Job overview screen, select your desired job and choose Job log.
           4.      In the Job Log Entries for ).
           6.      For further information about a particular item in the job log, select the line and choose Long text. The resulting help screen can include further information about diagnosing the message, the system’s response to the message, and how the user should follow up.
    THANKS
    MRUTYUN

  • Problems with using System.Diagnostics.EventLog to retrieve event log messages

    Hi
    In my app I am retrieving error and critical events from application and system log - but for some reason what it is returning doesn't tally with what I see in event viewer
    For example:-
    1) Source is SideBySide and shows in event viewer with Event ID of 33 - but in my app it is returning an event ID of 3238068257 - all other details such as message are correct - other event sources show fine
    2) A lot of the system event log messages are showing wrong error message - in event log it shows correctly but in my app it is retrieving messages like this "The description for Event ID '41' in Source 'Microsoft-Windows-Kernel-Power' cannot be
    found. The local computer may not have the necessary registry information or message DLL files to display message, or you may not have permission to access them" - I am running the app with admin rights?, so not sure why not showing same message as it
    shows in event viewer i.e "The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly."
    Darren Rose

    Private Sub btnCheckEventLog_Click(sender As Object, e As EventArgs) Handles btnCheckEventLogs.Click
    ' get event logs
    ' APPLICATION LOG
    ' variables for adding to the listview application log
    Dim ListEventlogApp As ListViewItem
    Dim arrayEventlogApp(5) As String
    ' Clear existing items from list
    lvwEventLogApp.Clear()
    ' Create columns and set width
    lvwEventLogApp.Columns.Add("Date/Time", 120)
    lvwEventLogApp.Columns.Add("Type", 50)
    lvwEventLogApp.Columns.Add("Source", 150)
    lvwEventLogApp.Columns.Add("ID", 100)
    lvwEventLogApp.Columns.Add("Message", 1000)
    ' get event log (application) error entries
    Dim eventLogAppError As New System.Diagnostics.EventLog("Application")
    Dim eventCntr1 As Integer = 1
    Dim numberofeventstoshow1 As Integer = 1
    For i As Integer = eventLogAppError.Entries.Count - 1 To 0 Step -1
    Dim eventLogAppErrorEntry As EventLogEntry = eventLogAppError.Entries(i)
    If eventLogAppErrorEntry.EntryType.ToString = ("Error") Then
    arrayEventlogApp(0) = (eventLogAppErrorEntry.TimeGenerated)
    arrayEventlogApp(1) = (eventLogAppErrorEntry.EntryType.ToString)
    arrayEventlogApp(2) = (eventLogAppErrorEntry.Source)
    arrayEventlogApp(3) = (eventLogAppErrorEntry.InstanceId)
    arrayEventlogApp(4) = (eventLogAppErrorEntry.Message)
    ListEventlogApp = New ListViewItem(arrayEventlogApp)
    lvwEventLogApp.Items.Add(ListEventlogApp)
    eventCntr1 = eventCntr1 + 1
    If numberofeventstoshow1 = 10 Then Exit For ' amend if you want to show more than 10 events
    numberofeventstoshow1 = numberofeventstoshow1 + 1
    End If
    Next
    ' SYSTEM LOG
    ' variables for adding to the listview application log
    Dim ListEventlogSys As ListViewItem
    Dim arrayEventlogSys(5) As String
    ' Clear existing items from list
    lvwEventLogSys.Clear()
    ' Create columns and set width
    lvwEventLogSys.Columns.Add("Date/Time", 120)
    lvwEventLogSys.Columns.Add("Type", 50)
    lvwEventLogSys.Columns.Add("Source", 150)
    lvwEventLogSys.Columns.Add("ID", 100)
    lvwEventLogSys.Columns.Add("Message", 1000)
    ' get event log (system) critical entries
    Dim eventLogSystemCritical As New System.Diagnostics.EventLog("System")
    Dim eventCntr2 As Integer = 1
    Dim numberofeventstoshow2 As Integer = 1
    For i As Integer = eventLogSystemCritical.Entries.Count - 1 To 0 Step -1
    Dim eventLogSysCriticalEntry As EventLogEntry = eventLogSystemCritical.Entries(i)
    If eventLogSysCriticalEntry.EntryType.ToString = ("0") Then
    arrayEventlogSys(0) = (eventLogSysCriticalEntry.TimeGenerated)
    arrayEventlogSys(1) = ("Critical")
    arrayEventlogSys(2) = (eventLogSysCriticalEntry.Source)
    arrayEventlogSys(3) = (eventLogSysCriticalEntry.InstanceId)
    arrayEventlogSys(4) = (eventLogSysCriticalEntry.Message)
    ListEventlogSys = New ListViewItem(arrayEventlogSys)
    lvwEventLogSys.Items.Add(ListEventlogSys)
    eventCntr2 = eventCntr2 + 1
    If numberofeventstoshow2 = 10 Then Exit For ' amend if you want to show more than 10 events
    numberofeventstoshow2 = numberofeventstoshow2 + 1
    End If
    Next
    ' get event log (system) error entries
    Dim eventLogSystemError As New System.Diagnostics.EventLog("System")
    Dim eventCntr3 As Integer = 1
    Dim numberofeventstoshow3 As Integer = 1
    For i As Integer = eventLogSystemError.Entries.Count - 1 To 0 Step -1
    Dim eventLogSysErrorEntry As EventLogEntry = eventLogSystemError.Entries(i)
    If eventLogSysErrorEntry.EntryType.ToString = ("Error") Then
    arrayEventlogSys(0) = (eventLogSysErrorEntry.TimeGenerated)
    arrayEventlogSys(1) = (eventLogSysErrorEntry.EntryType.ToString)
    arrayEventlogSys(2) = (eventLogSysErrorEntry.Source)
    arrayEventlogSys(3) = (eventLogSysErrorEntry.InstanceId)
    arrayEventlogSys(4) = (eventLogSysErrorEntry.Message)
    ListEventlogSys = New ListViewItem(arrayEventlogSys)
    lvwEventLogSys.Items.Add(ListEventlogSys)
    eventCntr3 = eventCntr3 + 1
    If numberofeventstoshow3 = 10 Then Exit For ' amend if you want to show more than 10 events
    numberofeventstoshow3 = numberofeventstoshow3 + 1
    End If
    Next
    End Sub
    Darren Rose

  • Want to collect Job Logs of AS400 using CommandCall at runtime.

    Hereby I tried with another code as follows.
    But its getting the Meassge as Time Wait and not running the command.
    Note here I have tested and fired the command directly but instead of firing it directly,
    I want to get all those Job Logs which are generated at runtime.
                            AS400 system = new AS400("url","username","pwd","");                
                   CommandCall FirstCmdCall = new CommandCall(system);
                   /** Initializing the Command **/
                   FirstCmdCall.setCommand("...Any Command...");                              
                   String runStatus ="";
                   Job myJob = FirstCmdCall.getServerJob();
                   String jobName = myJob.getName();
                   String jobUser = myJob.getUser();
                   String newJobNum = myJob.getNumber();
                    myJob = new Job(system, jobName, jobUser, newJobNum);
                    runStatus = (String)myJob.getValue(Job.ACTIVE_JOB_STATUS);
                    while (runStatus != null &&
                              (runStatus.equals(Job.ACTIVE_JOB_STATUS_RUNNING)                                                               ||
                              runStatus.equals(Job.ACTIVE_JOB_STATUS_WAIT_TIME_INTERVAL)                                                               ||
                              runStatus.equals(Job.ACTIVE_JOB_STATUS_NONE)))                               
                         try                     
                               RJob rjob = FirstCmdCall.getJob();                           
                              myJob.loadInformation();
                              myJob = new Job(system, jobName, jobUser, newJobNum);
                              myJob.loadInformation();
                              runStatus = (String)myJob.getValue(Job.ACTIVE_JOB_STATUS);                
                         catch (AS400Exception exc)                                   
                    }

    In the persistence.xml specify the property
    <property name="eclipselink.ddl-generation" value="create-tables"/>
    But, a JPA implementation is not required to create tables according to the EJB 3 JPA specification. The Hibernate persistence provider does, the EclipseLink doesn't.
    <provider>org.hibernate.ejb.HibernatePeristence</provider>

  • After updating to Firefox 7.0.1, menu bar for Google,yahoo, Facebook (message,notification,profile,home) and others site are disabled. How can solve this problem?

    after updating to Firefox 7.0.1, menu bar for Google(web ,image,video,map etc),yahoo, Facebook (message,notification,profile,home) and others site are disabled. even I cant log out from different sites cz the log out bar is completely disabled. I tried with Firefox 4;5 and 6, same problem exist . I tried by active all add ons for facebook, same problem exist. If I use internet explorer , I don't find such problem with it.
    How can I solve this problem?

    Thanks a lot for your swift response. And sorry if it was a bit too hectic to go through my detailed query (which I did because it was misunderstood when I asked previously). As I've mentioned above, I was informed that updating to 5.0.1 would '''require''' me to '''delete''' the current version and then install the new one. And doing so will involve losing all my bookmarks. I guess I should have been more specific and detailed there. By losing, I didn't mean losing them forever. I'm aware that they're secured in some place and deleting and installing the software doesn't harm its existence. What I meant that if I install the new version, I'd have to delete the old one. And after installing the new version, I'd have to transfer them (bookmarks) back from wherever they are. Get it? When it updated from 3.6.9 to 3.6.13, and from 3.6.13 to 3.6.18, I didn't need to follow that process. They were already present on their own.
    BTW, I'm having no problems with 3.6.18 but after learning about the existence of version 5.0.1, I'm a bit too eager to lay my hands over it.
    Thanks for your help; hope this wasn't extremely long.

  • How to display custom error message in Job log for batch processing

    Hi All,
    I am rexecuting one R/3 report in batch mode and i want to display all the custom error i have handled in job log when its executed from SM36,SM37. The custom error are like 'Delovery/Shipmet doe not exits' or others which we can display in online mode like message e100(ZFI) or any other way and accordingly we can handle the program control like come out of the program ro leave to transaction'Zxxx' or anything. But i want my program to be executed completely and accumulate all the error in job log of batch processing.
    Can anyone tell me how can i do so...
    Thanks,
    Amrita

    Hi,
    Thats what i have done from the begining. I have written message like this:
    Message i100(ZFI).
    I was hoping to see this message in the log. But i cant see. Can you help me pleae...

  • Job console messages in log file

    Hi All,
    Is there a log file which logs the job console messages...where is it located ...we are on V11.1.2.,,....We have a issue with Job console validation......when a EPMA planning application is validated...it has some errors....but when we try to open the attachment to get more details...a new window opens and closes immediatly...
    how can we check the error messages?

    In IE try going to Internet Options > Security > Custom Level > Downloads > File Downloads > enable
    This should allow the text file to open when you try to open the attachment.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for