ABAP program run weekly

Hi,
Is there a way in ABAP that would allow a program to schedule itself to run on a weekly basis without going through SM36 and variants?
Thanks,
~Mark

Hi,
I don't think there is any option like that. Only thing is that you can create a BDC for the purpose. But again it is complex work. From SE38 main screen itself you can schedule the program. Like from the main se38 screen, type in the program name, from menu->program->schedule. You can schedule it through this way too.
Regards,
Renjith Michael.

Similar Messages

  • How to make an ABAP program run for a specified number of times ?

    assalamoalikum all!!!
    Can some 1 plz tell me that How can I make my ABAP program run ONLY for 2 times (after it went in production etc)
    AND when the program runs for 2 times It then gets hanged/Locked foreever.
    Suppose my program is:
    REPORT twice002.
    write ' I will run only twice bye bye'.

    Well, I guess the only full proof way is to create a custom "Z" table which will hold the counter, in your program you would update this table every time the program runs. In this same program before updating the counter, you would retrieve the counter and check if it is = 2, if so, then write a message and RETURN.
    Regards,
    Rich Heilman

  • ABAP program running time-BW update Rules

    Hi All,
    I have an ABAP program that is in one of the update rules from source ODS to destination ODS. Source ODS has 20million records. When we are loading the records to destination ODS , Is there any way I can find howmuch time will take to process 1 record and also when it is running how do I know howmany records it has processed or howmany yet to process ? I have tried with SM50 but not able to find much useful information?
    Please help me and if you have any documents please send it to [email protected]
    Regards
    Vennela

    Hi Vennela,
    just choose one request and click on monitor -> details. Click on processing -> Data Package 1 -> Update Rules. If you put the cursor on the first node, you'll see a date and time field on the screen (below). If you click on the last node you'll see how long it took to process the records.
    Another possibility would be to run it in simulation mode and check the response time. To do so, you'll have to click on 'Response Time' in the SAP GUI field below at the right side of your screen (normally it shows the system name and mandant).
    Hope that helps!
    Regards
    Nicola

  • Export data to Excel through a ABAP program run in batch mode

    Dear Experts,
      The requirement is that a ABAP report should run through background job, which will do the followiing :
       1) Collect data from predifined CRM tables ( Activity , Order for example ).
       2) Create a Excel file in a Application Server ( physical file server location ) location.
       3) Push the data collected in the step 1 to the Excel file.
       I have found 2 function modules which does the export to Excel after creating the Excel file. They are :
        a) XXL_FULL_API
        b) MS_EXCEL_OLE_STANDARD_DAT
       But it seems that the ABAP report needs to run in the foreground ( correct me if i am wrong ) in order to create the Excel file.
       Please can anyone suggest a possible ABAP code to achieve OR how to use these FMs in background mode ?
      The excel creation needs to be automated and send to a administrator email id every day, so the need of exporting the data in background mode arises.
    Thanks and regards,
    Sudipta

    hi,
    In SM36, you can create a job(give your report prog name)..
    call the fun. module by storing all the values into final int. table it_data.
    but u need to open one excel file in your desktop...
      v_file = 'C:\file.xls'.  " path should be like this...
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = v_file
         filetype                      = 'xls'
      has_field_separator           = 'X'
      HEADER_LENGTH                 = 0
      read_by_line                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
        TABLES
          data_tab                      = it_data
    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.
    regards
    vijay

  • ABAP program in process chain running under another user

    Hi, gurus
    I have a process chain that load three DSO in order to generate authorizations. I wish to add a new process at the end of this process chain which calls ABAP program RSSB_GENERATE_AUTHORIZATION. I wish to run this ABAP program under a different user rather than using ALEREMOTE, our general purpose load user. The user to run authorization generation must be a system user specially created for this purpose.
    My question is: is it possible to define a different user to execute only a process (ABAP program) inside a process chain while the previous steps can be run by a general purpose load user?
    Is there any other approach? What about separating it into two tasks? How to sincronize them, that is, how to run generation just after successful ending of the load process?
    Thanks for ideas.
    Fernando

    Let us assume that you have two parts to this -
    1. Process chain for Data Loads
    2. Program for authorizations.
    Schedule the authorization program in the background and have it run after a particular event - this way your authorization program is run with a specific user.
    In your process chain put in a program to raise the event at the appropriate time so that the authorization program can run. The authorization program in the meanwhile will be runnnig and waiting for the event to occur.

  • ABAP PROGRAM to run a process chain

    Hello all,
    What is the ABAP program to run a process chain after a step that has failed but is manually corrected?
    In short a std ABAP program to run a pc.
    Regards,
    NIKEKAB

    Hi.
    Plz see my answer to similar question in [this thread|Re: Manage a message at the end of process chain on Web planning Application].
    Regards.

  • ABAP program to add in the process chain before the attribute change run

    Hi
    I need a ABAP program to add in the process chain before the attribute change run(process) to avoid the locks, can any one send me the program
    Regards,
    Satish

    I am not sure of any standard program .... but you can write your own... should be a small one..
    you can check if the table RSDMDENQ has entry for your InfoObject... if yes, then its locked.. if not.. its not locked

  • Is there any way to run abap program in dialog process with process chain?

    Hi.
    I just want to run custom abap program in every 30min.
    so I made process chain and connect abap program.
    but it returns NOTHING when background running.
    the program has ABSOLUETLY no problem when it's running DIALOG process.
    custom program is modified from sap standard program for my use.
    so complicated and hard to read that I cann't figure out what's problem in backgound job and even hard to debug in background process.
    is there any way to run abap program in dialog process in every 30 min.?
    or call BSP page or call function.
    any solution will be helpful that excuting PROGRAM or FUNCTION or BSP PAGE in schedule job and should running dialog process.
    thanks.
    Lee.

    Hi,
    did you try using sm36 transaction?
    1Give these values in Gereral data
    Create one sample job "SAMPLE JOB"
    Priority "A"
    Execu target - Your application server
    2Click start conditon
    schedule according to ur requirements.
    3.Click Step button
    Give your ABAP program name.
    fill variants if it has any variants.
    if it is useful assign points
    Regard,
    Senthil Kumar.P

  • Reg: An ABAP program has to run two SAP Queries via BG to Appl. server

    Hi,
    I have a requirement to develop an ABAP program to be able to run the two Z Queries respectively and be able to download to the file to the application server via background.
        The selection is based on the Query Name, Usergroup and plant.How do we capture the data from the Queries and send it to the application server? Submit Statement is not working. There is a FM: RSAQ_REPORT_NAME from which we get the Query program name when Qery name and User group is given as an input.Through the above FM I have got the Query program name and used Submit statement with List_options to capture the Internal table data of that Query. As the Query program is dynamically generated and not available in TSTC, the Submit is not Working. Kindly suggest me is there any other approach to do it.
      Please provide me the solution.
    Thanks in advance.

    Please refer to thread [Authorization Error|WDA adobe error] where various solution to the problem specified by you are described.
    Regards
    Rohit Chowdhary
    Edited by: Rohit Chowdhary on Apr 7, 2009 9:41 PM

  • How to set a  Executable ABAP  Program to run as a Background Batch Job

    Hi
    Currently  I had a Executable ABAP  Program which when executed prompts for user to enter selection once entered and executed it will delete user entered selections from a Table.
    Now my requirment is to enhance that program to run it as a BACKGROUND BATCH JOB so that there will be an entry in SM37 when the program is executed
    How can i achieve this

    Hi,
    Please refer this link .
    It has the steps.
    http://sapient.wordpress.com/2007/06/19/how-do-you-set-up-background-jobs-in-sap/
    Regards,
    SuryaD.

  • Can We Run a ABAP Program in Background

    Hi,
    How to run an ABAP Program in Background.
    Points willbe awarded.
    Regards,
    Jayasimha

    Hi,
    <b>Please see this document also
    http://help.sap.com/saphelp_nw04/helpdata/en/fa/096ccb543b11d1898e0000e8322d00/content.htm
    Easy Job Scheduling Using BP_JOBVARIANT_SCHEDULE</b>
    To schedule a job from within a program using the express method, you need only call the BP_JOBVARIANT_SCHEDULE function module.
    The express method has the following characteristics:
    Simplified job structure: The function module schedules a job that includes only a single job step.
    The function module uses default values for most job-processing options. You cannot, for example, specify a target printer as part of the call to the function module. Instead, the job step uses the print defaults of the scheduling user.
    Only ABAP reports can be scheduled. You must use the "full-control" method to start external programs.
    The range of start-time options is restricted. Event-based scheduling is not supported.
    The function module works as follows:
    You name the report that is to be scheduled in your call to the function module.
    The function module displays a list of variants to the user. The user must select a variant for the report.
    You must ensure that the variants required by your users have already been defined.
    The user picks either "immediate start" or enters a start date and start time. Optionally, the user can also make the job restart periodically. The job is then scheduled.
    Example
    You could use the following code to let users schedule report RSTWGZS2 for checking on the status of online documentation:
    call function 'BP_JOBVARIANT_SCHEDULE'
    exporting
    title_name = 'Documentation Check' " Displayed as title of
    " of scheduling screens
    job_name = 'DocuCheck' " Name of background
    " processing job
    prog_name = 'RSTWGZS2' " Name of ABAP
    " report that is to be
    " run -- used also to
    " select variants
    exceptions
    no_such_report = 01. " PROG_NAME program
    " not found.
    call function 'BP_JOBVARIANT_OVERVIEW' " List the jobs that
    exporting " have been scheduled
    title_name = 'Documentation Check' " Displayed as title
    " of overview screen
    job_name = 'DokuCheck' " Jobs with this name
    " are listed
    prog_name = 'RSTWGZS2'
    exceptions
    no_such_job = 01.
    Regards, ABY

  • How to check if ABAP program is running in another instance?

    Hey Guys,
    I need to ensure that a given ABAP program is only running in one instance.
    Here is what I tried so far:
    1) FM TH_WPINFO
    The problem with this is that the Z (custom) program calls lot of SAP function modules and when inside those, the WP_REPORT field of WPLIST table has something else and not the Z program name.
    2) FM ENQUEUE_ESINDX
    When I used the code below the following happened:
    -The First instance runs fine
    -The Second instance fails in the locking and exits the way it is supposed to but then
    -If I run the program the Third time, it runs with a succesful lock - probably because the after second instance the lock was cleared???
    CALL FUNCTION 'ENQUEUE_ESINDX'
        EXPORTING
         MODE_INDX            = 'E'
         MANDT                = SY-MANDT
         RELID                = 'ZZ'
         SRTFD                = PROGRAM
    *     SRTF2                =
    *     X_RELID              = ' '
    *     X_SRTFD              = ' '
    *     X_SRTF2              = ' '
    *     _SCOPE               = '2'
    *     _WAIT                = ' '
    *     _COLLECT             = ' '
        EXCEPTIONS
          FOREIGN_LOCK         = 1
          SYSTEM_FAILURE       = 2
          OTHERS               = 3.
    Any other idea, how I could accomplish this?
    Thanks a lot,
    Viktor

    -----> Include this perform in Initalization or in Start-of-Selection screen event.
    *&      Form  LOCK_CURRENT_INSTANCE
    * Perform to lock the current instance of the
    * program, so that only one
    * instance can be runned at a given time.
    FORM lock_current_instance .
    *---FM to lock the current instance of the program
        CALL FUNCTION 'ENQUEUE_E_TRDIR'
          EXPORTING
            mode_trdir     = abap_true
            name           = sy-repid
          EXCEPTIONS
            foreign_lock   = 1
            system_failure = 2
            OTHERS         = 3.
        IF sy-subrc <> 0.
          IF sy-batch = abap_true.
            MESSAGE e016 WITH 'Already one Instance of the Program is Running'.
          ELSE.
            MESSAGE s016 WITH 'Already one Instance of the Program is Running' DISPLAY LIKE 'E' .
            LEAVE LIST-PROCESSING.
          ENDIF.
        ENDIF.
    ENDFORM.                    " LOCK_CURRENT_INSTANCE
    ---->and include this perform as a last perform in End-of-Selection screen event.
    *&      Form  UNLOCK_CURRENT_INSTANCE
    * This perform is used to unlock the instance of the
    * running program
    FORM unlock_current_instance .
    *---FM to release the lock on the running program
      CALL FUNCTION 'DEQUEUE_E_TRDIR'
        EXPORTING
          mode_trdir = abap_true
          name       = sy-repid.
    ENDFORM.                    " UNLOCK_CURRENT_INSTANCE

  • How to run a ABAP Program in Batch JOB

    How to run a ABAP Program in Batch JOB ?

    Hello Manish,
    Using transaction SM36 you can define the batch job along with the start conditions for that job.
    1. Transaction SM36.
    2. Give the Z name of the job in the 'Job Name' input field.
    3. Click on 'Steps' button from the application toolbar.
    4. On the 'Create Step 1' dialog box, give the name of the ABAP program in the 'ABAP Program' section' along with the variant.
    5. Click on 'Check Input' button from the dialog box.
    6. Click on 'Save' button from the dialog box once the check is successful.
    7. One list will be shown. Click on Back button from the standard toolbar.
    8. Click on 'Start Conditions' button from the application toolbar. Specify the start condition e.g. immediate. Click on save.
    9. The job staus is now scheduled.
    10.Click on Save button from the standard toolbar of SM36. The job status will be released.
    Using SM37 you can monitor the status of the job.
    This will sort out your problem.
    PS If the answer solves your query, plz reward points.
    Regards

  • How to run ABAP programs in another client?

    Hi:
    If one user wants to run his ABAP program that resides in Client 900 with the data in Client 500, can he do it? both the clients reside in the same SAP system (the same physical SAP server).
    If you've some idea about this, please help.
    Thuan Nguyen

    Hi Christoph:
    Thanks a lot for your help on this.
    If the Client 900 is for ABAP development (the user creates ABAP programs inside this client) and the Client 500 stores the data, can the user log in the client 500 and run his ABAP programs in Client 500?
    Thanks
    Thuan Nguyen

  • How to lock running of abap program?

    Hi Friends,
    I want to lock my abap program. So, I want to provide that my program can be once at any time. And I need to unlock my program. Is there any functions that do my requests?

    HI Nail.
    YOu can set a flag in a ztable with date and time stamp.
    In the at selection-screen event, do this.
    at selection-screen.
    select single * from ztab where repid = sy-repid.
    if ztab-run_date = sy-datum.
    if sy-ucomm = 'ONLI'.
    message a000(zz) 'YOu cannot run this program'.
    endif.
    endif.
    end-of-selection.
    ztab-repid = sy-repid.
    ztab-run_date = sy-datum.
    modify ztab from ztab.
    Regards,
    ravi

Maybe you are looking for

  • Invalid value for variable 0calyear in planning modeller

    Hi Experts, I have an urgent requirement. In my planning modeller I have a variable for 0calyear for accepting current year and target year. If I give target year(for example, 2015) which is not present in 0calyear it is showing error that 2015 is an

  • ELearning: 404 Error Message trying to use "Monitoring in XI 3.0"

    Hi, I tried to connect to e-Learning "Monitoring in XI 3.0" and it did not work. It sent me a 404 Error message. Below I send you the URL of this e-Learning. https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/aa8e38dc-0701-0010-

  • Why I receive Winmail.Dat instead of list of attachments with Email?

    I am receiving Winmail.DAT file as an attachment with email that contain large attachments. I can not view the Attachments, nor can I reterive this .dat file. How can I change the settings in MAIL. Any body can guide plz.?

  • Error installing 10.6.4 update

    I download and install the update, but when the Mac is shutting down and installing the software I get "error installing selected update" or something similiar, then the machine reboots. M.

  • "abstract" modifier for local variable

    Again, I am studying the SCJP 6 and have a question on avaiable access modifier in local variable (within the method). The book said the ONLY access modifier allowed for variable within the method is "final", and for method-local inner class is "abst