To delay a program submitted in background from another transaction.

Hi All,
There are 2 programs 'A' and 'B' . During execution of 'A' , 'B'  is called and submitted in background using FM Job_open & Job_close and submit query.
My requirement is to Delay the Program 'B' by 2-3 mins without delaying Program 'A' .
I tried using FM JOB_OPEN export condition sdlstrttm   = w_starttm but was of no help.
I also tried using statement wait up to 120 seconds but this also makes wait to program 'A'.
Please suggest solutions to this.
Regards,
Nibha

Hi Prashant,
I am not able to understand ur suggestion.
My piece of code is
    call function 'JOB_OPEN'
      exporting
        jobname          = 'YI90C_BG'
       sdlstrtdt        = w_startdt
       sdlstrttm        = w_starttm
      importing
        jobcount         = job_count
      exceptions
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        others           = 4.
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    if sy-subrc = 0.
      submit ympic_source_list_contr_upload
      with selection-table it_selcr
      and return
      via job 'YI90C_BG'
      number job_count.
      if sy-subrc = 0.
        call function 'JOB_CLOSE'
          exporting
            jobcount             = job_count
            jobname              = 'YI90C_BG'
            strtimmed            = 'X'
          importing
            job_was_released     = w_status
          exceptions
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            others               = 8.
      endif.
    endif.
Please tell what changes should I make?
Regards,
Nibha

