SM36/sm37

Hi,
I tried to schedule a  report for background processing. for the entire period jan to til date
1. spool request got generated but it dosen't contain all the result for entire period.
only (say 1 month data is getting displayed -i pressed even next page icon but dosen't work out)
- how to make spool to display entire period result.
2. is it possible to get the output to excel file & get it saved on desktop -by background job scheduling.
if so where can we specify this
Pl suggest.

Hi,
1)There may be two posibilities here,
i) first the data which you have requested must be present in the system, if it is present it is
    collected, and should be displayed in the spool request content.
ii) There may be display setting problem, to check this please check the spool request display settings...
     Display your spool request in sp01
     select the spool request>Menu>Goto->Display request>Settings
    Here in the Display Area, give from page 1 to page 100 ( or a higher number)
     but this may a take a lot of time to display the whole thing.
2) Regarding getting the result automatically to an excel, I think this needs to be incorporated  in the Program which you use.
  Hope this helps.
Regards,
Vijay.

Similar Messages

  • How to set Back ground job & get my desired output layout in sm36 & sm37 ?

    Hai SAP ABAP/BASIS Gurus,
    I am currently taking ME2N PO Pending value Report by setting variant in input screen & setting my own output layout  ie only four field ie.Plant, Material,Currency,Still to be delivered value will be visible in output screen
    I set Back ground in sm36 using my variant & i saw my output in sm37.. But I cant get output as my desired field..
    This is my problem..
    1) I Cant Get the Same output in shedule job [sm36 & sm37] like When i run in foreground for ME2n.
        I am using ALV Scope of list..
    2) If I use BEST Layout in Scope of list means i get the desired Output field layout as same as my foreground output field..
    I want to get the output layout as desired & also in ALV format[ Useful for excel work]
    Kindly guide me.
    Thanks in advance..
    swetha
    Edited by: Swetha SAP Girl on Jul 2, 2009 5:06 PM

    Hi Swetha,
    To get the missed fields in the spool, while creating the background job(execute in background option) you can see the printer setting block at the end of the background job settings window, in that check the 'Spool Request Max. Width 255 char' check box and then continue. It will generate the spool list with maximum width and you can see all the fields in the spool output.
    Thanks,
    Muthu
    Edited by: Muthu Prabakaran Selvam on Jul 3, 2009 2:35 PM

  • Restrict users to change value in user id field in SM36

    Hi,
    Our users are currently given authorization objects S_BTCH_NAM, S_BTCH_ADM and S_TCH_JOB in order to be able create background jobs and execute using batch admin userid, and not under their own userid.
    I like to know is there way to restrict users to execute transaction SM35, SM36, SM37 to create a job under another person's userid.
    I am looking at grey off the userid field in SM35, SM36, SM37 when users execute these t-code in online mode. I want to restrict them from schedule job to run under another person userid.
    However, if users perform a transaction and call a customised program to create a batch job in background to be executed under batch_admin userid, without failing the job.
    How can it be achieved? Does SAP allows configuration to grey off userid field?

    The problem is that our customized program will first create a job under user "X" userid for audit trail purpose. Because user "X"does not have necessary authorization to perform full update of all other transactions or tables update, in the job, the program will indicate a non-user account with SAP_ALL authorization to perform the update.
    Since your custom program check for S_BTCH_ADM and S_BTCH_NAM from User's authorization we cannot put S_BTCH_ADM=N there and in that case, users would be able to create jobs with other user ID by executing SM36 directly.
    Option 1: Discuss with your developer if it is possible to create a custom exit in the Sm36 program to perform the above authorization check in your Batch user ID's authorization instead of your dialog users. In that case your custom program would run as expected as long as your Batch user ID has proper authorizations for S_BTCH_ADM and S_BTCH_NAM and your dialog users can be restricted to S_BTCH_ADM= N
    Option2: Create a transaction variant for SM36 in tcode SHD0 and make field "User" invisible and then link the transaction variant to a custom tcode which is to be created with start type "Transaction with Variant (variant transaction)".
    Please refer to an SDN article for process of [creation of a transaction variant and linking it to a variant transaction|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40d1443e-0184-2c10-c68d-c612f771fe6f?quicklink=index&overridelayout=true]
    Then have your custom program updated to call the custom tcode instead of SM36 and modify your user's roles to replace SM36 authorization with ZSM36 (Check indicator values of SM36 are pulled into the role). This will ensure your custom program can create jobs under a different user whereas when your user executes SM36 online, the field to change 'user' will not be visible and by default they would be forced to create jobs under their own IDs inspite of having S_BTCH_ADM=Y and S_BTCH_NAM= <your Batch user ID>
    Hope this helps!
    Sandipan

  • Use of Open and close data set in to pick up files from application server

    Hi,
    As per my earlier posts i m making a programm which will pick excel sheet from application server and make auto PR by bapi and this all process will be handle by background processing (SM36, SM37). My concer is all proces are working fine but my files are not been picked by application server , when run on my own machine everything is working fine.I never used OPENDATA SET command before , so i have no idea how it will be used , can anyone provide me details with my set of codes where it should be used ....
    sou_dir_name = 'Y:\Sucess\'.
    tar_dir_name = 'Y:\destination\'.
    Open dataset sou_dir_name for input in text mode encoding default.
    if sy-subrc eq 0.
       do.
           read dataset sou_dir_name into file_table.
       if sy-subrc ne 0.
         exit.  " end of file.
    enddo.
    endif.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        DIRECTORY  = sou_dir_name
        FILTER     = '.'
      IMPORTING
        FILE_COUNT = file_count
        DIR_COUNT  = dir_count
      TABLES
        FILE_TABLE = file_table
        DIR_TABLE  = dir_table
      EXCEPTIONS
        CNTL_ERROR = 1
        OTHERS     = 2.
    IF SY-SUBRC <> 0.
    ENDIF.
    loop at file_table into wa_file_table.
    clear  :  strr , str1 , str2 , str3 .
      strr = wa_file_table-PATHNAME .
      concatenate sou_dir_name strr into str1 .
      concatenate tar_dir_name strr into str2 . " success
      concatenate tar_dir_name1 strr into str3 .         " failed
    FILE = STR1 .
    *start-of-selection.
    *&  Function For Retrieve Data From Excel
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = FILE
        i_begin_col                   = col_start
        i_begin_row                   = row_start
        i_end_col                     = col_end
        i_end_row                     = row_end
      tables
        intern                        = excel_bdcdata
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3.
      IF sy-subrc NE 0.
    WRITE : / 'File Error'.
    EXIT.
    ENDIF.
      loop at excel_bdcdata.
        translate excel_bdcdata to upper case .
        move excel_bdcdata-col to it_index.
        assign component it_index of  structure  wa_file to <fs> .
        move excel_bdcdata-value to <fs>.
        at end of row.
          append wa_file to it_file .
            clear wa_file.
          endat.
      endloop.

    Parsing XML data:
    http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
    or alternatively check out ABAP online help for "CALL TRANSFORMATION".
    For creating the material master look at BAPI_STANDARDMATERIAL_CREATE.
    Thomas

  • Error happening on 'JOB_OPEN' ,JOB_SUBMIt and 'JOB_CLOSE'

    hi,
    when i excute JOB_SUMIT' with 'report  'RMDATIND' eror is happening that  job has been canceled.job log is showing that
      "DATA DOES NOT MATCH THE  JOB DEFINITION , JOB TERMINATED'
    thanks all

    Hi,
    Please refere OSS 71227 note.
    Cause and prerequisites
    The cause is an operating error: direct input jobs may only be started via transaction BMV0, and not directly via SM36/SM37.
    Solution
    Start the job via transaction BMV0.
    If you want to schedule a periodic interface, you must first set the parameter 'Periodically allowed' in the job definition.
    You then schedule the job periodically with 'Start job'.
    If you want to define predecessor or successor jobs, search for the job scheduled via BMV0 in transaction SM37 and edit the job data according to your requirements.
    Prior to 3.0F, it is not possible to schedule periodic jobs.
    I hope this will resolve your issue.
    Please read OSS note for detail information.
    Regards,
    Rahul Mahajan

  • 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 Cancelled with an error "Data does not match the job def: Job terminat"

    Dear Friends,
    The following job is with respect to an inbound interface that transfers data into SAP.
    The file mist.txt is picked from the /FI/in directory of the application server and is moved to the /FI/work directory of application server for processing. Once the program ends up without any error, the file is moved to /FI/archive directory.
    The below are the steps listed in job log, no spool is generated for this job and it ended up with an error "Data does not match the job definition; job terminated".Please see below for more info.
    1.Job   Started                                                                               
    2.Step 001 started (program Y_SAP_FI_POST, variant MIST, user ID K364646)                           
    3.File mist.txt copied from /data/sap/ARD/interface/FI/in/ to /data/sap/ARD/interface/FI/work/.
    4.File mist.txt deleted from /data/sap/ARD/interface/FI/in/.                                   
    5.File mist.txt read from /data/sap/ARD/interface/FI/work/.                                    
    6.PD-DKLY-Y_SAP_FI_POST: This job was started periodically or directly from SM36/SM37 (Message Class: BD, Message Number : 076)  
    7.Job PD-DKLY-Y_SAP_FI_POST: Data does not match the job definition; job terminated (Message Class : BD, Message No. 078)    
    8.Job cancelled after system exception
    ERROR_MESSAGE                                                
    Could you please analyse and come up about under what circumstance the above error is reported.
    As well I heard that because of the customization issues in T.Code BMV0, the above error has raised. 
    Also please note that we can define as well schedule jobs from the above transaction and the corresponding data is stored in the table TBICU
    My Trials
    1. Tested uplaoding an empty file
    2. Tested uploading with wrong data
    3. Tested uploading with improper data that has false file structue
    But failed to simulate the above scenario.
    Clarification Required
    Assume that I have defined a job using BMV0. Is that mandatory to use the same job in SM37/SM36 for scheduling?
    Is the above question valid?
    Edited by: dharmendra gali on Jan 28, 2008 6:06 AM

    Dear Friends,
    _Urgent : Please work on this ASAP _
    The following job is with respect to an inbound interface that transfers data into SAP.
    The file mist.txt is picked from the /FI/in directory of the application server and is moved to the /FI/work directory of application server for processing. Once the program ends up without any error, the file is moved to /FI/archive directory.
    The below are the steps listed in job log, no spool is generated for this job and it ended up with an error "Data does not match the job definition; job terminated".Please see below for more info.
    1.Job Started
    2.Step 001 started (program Y_SAP_FI_POST, variant MIST, user ID K364646)
    3.File mist.txt copied from /data/sap/ARD/interface/FI/in/ to /data/sap/ARD/interface/FI/work/.
    4.File mist.txt deleted from /data/sap/ARD/interface/FI/in/.
    5.File mist.txt read from /data/sap/ARD/interface/FI/work/.
    6.PD-DKLY-Y_SAP_FI_POST: This job was started periodically or directly from SM36/SM37 (Message Class: BD, Message Number : 076)
    7.Job PD-DKLY-Y_SAP_FI_POST: Data does not match the job definition; job terminated (Message Class : BD, Message No. 078)
    8.Job cancelled after system exception
    ERROR_MESSAGE
    Could you please analyse and come up about under what circumstance the above error is reported.
    As well I heard that because of the customization issues in T.Code BMV0, the above error has raised.
    Also please note that we can define as well schedule jobs from the above transaction and the corresponding data is stored in the table TBICU
    My Trials
    1. Tested uplaoding an empty file
    2. Tested uploading with wrong data
    3. Tested uploading with improper data that has false file structue
    But failed to simulate the above scenario.
    Clarification Required
    Assume that I have defined a job using BMV0. Is that mandatory to use the same job in SM37/SM36 for scheduling?
    Is the above question valid?

  • Problem in using JOB_OPEN, JOB_SUBMIT & JOB_CLOSE

    Hi,
    I using following code to submit the Job. But Job which is created is getting canceled in SM37 can anybody let me where the error is ?
    I used GET_PRINT_PARAMETERS function module too but same results.
    Thanks in advance.
    DATA: TBTCJOB  TYPE  TBTCJOB,
          NUMBER1 LIKE TBTCJOB-JOBCOUNT,
          authcknam TYPE tbtcjob-authcknam,
          JOBCOUNT LIKE TBTCJOB-JOBCOUNT,
          JOBNAME LIKE TBTCJOB-JOBNAME,
          ARC_PARAMS LIKE ARC_PARAMS,
          OUT_PARAMS LIKE PRI_PARAMS,
          VALID,
          VALID_FOR_SPOOL.
    jobname = '634_1155'.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = jobname
        jobclass         = 'A'
      IMPORTING
        jobcount         = jobcount
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF SY-SUBRC EQ 0.
       authcknam = sy-uname.
       CALL FUNCTION 'JOB_SUBMIT'
        EXPORTING
          authcknam               = authcknam
          jobcount                = jobcount
          jobname                 = jobname
    *      PRIPARAMS              = OUT_PARAMS
          report                  = 'RMDATIND'
          variant                 = 'TEST2'
        EXCEPTIONS
          bad_priparams           = 1
          bad_xpgflags            = 2
          invalid_jobdata         = 3
          jobname_missing         = 4
          job_notex               = 5
          job_submit_failed       = 6
          lock_failed             = 7
          program_missing         = 8
          prog_abap_and_extpg_set = 9
          OTHERS                  = 10.
    IF SY-SUBRC = 0.
       data lv_time like sy-uzeit.
       lv_time = sy-uzeit + 10.
        CALL FUNCTION 'JOB_CLOSE'
             EXPORTING
                  JOBCOUNT  = jobcount
                  JOBNAME   = jobname
                  sdlstrtdt = sy-datum
                  sdlstrttm = lv_time
                  STRTIMMED = 'X'
             EXCEPTIONS
                  OTHERS    = 01.
      ENDIF.
    ENDIF.
    Edited by: Thomas Zloch on Jun 15, 2010 6:28 PM

    Hi,
       Thanks for looking in this issue Job log is showing this
    2010/06/15 12:31:00 Job started                                                                                00           516          S
    2010/06/15 12:31:00 Step 001 started (program RMDATIND, variant TEST2, user ID VANNAM)          00           550          S
    2010/06/15 12:31:00 634_1155: This job was started periodically or directly from SM36/SM37           BD           076          I
    2010/06/15 12:31:00 Job 634_1155: Data does not match the job definition; job terminated                 BD           078          E
    2010/06/15 12:31:00 Job cancelled after system exception ERROR_MESSAGE                                   00           564          A

  • Schedule a program with JOB_SUBMIT

    Hi Friends,
    I need to execute a program using function modules JOB_OPEN, JOB_SUBMIT, JOB_CLOSE when ever i executed
    (i.e; similar to Background scheduling immediatly using SM36, sm37)
    please help me in the code,
    i have written a sample program using JOB_OPEN, JOB_SUBMIT, JOB_CLOSE function modules,
    but in SP01, i am able to see many jobs under my user.
    How can i avoid multiple Background jobs triggering when i execute a program once using above function modules.
    Thanks in Advance,
    Ganesh

    CALL FUNCTION 'JOB_OPEN'
               EXPORTING
                    jobname  = <JOB NAME>
               IMPORTING
                    jobcount = tbtcjob-jobcount
               EXCEPTIONS
                    OTHERS   = 01.
          IF sy-subrc = 0.
            repid = <REPORT NAME>.
            CALL FUNCTION 'JOB_SUBMIT'
                 EXPORTING
                      authcknam = tbtcjob-authcknam
                      jobcount  = tbtcjob-jobcount
                      jobname   = tbtcjob-jobname
                      report    = repid
                      variant   = raldb-variant
                 EXCEPTIONS
                      OTHERS    = 01.
            IF sy-subrc = 0.
              CALL FUNCTION 'JOB_CLOSE'
                   EXPORTING
                        jobname   = tbtcjob-jobname
                        jobcount  = tbtcjob-jobcount
                        strtimmed = 'X'
                   EXCEPTIONS
                        OTHERS    = 01.
            ENDIF.
          ENDIF.

  • How to connect different clients of same SAP Instance

    Hi,
    I have a question abour CPS 7, Basic- / Free of Charge  Version
    I know that this version is restricted to have only  one SAP Instance per Isolation Goup, but how about different clients of the same Instance ?
    Is it necessary to create an  Isolation Group for each client of the same instance ?
    We actually have 1 isolation group with 1 Instance and 1client .
    Trying to create a second XBP Connection to another client fails then saving the changes with error:
    "JCS-102120: SAP System DI1.DI1_045 should be isolated but is not. Show error details"
    I didnt find a concrete statement in the Installation - and in the Admin Guide.
    Regards
    Frank

    Hi Frank,
    This is correct, there is one client per isolation group. The free version works similar in this respect to SM36/SM37: jobs are defined in each client individually and independently.
    Regards,
    Anton.

  • How to create schedule job and event trigger in XI to start a ABAP program?

    Dear All:
    Here are what i need to do:
    1.To run a ABAP program to start an XI scenario per hour.
    2.To run a ABAP program to start an XI scenario per day at 6 PM.
    3.To run a ABAP program used event trigger to make sure that XI scenario has finished the process and after that wait for 10 min later and run again.
    only i know is used sm36 & sm37 to set up a schedule job.
    but what i don't know is how to do it step by step.
    especially point 3.
    are there any step by step example can show me how?
    it better be simple and details...
    thanks you all
    Regards
    Jack Lee

    Hi,
    If you want to trigger the event manually from within SAP, use transaction
    SM64
    in SAP this is done by scheduling a job
    once a new customer is entered
    your scheduled report sends customer master data
    you can schedule your report (TCODE - BD12 I think) to one day or every 5 minutes... it depend on your needs and the system performence
    Regards,
    Surya

  • How to deal with Segregation of duties?

    Dear Gurus,
    I'm looking for a of basic procedure to analyze Segregation of Duties (SoD)
    The following image is a simple and basic initial flow I made:
    [Initial Flow|http://img535.imageshack.us/img535/4843/sodysis.jpg]
    What do u think about?
    please, be free to comment, correct and improve. This is the idea of the post.
    Regards,
    Diego.

    Thanks Diego!  Great information...I have a related issue that I was wondering if you could share your experience with:
    We've taken on the painstaking task of re-engineering many of our SAP ECC Security roles. Our goal was to be SOD violations free at the Role level, and then put the ownership on the Business to decide what violations at the User level were warranted (requiring mitigation), or else a change would have to occur on the Business Process (BP) side.
    We are struggling with the assignment of certain Basis categorized transactions such as SM36, SM37, SE16. The majority of our BPs are very batch processing oriented, which require our users to have batch processing authorization. However, if we included SM37, for example, into any role RAR comes back with a HIGH risk message
    Did you have to deal with a similar scenario; and if so, how?
    Thanks
    Jose Garcia

  • Regarding "Data does not match the job definition; job terminated"

    Dear Friends,
    The following job is with respect to an inbound interface that transfers data into SAP.
    The file mist.txt is picked from the /FI/in directory of the application server and is moved to the /FI/work directory of application server for processing. Once the program ends up without any error, the file is moved to /FI/archive directory.
    The below are the steps listed in job log, no spool is generated for this job and it ended up with an error "Data does not match the job definition; job terminated".Please see below for more info.
    1.Job Started
    2.Step 001 started (program Y_SAP_FI_POST, variant MIST, user ID K364646)
    3.File mist.txt copied from /data/sap/ARD/interface/FI/in/ to /data/sap/ARD/interface/FI/work/.
    4.File mist.txt deleted from /data/sap/ARD/interface/FI/in/.
    5.File mist.txt read from /data/sap/ARD/interface/FI/work/.
    6.PD-DKLY-Y_SAP_FI_POST: This job was started periodically or directly from SM36/SM37 (Message Class: BD, Message Number : 076)
    7.Job PD-DKLY-Y_SAP_FI_POST: Data does not match the job definition; job terminated (Message Class : BD, Message No. 078)
    8.Job cancelled after system exception
    ERROR_MESSAGE
    Could you please analyse and come up about under what circumstance the above error is reported.
    As well I heard that because of the customization issues in T.Code BMV0, the above error has raised.
    Also please note that we can define as well schedule jobs from the above transaction and the corresponding data is stored in the table TBICU
    My Trials
    1. Tested uplaoding an empty file
    2. Tested uploading with wrong data
    3. Tested uploading with improper data that has false file structue
    But failed to simulate the above scenario.
    Clarification Required
    Assume that I have defined a job using BMV0. Is that mandatory to use the same job in SM37/SM36 for scheduling?
    Is the above question valid?

    Hi dharmendra
    Good Day
    How are you
       I am facing the same problem which you have posted
    By any chance have you got the soultion for this
    If so please let me know the solution for this.
    Thanks in advance.
    Cheers
    Vallabhaneni

  • Background Scheduling Z Report

    Hi,
    I have developed one report , it can output its result in alv report and excel file, So my requirement is to schedule the report and in background only email the report to the specified email id's. How can I achieve functionality of background scheduling and automatic email.
    I know we can do background scheduling with SA38 or SM36/SM37 but upon scheduling it is not saving my excel file at desired location.
    Ankesh

    You should search forums about this....
    You will need to save to the SAP Application server (in a folder which has write permission for SAP jobs) and possibly FTP to some shared drive within the network.  Local PC, local MS network, like C:\, D:\, etc. is not visible to a background job, since there is NO GUI/PRESENTATION server involved in a background job.  Outside of MS Office, an .XLS file is an unknown file type, probably....  how do you think you're creating a .XLS file in a background SAP job?

  • One job with two steps - how to create one single spool?

    Hello experts,
    I have created two queries in SQVI. One is based on the table BSIK, the other on on BSAK.
    The report layout is the same in both queries.
    Now I schedule one job in SM36/SM37 with two steps corresponding to my queries.
    I want my second step to append the spool created in the first step. Is that possible?
    In order to do this I unchecked "New spool request" in the request attributes for the second step of the job.
    I use the same printer, the same format (X_65_80), but it doesnt work.
    The help on the field says
    ".... name, output device, number of prints and the format must match..." - What "name" do they mean?
    "In addition, the existent spool order must not already be competed. This can occur if a spool is released for output...." - I use "send to SAP spooler only" option, is that what thay mean? How cen you have an "uncompleted spool" in the job.
    If anybody knows ho to do this (without development!), please advise
    Best regards,
    Fatima

    Hi,
    Please do following steps :
    1. Go to transaction code SM36
    2. Do as per below screen shots
    You can see Job steps is empty
    Click on (Check and Save)
    Next Screen
    You can see one step created
    Click on Create
    You can see above it is showing as Step 2
    Give again program name and variant
    Click on (Check and Save)
    You can see two steps are created
    Go back (green arrow)
    You can see know SAP is showing 2 Step(s) successfully defined which was earlier blank
    Click on
    Next Screen
    Now schedule job as per your requirement.
    Prerequisite create variants for both the programs as we need to mention the same .
    Hope, this solves your issue else revert.
    Regards,
    Tejas

Maybe you are looking for