How to run LSMW  in Background

Hi friends,
   I need some information. Is it possible to run an LSMW in Background. If so which type of programs we can run in Background which types are not?
Regards,
Naren.

hello all,
Regarding Session method :
in  Run Batch Input session, we can use foreground or background.
Direct input:
Create Material with transaction „BMV0“
Go to transaction SE38, choose the program “RMDATIND” and create a variant (direct relation to the run; Exp. Creation of the MRP view. Choose the appropriate entries in the following screen and save the variant.
Click in the BMV0 on this button   then you get to this screen. Create a entry with you “Variant name” and save it.
Important: Check in the P-System if you can create a entry in this table!!
After the definition, choose the button  .
Check the Job with TA: SM37
This screen appears if you start the MBV0 from the LSMW
Just press F8 to continue. You will get to this screen.
This transaction gives you a Job log, protocol and also the possibility to restart a job in case of errors.
reg,
P_sonar

Similar Messages

  • How to Run Jar in Background process

    Hi,
    I am develop one application in java,
    I have some problem in my application,
    whats my problem is, I want to run my jar file
    in system background, that is when i was start the system
    my jar gets ready to run the application,
    Can any one please give some idea to how to run my jar in
    background task and how to start the jar when the system
    start.
    Thanks in advance,
    Regards,
    Ganesh Kumar.L

    Hi
    It has been a while since you asked your question- I hope you still need the solution. Java typically does not support this because it is platform specific. I don't know what operating system you are working on. I assume Windows. There are numerous ways to do this in Windows. The easiest is to copy the program into the startup folder. The directory is: C:\Documents and Settings\All Users\Start Menu\Programs\Startup. Another way, less visible to the user, is to make an entry in the registry. If you place the location of the program as data in a key in HKLM\Software\Microsoft\Windows\Current\Version\Run of the registry, it will start with the system. This is hard to do in Java (for obvious reasons) however it is not impossible. You can use JNI which is really difficult to learn and hard to implement or you can use
    Process p=Runtime.getRunTime().exec({"reg.exe","add HKLM..."});This will execute the Windows utility reg.exe with the arguments provided by the second in the array of Strings. Documentation on reg.exe can be found through the command prompt. There are other ways such as modifying Autoexec.bat however they are less reliable
    Hope I helped

  • How to run MIDlet in background in J2ME?

    Hi Friends,
    I am new guy to J2ME and MotoRazr. I just want to run application in background while other application as normal. I am targeting MotoRazr v3xx, MIDP-2.0 & CLDC-1.0.
    In some post I found that we can use "Backgrounf: True" in JAD file, I tried this but it is not working.
    Can someone will help me?
    Thanks
    From
    [email protected]

    Thanks deep,
    But I really searched in forum .... and now also I am searching. But haven't found any solution.
    I just got some keywords like
    1) pauseApp()
    2) display.setCurrent(null)
    3) PushRegistry
    4) MIDlet without UI
    5) in JAD file "Background: True"
    6) Thread
    Can you tell me which should I use?
    My exactly problem is to Run a process in background which will trap key events while other applications are running.
    What do you do suggest?
    Thanks

  • How to run report in background, save output to word or excel

    Hello all,
    I have a huge report that needs to be run in background and I need the report in word. When running in Dialog it takes too long and SAP times out. How do you get something to run in background and have the output in excel. I know you can go into SM37, find the spool and then forward the spool request to a local file, is there an easier way to do it? Maybe setting up some kind of to text printer since the background job always asks for the output printer. Any suggestions?
    Thanks a lot,
    Sergiy

    Hi,
    Please check the article below:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f048c590-31a4-2c10-8599-bd01fabb93d4?quicklink=index&overridelayout=true
    -Vikram

  • How to schedule lsmw in background

    hai all,
               can any one tell me how can lsmw for a transaction can be background scheduled.

    use the program  /sapdmc/sap_lsmw_interface.
    create a variant with your project name, sub project name, etc..
    you can schedule this program for background execution...
    else, can call it from another program..
    just pseudocode...
    L_JOBNAME = some name for job.  "'PURCHASEINFODL'.
      L_SELECTION_SET = your variant name . "  'PURCH_INFO_DEL'.
      CONCATENATE L_JOBNAME SY-UNAME SY-DATUM
            INTO L_JOBNAME SEPARATED BY '_'.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          JOBNAME          = L_JOBNAME
        IMPORTING
          JOBCOUNT         = L_JOBNO
        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.
      ELSE.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
              EXPORTING
    *            DESTINATION = 'KJAT'
                  DESTINATION    = SY-PDEST
                   COPIES         = 0
                   IMMEDIATELY    = ' '
                   RELEASE        = ' '
                   NEW_LIST_ID    = 'X'
                   LINE_SIZE      = '255'
                   LINE_COUNT     = '65'
                   SAP_COVER_PAGE = ' '
                   COVER_PAGE     = ' '
                   RECEIVER       = SY-UNAME
                   NO_DIALOG      = 'X'
              IMPORTING
                   OUT_PARAMETERS = PRINT_PARAMETERS.
        SUBMIT /SAPDMC/SAP_LSMW_INTERFACE
                                USING SELECTION-SET L_SELECTION_SET
                                TO SAP-SPOOL
                                SPOOL PARAMETERS PRINT_PARAMETERS
                                WITHOUT SPOOL DYNPRO
                                VIA JOB L_JOBNAME NUMBER L_JOBNO
                                AND RETURN.
        IF SY-SUBRC = 0.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              JOBCOUNT             = L_JOBNO
              JOBNAME              = L_JOBNAME
              STRTIMMED            = 'X'
            EXCEPTIONS
              CANT_START_IMMEDIATE = 1
              INVALID_STARTDATE    = 2
              JOBNAME_MISSING      = 3
              JOB_CLOSE_FAILED     = 4
              JOB_NOSTEPS          = 5
              JOB_NOTEX            = 6
              LOCK_FAILED          = 7
              INVALID_TARGET       = 8
              OTHERS               = 9.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            MESSAGE ID 'BT' TYPE 'I' NUMBER 156 WITH L_JOBNAME.
          ENDIF.
        ENDIF.
    WHILE BJOB_FINISHED IS INITIAL.
          WAIT UP TO 1 SECONDS.
          CALL FUNCTION 'BP_JOB_CHECKSTATE_SM37B'
            EXPORTING
              DIALOG                             = 'N'
              JOBCOUNT                           = L_JOBNO
              JOBNAME                            = L_JOBNAME
              OK_JOB                             = 0
              NOT_OK_JOB                         = 0
           IMPORTING
    *      STATUS_ACCORDING_TO_DB             = L_JOBSTATUS
              ACTUAL_STATUS                      = L_JOBSTATUS
    *      OK_JOB                             =
    *      NOT_OK_JOB                         =
           EXCEPTIONS
             CHECKING_OF_JOB_HAS_FAILED         = 1
             CORRECTING_JOB_STATUS_FAILED       = 2
             INVALID_DIALOG_TYPE                = 3
             JOB_DOES_NOT_EXIST                 = 4
             NO_CHECK_PRIVILEGE_GIVEN           = 5
             READY_SWITCH_TOO_DANGEROUS         = 6
             OTHERS                             = 7.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            CASE L_JOBSTATUS.
              WHEN 'F'.
                MOVE 'F' TO BJOB_FINISHED.
                MESSAGE I903. " WITH TEXT-R07.
              WHEN 'R'.
                CLEAR BJOB_FINISHED.
              WHEN 'C'.
                MOVE 'C' TO BJOB_FINISHED.
                MESSAGE I904. " WITH TEXT-R08.
              WHEN 'A'.
                MOVE 'A' TO BJOB_FINISHED.
                MESSAGE I904. " WITH TEXT-R08.
              WHEN OTHERS.
                CLEAR BJOB_FINISHED.
            ENDCASE.
          ENDIF.
        ENDWHILE.

  • How to run threads in background

    hi everyone!
    I need some hints on my problem!
    I have an application with some working threads. When the user minimizes the app the app should go to the system tray and the threads should keep working.
    I already know how to put an icon with popup menu in the systray. Now, how can I run the working threads in background?
    Can anybody help me?
    C u,
    Filipe

    I said that because as far I understood the following code it just creates an icon and popup menu, right?
    So, when the user minimizes the app I need to kill it, create the icon and popup menu and leave the threads working.
    public class SystemTrayDemo extends JFrame
         private static final long serialVersionUID = 1L;
         public SystemTrayDemo()
              JPopupMenu menu = new JPopupMenu("Menu");
              JMenuItem menuItem1 = new JMenuItem("Menu1");
              JMenuItem menuItem2 = new JMenuItem("Menu2");
              JMenuItem menuItem3 = new JMenuItem("Menu3");
              JMenuItem menuItem4 = new JMenuItem("Exit");
              menu.add(menuItem1);
              menu.add(menuItem2);
              menu.add(menuItem3);
              menu.add(menuItem4);
              menuItem4.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt) {
                        System.exit(0);
              ImageIcon icon = new ImageIcon("database.png");
              TrayIcon trayIcon = new TrayIcon(icon, "Hello System Tray", menu);
              SystemTray tray = SystemTray.getDefaultSystemTray();
              tray.addTrayIcon(trayIcon);
         public static void main(String[] args)
              try
                   javax.swing.UIManager.setLookAndFeel("com.sun.java.swing. plaf.windows.WindowsLookAndFeel");
              catch(Exception e)
                   System.out.println(e);
              new SystemTrayDemo();
    }}

  • How to run form in Background

    Hi Experts,
    I have created a form and its print program for purchase order. they are assigned to T-code: ME22N through NACE.
    Now i need to run ME22N in both foreground and background.
    If we execute in foreground, it should display the printpreview. for that in ME22N, we have a button for print preview.
    If we execute it in background, it should generate a spool, with out any printpreview. How can we do this....?
    Please some one help me in this regard.
    Thanks in advance.

    In the IMG (SPRO) under materials management -> purchase orders -> messages - > output control -> message types -> define message types
    Set up one message type for print preview.  Set up a different message type for no print preview under fine tuned control.

  • How to run InDesign in background?

    I mean to make InDesign application invisible while processing my script?    

    Which might be a reason to find a different method than indesign.
    This kind of Policy produces 2 things:
    First: They push Mediumsized companys to work illigal or not with indesign at all if they have some special needs which will be only legal by an indesign server.
    Second: They prohibit some external Developments or releases because it would be illigal tu use it.
    Theres no way to start indesign in Background with its own api (this is not 100% for shure but 95% :-)
    It might be Possible but not by VBA or Java, there are some workarounds with VB and c++ but this is a complete different animal.
    However maybe it would be legal using somekind of passive server. Means a timejob on one Computer working a set of data in some directory or Database down. It would not be a real server since the jobs starting itself on the Workstation and not by command from another application.
    Or Make a script which runs in a loop with a time break. In case 1 you have to make your own Atomic.
    But im really not shure how legal that would be. Anyway how legal the split client and Server in the policies by adobe is another animal too.
    Its hard to determine whats a server whats not in many cases.
    lets say you send the data directly to an automated workstation to work on it - is it an Server?
    if the workstation needs a pressing button thing is it or not? In that case you can use a macro keyboard to do this - is it then a server ?
    again i dont not understand this policies since you cannot start a multhithread on indesing workstation anyway it would be unuseable for real server applications. you cannot make a hing like a webservice because its simply to slow and unstable.
    didnt solve our problems but to be honest, im shure bevore a customer with lets say 8 or 9 employes buys a server for 30k he will work illigal (so are back to my beginning post)
    The Question is if indesign is really needed. today i see many prints going out by pdf... so there could be easier ways
    take a look on some report generators like crystal reports. for many needs absoloutly enough

  • How to run apps in background

    I wish to run an application in the background so that it does not show up in (and take up valuable space on) the dock. How do I do this? I've tried setting the "Hide" check box in the account preferences but the app still shows up in the dock.

    what you can do is click the home key 2 and see if the app is open if not just open it and then lock the ipod

  • How to run oli7bw in background??

    Hi all
    I would like to run the oli7bw transaction in background .
    how to do it?
    thanks in advance,
    Jayashree

    Hi,
    Put the selections in, enter a name for the run, enter a setup date and time for the future.  Click on menu option Program --> execute in background.  It will popup print parameter select the ok button> it will give another pop-up for start time.  You can select immediate and the job will be scheduled immediately in the background, or you can select Date/time and give a date & time it should start.
    Cheers..
    PS: I hope you are in the testing phase and not doing it in the live environment.

  • How To Run Process In Background?

    Hi,
    I'm writing a CORBA Server, and basically, I need to spawn a process in the background. The process is:
    tnameserv -ORBInitialPort 1250
    I am new to Java, and am not sure how to go about doing this. Any sample code would be appreciated.
    Thanks!

    You could use a TimerTask - a user friendly way of spawning a Thread.
    For example, the class from which you want to spawn a Thread could have the following lines: -
    Timer timer = new Timer();
    timer.schedule(new MyTimerTask(), 6000, 3000);
    ...where MyTimerTask is a class you write yourself. It must extend java.util.TimerTask and define a method with the following signature: -
    public void run()
    The run method should execute the task that you need performing in the separate Thread.
    In this example, your main class would call the run() method of MyTimerTask after a delay of 10 minutes (6000 miliis) and would then continue to call it every 5 minutes.
    Hope this helps!
    Jon

  • How to run RPUBEN62 in background

    We designed our savings plan as an automatic plan and the business process is to have HR run HRBEN0012 to enroll hires every Monday morning.  However, our HR do not want to run this manual process.
    We tried to put RPUBEN62 on background job, but failed because it performs the 'Call screen 2000.' command in the END-OFSELECTION event in include BEN62E01, and this command causes the program to stop processing and the SAP GUI window is closed.
    We contacted SAP support and was told that RPUBEN62 is designed to run foreground, and we just started contacting SAP to see whether we can convince them to offer background run option.
    Any suggestion?  We do not want to clone the program if possible.
    Thanks.

    Sorry was searching for something else and seen this post, kinda old.
    We created a custom copy of   RPUBEN62, and run on a daily basis in the background. It is possible and saves some work for HR by automatically creating the standard plans for all new employees.
    B~

  • How to run apps in background in IOS5 ?

    hi,
    i use textfree as my ipod touch as my phone. when i get an incoming call, the textfree takes a long time to launch n hence i'm missing the calls. is it possible to run the textfree in background all the time, so the app dont have to launch when i get an incoming call by notification.
    thx

    what you can do is click the home key 2 and see if the app is open if not just open it and then lock the ipod

  • How to run program in background?

    Hi Experts.
    Please tell me wht is the procedure for scheduling a Job in background? I need all steps
    thanks in advance

    Hi,
    You can a schedule a batch job in SM36.
    Steps
    Go to SM36
    Give the job name.
    Give the job class A
    Press Enter.
    Give the abap program name..
    Press save..
    Press F3 to go back to the main screen..
    Press the start condition button..
    Give the date time..
    Check the period job check box..
    Press the period values button..
    In the popup press the daily button..
    Press save..
    Press save..
    Then in the menu..Job -> save..This will release the job..
    Thanks,
    Naren

  • How to run ccastart in background?

    Hi,
    Is there any way to run the ccastart in Linux, so it remains started even when the session that started it, has finished? The idea is that I can login into the server, start the ccastart and close the window I used to started.... Now whenever I close the Xming (which I use to connect to the server), the ccastart stops and the scheduled jobs are not run because of it.
    Environment: OWB 11gR2 (11.2.0.2),
    - Jobs to run mappings successfully working when Xming console opened,
    - When I close my Xming session, and later on I check the Control Center - Scheduled tab, I can see that the jobs are not ok, and the reported error is: CCA-1536: the control center agent is not available, re-start it. Details: error reading application-server descriptor. Error communicating with server. Connection refused.
    Any help will be appreciated.
    Cheers,
    Ana

    Include in start shell (ccastart) -Djava.awt.headless=true
    $JAVA_HOME/bin/java $JAVA64FLAG -Djava.awt.headless=true -Dapi.ext.dirs=$OWB_HOME/owb/lib/ext -Doracle.home=$OC4J_HOME -Doracle.j2ee.home=$OWB_JRT_RUN_HOME -Dpython.path=$OWB_JRT_RUN_HOME/applications/jrt/jython_lib.zip:$OWB_JRT_RUN_HOME/applications/jrt/jython_owblib.jar $JRT_JVM_XOPTS $JRT_JVM_DOPTS $OWB_JVM_OPTS -Xmx896M -jar $OC4J_HOME/j2ee/home/oc4j.jar -config $OWB_JRT_RUN_HOME/config/server.xml >> $LOG_FILE 2>&1 &
    and to start :
    nohup ./ccastart > $FICHLOG 2>&1 &
    cheers

