Schedule an automatic job

Hey friends
plz give me idea of doing this using workflow or SM36. if possible provide code.
as soon as user enters a good receipt in MB01 or MIGO, an automatic mail should be send to [email protected] stating:
Material # XXXX quantity XXX has been received into Plant XXXX (field WERKS) Storage Location XXXX (field LGORT) and the date received in.
Please tell me how to do this as automatic.
i have found that data is stored in the MSEG table, but how to use it so that and automatic mail is send
Thanks
KVC

below program to sene an email to email id lists.
REPORT Z_NOTIFY_USER .
    Function          :  Send Workflow Message
    Author            :  Raj Ramamoorthy
    Date              :  07/09/2002
    Transaction code  :  SE38
    Function          :
            PROGRAM CHANGE HISTORY
  CHG DTE   PROJ     INT     DESCRIPTION OF PROGRAM CHANGE
  === ===   ====     ===     ============================
   Table Declarations
TABLES: SOLI.
   Data Declarations
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: SAPID     RADIOBUTTON GROUP ADDR,
            EMAIL_ID  RADIOBUTTON GROUP ADDR.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
SELECT-OPTIONS: ID  FOR SOLI-LINE NO INTERVALS.
SELECT-OPTIONS: CC  FOR SOLI-LINE NO INTERVALS.
SELECT-OPTIONS: BCC FOR SOLI-LINE NO INTERVALS.
*PARAMETERS:     SENDER LIKE SOUD-USRNAM.
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-009.
PARAMETERS: SUB_LINE(60) TYPE C.
SELECTION-SCREEN END OF BLOCK B3.
SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-008.
SELECT-OPTIONS:  TEXT1 FOR SOLI-LINE NO INTERVALS.
SELECTION-SCREEN END OF BLOCK B4.
SELECTION-SCREEN BEGIN OF BLOCK B5 WITH FRAME TITLE TEXT-009.
SELECTION-SCREEN BEGIN OF LINE.
parameters: P_ATTACH as checkbox.
selection-screen comment 3(30) text-010.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B5.
DATA: MAIL_CONTENT LIKE SOLI OCCURS 0 WITH HEADER LINE,
      SUBJECT_LINE LIKE SOOD1-OBJDES.
   Start of program processing
START-OF-SELECTION.
Get the Body of the Message from the selection screen or from
calling program
  LOOP AT TEXT1.
    MOVE   TEXT1-LOW TO MAIL_CONTENT-LINE.
    APPEND MAIL_CONTENT.
  ENDLOOP.
Subject of the Message
  MOVE  SUB_LINE TO SUBJECT_LINE.
call a routine to send the workflow message
  PERFORM SEND_EMAIL
          TABLES MAIL_CONTENT
          USING  SUBJECT_LINE.
*&      Form  SEND_EMAIL
Send Workflow message
FORM SEND_EMAIL TABLES OBJCONT STRUCTURE MAIL_CONTENT
                USING  TITLE   LIKE SOOD-OBJDES.
  DATA: RECEIVERS LIKE SOOS1 OCCURS 0 WITH HEADER LINE,
        TSOOD1 LIKE SOOD1,
        PACKING_LIST LIKE SOXPL OCCURS 0 WITH HEADER LINE,
        OBJCONT1 LIKE MAIL_CONTENT OCCURS 0 WITH HEADER LINE.
  DATA: BEGIN OF AT_HEADER OCCURS 1.
          INCLUDE STRUCTURE SOLI.
  DATA: END OF AT_HEADER.
  CLEAR: TSOOD1,
         RECEIVERS.
  REFRESH RECEIVERS.
  MOVE:  SY-LANGU       TO TSOOD1-OBJLA,
         'Email Notice' TO TSOOD1-OBJNAM,
         'C'            TO TSOOD1-OBJSNS,
         TITLE          TO TSOOD1-OBJDES.
       'SCHIAVONIR'   TO TSOOD1-OWNNAM.
