Checking for running programs using a abap program

Is there a way in ABAP to detect from within a program that another process is running the same program? Meaning if PROG1 is running, could PROG1 check to see if another process is running program PROG1?

Use the locking concept.   You can either create your own, or a popular one to use is ESINDX, passing parameters: relid 'ZZ', SRTFD program name, and SRTF2 = 0. 
The logic is:
Attempt to get lock (FM ENQUEUE_ESINDX, perhaps).
If lock got -> run program
If lock not got -> quit.
You have to put this logic at the start of your program.
matt

Similar Messages

  • Extended Program check for multipl programes in single run

    Hello All,
    I wan to do the syntax check for multiple programs at single execution run.
    SAP has provided SLIN transaction for single program, Is there any SAP standard transaction similar as SLIN for multiple program check at single execution run?
    Thanks,
    Feroz.

    >
    s feroz wrote:
    > I need it in R/34.6b version.
    I don't think you have much option there

  • Bypass check for this program only

    Hi FI Masters,
    i have a zprint prog ex : ZRFFOZA_H2H. i copied this prog and given a transaction(ZRFFOZA_H2H_FI   tcode : ZFI_H2H ) and run to see the results where it works fine.
    but....
    payment method can be linked to only one print program and in this test case payment method M is linked to ZRFFOZA_H2H, so now the problem is that the new transaction code ZFI_H2H is built on program ZRFFOZA_H2H_FI and the system refuses to run. 
    when i see the message it shows like this...
    The list of payment methods (M) may only be processed by other payment medium programs.
    now how can i bypass this check for this program only?
    can i have some info please....
    Thanks,
    pasala.

    hi FI masters,
    to be more clear to the above quetion,
    i have 2 zprog for the Payment run
    for the Payment method 'M' i have z prog ZRFFOZA_H2H which is configued
    again i have made a copy of above prog to ZRFFOZA_H2H_FI  and run the payment run for the Payemnt method 'M'.
    Now it gives me a message : Payment method(s) are not allowed for this program.
    since below copy prog not configed we get this message.
    NOW : What can i do to bypass this check for this program only
    can i have some info pls?
    thanks again,
    pasala.

  • Syntax check for inactive programs(object)

    I am having some program in internal table now i have to do syntax check for the programs, actually I can use SLIN but SLIN will not do Syntax check if the object is not active, is there  any way that I can check for many programs one after the other.

    Hi Vikram,
    USe the transaction SAMT.
    Please flooow the link below it will solve u r pblm.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40c62223-639e-2a10-dd9a-b1dd9af73aeb
    Thanks

  • Authorisation check for Object F_BL_BANK using transaction F110

    Hi
    Can you help me with transaction F110. The object F_BL_BANK has been linked on SU24 to transaction F110.  It has also been set for Check/maintain.
    There is no authorisation check for this object using F110.
    How can we resolve the issue.

    Hi
    We are on 4.6
    I linked the object but the program is not doing an authority check The F_BL_BANK object has the following linked to it
    .  .     .  Check          F_BKPF_BUP Accounting Document: Authorization for Posting Periods   
    .  .  .     Check/maintain F_BL_BANK  Authorization for House Banks and Payment Methods        
    .  .     .  Check          F_KNA1_APP Customer: Application Authorization                      
    .  .     .  Check          F_KNA1_BED Customer: Account Authorization                          
    .  .     .  Check          F_KNA1_BUK Customer: Authorization for Company Codes                
    .  .     .  Check          F_KNA1_GEN Customer: Central Data                                   
    .  .     .  Check          F_KNA1_GRP Customer: Account Group Authorization                    
    .  .     .  Check          F_LFA1_APP Vendor: Application Authorization                        
    .  .     .  Check          F_LFA1_BEK Vendor: Account Authorization                            
    .  .     .  Check          F_LFA1_BUK Vendor: Authorization for Company Codes                  
    .  .     .  Check          F_LFA1_GEN Vendor: Central Data                                     
    .  .     .  Check          F_LFA1_GRP Vendor: Account Group Authorization                      
    .  .     .  Check          F_PAYR_BUK Check Management: Action Authorization for Company Codes 
    .  .  .     Check/maintain F_REGU_BUK Automatic Payment: Activity Authorization for Company Code
    .  .  .     Check/maintain F_REGU_KOA Automatic Payment: Activity Authorization for Account Type
    .  .     .  Check          PLOG       Personnel Planning                                       
    .  .     .  Check          P_ABAP     HR: Reporting                                            
    Ther are more objects but these are the key ones The object also has a custom object in that was build by SAP called ZLSCH      Payment method  We want the system to do a check on the payment method

  • Could not execute auto check for display colors using command /usr/bin/X11/

    Hello,
    In a work trying to install ORACLE 11gR2 software in AIX 5.3,
    export DISPLAY=local_IPXXX:0.0
    xclock
    it works, can see the clock.
    then go to dowloaded oracle, run
    /xxx/11g203_AIX64_5L/database-> ./runInstaller
    Your platform requires the root user to perform certain pre-installation
    OS preparation. The root user should run the shell script 'rootpre.sh' before
    you proceed with Oracle installation. rootpre.sh can be found at the top level
    of the CD or the stage area.
    Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle
    installation.
    Answer 'n' to abort installation and then ask root to run 'rootpre.sh'.
    Has 'rootpre.sh' been run by root? [y/n] (n)
    y
    Starting Oracle Universal Installer...
    Checking Temp space: must be greater than 190 MB. Actual 7470 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 6144 MB Passed
    Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/bin/X11/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
    Some requirement checks failed. You must fulfill these requirements before
    continuing with the installation,
    Continue? (y/n) [n] n
    User Selected: No
    any idea to fix?
    thanks a lot in advance

    thank you for response
    in log, it shows
    Using paramFile: /xxx/11g203_AIX64_5L/database/install/oraparam.ini
    Checking Temp space: must be greater than 190 MB. Actual 7194 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 6144 MB Passed
    Checking monitor: must be configured to display at least 256 colors Failed <<<<
    >>> Could not execute auto check for display colors using command /usr/bin/X11/xdpyinfo. Check if the DISPLAY variable is set.
    Some requirement checks failed. You must fulfill these requirements before
    continuing with the installation,Continue? (y/n) [n]
    User Selected: No
    Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2012-09-17_04-08-40PM/installActions2012-09-17_04-08-40PM.log
    ~
    --so nothing new as screen shows.
    --ok, anonther way, say yes, shows..
    continuing with the installation,
    Continue? (y/n) [n] y
    Ignoring required pre-requisite failures. Continuing...Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-09-17_04-00-30PM. Please wait ...xxxx:/xxx/11g203_AIX64_5L/database-> Exception in thread "main" java.lang.NoClassDefFoundError: sun.awt.motif.MToolkit (initialization failure)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:130)
    at java.awt.Toolkit$2.run(Toolkit.java:864)
    at java.security.AccessController.doPrivileged(AccessController.java:192)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:847)
    at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:484)
    at com.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:249)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
    at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:135)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:163)
    at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1812)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:510)
    at oracle.install.commons.util.Application.startup(Application.java:780)
    at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:165)
    at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:182)
    at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:348)
    at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:124)
    at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:155)
    Edited by: 951932 on Sep 17, 2012 2:12 PM

  • Could not execute auto check for display colors using command /usr/

    I am trying to Install Oracle 10g R2 on Solaris X86 32 bit
    I am connecting to system from my windows vista laptop through putty... I get the following error...
    $ ./runInstaller
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be 5.10. Actual 5.10
    Passed
    Checking Temp space: must be greater than 250 MB. Actual 1214 MB Passed
    Checking swap space: must be greater than 500 MB. Actual 1799 MB Passed
    Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/openw
    Some requirement checks failed. You must fulfill these requirements before
    continuing with the installation,at which time they will be rechecked.
    Continue? (y/n) [n] n
    User Selected: No
    Exiting Oracle Universal Installer, log for this session can be found at /tmp/Or
    I have done the following:-
    # DISPLAY=192.168.1.133:0.0; export DISPLAY
    # echo $DISPLAY
    192.168.1.133:0.0
    # xhost+
    xhost+: not found
    # xclock
    xclock: not found
    I know that I have to do the following:-
    1. Install SUNWxwplt package ========> Is already Installed
    2. Set DISPLAY variable
    3. Execute xhost + on target (set in DISPLAY) computer
    # pkginfo -i SUNWxwplt
    system SUNWxwplt X Window System platform software
    Some sites claim xming and some xwindows etc.... Plz give me a step by step instruction as how to overcome this..
    bash-3.00# /usr/openwin/bin/xclock
    Error: Can't open display:
    bash-3.00# DISPLAY=192.168.1.133:0.0; export DISPLAY; echo DISPLAY
    DISPLAY
    bash-3.00# echo $DISPLAY
    192.168.1.133:0.0
    bash-3.00# /usr/openwin/bin/xclock
    Error: Can't open display: 192.168.1.133:0.0
    bash-3.00# pwd
    bash-3.00# find . -name xhost
    ./usr/openwin/bin/xhost
    ^C
    bash-3.00# /usr/openwin/bin/xhost +
    /usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
    bash-3.00#
    # echo $PATH
    /usr/sbin:/usr/bin
    I have also gone through the below ... but was not of much help
    Unable to execute runInstaller: Check if the DISPLAY variable is set
    Plz help
    Edited by: [email protected] on Feb 11, 2009 5:16 AM

    bash-3.00# echo $SHELL
    /sbin/sh
    bash-3.00# echo $DISPLAY
    bash-3.00# DISPLAY=192.168.1.133:0.0;export DISPLAY
    bash-3.00# echo $DISPLAY
    192.168.1.133:0.0
    bash-3.00# /usr/openwin/bin/xclock
    Error: Can't open display: 192.168.1.133:0.0
    bash-3.00# man xclock
    No manual entry for xclock.
    bash-3.00# /usr/openwin/bin/xhost +
    /usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
    bash-3.00#

  • I wan't update using itunes, i want to make update using my phone, but when check for an update using software update in setting message appear " can't check for update....."?

    i wan't update using itunes, i want to make update using my phone, but when check for an update using software update in setting message appear " can't check for update....."?

    Reboot the device and see if the error happens again. Updating through iTunes is usually optimal, but the file size differs via Software Update on the device and iTunes (50MB vs ~800MB)

  • Check system for running program

    Hello,
    I'm putting together a java application that is supposed to lunch another program (matlab). However I need to first check to see if the program has been started from outside my java application. Is there any way to queery the system to find out if there is a program running.
    I'm working in the windows environment
    Thanks,
    Michael
    [email protected]

    Thanks for the hints, I'm now trying to query the windows Task manager to find out if there is an active copy of the matlab application running.
    On your suggestion to check for a matlab API, I have looked into thier supported API functions but they are all beta and rather buggy.
    Thanks,
    Michael

  • Log for running programs

    Given a program name, is there a way for me to check if it has already been executed?
    There is a number of conversion programs that are recommended by SAP to run after upgrade and I would like to aviod running them twice for fear of negative impact.

    Hi Jeremy,
    Hope you can check it through the Table CDHDR or CDPOS with the Transaction name or Use the Transaction RSSCD100 and give the appropriate Object Class and check for the Execution date if it has created/Change entry done before.
    Hope it solves your query.
    Regards
    Andrew
    Edited by: Andrew J on Jun 5, 2009 3:11 PM

  • Cannot write the suitable source codes for running program

    I want to write a program that help student to compile program and run program by using some test cases. For the compiled part, i have been wrote it successfully, but for the run part, i cannot pass the test cases to the program for running. Could any ppl help me to find the problem on the followng codes, why the error will on there? how do i change it? Thanks!
    //<!--start get Program Test Case File-->
    java.io.BufferedReader TestCaseBuf = null;
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:compas", "sa", "password");
    stmt = con.createStatement();
    String strSQL = "SELECT testValue FROM TEST_CASE WHERE progID='"+progID+"'";
    stmt = con.createStatement();
    rs = stmt.executeQuery(strSQL);
    try
    while (rs.next())
    TestCaseBuf = new java.io.BufferedReader(new java.io.InputStreamReader(rs.getBinaryStream("testValue")));                         
    finally
    if (rs != null)
         rs.close();
    if (stmt != null)
         stmt.close();
    //<!--end get Program Test Case File-->
    //<!--start run program -->
    String[ ] args2 = new String[ ]
         "java", "-cp", System.getProperty("user.dir"), FileName
    try
         Runtime rt = Runtime.getRuntime();
         Process proc = rt.exec(args2);
         java.io.BufferedReader ireader = new java.io.BufferedReader(new java.io.InputStreamReader(proc.getInputStream()));
         java.io.PrintWriter pwriter = new java.io.PrintWriter(proc.getOutputStream());
    String atestcase = null;
         String line= null;
         try
    while ((atestcase = TestCaseBuf.readLine()) != null) <------------I found that error seems on here!!!!
         pwriter.write(atestcase+"\r");
    pwriter.flush();     
    if (atestcase != null)
              if ((line = ireader.readLine()) != null)
              FileOutput = FileOutput + line +"\r\n";
    else {break; }
         } //while
         catch (java.io.IOException e)
         out.println("[IOException]. Printing Stack Trace");
         e.printStackTrace();
         pwriter.close();
         ireader.close();
    catch (java.io.IOException e)
    out.println("[IOException]. Printing Stack Trace");
    e.printStackTrace();
    //<!--end run program -->

    Whats the error message??
    Just a guess, but could be (without seeing the error) that you've already closed the TestCaseBuf reader by closing the result set, hence when you go to read it, you're reading on closed reader.
    Give this a go...Put the //<!--run program --> code into the result set while loop
    while (rs.next())
    TestCaseBuf = new java.io.BufferedReader(new java.io.InputStreamReader(rs.getBinaryStream("testValue")));
    //<!--start run program -->
    ...some code
    //<!--end run program -->
    } Hard to tell without the error message

  • Authorization check for a program/table

    Hi ,
    Can anyone help me out in
       How to do authorization check for an abap program and also a table.
       I have no idea about the authorizations.
    My requirement is that I need to do the authorization check in such a manner that only users having a certain profile
    1. should be able to execute the program
    2. View of the entries of the table.
    Thanks & Regards,
    Keerthi

    Hello Keerhi ,
    I got you wrong at first!
    If you want to have only certain users to be able to do certain operations, then you need to assign the appropriate roles to those users!
    First find the role
    second add the user in the role ( PFCG T code---> USers tab)
    Raj

  • I'm getting a pop up from incfinance.cz.cc it wants to perform a check for malicious programs

    My new Ipad has locked up on safari.  A pop up says that your computer contains a variety of suspicious programs.  your system requires immediate checking.  The system will perform a fast and free check your PC for malicious programs.  Incfinance.cz.cc is the listed url 
    Looks like a virus to me help!!

    DO NOT try to scan, it won't work anyway and you do not have a virus as getting a virus on an iPad is pretty much impossible.  To close this screen in Safari, click on the double box and all open Safari pages will show up and you just tap the x over the offending page and the page will close.  Or, go to settings and clear the cache.  If none of this works, reboot your iPad by holding the power and home buttons at the same time for at least 10 seconds until the Apple Logo appears, then let go.

  • How to check for Web Srvice Timeout in ABAP Proxy call

    I am calling a web service in my ABAP program using ABAP proxy. The code is as under:
    TRY.
          y_v_request-mt_request-yaskkey   =  y_l_matnr. 
          y_v_request-mt_request-maktx      =  y_l_maktx.
          y_v_request-mt_request-ymtart     =  y_l_mtart.
          CALL METHOD y_v_prxy->execute_synchronous
            EXPORTING
              output = y_v_request
            IMPORTING
              input  = y_v_response.
        CATCH cx_ai_system_fault INTO y_v_fault.
          y_v_message = y_v_fault->errortext.
      ENDTRY.
      y_l_ycod = y_v_response-mt_response-answer.
    1. Is there is any way to know that the called web  service has timed out ?
    2. Is it possible to check for the time spent in the  call if it is more then say 500 sec then it should be considered as timeout?
    Any help will be appreciated.
    Thanks in advance

    Hi Subbu,
    you can catch CX_AI_SYSTEM_FAULT.
      DATA:   lo_sys_exception  TYPE REF TO cx_ai_system_fault,
    l_error_text type string.
    CALL METHOD ...
    CATCH cx_ai_system_fault INTO lo_sys_exception.
    l_error_text = lo_sys_exception->errortext.
    You can configure XI timeout parameter (for shure in SMICM / Parameter and, if i remeber right, as profile parameter in XI administration).
    Regards,
    Udo
    Message was edited by: Udo Martens

  • Checking for running applications on remote machines

    I am trying to check for application running on remote machine - it could be LV or some other application.
    I have Server and Client applications (developed in LV) running as .exe on separate computers. Only LV-Runtime is installed. They exchange data via Datasockets. The problem I have is that if Client is launched before the server the (Client) takes ownership of certain sockets which causes Server to fail on startup. All the remote Clients have to be shotdown before Server can be started again properly.
    I was wondering if anyone has run into a similar problem.

    Hi Slawek,
    I would suggest using Remote Front Panels in LabVIEW. Remote front panels allow you to view and control a VI front panel remotely, either from within LabVIEW or from within a web browser, by connecting to the LabVIEW built-in web server. There is a tutorial Developer Zone: Remote Panels in LabVIEW -- Distributed Application Development that will provide you with more information.
    Also, there are example programs in LabVIEW that walk you through how to programmatically connect to a remote front panel. Go to LabVIEW >> Help >> Find Examples >> Networking >> General >> RemotePanelMethods-Client/Server.vi.
    Hope
    this helps and good luck!
    Kileen C.
    Applications Engineer
    National Instruments

Maybe you are looking for

  • I forgot the backup encryption password in iTunes how can I get my backup data back?

    I forgot the backup encryption password in iTunes how can I get my backup data back?

  • Converting date

    Hi all. I need to convert date type dd.mm.yyyy into dd month yyyy, e.g. 07.09.2000 into 7 september 2000 Is there any function module for this operation? TIA, Nikolai

  • IOS8 install

    The iOS8 install killed my Mini!! All I get is the Apple Logo or the iTunes logo with a photo of the usb cord.  I even tried restoring the ipad on iTunes connected to the computer and that FAILED!!! Any suggestions?

  • Session killed

    Hi All, I am executing a package while executing the package I am getting the following error. ORA-00028: your session has been killed I have logged off from data base and logged in again then also I am getting same error. Could you please help me to

  • FM or BAPI to update custom fields in Excise invoice header (J_1IEXCHDR) table

    Dear friends, I have created the following custom fields in standard table J_1IEXCHDR (Excise invoice header detail), 1) ZZKURRF - Exchange rate 2) ZZWAERK - SD Document Currency Is there any BAPI or Function module to update these Custom fields of E