Similar Messages

  • Change Desktop background from another account ?

    Hi Guys,
    Just wondering if it's possible to change a desktop background from another account on the same machine.
    I'm running 10.6.8, and there's no particular reason for doing this at present, but we do have a couple of work machines where the user has been restricted from making changes to the machine, and it'd be easier to do this from the administrator account.
    Also, is it possible to change a desktop background via Apple's remote desktop?
    Thanx in advance.

    This same thing happens to me, and while not the end of the world, it is defintely annoying.  Have you figured it out?  Thanks!

  • Access to MD03 from another transaction

    Hi Gurus,
    We did a trace to all the users, and one of them used the MD03 transaction. The point is that he has no authorization to this transaction, so probably he is accessing to it from another.
    Could you help me searching any transaction where the user could jump to MD03 from menu, buttons, double click,...?
    Thank you in advance.

    Hi,
    Click on Enviornment>>Navigation profile>>Assign. In the General settings tab page you can assign the navigation profile. Just check whether the navigation profile assigned to the user has the T-code MD03. Check the seetings and t-codes in OM0K - Define navigation profile.
    But as suggested by Mr.Brahmankar kindly check whether it's possible to access the transaction from MD04 if the user doesn't have the authorization of other transaction which he/she is accessing. In your case MD03. I'm not sure about that.
    Regards,
    Lodhi.S

  • Executing BD87 in background from another program

    Hi Sir,
    I have a scerario in which I have written a z program. Now in my z program i m  generating an idoc no in status 64,yellow status.
    Now I have to process the idoc by calling the tcode BD*& from within the z program and all this should rum in background.
    I am facing following prob:
    My program stops at first screen of BD87 itself. After that I have to press F8 manually..again I have to select the idoc and click on process button.
    But all this should be automate.
    Please guide.
    Krishan

    if you know the IDOC number you can just make a call to function IDOC_INPUT
      data: l_input_method type inputmethd,
            l_input_succeeded type input_ok.
      l_input_method = 'E'.  "Foreground from errors
      refresh: t_unprocessed_idocs,
               t_idoc_data,
               t_idoc_control.
      t_unprocessed_idocs-docnum = '00000000' <<<<< put in IDOC number to be proccessed
      append t_unprocessed_idocs.
      call function 'IDOC_INPUT'
        exporting
          mass_processing          = c_false
          input_method             = l_input_method
          idoc_start_event_enabled = c_false
          end_event_enabled        = c_true
        importing
          input_succeeded_for_all  = l_input_succeeded
        tables
          unprocessed_idocs        = t_unprocessed_idocs
          idoc_data                = t_idoc_data
          idoc_control             = t_idoc_control
        exceptions
          others                   = 17.

  • Executing a report program in background from another program

    Hi Experts,
    I developed a report to display material change history based on change date range. Report is taking much time (around 15-20 mins) as I'm hitting CDPOS and CDHDR tables. User wants to execute the report in foreground because he/she can give selection criteria that is required everytime.
    So, my requirment is now to create another program with same selection screen elements which will execute the original program in background. In the new program, we will be just capturing the selection elements and will pass them to original program to run in background and display a message to user without wait for the background job to complete. Original program should send an email to an fixed email id with the report output as attachment (for example excel file).
    Please suggest.
    Thanks in Advance,
    Siva Sankar

    Hi Siva,
    Please see the link
    http://help.sap.com/saphelp_nw04/helpdata/EN/2a/fa01dd493111d182b70000e829fbfe/content.htm
    Regarding a Change Document Function Module ----- VERY VERY Urgent
    When using function modules , I dont think you can directly get data based on material and plant . these function modules usualy works with object class and creation date .
    Once you retrieve the data using the function modules you have to filter out the unncecessary data based on your selection screen conditions .
    Regards,
    Ratheesh BS
    Edited by: Ratheesh Bhaskarapillai Suseeladev on Mar 8, 2012 5:19 AM
    Regarding a Change Document Function Module ----- VERY VERY Urgent

  • How might I merge 2 photos, and object from one photo cleanly onto a background from another?

    I paint from photos, and wish to merge 2 photos together. I now use PS7. I would like to  clearly merge an object from one photo onto a background in a 2nd photo. The photomerge options in a trial PS10 do not create the composite I wish, ie, a clean object onto a continuous background.

    http://forums.adobe.com/message/4264800#4264800
      You need to select the object and place it on to a separate layer and then place the background on a layer bellow it. I created a similar example some time ago. See if the above thread helps.

  • Calling one java program (with main method) from another

    Hello,
    How can I start another java program from one? Lets
    say I want Second.java to start by calling it from
    First.java. How do I do it? The two programs are given
    below. Any help is appreciated.
    Thanks,
    Amanda
    First.java
    import java.io.*;
    import java.lang.reflect.*;
    public class  First
         public static void main(String[] args)
              Process theProcess=null;
              System.out.println("Hello World from First.java!");
              String second=new String("Second.java");
              //System.load(second);
              //Runtime.getRuntime().load(second);
              try
                   theProcess=Runtime.getRuntime().exec( "Second.java"
                   System.out.println("after exec");
              catch (IOException ioe)
                   System.out.println(">>IOException thrown in
    First.java while calling
    Second.java."+ioe.getMessage());
    Second.java
    public class  Second
         public static void main(String[] args)
              System.out.println("Hello World from Second.java!");
    }

    Stop posting here. The crosspost remark was to alert others that there is a duplicate topic - all answers should be centralized in one so as to not waste people's time duplicating answers when they don't see both topics and the answers therein.

  • Display hidden fields in output list when submitting a report from another

    I have a report A that is submitting another report B and exporting the list to memory. Report B is a standard report and cannot be executed on its own.
    SUBMIT ReportB          
               WITH p_select = p_select
               EXPORTING LIST TO MEMORY
               AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
          TABLES
            listobject = t_list
          EXCEPTIONS
            not_found  = 1
            OTHERS     = 2.
        CALL FUNCTION 'LIST_TO_ASCI'
          TABLES
            listasci           = t_ascitab
            listobject         = t_list
          EXCEPTIONS
            empty_list         = 1
            list_index_invalid = 2
            OTHERS             = 3.
    The output of report B displays an ALV report, default layout of this ALV has a number of hidden fields. So when I am exporting the list to memory, the returned internal table finally extracted (t_ascitab) has only the default fields and not the hidden fields.
    The default layout of the standard report B cannot be altered (as per requirement).
    Is there any way the hidden fields of the output of report B can be returned to report A??

    Hi ,
    You have to  Set layout of report  B as per your requirment  .
    There is  also other method 
    You can include Reportb   in main report and access  internal table  data  for further processing  .
    regards
    Deepak.
    Edited by: Deepak Dhamat on Aug 25, 2011 7:59 AM

  • Calling screen from another transaction

    Hi,
    If I want to call screen from other standard or custom transaction into my custom transaction, how do I do it?
    Thanks.
    Tushar.

    Hello See this link ,
    http://www.sapgenie.com/abap/bdc.htm
    This contains the program which calls the transaction using BDC.
    Hopping this will help for you

  • Execute BBP_BID_INV for specific bid invitation from another transaction

    Hi!
    Is it possible to start BBP_BID_INV in web-interface mode for some specifig bid invitation (in display or change mode) from webdynpro application?

    Kathirvel,
        Thanks for your answer, i will use this function, but i found a flag to process the function BBP_PD_BID_CREATE in bapi mode (I_BAPIMODE = 'X') and after put this flag the BID was generated.
    Regards,
    Roberto Aran

  • How to call a Dialog Program from another Dialog Program

    Dear All,
    How can I call a dialog program with return value from another dialog program?
    Regards,
    Alok.

    Hi Alok,
    1. Insted of creating 2 different Dialog program. It's good to create as many screens as you want in same module pool program. Any way you can use the different TCODE for each screen.
    2. Another and The best way is to create a function group and then inside function group use the function 2 module... In the function group define a global variable which will be present for both the function group if they are getting executed in sequence. and inside the Function Module call the screens using command " call screen <screenno>".
    3. You can use set / get parameter to pass values of a field between two dynpro program.

  • How to call a dialog program with return value in another dialog program

    Dear All,
    How can I call a dialog program with return value from another dialog program?
    Regards,
    Alok.

    Hi Alok,
    You can you SET/GET parameters to do this.
    This is some information about this.
    To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETERstatements.
    To fill one, use:
    SET PARAMETER ID pid FIELD f.
    This statement saves the contents of field f under the ID pid in the SAP memory. The ID pid can be up to 20 characters long. If there was already a value stored under pid, this statement overwrites it. If you double-click pid in the ABAP Editor, parameters that do not exist can be created as a Repository object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID pid FIELD f.
    This statement places the value stored under the pid ID into the variable f. If the system does not find any value for pid in the SAP memory, sy-subrc is set to 4. Otherwise, it sets the value to 0.
    Thanks,
    SriRatna

  • Populating selection screen of one prog by calling from another prog

    This is regarding variant population.
    I need to populate values in selection screen fields of one program (program 2)by calling from another executable ABAP program(.Program 1)
    I can identify the variant that i need ot populate.But there is a pushbutton in the selection screen of Program 2 which on clicking leads to some more fields in a pop up screen.How can I populate values in those fields there ?Please help.
    Thanks & Regards,
    Savitha

    I got a problem like that, then I tried to do a BDC, but it doesn't accept BDC's so I made a vbs program. This could help:
    FORM exec_vbs .
      DATA:BEGIN OF it_file OCCURS 0,
               line TYPE string,
           END OF it_file.
      DATA:filename     TYPE     string.
      CLEAR it_file[].
      it_file-line = 'msgbox "Variant will be updated, please don''t move or minimize the screen"'.
      append it_file.
      it_file-line = 'Dim objShell:Set objShell = CreateObject("WScript.Shell")'.
      append it_file.
      it_file-line = 'do while(ObjShell.AppActivate("R/A Settlements")=FALSE)'.
      append it_file.
      it_file-line = '  wscript.sleep 2000'.
      append it_file.
      it_file-line = 'loop'.
      append it_file.
      it_file-line = 'wscript.sleep 500:ObjShell.SendKeys "%ye":wscript.sleep 1999'.
      append it_file.
      it_file-line = 'do while(ObjShell.AppActivate("SAP Easy Access")=FALSE)'.
      append it_file.
      it_file-line = '  wscript.sleep 1000'.
      append it_file.
      it_file-line = 'loop'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "cj8g":wscript.sleep 940:ObjShell.SendKeys ""'.
      append it_file.
      it_file-line = 'wscript.sleep 1500'.
      append it_file.
      it_file-line = 'do while(ObjShell.AppActivate("Actual Settlement")=FALSE)'.
      append it_file.
      it_file-line = '  wscript.sleep 1000'.
      append it_file.
      it_file-line = 'loop'.
      append it_file.
      it_file-line = 'wscript.sleep 1950'.
      append it_file.
      it_file-line = '''controlshiftF7'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "^+":wscript.sleep 3100'.
      append it_file.
      it_file-line = '''shift+F2'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":wscript.sleep 2199'.
      append it_file.
      it_file-line = '''shift+F10'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":wscript.sleep 500:''SCROL DOWN'.
      append it_file.
      it_file-line = 'for x = 1 to 2: ObjShell.SendKeys "":wscript.sleep 500:next'.
      append it_file.
      it_file-line = '  wscript.sleep 500:ObjShell.SendKeys "":Wscript.Sleep 950'.
      append it_file.
      it_file-line = '''shift+F4'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1999:ObjShell.SendKeys "+ it_file-line = 'Wscript.Sleep 1000:ObjShell.SendKeys "C:\TEMP\Worksheet.txt"'.
      append it_file.
      clear it_file-line.
      concatenate 'Wscript.Sleep 500:ObjShell.SendKeys "' TEMP_FOLDER '\Worksheet.txt' '"' into it_file-line.
      append it_file.
      it_file-line = 'Wscript.Sleep 400:ObjShell.SendKeys "":Wscript.Sleep 2500:ObjShell.SendKeys "":Wscript.Sleep 1900'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "^s":Wscript.Sleep 2900'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1200'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1200'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "%"'.
      append it_file.
      it_file-line = 'Wscript.Sleep 1700'.
      append it_file.
      concatenate TEMP_FOLDER '\settle.vbs' into filename.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename = filename
        TABLES
          data_tab = it_file.
      CALL FUNCTION 'WS_EXECUTE'
        EXPORTING
          PROGRAM = filename.
      IF SY-SUBRC <> 0.
      ENDIF.

  • PO Output For Communication Program is not Submitting in Background PO appr

    Hi Gurus,
    We are working on "PO Output For Communication" Program.We created a Standard Purchase Order and Approved it through the "E-Mail" option checked."PO Output For Communication" program was not submitted in the background.
    From the workflow we found that it was stucked at PO new Communication Process.
    As the value of column "po_output_format" is NULL in the "PO_SYSTEM_PARAMETERS" table it is not submitting in background.
    Already in the front end
    Purchasing responsibility->setup->organizations->purchasing options
    under Documnet control we assigned Output format column as "PDF".
    Will you please provide us your valuable solution as soon as possible.
    Thanks in Advance,
    RS

    This Program "PO Output for Communication" does effects in other parts.
    I mean that this program actually sends an email (or fax or print) along with the PO in PDF attachment or in the TEXT format.
    This program does other part than the above mentioned point also.If yes then provide me the information in which other parts this program effects.I believe it is only the part you mentioned above.
    PO Output for Communication
    http://docs.oracle.com/cd/E18727_01/doc.121/e13410/T446883T443960.htm#srs.poxpopdf
    PO Output for Communication Search
    http://www.oracle.com/pls/ebs121/search?word=PO+Output+for+Communication&format=ranked&remark=quick_search
    Thanks,
    Hussein

  • Pass parameter to program (with LDB) submitted in background

    Hello,
    For a particular requirement, I need to submit the program RPLPAY00 in background.
    I need to extract data for the 'Current Year' which appears as a radiobutton on screen
    However, it comes from the logical database PNP
    I have written code as follows
    *& Report  ZRUN_RPLPAY00
    *& Author  : Kris Donald
    *& Date    : 15-05-2009
    *& Purpose :
    REPORT  ZRUN_RPLPAY00.
    DATA: LV_JOB_NAME         LIKE TBTCO-JOBNAME,
    LV_JOB_NR           LIKE TBTCO-JOBCOUNT,
    LV_JOB_RELEASED     TYPE C,
    LV_JOB_START_SOFORT TYPE C,
    LV_PRINT_PARAMETERS TYPE PRI_PARAMS.
    LV_JOB_NAME = 'RPLPAY00'.
    CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          JOBNAME          = LV_JOB_NAME
        IMPORTING
          JOBCOUNT         = LV_JOB_NR
        EXCEPTIONS
          CANT_CREATE_JOB  = 1
          INVALID_JOB_DATA = 2
          JOBNAME_MISSING  = 3
          OTHERS           = 4.
      IF SYST-SUBRC = 0.
    *submit job with all the selection screen params...
        SUBMIT (LV_JOB_NAME)
            WITH PNPTIMR1 = ''
            WITH PNPTIMR3 = 'X'
            with PNPBEGDA = ''
            with PNPBEGPS = ''
            with ALV_LIST = 'X'
            USER sy-uname
           VIA JOB LV_JOB_NAME NUMBER LV_JOB_NR AND RETURN.
        IF SY-SUBRC = 0.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              JOBCOUNT             = LV_JOB_NR
              JOBNAME              = LV_JOB_NAME
              STRTIMMED            = 'X'
            IMPORTING
              JOB_WAS_RELEASED     = LV_JOB_RELEASED
            EXCEPTIONS
              CANT_START_IMMEDIATE = 1
              INVALID_STARTDATE    = 2
              JOBNAME_MISSING      = 3
              JOB_CLOSE_FAILED     = 4
              JOB_NOSTEPS          = 5
              JOB_NOTEX            = 6
              LOCK_FAILED          = 7
              OTHERS               = 8.
          IF SYST-SUBRC <> 0.
            MESSAGE I162(00) WITH
            'An error occured while closing the background job.'.
            STOP.
          ENDIF.
        ENDIF.
      ENDIF.
      SKIP 1.

    However when I check the output log it shows the following message
    'Pay scale grpg for allowances for 00040011 is not defined on 20040728'
    If 'Current year' was selected properly, it would have read as
    'Pay scale grpg for allowances for 00040011 is not defined on 20090101'
    Does anyone know how I can pass the parameters properly to the program in background ?

Maybe you are looking for

  • How to connect my mac book pro to network printer Canon IR 2010f?

    I'm desperate to know how to connect my Mac book Pro to network printer Canon IR 2010f. This printer has an independent system, therefore, no need a PC to be on, in order to print. But this printer is a network printer. Help me please.

  • Can't get audio to work for HD DVD

    Anyone have any insight into what audio enoding works for HD DVD? I've tried both aiff and ac-3 to go along with MPEG2 video and my Toshiba HD A2 won't play back sound from either type. Help!

  • Wake up phone on calendar event... Feature lost from old BB to new 9900

    Hi all, just a little request if anyone at RIM read this, put an option in the calendar settings or whatever that let you choose if you want the event you set in your calendar to wake the phone as this was working on the older OS, I just upgraded fro

  • How to set up smtp in mail for mutiple servers?

    I have six email accounts, all from different services. Only one allows outgoing mail. Other show (Offline) in SMTP. I used the same format (appropriate server). Why are five offline?

  • JSTL URI change lead to an exception

    I move a Java web application to Tomcat 6. I learn from some posts online that I need to change jstl uri from <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> to <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> since the T