Debugging Report which is scheduled in background

Hi all,
        How to  debug a report which is scheduled in background.
Thanks in advance
                                                                                Ranjith

In SM37 Job overview, it is Menu JOB -> Catch Job. This will catch it in the debugger. If it is too fast for that, then calls this form:
<pre>
perform wait_debug.
form wait_debug.
  data: lv_wait type flag value 'X'.
  while lv_wait is not initial.
  endwhile.
endform.
</pre>
If you catch a job with report 'waiting' in this form, you can clear  lv_wait in debugger and then continue step ba step.
Regards,
Clemens

Similar Messages

  • How do we create a variant for report which runs in the background?

    Hi,
    I want to create a report which will have some variants and will be running in the background?
    The main intention is to transfer the data from one database into another. Please explain the step by step process.
    Regards
    Amit

    Hi Amit,
          When you run a report program in foregorund(If you have a selction-screen), by pressing F8 button, it takes you to the screen where when you press execute button, the report is executed.
          In this screen, you can enter the requirec values which you wish to store in the variables in the selection-screen and press SAVE button, then a variant will be created. You can create the required variants for your report and then when executing the same report in background, the process goes in this way,
    Go to SE38->Program-> Execute->Background, there you can give the variant name and press EXECUTE IMMEDIATELY and your program runs in background for the given variant.
    Hope this is helpful to you. If you need further information, revert back.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • How to debug the report which isrunning in Background?

    Hi all,
    1.How to debug the report which is running in Background?
    thanks & regards
    vishnuvardhan

    Hello,
    Do like this.
    Create an infinite loop before the line u want debug.
    data: lf_flag.
    do.
    if lf_flag = 'X'.
    exit.
    endif.
    enddo.
    Now execute the report in background. In Tcode SM37 select ur job and in menu job--> Capture Active Job
    IT will stop at the point of infinite loop.
    Regards,
    Vasanth

  • How to Get List of Webi Reports in CMS which are scheduled?

    Dear Experts,
    I want to generate list of Web Intelligence Report which are scheduled.
    In addition to above, if I get destinations and in case BO Inbox of mail recipients, list of recipients we be an added advantage for me.
    is there any way, I can achieve this using SDK or sum of that matter?
    Any Clue / Suggestions will be a great help for me.
    Thanks you,
    Regards,
    Sachin Dalal

    You can use the following query:
    Select * from ci_infoobjects where si_name='<webi report name>' and si_instance=1
    This will return all scheduled instances in their default location for specified webi report.
    For each object you can retrieve:
    ((IProperties)((IProperties)oInfoObject.getSchedulingInfo().properties().getProperty("SI_DESTINATIONS").getValue()).getProperty("1").getValue()).getProperty("SI_PROGID).getValue().toString : returns managed for instances scheduled to enterprise user's inbox.
    ((IProperties)((IProperties)((IProperties)((IProperties)oInfoObject.getSchedulingInfo().properties().getProperty("SI_DESTINATIONS").getValue()).getProperty("1").getValue()).getProperty("SI_DESTSCHEDULEOPTIONS").getValue()).getProperty("SI_OUTPUT_FILES").getValue()).getProperty("1").getValue() -> returns the integer value of the SI_ID of the user where the report is scheduled in the user's inbox.
    Query for the instance in the query builder and you can see the structure for SI_DESTINATIONS property bag.
    Hope this help.
    Aasavari

  • Report not working if scheduled in background as a job

    Dear friends please help me in this.
    We are having a z report. This report works fine in foreground and wont work
    ( means it will be in active state for more than 5 days but no result will come)
    when we schedule it in background as a job.
    In this report we are using bdc code also for uploading data. the same code is
    FORM bdc_transaction USING tcode.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          tcode     = tcode
        TABLES
          dynprotab = webdcdata.
      WRITE: /(25) 'BDC_INSERT'(i03),
                   tcode,
              (12) 'returncode:'(i05),
                   sy-subrc.
    ENDFORM.                    "BDC_TRANSACTION
    and i am populating the data in bdc
    PERFORM bdc_dynpro      USING 'SAPLMR1M'      '6000'.
          PERFORM bdc_field       USING 'BDC_OKCODE'    'ENTR'.
          PERFORM bdc_field       USING 'BDC_CURSOR'    'INVFO-BLDAT'.
    PERFORM bdc_dynpro      USING 'SAPLMR1M'    '6000'.
          PERFORM bdc_field       USING 'BDC_OKCODE'  '=BU'.
          PERFORM bdc_field       USING 'BDC_CURSOR'  'DRSEG-RBLGP(01)'.
          CALL TRANSACTION 'MIRO' USING webdcdata MODE p_mode UPDATE 'S'
                                        MESSAGES INTO itab_msg.
    etc.
    First i am populating data into an internal table and then displaying it in the output screen. Here i hava placed a menu items like select all , deselect all , upload etc . So that user can select as many records as he want and then can select the upload button
    so that the report will call bdc to upload the data.
    when i am directly executing the report it displays the data and then
    i will select the records that are diswplayed and
    then i press tghe button upload then the data will be uploaded into
    the screens. here i am not getting any problem everything is fine.
    when i am scheduling this job in Background it will be keep on
    running but no result will be displayed. Atleast output screen
    is also not displayed. Later on i came to know that we
    cannot schedule the reports which are using bdcs in background.
    So please tell me how far it is true. Please give me a clear explaniation for this .
    Thank you so much for all the replies.

    Try to record your transaction using trans. SHDB and select the check-box "Simulate background".
    Not all the dynpro runs same in background and in foreground. Always check the background simulation: when you record, and when you run bdc in foreground.
    Kanagaraja L

  • How to put a report which contains code for  BDC in background

    Hello Experts ,
    Please provide your valuable opinions on following issue,
    My BDC execution is taking longer time and it gives time out error. To avoid this problem i have created a separate report which l contains the BDC code (Call transaction ) and  i have put this report for background execution. But upon doing this My BDC code is not performing the transaction call which it was performing when it was executed individually.  In sm37 it shown the job that i am creating but nothing is actually happening as a result of transaction call.
    The code that i have written is :
    RFC code
    SUBMIT ZREPORT AND RETURN.
    RFC end
    Z_REPORT .
    PERFORM open_job.
    PERFORM get_print_parameters.
    PERFORM job_submit. here in Submit i have specified the another report name(zbdcreport) which contains the actual logic for bdc 
    PERFORM job_close.
    Report END.
    zbdcreport
    The call transaction is as follows :
    ( CALL TRANSACTION TCODE USING BDCDATA
                         MODE   'N' "CTUMODE "N
                         UPDATE 'S' "CUPDATE "S
                         MESSAGES INTO MESSTAB .)
    end zbdcreport
    Can anybody provide the reason for the error . 
    Regards,
    Uma

    Hi
    Check the code using this...
    DATA: number           TYPE tbtcjob-jobcount,
          name             TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.

  • How to schedule the background job if report have Presentation server files

    Hi All,
    I have searched the forums and found , the way for the scheduling the background job if report selection screen have the presentation server file input.
    1. Using the Open data set method.
    And my client is not OK with Open dataset way, it there any other way to do this, As we are using the EXCEL file.
    Thanks and Regards,
    Bharani

    Hi,
    As said above it is generally not possible. Since your client most obviously doesn't like graphical background I would recomend storing data as till now, but show it with your own report in more userfriendly way. For example:
    - as ALV Grid
    - in excel with use of OLE either as embedded in SAP or new window (check transaction OLE for example)
    - with use of webdynpro
    BR
    Marcin Cholewczuk

  • WebI does not return failed when scheduling a report which only holds parti

    WebI does not return failed when scheduling a report which only holds partial results.
    We have scheduled reports which take some time to run. When they are scheduled they sometimes show successful even though the report only holds partial results. The only indication is when you open the report as webi report you see the warning that it holds partial results.
    When running the report manually, it works file.
    The issue is not in the no of rows in the universe settings because we this unselected. The issue is that it times out.
    The reason that it times out is that a lot of resources are used for loading and processing data when the report is scheduled. When running it manually, it works because at this time the serverload is less. the time in the universe is set to 10 min.
    The version we have is BOXIR2-SP4.
    Ok. Issue identified.
    The question is - why is the report successful when it holds partial results? If this is normal behavior, noone can really trust the scheduled reports, especially when you save it to excel and send it by mail.
    Is there a solution for this except increasing the allowed query time which would not solve the issu but only allow more reports to complete?
    Edited by: Karlgren Michael on Sep 17, 2009 1:22 PM

    Hi ,
    Currently this problem exists in XI R2. This feature will be part of thenext Service Pack i.e XI R2 SP6.
    This CER will be delivered from IDC Webi and BIP Platform as part of Jupiter Sp6.
    Problem Statement:
         Scheduled WebI Reports which are partially refreshed are distributed to the destinations for Users to View and make decisions. These users arenu2019t usually aware that these reports have u201CPARTIAL RESULTSu201D
    Recomended Solution:
        Allow the Schedule Creator / Modifier to set a parameter to stop the distribution of the u201CPARTIALLY REFRESHEDu201D WebI report.
    Thanks
    Salini

  • BO4 - Audit of scheduled reports which didn't start

    Hi,
    On occasion a scheduled report may not run e.g. if the job server overloaded and we have needed to restart the job servers.
    Whilst we have a report of what is scheduled and reports if runs or not, is it possible to have a report which lists what due to have ran but not actually ran?
    Thanks

    Philip,
    To query the database, you have to go through the CMS via the SDK.
    The main roadblock is that the CMS tables are all encrypted and not a lot of useful info is stored as plain text in the tables.  The CMS uses a binary field to house most of the data and only the CMS service itself can decrypt that data.
    Please refer to the discussion below for more information:
    Instance Manager Style Report In Web Intelligence
    Regards,
    Ashvin

  • Report giving error when scheduled in background (ABAP/4 processor:PERFORM)

    Dear Freinds,
               I have written a custom program and iam not able schedule in background, if check in SM37 the job getting canceleld and found as the error ABAP/4 processor: PERFORM_NOT_FOUND.
    Please could you let me know should i specify in my custom program for get sucessfully run in background . or could any one please let me know any setting should be done for my custom program
    regards
    madhuri

    Hi
         when i run in foreground it is working perfectly. The Spool is not getting created.
    regards
    madhuri
    Edited by: madhuri_2000 kumari on Nov 26, 2008 2:00 PM

  • Can MC.9 be scheduled as background job?

    Hi experts,
       I would like to schedule MC.9 to run monthly. However, I find that no spool list is generated for the background job. I wonder if there is any way to make it to run in backgroud mode with result shown in spool. Or is there any similiar report which serves the same purpose?
       Thanks in advance. Points will be awarded for useful answers.

    If I am not wrong, Spool generation depends on your system settings. I am sure that I have executed all MC** reports and got the spool list. Chk your basis administrator for your system config.

  • Schedule a background job for a program using ABAP code.

    Hi,
    I have to write a program to schedule a background job for another program.
    Need your help to understand how we can achieve this functionality.Any example of an abap code would be of great help.
    Need it urgently.
    Thanks in advance.
    Sandeep.

    Hi Sandeep,
    Here is the demo program regarding the BDC For the background job.
    report zprprbdc1
           no standard page heading line-size 255.
    include bdcrecx1.
    parameters: dataset(132) lower case.
    ***    DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
    *   If it is nessesary to change the data section use the rules:
    *   1.) Each definition of a field exists of two lines
    *   2.) The first line shows exactly the comment
    *       '* data element: ' followed with the data element
    *       which describes the field.
    *       If you don't have a data element use the
    *       comment without a data element name
    *   3.) The second line shows the fieldname of the
    *       structure, the fieldname must consist of
    *       a fieldname and optional the character '_' and
    *       three numbers and the field length in brackets
    *   4.) Each field must be type C.
    *** Generated data section with specific formatting - DO NOT CHANGE  ***
    ***data: begin of itab occurs 0 ,
    ***       matnr(20) type c,
    ***       mbrsh(30) type c,
    ***       mtart(30) type c,
    ***       kzsel(20) type c,
    ***       maktx(40) type c,
    ***       meins(5) type c,
    ***       end of itab.
    data: begin of record occurs 0,
    * data element: MATNR
            matnr_001(018),
    * data element: MBRSH
            mbrsh_002(001),
    * data element: MTART
            mtart_003(004),
    * data element: XFELD
            kzsel_01_004(001),
    * data element: MAKTX
            maktx_005(040),
    * data element: MEINS
            meins_006(003),
    * data element: MTPOS_MARA
            mtpos_mara_007(004),
          end of record.
    *** End generated data section ***
    start-of-selection.
    *perform open_dataset using dataset.
    perform open_group.
    **do.
    **read dataset dataset into record.
    **if sy-subrc <> 0. exit. endif.
    call function 'GUI_UPLOAD'
      exporting
        filename                      = 'c:\jitu\bdc\10002.txt'
       filetype                      = 'ASC'
       has_field_separator           = 'x'
    *   HEADER_LENGTH                 = 0
    *   READ_BY_LINE                  = 'X'
    *   DAT_MODE                      = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   CHECK_BOM                     = ' '
    *   VIRUS_SCAN_PROFILE            =
    *   NO_AUTH_CHECK                 = ' '
    * IMPORTING
    *   FILELENGTH                    =
    *   HEADER                        =
      tables
        data_tab                      = record
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_READ_ERROR               = 2
    *   NO_BATCH                      = 3
    *   GUI_REFUSE_FILETRANSFER       = 4
    *   INVALID_TYPE                  = 5
    *   NO_AUTHORITY                  = 6
    *   UNKNOWN_ERROR                 = 7
    *   BAD_DATA_FORMAT               = 8
    *   HEADER_NOT_ALLOWED            = 9
    *   SEPARATOR_NOT_ALLOWED         = 10
    *   HEADER_TOO_LONG               = 11
    *   UNKNOWN_DP_ERROR              = 12
    *   ACCESS_DENIED                 = 13
    *   DP_OUT_OF_MEMORY              = 14
    *   DISK_FULL                     = 15
    *   DP_TIMEOUT                    = 16
    *   OTHERS                        = 17
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    loop at record .
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-MATNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RMMG1-MATNR'
                                  record-matnr_001.
    perform bdc_field       using 'RMMG1-MBRSH'
                                  record-mbrsh_002.
    perform bdc_field       using 'RMMG1-MTART'
                                  record-mtart_003.
    perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'
                                  record-kzsel_01_004.
    perform bdc_dynpro      using 'SAPLMGMM' '4004'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  record-maktx_005.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARA-MEINS'.
    perform bdc_field       using 'MARA-MEINS'
                                  record-meins_006.
    perform bdc_field       using 'MARA-MTPOS_MARA'
                                  record-mtpos_mara_007.
    perform bdc_transaction using 'MM01'.
    **enddo.
    endloop.
    perform close_group.
    *perform close_dataset using dataset.
    &*****************Reward point if helpful************&

  • Some records are missing in the mail, when scheduled a background job.

    There is a Z report,  which will display some details from SD, MM , WM every day , and the same thing need to be mailed to the user through background Job.
    Issue is that spool is correct and it is missing some records ( Billing due list ), even internal table have records and displayed in the spool , in the mail it says
    “No Entries Found”.
    Is there any chance of debugging background job.
    Good thing is that when executed in foreground it is working fine. Both mail and report display.

    EM_BODY = '4) VF04 -- Processing Billing document due list.'.
      APPEND EM_BODY.
      EM_BODY = ' '.
      APPEND EM_BODY.
      IF IT_FINAL3[] IS INITIAL.
        EM_BODY = '        No Entry Found'.
        APPEND EM_BODY.
        EM_BODY = ' '.
        APPEND EM_BODY.
      ELSE.
        CONCATENATE 'Delivery No' 'Created By' 'Created On'
                     'Reason' INTO HEAD SEPARATED BY '     '.
        EM_BODY = HEAD.
        APPEND EM_BODY.
        EM_BODY = ' '.
        APPEND EM_BODY.
        CLEAR V_TEXT.
        CLEAR ITEM.
        LOOP AT IT_FINAL3.
          CONCATENATE IT_FINAL3-VBELN  IT_FINAL3-ERNAM IT_final3-ERDAT
                      IT_FINAL3-RESO INTO ITEM SEPARATED BY '     '.
          V_TEXT = ITEM.
          EM_BODY = V_TEXT.
          APPEND EM_BODY.
        ENDLOOP.
        EM_BODY = ' '.
        APPEND EM_BODY.
      ENDIF.
    This is the part where it is failing, where it_final3[] is initial.
    but whereas in the spool i can view those records.

  • How to de-schedule a background job?

    Dear all,
         I have scheduled a background ABAP report titled ZHRWFIT19 at SM36 to trigger a workflow.
         Initially I scheduled this background job to 9 A.M.
         Later I changed to schedule this background job to 10 A.M at SM37.
         Now my workflow triggers twice i.e., at 9 A.M. once and 10 A.M once.
         I want it to start at 10 A.M. only.Though I changed the schedule time to 9 A.M. to 10 A.M, still my background job triggers the
         workflow at 9 A.M. and 10 A.M.
         How to de-schedule this background report at 9 A.M.?
         Please suggest for which I will be grateful forever.
    Thanks and regards,
    S.Suresh

    Dear Shastri,
             Thank you so much for your reply.
             As you have rightly pointed, I have 2 entries with same background job at SM37.That's why my workflow triggers twice.Now I want to permanently delete the background job entry at SM37 which triggers my workflow at 9 A.M.
            I couldn't delete this entry at SM37 permanently.Please suggest me how to permanently delete the entry that triggers the workflow at 9 A.M., for which I will grateful.
    Thanks and regards,
    S.Suresh

  • Scheduling a Background Job for PM/CO Settlements (KO8G)

    Hi All,
    I've created variants for settlements of PM & CO orders using transaction KO8G. Now I want to schedule a background job using TCode SM36. What program name/ABAP name should I use for settlements when scheduling background jobs?
    Regards,
    Tso

    Hello Tso,
    Try transaction SCMO which provides you the option to set
    the start date to finish date and can also set the start time and
    finish time and allows you to specify the variant to be used.
    When in transaction KO8G fill out the fields as you wish them for
    the background job and then same the selection as a variant. There is
    an option to have the variant for background jobs and save the variant
    then you can specify this variant in the SCMO screen.
    SCMO is the sceduele manager which will allow you to scehedule many
    jobs as necessary.
    Some notes:
      332149  SCMA: Required workflow settings
      325118  Schedule Manager: link customer-specific reports
      317601  Schedule Manager: Customer reports for multilevel worklist
      332149  SCMA: Required workflow settings
      891042  SCHEDMAN: Automatic start of several flow definitions
    I hope this helps.
    Regards,
    Lucas