Maybe you are looking for

  • End of loop in FindFirst

    Hello everybody, I should be very interested to know if anybody has already seen such messages. When I launch a FindFirst on an OraDynaset, I see a message with "End of Loop" as a title, and in the text : Ins: 1, BS: 0, BV:0 VS:1 and an OK button. Wh

  • How to get data by using only file name in XI

    Dear All.        I have 2 senarios . How can I configure it in the Configuration? 1. get data from file name (xxx.txt) --> HTTP 2. convert data into text file            --> File Thak you in advance. Au

  • Pywm .. distfiles error

    trying to build a new wm.... but its in python and my knowledge of python is none too grand here is the packagebuild, this all the instaructions in the tarball. Contributor: mpie <[email protected]> pkgname=pywm pkgver=0.1 pkgrel=1

  • Ticker UI Element in Web Dynpro

    Hi All, I have a requirement to display dynamic horizontal scrolling text, (like a ticker). The text is dynamic depending on which section of the form the user is current in and is retrieved from a RFC call. I noticed there is no ticker UI element in

  • Java Engine is NOT coming up == J2EE status info unavailable

    My Java instance is NOT coming up. When I look at the "Dispatcher's" status (from within Management Console), it changes from "J2EE status info unavailable" to 'J2EE: Connecting to message serveru2019, but the instance never comes up. This prevent my