loop through each ID and move them to recipient table
  LOOP AT ID.
    TRANSLATE ID-LOW TO UPPER CASE.
    IF SAPID = 'X'.
      MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
            SY-UZEIT     TO RECEIVERS-RCTIM,
            ' '          TO RECEIVERS-RECESC,
             ID-LOW      TO RECEIVERS-RECNAM,
            'X'          TO RECEIVERS-SNDEX.
    ELSE.
      MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
            SY-UZEIT     TO RECEIVERS-RCTIM,
            'U'          TO RECEIVERS-RECESC,
            'U-'         TO RECEIVERS-RECNAM,
            ID-LOW       TO RECEIVERS-RECEXTNAM.
    ENDIF.
    APPEND RECEIVERS.
    CLEAR RECEIVERS.
  ENDLOOP.
loop through each CC and move them to recipient table
  LOOP AT CC.
    TRANSLATE CC-LOW TO UPPER CASE.
    IF SAPID = 'X'.
      MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
            SY-UZEIT     TO RECEIVERS-RCTIM,
            ' '          TO RECEIVERS-RECESC,
             CC-LOW      TO RECEIVERS-RECNAM,
            'X'          TO RECEIVERS-SNDEX,
            'X'          TO RECEIVERS-SNDCP.
    ELSE.
      MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
            SY-UZEIT     TO RECEIVERS-RCTIM,
            'U'          TO RECEIVERS-RECESC,
            'U-'         TO RECEIVERS-RECNAM,
            CC-LOW       TO RECEIVERS-RECEXTNAM,
            'X'          TO RECEIVERS-SNDCP.
    ENDIF.
    APPEND RECEIVERS.
    CLEAR RECEIVERS.
  ENDLOOP.
loop through each BCC and move them to recipient table
  LOOP AT BCC.
    TRANSLATE BCC-LOW TO UPPER CASE.
    IF SAPID = 'X'.
      MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
            SY-UZEIT     TO RECEIVERS-RCTIM,
            ' '          TO RECEIVERS-RECESC,
             BCC-LOW     TO RECEIVERS-RECNAM,
            'X'          TO RECEIVERS-SNDEX,
            'X'          TO RECEIVERS-SNDBC.
    ELSE.
      MOVE: SY-DATUM     TO RECEIVERS-RCDAT,
            SY-UZEIT     TO RECEIVERS-RCTIM,
            'U'          TO RECEIVERS-RECESC,
            'U-'         TO RECEIVERS-RECNAM,
            BCC-LOW      TO RECEIVERS-RECEXTNAM,
            'X'          TO RECEIVERS-SNDBC.
    ENDIF.
    APPEND RECEIVERS.
    CLEAR RECEIVERS.
  ENDLOOP.
  AT_HEADER = SY-DATUM.
  APPEND AT_HEADER.
  AT_HEADER = SY-UZEIT.
  APPEND AT_HEADER.
IF SENDER EQ SPACE.
   SENDER = SY-UNAME.
ENDIF.
  IF P_ATTACH EQ 'X'.
    PACKING_LIST-HEAD_START = 1.
    PACKING_LIST-HEAD_NUM   = 2.
    PACKING_LIST-BODY_START = 1.
    PACKING_LIST-BODY_NUM   = 9999.
    PACKING_LIST-FILE_EXT   = 'TXT'.
    APPEND PACKING_LIST.
    CLEAR  PACKING_LIST.
    APPEND LINES OF OBJCONT TO OBJCONT1.
    REFRESH OBJCONT.
  ENDIF.
  CALL FUNCTION 'SO_OBJECT_SEND'
       EXPORTING
            OBJECT_HD_CHANGE           = TSOOD1
            OBJECT_TYPE                = 'RAW'
       TABLES
            OBJCONT                    = OBJCONT
            RECEIVERS                  = RECEIVERS
            ATT_HEAD                   = AT_HEADER
            ATT_CONT                   = OBJCONT1
            PACKING_LIST               = PACKING_LIST
       EXCEPTIONS
            ACTIVE_USER_NOT_EXIST      = 1
            COMMUNICATION_FAILURE      = 2
            COMPONENT_NOT_AVAILABLE    = 3
            FOLDER_NOT_EXIST           = 4
            FOLDER_NO_AUTHORIZATION    = 5
            FORWARDER_NOT_EXIST        = 6
            NOTE_NOT_EXIST             = 7
            OBJECT_NOT_EXIST           = 8
            OBJECT_NOT_SENT            = 9
            OBJECT_NO_AUTHORIZATION    = 10
            OBJECT_TYPE_NOT_EXIST      = 11
            OPERATION_NO_AUTHORIZATION = 12
            OWNER_NOT_EXIST            = 13
            PARAMETER_ERROR            = 14
            SUBSTITUTE_NOT_ACTIVE      = 15
            SUBSTITUTE_NOT_DEFINED     = 16
            SYSTEM_FAILURE             = 17
            TOO_MUCH_RECEIVERS         = 18
            USER_NOT_EXIST             = 19
            X_ERROR                    = 20
            OTHERS                     = 21.