Maybe you are looking for

  • Music and videos do not sync from iTunes to iPhone 4

    Hi all, any help on this issue appreciated. I have recently purchased an iPhone 4 and wanted to sync music and some videos on to it. I have successfully done this on my iPod Nano. But when I attempt it with the iPhone 4, the iTunes program freezes or

  • Printing Output incorrect

    Hi Gurus, The end user have problem printing the EPF calculation for the employee. The EPF report is showing different amount on the screen and on the print out. For Example ; On the screen is showing $11.30 but when we print out it appear as $11.20.

  • Is iWeb Really "What You See is all You'll Get"

    Not an articulate title I know, but I've been coming to the realization that iWeb has seen it's last updates. I've been holding out hope for iWeb Pro. I still plan on using iWeb for some time to come, but here's my question. Will IOS kill iWeb. Right

  • Download just the USB-6008 driver (DAQmx) ?

    Hi Is there a way to download only the driver for my USB-6008 application ? Which means that I don't have to downlaod the installer with MAX and support for different programming enviroments ? Regards Daniel

  • HT4061 how to cange my ITune email on laptop to the same as on my IPhone 4

    Hi there I have ITune on my laptop and the email address & Password is different as on my IPhone 4 How to get to be the same? As well I can not look into my Icould account with my ITune ID for that is waht it is telling me to do it dose not work! Cou