Is it possible to produce columns in the job log?

to display like this:
Job        col1     col2    col3    col4
job1       data     data    data    data
job2       data     data    data    data
job3       data     data    data    data
The way I would think to set it up would be to have the coded column headings on one line, then to display the job that fails along with its field data under the correct columns.  The only thing that I can forsee is that if the data inside the field doesnt exactly fall under the column.
My question is: can this be done?  Also, can I display field data for multiple fields on one line?
Thanks

You need to achieve this only with the messages.
Try with this code:
REPORT  ZTEST_NP.
PARAMETERS: P_1 TYPE I DEFAULT 10.
DATA: BEGIN OF ITAB OCCURS 0,
      FLD1  LIKE SYST-ABCDE,
      END   OF ITAB.
START-OF-SELECTION.
  DO P_1 TIMES.
    ITAB-FLD1 = SY-ABCDE.
    APPEND ITAB.
  ENDDO.
  DATA: L_TEXT1(50).
  L_TEXT1+0(45) = '---------------------------------------------'.
  MESSAGE S398(00) WITH L_TEXT1.
  CLEAR L_TEXT1.
  L_TEXT1+0(1) = '|'.
  L_TEXT1+1(10) = 'Srl No'.
  L_TEXT1+11(1) = '|'.
  L_TEXT1+13(30) = 'Value of Field 1'.
  L_TEXT1+44(1) = '|'.
  MESSAGE S398(00) WITH L_TEXT1.
  CLEAR L_TEXT1.
  LOOP AT ITAB.
    L_TEXT1+0(1) = '|'.
    L_TEXT1+1(10) = SY-TABIX.
    L_TEXT1+11(1) = '|'.
    L_TEXT1+13(30) = ITAB-FLD1.
    L_TEXT1+44(1) = '|'.
    MESSAGE S398(00) WITH L_TEXT1.
    CLEAR L_TEXT1.
*    MESSAGE S398(00) WITH SY-tabix 'Field value' ITAB-FLD1.
  ENDLOOP.
  L_TEXT1+0(45) = '---------------------------------------------'.
  MESSAGE S398(00) WITH L_TEXT1.
  CLEAR L_TEXT1.
  WRITE: 'Bye'.
The joblog was like:
|Date      |Time    |Message text                                                               |Message class|Message no.|Message type|
|11/08/2007|10:25:25|Job started                                                                |     00      |    516    |     S      |
|11/08/2007|10:25:25|Step 001 started (program ZTEST_NP, variant &0000000000006, user ID NPATEL)|     00      |    550    |     S      |
|11/08/2007|10:25:25|---------------------------------------------                              |     00      |    398    |     S      |
|11/08/2007|10:25:25||Srl No    | Value of Field 1               |                              |     00      |    398    |     S      |
|11/08/2007|10:25:25||        1 | ABCDEFGHIJKLMNOPQRSTUVWXYZ     |                              |     00      |    398    |     S      |
|11/08/2007|10:25:25||        2 | ABCDEFGHIJKLMNOPQRSTUVWXYZ     |                              |     00      |    398    |     S      |
|11/08/2007|10:25:25||        3 | ABCDEFGHIJKLMNOPQRSTUVWXYZ     |                              |     00      |    398    |     S      |
|11/08/2007|10:25:25||        4 | ABCDEFGHIJKLMNOPQRSTUVWXYZ     |                              |     00      |    398    |     S      |
|11/08/2007|10:25:25||        5 | ABCDEFGHIJKLMNOPQRSTUVWXYZ     |                              |     00      |    398    |     S      |
|11/08/2007|10:25:25||        6 | ABCDEFGHIJKLMNOPQRSTUVWXYZ     |                              |     00      |    398    |     S      |
|11/08/2007|10:25:25||        7 | ABCDEFGHIJKLMNOPQRSTUVWXYZ     |                              |     00      |    398    |     S      |
|11/08/2007|10:25:25||        8 | ABCDEFGHIJKLMNOPQRSTUVWXYZ     |                              |     00      |    398    |     S      |
|11/08/2007|10:25:25||        9 | ABCDEFGHIJKLMNOPQRSTUVWXYZ     |                              |     00      |    398    |     S      |
|11/08/2007|10:25:25||       10 | ABCDEFGHIJKLMNOPQRSTUVWXYZ     |                              |     00      |    398    |     S      |
|11/08/2007|10:25:25|---------------------------------------------                              |     00      |    398    |     S      |
|11/08/2007|10:25:25|Job finished                                                               |     00      |    517    |     S      |
Regards,
Naimesh Patel

