Background Job Result to my Internal ID

Hi Everyone,
            im Defining a Background job in SM36 and scheduling it. After the completion of that job that particular job result has to come to my Internal ID.is it possible?
   Now, ii is generating a Spool request number and going to a Printer.Instead of that SPOOL , i want that Result/Report has to come to my SAP Id.
    what & Where can i do this?
Regards,
Siva

Siva,
Just a thought.
Is the job creator (you) and the User name of the person running the program (defined in Step in SM36) the same in this case ?
What Im hinting at is, the program inside the job may be run with a different username and HE might not have the authorization. So if you run SU53 from your account, it will not throw up an authorization error, since you are logged in as the you and not the person.
I would check the following if I were you.
1. Is the username of the person running the report/program the same as the one running the job.
2. If they are different, either log in as the user or run a trace on him and find out what he/she is missing.
This sounds like an authorization problem to me too. Also check authorization for S_OC_SEND object.

Similar Messages

  • Background Job result

    Dear
    Background Job result presently we are getting the mail in html format i want it to be saved in spreadsheet(EXCEL).
    Thanks in advance.
    Regards,
    Veda

    Hello,
    Go to SCOT -->select smtp -->in the supported addres types
    click on internet -->in the out put format for sap documents you can change the format.
    Regards
    Maheshwer.p

  • Background job results into hard disk.

    Hi all
    Can you solve my problem.
    How I can transport my Background job results to hard disk.
    I create background job for transaction mb52 and I need to transport result's automatically to my hard disk.
    Is there any simple way to solve this problem?
    I create a hard disk printer,but it dosen't work automatically, It work if I print results directly in transaction MB52.
    Or how I can make query which is same info that transaction MB52, What tabels I need to use.
    If I use query by using background job this hard disc printer works.
    Br Tuomo

    There are a FM named C13Z_FILE_DOWNLOAD_ASCII. It has a limitation: only admits 255 characters per record.
    Ex.:
    PARAMETERS: salida LIKE RCGFILETR-FTAPPL
                                              DEFAULT '/usr/sap/home/ftpprd/archivosprd/totales.txt'
                                              LOWER CASE.
    PARAMETERS: salidapc LIKE RCGFILETR-FTFRONT
                                                 DEFAULT 'c:\totales.txt'
                                                 LOWER CASE.
    CONSTANTS: esp1_false TYPE esp1_boolean VALUE ' ',
                          esp1_true  TYPE esp1_boolean VALUE 'X'.
    CALL FUNCTION 'C13Z_FILE_DOWNLOAD_ASCII'
      EXPORTING
        I_FILE_FRONT_END    = salidapc
        I_FILE_APPL               = salida
        I_FILE_OVERWRITE    = esp1_true
    *IMPORTING
    E_FLG_OPEN_ERROR=
    E_OS_MESSAGE        =
      EXCEPTIONS
            FE_FILE_OPEN_ERROR  = 1
            FE_FILE_EXISTS             = 2
            FE_FILE_WRITE_ERROR = 3
            AP_NO_AUTHORITY        = 4
            AP_FILE_OPEN_ERROR  = 5
            AP_FILE_EMPTY             = 6
            OTHERS                          = 7.
    Regards.
    Rafael Rojas.

  • Background Job result output should be displayed in Email body

    Hi Friends,
    One of our user is scheduling background job, He need the output to his external Email ID.
    user required that Job result output should be displayed in Email body, Not in attachment.
    We have tried but job result received in email as HTML (or) PDF file attachment, But he wants output  in Email body itself.
    Please help.
    Regards,
    Karthickbabu G.G

    Hi,
    Displaying report output in email body is not available as a standard feature. Also doing a custom development would be very cumbersome .
    Regards,
    Deepak Kori

  • API for scheduling background jobs

    Hello friends,
    What is the API provided by R/3 to schedule background jobs, apart from the internal transactions,  sm36 ?
    regards,
    Tanmay.

    Hi,
    There are FMs to create and schedule jobs instead of manually going to transaction SM36.
    JOB_OPEN (create a job)
    JOB_SUBMIT (attach program to be scheduled and set other scheduling parameters)
    JOB_CLOSE (finally release it for use)
    Hope your question is answered...
    Regards, Tapas
    <Pls reward if useful or answered>

  • Issue with Compliance Calibrator 5.2 SP9 Background Jobs

    Hello,
    I'm having an issue with Compliance Calibrator 5.2 SP9 where If I run a role analysis as a background job that has the same parameters as a previously run role analysis background job, the second job that is run will display a failure message.  It does not appear to matter if the similar background jobs were run by the same individual or separate individuals.  As long as the job that was previously run is still in the background job history, than any job with the same parameters run by a user will fail. 
    Is this normal operation for CC? 
    Is there a configuration change that could allow a job to be rerun in the background multiple times?
    Is there a fix for this issue in a later support pack or with upgrade to 5.3?
    Thanks for the help it's much appreciated,

    To better clarify what is occurring, the 1st job will run and complete successfully and return/display the appropriate results correctly.  The 2nd job will than be subsequently kicked off and finish same as with the previous job except when you open the background results no data is displayed and the message at the bottom reads: Failed to display result.  To make more sense of what Iu2019m doing, these are the logical steps Iu2019m following:
    1.  Select Role Level analysis
    2.  Enter parameters for analysis
    3.  Schedule background job to run immediately
    4.  View background job results (successful job and correct results)
    5.  Select Role Level analysis (with same or any other user)
    6.  Enter same parameters as step 2 for analysis
    7.  Schedule background job to run immediately
    8.  View background job results (successful job, but the error message: u2018Failed to display resultu2019, instead of seeing the CC reports)
    I believe the error is somewhere in the running of a job with the same parameters (Same Role and same Report Type).  If I delete the previous jobs from the background history that have the parameters Iu2019m using and try the analysis again, a third time, with the same parameters as before, it will run successfully and display the correct results.
    Is this normal and acceptable operation for CC5.2 SP9?
    Is there a configuration change that would allow a job to be run in the background multiple times with the correct CC results?
    Is there a fix for this issue in a later support pack or with upgrade to 5.3?

  • Different result when running as background job

    Hi,
    We got a program which has a selection screen with a couple of select-options.
    When we start this programm with a specified variant, it proceeds to a result screen. If we click back now (to the selection-screen) and run the programm with the exactly same settings again, one select-option is getting ignored and therefore we get incorrect results.
    This happens only, if you go back from the result screen and  excecute it again from the selection screen or if we start it as a background job.
    If you exit the programm completely and restart it, the results are correct again.
    It makes no sense to post any code snippets here, since the program is very complex. I just can't imagine any reason, why the select-option is sometimes getting ignored.
    Does anyone have an idea?
    Thanks in advance.
    Regards,
    Tobi

    oh well it DOES explain it.
    just think of following select:
    Select *
    from   vbap
    into    ls_vbap
    where vbeln not in lr_vbeln.
    if lr_vbeln is not cleard you will run into problems maybe.
    anyway, may it be that somewhere in coding you are manually modifying your select option?
    It´s just an internal table of type range, so have a look there.

  • Internal error occurs in background job scheduling

    Hi Experts,
    We are facing an error message "Internal error occurs in background job scheduling" while trying to execute a custom report(Z report) in background in SA38.
    Please find the following observation on our side on this message.
    1) This message is not coming for only one report not for others.
    2) SU53 screen shot shows that SE38 check is failed, but the weird thing is not happening for other report.
    3) Persons having SE38 auhtorization are able to run this report.
    Please advise.
    Thanks in advance,
    Viven

    What is the message ID and number? Have you tried OSS search and debugging?
    What does this program do, in a nutshell?

  • Change internal table values in background job

    Hello All,
    Currently we have a report which is  running in background job.
    Because of error in one PO (error in header status), the job is getting cancelled in production.
    Is there any way, we can exclude this PO in debugging from the internal table.
    The report should run in background, the requirement is exclude the PO from internal table and the background process should run as normal after excluding that PO.
    Please advise how to do this.
    Thanks,
    Priya

    Hi All,
    Thanks for your replies.
    I found the following way to debug the background job helpful. Go to SM37, select the job name and do as shown below. Once you click Capture: Active job, debugger will open and we can analyze from there further.

  • Download ALV result list as excel-file in background job

    Dear Experts,
    I am looking for a possibily to download the result of an ALV based report as excel-file in a background job. Surely there is a standard function which can be used or at least some hints how to implement this. I searched the forum but couldn't find a thread which was covering this problem exactly.
    Thanks in advance
    Benjamin

    Dear Mr. Krapf,
    it is possible to output an ALV list to an Excel file in the background but there are some limitations.
    Please consider the following notes:
    #7925  Graphics, Upload, Download do not work in backgrnd
    #65050 Data types and file formats in files (DATASET) 
    #145073 - FAQ Report Writer: Excel download 
    #569537 - Incorrect data during import into Excel
    #590126  Sending CSV documents up to Release 4.6
    Please be aware that they are all Basis notes. So for more information you might ask in the Basis SDN Forum.
    Best regards, Christin Angus

  • How to print result of transaction processing in background job?

    Hi experts,
    Could you give me advice how to resolve following task:
    I need to print a list of sales orders (transaction VA05) in background job.
    Are exist standard techniques for this? Or should I create new program (report) and create the job with printing of parameters?
    Thanks for advance

    Hi,
    Define a background job with the program  name  & variant.
    Pass the print specifications as well.
    Best regards,
    Prashant

  • CC Management Reports background job- no results

    I am conducting testing in CC and as part of that I have run the the background job to update Management Reports. The reports were already populated for September. I made changes to users in October and have run the job to populate the report today 4th October. The job is showing that it has completed successfully but when I go to run the risk Violation report for October, 10/2007 is not appearing in the month/year field. Does anybody know why October values are not displaying?

    You need to run the Incremental Updates first, one at a time starting with Users and then roles & profiles.  Make sure that Users has completed before starting the Roles and profile jobs otherwise they can crash.
    When these increments have completed, start running the Risk Analsysis increments jobs again 1 by 1, that way if you have any issues you do dnot lose the whole batch run, only one element.
    Only after the risk analyses have completed do you start the Management Report job.
    Please note that some of these jobs could take over 24hrs to complete.
    Also it is best to log off anf on once the management report job has completed to see the updates.

  • BWREMOTE background job canceled in sap r/3 system

    Hi my friends,
    Thanks for your help ahead.
    Today I checked the background job in SAP R/3 created by BWREMOTE via SM37. It showed me some jobs had been canceled.
    I displayed its log, the detail message is:
    ==========================================
    Step 001 started (program SBIE0001, variant &0000000083494, user name BWREMOTE)
    DATASOURCE = ZQM_NOT_SHFGRP
    Call up of customer enhancement BW_BTE_CALL_BW204010_E (BTE) with 1,593 records
    Result of customer enhancement: 1,593 records
    Call up of customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 1,593 records
    ABAP/4 processor: SAPSQL_INVALID_FIELDNAME
    Job cancelled
    ==========================================
    Then I displayed the "Long Text" of the job log. It is
    One of the field names in the SELECT clause was not recognized.
    Error analysis
    The SELECT clause was specified in an internal table at runtime.
    It contains the field name "TPR00", but this does not occur in any of
    the database tables listed in the FROM clause.
    Information on where termination occurred
    The termination occurred in the ABAP/4 program "SAPLXRSA " in
    "EXIT_SAPLRSAP_001".
    The main program was "SBIE0001 ".
    Source code extract
    008840 concatenate 'TPR'
    008850 day_temp+6(2)
    008860 ' = '
    008870 ' ''' zshift '''' into
    008880 cond .
    008890 append cond to itab .
    008900 select schkz into i_not_shfgrp-zzschkz from t552a
    008910 where zeity = '2'
    008920 and mofid = 'CN'
    008930 and mosid = '28'
    008940 and ( schkz = 'SFTA' or
    008950 schkz = 'SFTB' or
    008960 schkz = 'SFTC' or
    008970 schkz = 'SFTD' )
    008980 and kjahr = day_temp+0(4)
    008990 and monat = day_temp+4(2)
    > and (itab) .
    009010 endselect.
    I guess that there is not a field named TPR00 in table t552a.
    Next, I opened the 'project management of sap enhancement' via CMOD, entering the project name and chosing 'Display'.
    Then Double click the Components 'EXIT_SAPLRSAP_001', we can see the function module 'EXIT_SAPLRSAP_001'. In the source codes, there is an include program, it is 'INCLUDE ZXRSAU01.'.
    Then, I double clicked the Include program and find the position program terminated. The source codes are:
    ZQM_NOT_SHFGRP *
    when 'ZQM_NOT_SHFGRP'.
    loop at c_t_data into i_not_shfgrp .
    l_tabix = sy-tabix .
    clear :mbatch ,zshift,cond ,zfield, zcharg, day_temp .
    refresh itab.
    if i_not_shfgrp-ausvn is initial.
    else.
    aa = '080000'.
    bb = '160000'.
    cc = '235959'.
    day_temp = i_not_shfgrp-ausvn.
    if i_not_shfgrp-auztv ge aa and
    i_not_shfgrp-auztv lt bb .
    zshift = 'MSHF' .
    elseif i_not_shfgrp-auztv ge bb and
    i_not_shfgrp-auztv le cc .
    zshift = 'LSHF'.
    else .
    zshift = 'NSHF'.
    day_temp = i_not_shfgrp-ausvn - 1.
    endif.
    concatenate 'TPR'
    day_temp+6(2)
    ' = '
    ' ''' zshift '''' into
    cond .
    append cond to itab .
    select schkz into i_not_shfgrp-zzschkz from t552a
    where zeity = '2'
    and mofid = 'CN'
    and mosid = '28'
    and ( schkz = 'SFTA' or
    schkz = 'SFTB' or
    schkz = 'SFTC' or
    schkz = 'SFTD' )
    and kjahr = day_temp+0(4)
    and monat = day_temp+4(2)
    and (itab) .
    endselect.
    endif.
    I found that we got a TPR00 during concatenation. In other words, day_temp+6(2) = 00. But I think it is impossible. I can not explain this.
    Any ideas, my friends. Many thanks.

    select schkz into i_not_shfgrp-zzschkz from t552a
    where zeity = '2'
    and mofid = 'CN'
    and mosid = '28'
    and ( schkz = 'SFTA' or
    schkz = 'SFTB' or
    schkz = 'SFTC' or
    schkz = 'SFTD' )
    and kjahr = day_temp+0(4)
    and monat = day_temp+4(2)
    <b>and (itab) .</b>  => doesn't make sense?!
    endselect.
    endif.
    it seems something got deleted between 'and' and '(itab)'... so, you'll have to recheck the requirements for your select to fill the 'and' statement further.
    so, it should look like
    and monat = day_temp+4(2)
    and <b><some kind of condition that needs to be fulfilled></b>.
    endselect.
    <b><some logic to fill a line in your internal table></b>.
    append cond to itab.
    endif.
    obviously <some kind of condition that needs to be fulfilled> needs to be replaced by a real condition
    and <some logic to fill a line in your internal table> needs to be replaced by some kind of formula
    I assume something like (otherwise it would be really weird to select that field):
    cond = i_not_shfgrp-zzschkz.
    or a formula using the i_not_shfgrp-zzschkz field.
    It would also be a lot better to replace your select ... endselect by a select single as you'll be selecting 1 record only anyways.
    Message was edited by:
            RafB

  • Alv show in report but when see in spool (after run background job) there i

    my program have some error when i run result alv show in report but when see in spool (after run background job) there is no data, (other program can see result in spool)
    Please help
    here is some example of my program
    ********************************declare internal table*****************************
    internal table output for BDC
    data : begin of t_output occurs 0,
    bukrs type anla-bukrs,
    anln1 type anla-anln1,
    anln2 type anla-anln2,
    zugdt type anla-zugdt,
    result(70) type c,
    end of t_output.
    *****get data from loop********************************
      loop at t_anla.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_anla-anln1
             IMPORTING
                  OUTPUT = t_anla-anln1.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_anla-anln2
             IMPORTING
                  OUTPUT = t_anla-anln2.
    check record is correct or not
        select single bukrs anln1 anln2 zugdt
        into w_output
        from anla
        where bukrs = t_anla-bukrs and
        anln1 = t_anla-anln1 and
        anln2 = t_anla-anln2
       zugdt = '00000000'
    if record is correct
        if sy-subrc = 0 and w_output-zugdt = '00000000'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Yes : this asset can delete'.
          append w_output to t_output.
    if record is not correct
        elseif sy-subrc = 0 and w_output-zugdt <> '00000000'.
    there is error record  this asset have value already
          v_have_error = 'X'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Error : this asset have value already'.
          append w_output to t_output.
        else.
    there is error record this asset donot exist in table anla
          v_have_error = 'X'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Error : this asset doest not exist'.
          append w_output to t_output.
        endif.
    *end of check record is correct or not
        clear w_output.
      endloop.
    ******************************show data in ALV***************************************************
    show data from file in ALV
      perform display_report_ALV.
    *&      Form  display_report_ALV
    form display_report_ALV.
      DATA: LT_FIELD_CAT TYPE SLIS_T_FIELDCAT_ALV,
          LT_EVENTS TYPE SLIS_T_EVENT,
          LV_REPID LIKE SY-REPID.
      PERFORM ALV_DEFINE_FIELD_CAT USING LT_FIELD_CAT.
      PERFORM ALV_HEADER_BUILD USING T_LIST_TOP_OF_PAGE[].
      PERFORM ALV_EVENTTAB_BUILD USING LT_EVENTS[].
      LV_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = LV_REPID
                IT_FIELDCAT        = LT_FIELD_CAT
                I_SAVE             = 'A'
                IT_EVENTS          = LT_EVENTS[]
           TABLES
                T_OUTTAB           = t_output
           EXCEPTIONS
                PROGRAM_ERROR      = 1
                OTHERS             = 2.
      IF SY-SUBRC NE 0.
        WRITE: / 'Return Code : ', SY-SUBRC,
          'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
      ENDIF.
    endform.
    *&      Form  alv_define_field_cat
          text
         -->P_LT_FIELD_CAT  text
    FORM ALV_DEFINE_FIELD_CAT USING  TB_FCAT TYPE SLIS_T_FIELDCAT_ALV.
      DATA: WA_FIELDCAT LIKE LINE OF TB_FCAT,
        LV_COL_POS TYPE I.
      DEFINE FIELD_CAT.
        CLEAR WA_FIELDCAT.
        ADD 1 TO LV_COL_POS.
        WA_FIELDCAT-FIELDNAME = &1.
        WA_FIELDCAT-REF_TABNAME = &2.
        WA_FIELDCAT-COL_POS = LV_COL_POS.
        WA_FIELDCAT-KEY = &3.
        WA_FIELDCAT-NO_OUT = &4.
        WA_FIELDCAT-REF_FIELDNAME = &5.
        WA_FIELDCAT-DDICTXT = 'M'.
        IF NOT &6 IS INITIAL.
          WA_FIELDCAT-SELTEXT_L = &6.
          WA_FIELDCAT-SELTEXT_M = &6.
          WA_FIELDCAT-SELTEXT_S = &6.
        ENDIF.
        WA_FIELDCAT-DO_SUM = &7.
        WA_FIELDCAT-OUTPUTLEN = &8.
        APPEND WA_FIELDCAT TO TB_FCAT.
      END-OF-DEFINITION.
      FIELD_CAT  'BUKRS'  'ANLA'     'X' '' 'BUKRS' 'Company Code' '' ''.
      FIELD_CAT  'ANLN1'  'ANLA'     'X' '' 'ANLN1' 'Asset Number' '' ''.
      FIELD_CAT  'ANLN2'  'ANLA'     'X' '' 'ANLN2' 'Asset Sub Number' '' ''.
    FIELD_CAT  'ATEXT'   'T5EAE'     'X' '' 'ATEXT' 'Result' '' ''.
      FIELD_CAT  'RESULT'  ''     'X' '' 'RESULT' 'RESULT' '' ''.
    ENDFORM.                    " alv_define_field_cat

    Hi,
    Check this code..
    FORM display_report_alv.
      DATA: lt_field_cat TYPE slis_t_fieldcat_alv,
      lt_events TYPE slis_t_event,
      lv_repid LIKE sy-repid.
      PERFORM alv_define_field_cat USING lt_field_cat.
      PERFORM alv_header_build USING t_list_top_of_page[].
      PERFORM alv_eventtab_build USING lt_events[].
      lv_repid = sy-repid.
      IF sy-batch EQ 'X'.  ----> " System Field for Backgroud..if Background use list display
        CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            i_callback_program = lv_repid
            it_fieldcat        = lt_field_cat
            i_save             = 'A'
            it_events          = lt_events[]
          TABLES
            t_outtab           = t_output
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
      ELSE.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program = lv_repid
            it_fieldcat        = lt_field_cat
            i_save             = 'A'
            it_events          = lt_events[]
          TABLES
            t_outtab           = t_output
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
      ENDIF.
      IF sy-subrc NE 0.
        WRITE: / 'Return Code : ', sy-subrc,
        'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
      ENDIF.
    ENDFORM.                    "display_report_ALV

  • Background job not generating spool

    Hi all,
          I am calling a report from another report. The called report will display the final output list.
    Here, the called report will be executed in background.
    here the job is completing but the spool is not generated.

    Hi,
    It seems that the final internal table which has the output data is empty & hence write statements are not executed ( assuming all the write statements are inside a loop).
    Place one write statement outside loop like
    write :/ 'Following is the result :'.
    & check whether spool is generated. If yes, then the problem is of empty internal table.
    You can select the job in SM37 & type JDBG in command prompt to debug a background job.
    Debug & check the issue.
    Best regards,
    Prashant

Maybe you are looking for

  • Media required for homogeneous system copy

    My enviroment SAP ecc6 kernel 7.0/Oracle 10g/Solaris 10 I'm doing a system copy via backup/restore using Instalation Master DVD. When I run SAPinst . I've just restored sapdata files, redologs etc into the target system . But when I ran sapinst in th

  • Why does scaling distort objects?

    I can't get certain graphics to scale down correctly correctly. Take a look at the 2 jpegs enclosed - one solid, the other with 1px outline. The graphic men were originally 40mm tall. In each case the one on the left is the original. The one on the r

  • Disk Space error message when trying to download an app!

    I have 84GB  spare capacity but App store keeps telling me I don't have enough disk space to download an app of 24GB! I have emptied my trash and have checked the amount of free space on my HD and there seems to be plenty of space so why is it doing

  • Pick List error

    Hi guys, We are using pick and pack to dispatch our orders partially. For the second time now, we have observed a pick error where the pick list  status changes to closed after being released yet no delivery has been made. The order therefore remains

  • Need help with EventQueueMonitor

    Hello! I have a task to write an application on Java2 SE, which will manage the Accessible object of another Java window. To do this, I put the Java Accessible Bridge version 2.0. JVM 1.6.0_24 In combination with Java Accessible Bridge is a few examp