ENDFORM.                               " SEND_EMAIL
Scheduling Job is :
First maintain variants for workflow program(Above Program)..
now come to Sm36 transaction ->define back ground job
Give the job name
and class and define job and here you will find how to set the background job
Reward Points if it is helpful
Thanks
Seshu

Similar Messages

  • Scheduling an automatic Jobs in Data Services

    Dear Experts,
    could you please explain how to schedule an automatic job in Data Services?
    I would like to be able to schedule a daily, weekly or monthly job.
    Any Document which explain the steps?
    Thanks
    Pat

    I would not suggest doing anything on your production data. Make change in the job as given below. Add Map operation tranform just before where you are writing to the target table. Inside map operation transform select all to discard....make sure you have selected discard for every operation codes.  In order to see what data your job is tring to write to target table. Create a template table and then join that table to tranform which is just before map operation...i...suppose you have query transform at the end and then you write to target table. Then add this query transform to map operation transform as well as to template table.
    You can now get what data your job is going to write to target without writing anything to target.
    Test this in dev first before trying in Production.
    REMEMBER: PRODUCTION IS S SACRED SPACE AND WE DON"T WRITE UNNECESARY DATA OR DO ANY MANUPULATION IN PROD TABLES.
    Thanks,

  • Schedule a daily job using JOB_CLOSE

    Hello,
    I want to schedule a daily job using job_open, job_submit & job_close.
    This job should run everyday at 22:00 hrs.
    What are the parameters I need to set for the FM JOB_CLOSE?
    Thanks,
    A Pothuneedi

    Look at this sample provided by SAP : <a href="http://help.sap.com/saphelp_sm32/helpdata/en/fa/096d8e543b11d1898e0000e8322d00/content.htm">Sample Program: Start-Time Window with JOB_CLOSE</a>
    Sample Program: Start-Time Window with JOB_CLOSE Locate the document in its SAP
    <b>Library structure</b>
    * Submit job: start-time window defined, with periodic repeat and
    * with target system upon which the job is to run.
    * In this case, you must provide start date settings. You can
    * have the job started immediately with a JOB_CLOSE parameter,
    * set the start date yourself, or ask the user with
    * BP_START_DATE_EDITOR.
    * Example: Provide start-date specifications yourself.
    STARTDATE = '19970101'.
    STARTTIME = '160000'.
    LASTSTARTDATE = '19970101'.
    LASTSTARTTIME = '180000'.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    JOBCOUNT = JOBNUMBER " Job identification: number
    JOBNAME = JOBNAME " and name.
    SDLSTRTDT = STARTDATE " Start of start-time...
    SDLSTRTTM = STARTTIME " window
    LASTSTRTDT = LASTSTARTDATE " Optional: end of...
    LASTSTRTTM = LASTSTARTTIME " start-time window
    PRDMONTHS = '1' " Restart at intervals of
    PRDWEEKS = '1' " the sum of the PRD*
    PRDDAYS = '1' " parameters
    PRDHOURS = '1'
    PRDMINS = '1'
    STARTDATE_RESTRICTION = BTC_DONT_PROCESS_ON_HOLIDAY
    " Restrict job start to work
    " days; don't start job if
    " scheduled on holiday.
    " Other values:
    " BTC_PROCESS_BEFORE_HOLIDAY
    " BTC_PROCESS_AFTER_HOLIDAY
    CALENDAR_ID = '01' " ID of R/3 factory calendar
    " for determining workdays
    TARGETSYSTEM = 'hs0011' " Optional: name of the host
    " system on which the job is
    " to run. Set only if
    " absolutely required.
    " Example: A required tape
    " drive is accessible only
    " from a single host system.
    IMPORTING
    JOB_WAS_RELEASED = JOB_RELEASED " If user has authorization
    " to release jobs to run, job
    " is automatically released
    " when it is scheduled. This
    " field is set to 'x' if the
    " job has been released.
    " Otherwise, the job is sche-
    " duled but must be released
    " by an administrator before
    " it can be started.
    EXCEPTIONS
    INVALID_STARTDATE = 01
    JOBNAME_MISSING = 02
    JOB_CLOSE_FAILED = 03
    JOB_NOSTEPS = 04
    JOB_NOTEX = 05
    LOCK_FAILED = 06
    OTHERS = 99.
    IF SY-SUBRC > 0.
    <Error processing>
    ENDIF.
    Regards

  • How to schedule a batch job to generate security audit log (SM20)

    May be this is a repeat question for this forum. Apologize, if it is. Is there a way to schedule a batch job to generate security audit log (SM20) automatically and possibly send a message to SAP Inbox or generate a spool request? Release is 4.6C.
    Regards
    Nirmal

    > May be this is a repeat question for this forum. Apologize, if it is.
    You don't need to apologize. You only need to do a very simple search...
    > Total Questions:  18 (16 unresolved) 
    Perhaps 16 of those 18 questions you have not followed up on could have been spared as well?
    Please do the needfull.
    Cheers,
    Julius

  • How to schedule the background job daily twice?

    Hi,
    How to schedule the background job daily twice? any conditions?
    Regards,
    Srihitha

    see the step by step procedure.
    Scheduling Background Jobs:
    1. Background jobs are scheduled by Basis administrators using transaction SM36.
    2. To run a report in a background, a job needs to be created with a step using the report name
    and a variant for selection parameters. It is recommended to create a separate variant for each
    scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g.
    company codes).
    3. While defining the step, the spool parameters needs to be specified
    (Step-> Print Specifications->Properties) to secure the output of the report and help authorized users
    to find the spool request. The following parameters needs to be maintained:
    a. Time of printing: set to “Send to SAP spooler Only for now”
    b. Name – abbreviated name to identify the job output
    c. Title – free form description for the report output
    d. Authorization – a value defined by Security in user profiles to allow those users to access
    this spool request (authorization object S_SPO_ACT, value SPOAUTH). Only users with matching
    authorization value in their profiles will be able to see the output.
    e. Department – set to appropriate department/functional area name. This field can be used in
    a search later.
    f. Retention period – set to “Do not delete” if the report output needs to be retained for more
    than 8 days. Once the archiving/document repository solution is in place the spool requests could
    be automatically moved to the archive/repository. Storage Mode parameter on the same screen
    could be used to immediately send the output to archive instead of creating a spool request.
    Configuring user access:
    1. To access a report output created by a background job, a user must have at
    least access to SP01 (Spool requests) transaction without restriction on the user
    name (however by itself it will not let the user to see all spool requests). To have
    that access the user must have S_ADMI_FCD authorization object in the profile with
    SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).
    2. To access a particular job’s output in the spool, the user must have
    S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used
    in the Print Specifications of the job (see p. 3.d above).
    3. Levels of access to the spool (display, print once, reprint, download, etc) are
    controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least
    BASE access (display).
    On-line reports:
    1. Exactly the same configuration can be maintained for any output produced
    from R/3. If a user clicks “Parameters” button on a SAP Printer selection dialog, it
    allows to specify all the parameters as described in p. 3 of
    “Scheduling background jobs” section. Thus any output created by an online report
    can be saved and accessed by any user authorized to access that spool request
    (access restriction provided by the Authorization field of the spool request
    attributes, see p. 3.d of “Scheduling background jobs” section).
    Access to report’s output:
    1. A user that had proper access (see Configuring user access above) can
    retrieve a job/report output through transaction SP01.
    2. The selection screen can be configured by clicking “Further selection
    criteria…” button (e.g. to bring “Spool request name (suffix 2)” field or hide other
    fields).
    3. The following fields can be used to search for a specific output (Note that
    Created By must be blank when searching for scheduled job’s outputs)
    a. Spool request name (suffix 2) – corresponds to a spool name in p. 3.b in
    “Scheduling background jobs” section above).
    b. Date created – to find an output of a job that ran within a certain date range.
    c. Title – corresponds to spool Title in p. 3.c in “Scheduling background jobs”
    section above).
    d. Department - corresponds to spool Department in p. 3.e in “Scheduling
    background jobs” section above).
    4. Upon entering selection criteria, the user clicks the Execute button to
    retrieve the list of matching spool requests.
    5. From the spool list the user can use several function such as view the
    content of a spool request, print the spool request, view attributed of the spool
    request, etc. (some functions may need special authorization, see p.3 in
    Configuring user access)
    a. Click the Print button to print the spool request with the default attributes
    (usually defined with the job definition). It will print it on a printer that was
    specified when a job was created.
    b. Click the “Print with changed attributed” button to print the spool request
    with the different attributes (e.g. changing the printer name).
    c. Click the “Display contents” button to preview the spool request contents. A
    Print and Download functions are available from the preview mode.

  • Scheduling of Archive jobs

    Hi,
    i really need to apologize here, but i did not found an appropriate forum to ask this, neither a forum for ADK archiving development kit nor a forum about XBP (intercepted jobs). If there is a froum for asking questions like this you can slap me for that
    The archiving object is configured to schedule the ARVSTO jobs automatically which we want to keep to spread the load over a certain time and not to have a bunch of archiving jobs always running at a specific time.
    In this system we do not have a connection to a central job scheduling tool due to license costs.
    The problem is that sometimes ARVSTO jobs are scheduled exactly at the time where our IXOS serving is going down for 15 minutes for maintanence.
    I'm now looking for ANY possibility to avoid that ARVSTO jobs are scheduled between 4 and 5 o'clock. I hat a look at OSS notes 458670 and 604496, with those notes i can avoid that the jobs are starting automatically but i need an external job scheduler or i need to start them manually. I dont have a job scheduler and i dont want to do this manually.
    I had a look at report RSARCHD to do a modifaction but as far as i can see this one is only scheduling the ARVDEL jobs.
    So does anyone have an idea to solve this? Even if it is a modification, or en enhancement, a BADI or en exit, i dont care.
    Thanks in advance.

    Create one procedure and write all your logic which you want to schedure.
    Please execute the below block to set the job.
    Please change ### with Your PROCEDURE NAME WITH PARAMETER.
    'SYSDATE+1/1440' = Indicate that your job execute every minute..
    DECLARE
    X NUMBER;
    BEGIN
    SYS.DBMS_JOB.SUBMIT
    ( job => X
    ,what => '###'
    ,next_date => to_date('17/02/2010 12:54:32','dd/mm/yyyy hh24:mi:ss')
    ,interval => 'SYSDATE+1/1440 '
    ,no_parse => TRUE
    SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
    END;
    commit;
    Edited by: user10594896 on Feb 16, 2010 11:28 PM

  • 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

  • Schedule periodic Dunning job in SAP

    When i execute the program: RF150SMS
    I am getting the message:
    Dunning run 08/04/2009 DUNNI for template not found
    Message no. FM016
    I am not sure If i am executing the correct program
    Could you please tell how would it be possible to schedule a periodic job for printing dunning ?
    Or Any advise on how to schedule the dunning job in SAP
    Thank you

    Hi ,
    U don't need to schedule a server proxy ...as the proxy will kick in automatically as soon as the message is processed by file adapter .
    Since yours is File to proxy scenario...
    and you want to execute it overnight ..
    You will have to control when the file is processed by XI file adapter.
    Here what you can do ..
    Let's just say your file gets placed in a Folder 'A' ...and your file communication channel is configured to pick files from folder B.
    Write an abap code on xi box ..(or you can use a V.B. script)
    which will move the file from folder A to Folder B.This code can easily be scheduled..so that it you can get files in folder B from where XI processig will kick in .
    (job scheduling can be done sm36 ..use the wizard)

  • Schedule a ftp job

    Is there a way to schedule a ftp job to get/put a certain files?
    Thanks

    Here is a sample $HOME/.netrc file. When you ftp springfield it will automatically login and run the ls command before quitting. Note it needs a blank line at the end to work. See netrc(4) for more info.
    machine springfield login homer password simpson
    macdef init
    ls
    quit
    Hope that helps,
    Ralph
    SUN DTS

  • Schedule Time Evaluation Job

    Hi Experts,
    I have a requirment to schedule Time Evaluation Job Automatically at Every day 12:00 am midnight. Could you pls help how to create variants and schedule the job.
    Thanks
    Priya

    Hi, Priyadarshini.
        You can schedule a job also doing the following.
    1. Enter in transaction PT60.
    2. Define the parameters in the enter screen and save as variant.
    3. Go to menu: Program --> Execute in Background.
    4. Define the printer (so we can check the log error). Here use some printer already installed in sap and inform to send to SAP spooler, then you'll able to see the log in SP01.
    5. Click on the button "Date/Time";
    6. Inform the Date and the Time in "Schedule Start";
    7. Click on the button "Periodic job";
    8. Click on "Period values" and define Daily.
        And this is it. I think it's better you access the program like this to schedule the job, once in the Productive client, usually, we don't have access to the SE38.
    I hope it helps.
    Regards,
    Luciano.

  • Scheduling the Automatic Payment program

    Can we schedule the automatic payment program? If so, how?
    The requirement here is that without/limited manual intervention the program should be able to run.

    Hi,
    For sure business cant avoid running proposal because they have to make sure that vendors who needs to be paid were not gone into exceptions for various reasons. You can definatley automate the process once proposal is succesfully executed. I am hoping this request is coming from business because they dont want to stay till 8pm for check run. if the checks are printed onsite there is no point in automating it, if the check printing is done off site by some vendor this is how you can automate the process.
    you create variants for check printing program RFFOUS_C. For the program run date you have to create variant varibale so that it will be updated on daily basis. Proposal Id has to be unique for each company code. Ask business to run proposal with the same Id which you specify in the variant. I am not going in detail about further selections.
    Create a batch job and schedule to run on the day and time you wanted. once the job is succesfully executed a spool will be generated and the checks can be printed.
    I hope it helps,
    Thanks,

  • Exact Steps to schedule a background job a specific time daily :

    Dear  All,
               Please let me know  the whole process involved in schedule a background job a specific time daily. what is calender id. I could not understand what it has given in SM36.
    Thanks in advance.
    Rgds
    Prem.

    Hi prem
    this is complte procedure for ur requirment.
    Scheduling Background Jobs 
    Use
    You can define and schedule background jobs in two ways from the Job Overview:
    Directly from Transaction SM36. This is best for users already familiar with background job scheduling.
    The Job Scheduling Wizard. This is best for users unfamiliar with SAP background job scheduling. To use the Job Wizard, start from Transaction SM36, and either select Goto ® Wizard version or simply use the Job Wizard button.
    Procedure
    Call Transaction SM36 or choose CCMS ® Jobs ® Definition .
    Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.
    Set the jobu2019s priority, or "Job Class":
    High priority: Class A
    Medium priority: Class B
    Low priority: Class C
    In the Target server field, indicate whether to use system load balancing.
    For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.
    To use a particular application server to run the job, enter a specific target server.
    If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
    Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
    Define the jobu2019s steps by choosing Step, then specify the ABAP program, external command, or external program to be used for each step.
    Save the fully defined job to submit it to the background processing system.
    When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
    pls give points if it is usefull
    Regards
    Saimedha

  • Custom Attributes for Scheduled Transactions (Background Jobs)

    Hi,
    I am trying to fetch the custom attributes for scheduled background jobs. Since we are not using the XAcute Queries to run the automatic jobs, we can't use the AUTOBIND property for custom attributes and hence can't fetch them in the scheduled transactions. Is there any way to retrieve the attributes while scheduling a transaction ?
    Thanks,
    Amit Rath

    Hi Amit,
    a way that works: inside your transaction you can call a XML query that reads out the property list for a given user. In the URL of the XML query you can add the user by using the IllumLoginName parameter.
    - create a XML query with the following URL:
    http://<server>:<port>/XMII/PropertyAccessServlet?mode=list&Content-Type=text/xml&IllumLoginName=<User>&IllumLoginPassword=<Password>
    - in your transaction, call the query. You can retrieve the value of the attribute with a XPath expression like this:
    XML_propertyAccessServlet_0.Results{/Rowsets/Rowset/Row[Name='MyAttribute']/Value}
    Interestingly, adding a User / Password in the Scheduler Editor of the job does not work (MII 12.0.2). Maybe this would be also an option for you to try.
    Michael
    Edited by: Michael Otto on Nov 9, 2010 8:27 AM

  • Scheduling one background job inside another

    Hi All,
    Is it possible to Scheduling one background job inside another.? i.e In my Z program I am calling job_open, job_submit, job_close and to execute one standard report in background. And after that I am executing my Z program itself  from SE38 as Program->Execute->Background->Execute Immediately. Is this logically correct? I am asking this because I am not getting the desired result
    Thanks & Regards,
    Neethu.

    HI,
    Check the job steps in SM36.
    First schedule the Standard job and in the job steps schedule the z report.
    Schedule job in chain

  • How to gen Schedule line automatical.y by BAPI_SALESORDER_CREATEFROMDAT2

    Dears,
       I am using BAPI_SALESORDER_CREATEFROMDAT2 to create Sales Order,
    everything goes on well, but the only problem is i have to input the schedule line myself by providing the   SCHEDULE_LINES& SCHEDULE_LINESX parameter.
      Just wondering...is there any way to let 
      BAPI_SALESORDER_CREATEFROMDAT2  create schedule line automatically,
      just like what we do in frontend, after we input the order quantity in line item , the
      schedule line will be generated automatically...

    Hello,
    You can use FM: BAPI_SALESORDER_CHANGE with update indicator I (insert)
      call function 'BAPI_SALESORDER_CHANGE'
        exporting
          salesdocument    = l_vbeln
          order_header_inx = l_wa_order_header_inx
          simulation       = l_simulation
        tables
          return           = l_i_return
          order_item_in    = l_i_order_item
          order_item_inx   = l_i_order_item_inx
          partners         = l_i_partners
          schedule_lines   = l_i_schedule_lines
          schedule_linesx  = l_i_schedule_linesx
          extensionin      = l_i_extensionin.
    Thanks
    Subhankar

Maybe you are looking for

  • Missing Points of my big order past 4 months and not resolved yet

    Hello, I am an Elite Customer of Best Buy and have lots of product past few years.  I have bought order of more than $10,000 ISSUE: MY REWARDS POINTS ARE MISSING. It's being 4 months and I haven't got a single point from this order. Even with Elite M

  • Accrual on Time Card

    I have to display the Accrual balance on timecard. I have configured the same and it showing accrual balance in hours I want to show it in days. How can this be done ? Rgds - Priya

  • Contact sheets in CS4

    Hi I need to make contact proof sheets to send images to a client... but i cant find it in cs4 ... i've just purchased a new pc because i fried my laptop which had cs2... is the auto contact sheets on cs4? Hayley

  • [Solved] connect: Network is unreachable

    After 5 unsuccessful Arch Linux installations, I've got two that installed correctly. The first time, the network worked fine, and I was even installing it over SSH. After booting from the installed system instead of the live CD, it can't connect to

  • Building a EAR using sda_build.xml?

    Hello, I am looking for information on where to find the sda_build.xml file for building an EAR file using Ant.  According to my SAP documentation this file is required to successfully build an EAR that can be deployed to our J2EE server.  However I