Similar Messages

  • How to get the job logs from sm35 by using the queue id and session name?

    hi all,
    can any one please let me know how to read the job log from sm35 by using the session name and queue id. i have the job name and job count but is it possible to download the job log by using the queue id and session name.
    FYI..
    i want to read this job log and i want to send it to an email id.
    -> i am using the job_open and submitting the zreport via job name and job count and then i am using the function module  job_close.
    but this is not working in my scenario i have the queue id and session name by using this two i want to get the job log is there any function module available or code please provide me some inputs.
    thanks in advance,
    koushik

    Hi Bharath,
    If you want to download it to the local file then you can follow the instructions in the below link.
    How to download Batch Input Session Log?
    Regards,
    Sachin

  • How can I mail the Job Log in the form of an excel sheet?

    Daily I have to monitor a Job and I have to retrieve the Job Log in an excel sheet, Format the excel sheet, and then mail the excel sheet and the Job Status(Finished/Cancelled) to Client/Person Incharge.
    I want to automate this entire process. Please guide me, how can I write a program that mails the Job Log, in the form of an excel sheet, to the Client?
    Edited by: Jiten Rajendra Barai on Nov 25, 2008 3:03 PM

    Hi,
    You can use this FM to mail the excel sheet.
    SO_NEW_DOCUMENT_ATT_SEND_API1
    Also have a look at the below thread, it might be very helpful.
    Sending Excel attachment in E-mail
    Cheers...

  • To change the Job Log Detail in SM37

    Hi All,
    How can I change the standard JOB LOG detail in SM37 for partical program if it runs in Background.I have foumd the Function Module(BP_JOBLOG_READ) which is used to update this JOB LOG detail.How can I edit the standard .
    Kindly provide the ways .
    With Thanks,
    Dina.

    Hi ,
    Thank you for replying.
    I want to update some rows in JOB LOG detail .
    With Thanks,
    Dina.

  • Is it technically possible to merge columns on the fly?

    I want to merge two columns only when null AND display data from a separate column in that newly merged column. Is this technically possible?

    Possible :)
    Drop me the requirement/template/xml to my id in profile.

  • My jobs end up "cancelled". And I can't read the job log.

    Problem:
    User runs program "zmakechild" and this creates 4 batch jobs to
    start immediately with job names child1 to child4.  But, each time
    only one job is completed and other 3 cancel.  Examining batch
    process logs show deadlock on table TST01.
    SM21 shows following error:
    Database error: TemSe->XRTAB(3)->1 for table TST01 key [850]JOBLGX041944
    Solution:
    TST01 did not have a primary index at the database level. PSS created one and it worked.

    iPod: How to find the serial number - Support - Apple

  • Associative array type for each blob column in the table

    i am using the code in given link
    http://www.oracle.com/technology/oramag/oracle/07-jan/o17odp.html
    i chnages that code like this
    CREATE TABLE JOBS
    JOB_ID VARCHAR2(10 BYTE),
    JOB_TITLE VARCHAR2(35 BYTE),
    MIN_SALARY NUMBER(6),
    MAX_SALARY NUMBER(6),
    JOBPIC BLOB
    CREATE OR REPLACE PACKAGE associative_array
    AS
    -- define an associative array type for each column in the jobs table
    TYPE t_job_id IS TABLE OF jobs.job_id%TYPE
    INDEX BY PLS_INTEGER;
    TYPE t_job_title IS TABLE OF jobs.job_title%TYPE
    INDEX BY PLS_INTEGER;
    TYPE t_min_salary IS TABLE OF jobs.min_salary%TYPE
    INDEX BY PLS_INTEGER;
    TYPE t_max_salary IS TABLE OF jobs.max_salary%TYPE
    INDEX BY PLS_INTEGER;
    TYPE t_jobpic IS TABLE OF jobs.jobpic%TYPE
    INDEX BY PLS_INTEGER;
    -- define the procedure that will perform the array insert
    PROCEDURE array_insert (
    p_job_id IN t_job_id,
    p_job_title IN t_job_title,
    p_min_salary IN t_min_salary,
    p_max_salary IN t_max_salary,
    p_jobpic IN t_jobpic
    END associative_array;
    CREATE OR REPLACE package body SHC_OLD.associative_array as
    -- implement the procedure that will perform the array insert
    procedure array_insert (p_job_id in t_job_id,
    p_job_title in t_job_title,
    p_min_salary in t_min_salary,
    p_max_salary in t_max_salary,
    P_JOBPIC IN T_JOBPIC
    ) is
    begin
    forall i in p_job_id.first..p_job_id.last
    insert into jobs (job_id,
    job_title,
    min_salary,
    max_salary,
    JOBPIC
    values (p_job_id(i),
    p_job_title(i),
    p_min_salary(i),
    p_max_salary(i),
    P_JOBPIC(i)
    end array_insert;
    end associative_array;
    this procedure is called from .net. from .net sending blob is posiible or not.if yes how

    Ok, that won't work...you need to generate an image tag and provide the contents of the blob column as the src for the image tag.
    If you look at my blog entry -
    http://jes.blogs.shellprompt.net/2007/05/18/apex-delivering-pages-in-3-seconds-or-less/
    and download that Whitepaper that I talk about you will find an example of how to do what you want to do. Note the majority of that whitepaper is discussing other (quite advanced) topics, but there is a small part of it that shows how to display an image stored as a blob in a table.

  • F110 Error 007 - Error in creating the payment document; read job log

    We have created a new SAP instance (vers 4.7) and testing if its working.
    The above error occurs at the payment proposal stage for payment methed C (Cheque), but is OK for E (BACS).
    I have been back through the config a couple of times checking FBZP and OBA7, and I can see anything obviously wrong.
    The job log says........
    10.03.2010 16:27:24 Job started -
                                                                       00           516          S    
    10.03.2010 16:27:24 Step 001 started (program SAPF110S, variant &0000000000007, user ID BPGB) -
         00           550          S    
    10.03.2010 16:27:24 Log for proposal run for payment on 10.03.2010, identification GB4  -
               FZ           402          S    
    10.03.2010 16:27:25                                                                              -
      ZT           004          S    
    10.03.2010 16:27:25 Information re. vendor 500007 / paying company code PS10 ...  -
                     FZ           305          S    
    10.03.2010 16:27:25 ... payment not possible because of reported error  -
                               FZ           311          S    
    10.03.2010 16:27:25 End of log  -
                                                                       FZ           398          S    
    10.03.2010 16:27:25 Job finished  -
                                                                     00           517          S    
    What appears to be the offending line in the log (Error ZT004) is blank, so gives me no clues as to the problem.  I'm at a loss what to check net, and I'm hoping somebody can help me.
    Any advise welcome.
    Thanks
    Graham

    Thanks Ji, that gives me a much better log to look through.
    I've been doing a lot more testing as a result, but ultimately still come up blank.  Heres why I am....
    1.  I have 2 payment methods...
    C-Cheque
    E=BACS
    2. I pay 2 types of vendors...
    Eternal (i.e. Invoices)
    Internal (i.e. Employees expenses)
    3. The payment proposal step is working fine for external suppliers on both payment methods, but fails for internal on both methods.
    4. I am using the same payment terms on everything (Immediate payment no discount)
    5.The only difference in the logs is (i.e. the line below does not appear on the external supplier logs).....
    Cash discount base amount not set!                                                              FZ           753
    6. The accounting documents look as I expect (External have an amount in the Cash Discount base, internal do not), this is how our current system behaves where we do not have any issues, and I cannot see any differences in the vendor document between the 2 systems
    7. Incase I have missed something that is the real cause of the problem, here is the full log.
    If you have any ideas what the problem still is, advice would be gratefully received, as I am pulling what little hair I have left out.
    Full log......
    Job started                                                                                00           516
    Step 001 started (program SAPF110S, variant &0000000000018, user ID BPGB)                          00           550
    Log for proposal run for payment on 10.03.2010, identification GB6                                 FZ           402
    >                                                                                FZ           693
    > Additional log for vendor 500008 company code PS10                                               FZ           691
    >                                                                                FZ           693
    >            Due date determination additional log                                                 FZ           799
    > Document 2100000002 line item 001 via GBP           53.04-                                       FZ           700
    > Terms of payment: 10.03.2010    0  0.000 %    0  0.000 %    0                                    FZ           701
    >  00 days grace period is being considered                                                        FZ           726
    >  Cash discount base amount not set!                                                              FZ           753
    >   Payment must take place before 10.03.2010; next payment on 12.03.2010                          FZ           728
    > Item is due with 0.000 % cash discount                                                           FZ           721
    >                                                                                FZ           693
    >            Payment method selection additional log                                               FZ           699
    > Payment method selection for items due now to the amount of GBP           53.04-                 FZ           601
    > Payment method "E" is being checked                                                              FZ           603
    > Bank details are being checked                                                                   FZ           640
    >    Customer/vendor bank details are being read                                                   FZ           644
    > Country GB / Bank number 404731 / Account 12457852 ...                                           FZ           645
    >     Customer/vendor bank details are being checked                                               FZ           665
    >   System reads house banks and checks if they are allowed                                        FZ           668
    > Our bank 1000 is being checked                                                                   FZ           648
    > For currency GBP and 001 days 9999,999,999.00 are planned                                        FZ           658
    > Available amount is enough, 9999,999,999.00 GBP still available,           53.04  necessary      FZ           657
    >   House bank is selected ...                                                                     FZ           673
    > Our bank details 1000 GBBK1 are being used                                                       FZ           641
    > Bank details of the partner with ctry GB bk no. 404731 acct 12457852 are being used              FZ           642
    > Payment method "E" is permitted                                                                  FZ           609
                                                                                    ZT           004
    Information re. vendor 500008 / paying company code PS10 ...                                       FZ           305
    ... payment not possible because of reported error                                                 FZ           311
    End of log                                                                                FZ           398
    Job finished                                                                                00           517
    Edited by: gbrandreth on Mar 11, 2010 11:35 AM

  • Logging using the servletcontext.log method

              Hi,
              My applications has Servlets and jsp and i am using the log method to log the
              messages into
              the weblogic.log file. I am able to do that but there is lot of junk that is being
              written into
              the weblogic.log file like all the messages that are displayed while starting
              the weblogic server etc
              I tried to change the settings using the console for logging but still i can't
              avoid the messages from
              the weblogic server. So is there any way by which i can only write the messages
              that i write using log method
              into the log file and nothing else.I need this because our log file would be monitored
              and in case of
              error the concerned person would be notified so i need to avoid all these junk.
              And also is there a way by which i can write all the System.out.println messages
              to log file
              Any help would be highly appreciated
              Thanks
              Priya
              

    Hi,
              we are currently having the same problem. We searched all the
              Newsgroups, yet nobody seems to know. We are running Weblogic 6.1 SP 1
              and there is absolutley no way finding it out. We are using the Struts
              and the Winterfeld Framework and depend very heavy on the Log
              Statements. We tried all of the possible debug levels and scanned the
              weblogic.log file over and over, without success.
              We also tried to find out if there is a statement in the
              web(logic).xml file to correct out malady. Without success. And alas
              we read the console dumps of the server. Again no success.
              So please, can anybody tell us, if:
              weblogic logs at all
              and if so, where does it log to.
              Thanks
              Stefan
              "priya" <[email protected]> wrote in message news:<[email protected]>...
              > Hi,
              >
              > My applications has Servlets and jsp and i am using the log method to log the
              > messages into
              > the weblogic.log file. I am able to do that but there is lot of junk that is being
              > written into
              > the weblogic.log file like all the messages that are displayed while starting
              > the weblogic server etc
              > I tried to change the settings using the console for logging but still i can't
              > avoid the messages from
              > the weblogic server. So is there any way by which i can only write the messages
              > that i write using log method
              > into the log file and nothing else.I need this because our log file would be monitored
              > and in case of
              > error the concerned person would be notified so i need to avoid all these junk.
              >
              > And also is there a way by which i can write all the System.out.println messages
              > to log file
              >
              >
              > Any help would be highly appreciated
              >
              > Thanks
              > Priya
              

  • Resuming the job from the place where it failed?

    hi Gurus,
    we have a requirement like
    if the job fails is there a possibility to resume the job from the same position where it has failed
    is there any standard functionality in SAP to acheive this and if not give me guidelines to achieve this
    Thanks in advance
    S.Janagar

    Hi,
    It is not possible to resume the job again from the place where it failed.
    By looking at the job log, because of some error message, exception etc.. the job got failed, So by having the break points at the same place, schedule a new job make to released status, now by selecting the released job, by using the command JDBG, you can start the debug from the specific point.
    But remember one thing, If the program is taking too much time to reach the specific point in foreground, you are helpless!!!!!
    Regards,
    Santhosh.

  • Hi i have 50 infoobjects as part of my aggregates and in that 10 infoobjects have received changes in masterdata.so in my process chain the Attribute change run in running for a long time.can i kill the job and repeat the same.

    Hi i have 50 infoobjects as part of my aggregates and in that 10 infoobjects have received changes in masterdata.so in my process chain the Attribute change run in running for a long time.can i kill the job and repeat the same.

    Hi,
    I believe this would be your Prod system, so don't just cancel it but look at the job log. If it is still processing then don't kill it and wait for the change run to complete but if you can see that nothing is happening and it is stuck for a long time then you can go ahead and cancel it.
    But please be sure, as these kind of jobs can create problems if you cancel them in the middle of a job.
    Regards,
    Arminder Singh

  • Regarding the Job name

    Hi,
    I am having an issue with loading the data. To troubleshoot it, I need to know the technical name of the job. How to find of the Job name. I am only able to get the prefix of the Job Name : BI_BTCH.
    Please let me know the procedure to find the job name.
    Regards
    YJ

    In the infopackage -> Scheduler tab -> You would find the BI_BTCH*** job Id if the load was scheduled as a background job. You also have a button there to see the status of the job.
    If you are unable to find it and you had executed the job. Then go to SM37 give the job id as BI*** , your user id and the date as selection and find the job id. The Job log would have the cube technical name also.
    Hope this helps.

  • Job logs from the original system after Unicode conversion.

    Dear Globalization experts,
    We are doing Unicode conversion and would like to know, if the Job logs from the batch jobs, executed before conversion (system with a 1100 code page), would be readable  in the Unicode system after the conversion.  We will move job log files from the source to the target  system. I .  Thank you in advance for your help.
    Best regards,
    Alik Shapiro

    Hi Alik,
    I have strong doubts that this will work ...
    From SAP notes 842767 and 901004 you can see, that spool data will not be converted properly by default.
    In general this is valid for data stored in TemSe, as this is by definition temporary data (see for example http://help.sap.com/saphelp_nw70/helpdata/en/d9/4a8f9c51ea11d189570000e829fbbd/content.htm ).
    However I actually did not test it, so I am not 100% sure.
    Best regards,
    Nils Buerckel
    SAP AG

  • The Job SAPRUPGM gets cancelled

    Hi Experts!!!
    We have recently updated tp and r3trans.When ever we are applying the support packages they are imported successfully
    but we have found that the job  SAPRUPGM is getting cancelled,Once it runs and the other time its cancelled.The folowing is the
    Step 002 started (program ENH_SAPRUPGM, variant , user ID DDIC)
    Step 003 started (program ENH_CREATE_ENHCROSS, variant , user ID DDIC
    ABAP/4 processor: DBIF_RSQL_SQL_ERROR
    Job cancelled
    This is the job log.
    The same job was run successfully just 20 min before this cancelled job.
    Regards,
    Vamshi.

    Hi Ruchit,
    We are on  SPAM26 and every time when we defined queue it was asking whether we want to add the request to the import queue or not then this time we have selected no.The job was not cancelled this time. I think i should apply the note which you have provided.
    Regards,
    Vamshi.

  • Process chain Failed while triggering the job

    Hi All,
    Actually everyday delta request has been loading to the dataTarget of same data source through process chains thrice with different timings.
    Today Problem is only once delta request  has been loaded into data Target without error. It has not triggered furtherly (two more times)
    When i have checked in the processchain its showing delta has been failed.
    Generally in this scenario how i have to investigate for know the details of the problem? anybody can tell step by step?
    Regards,
    C.V.
    Message was edited by: P.C.V.

    Hi
    Right click on the failed process type and display messeges and go to the Process monitor push botton
    if will take u to the Monitor screen
    The best thing is go to the
    1) SM37 and select the job in R3 and see the job log
    2) RSMO and see the error messeges in the monitor for the request
    give here the error messeges so that it will better to everybdy to  help
    regards
    AK

Maybe you are looking for

  • Infinity Order Shambles - Where to complain? What ...

    Hi, I've never had internet from BT, and the way it's looking I won't for a while either given the utterly shambolic performance over the last fortnight with my order. Here's what happened: 1. Checked on the availability of fibre to my area through t

  • TS1286 iPad sync problem

    Half way through syncing my iPad, I get a message saying the iPad has disconnected.  It hasn't as far as I can see.  Any ideas?

  • Group data with multi tables in report.rdlc

    I have a report.rdlc which contains 8 tables and every table reads from different dataset which also reads from different procedure, these tables finally view data for one employee, and this was working correctly. Now I need to view the same report b

  • SQL Developer zip file

    Hi I am having trouble getting an unbroken copy of the latest distribution of SQL Developer. Is this a problem at my end or have others experienced the same problem. Cheers Ben

  • How can I avoid using the new Pages

    For now I have chosen to forgo using the latest versions of Pages & Numbers and prefer thier predecessors. However the newer versions are  opened by default when downloading/clicking on DOC & XLS as well as .PAGES & .NUMBERS files. I know how to use