FM to check if PR/PO is open

Hi Guys,
In my development i need to check before processing if a PO/PR document is opened and locked for editing .. can u please tell me if there is a standard FM that can help me?
Thanks and BR,
Cristian

Thanks Dirk,
I used the bellow FMs:
PR:  ENQUEUE_EMEBANE
PO: ENQUEUE_EMEKKOE or MM_ENQUEUE_DOCUMENT
Best regards,
Cristian

Similar Messages

  • Access 2010 checking if a user has opened a zipped rather than expanded database

    Is there a property or method that can be used to detect/ check if a user has opened a zipped copy of a database?
    I distribute a zipped copy of a database and expect users to extract it before using it but some times a user simply opens the zipped copy and later encounters problems. I would like to display a message notifying the user that they must first expand the
    zipped file before opening the database.
    phil kelly

    Maybe this will help.
    Option Compare Database
    Option Explicit
    'See MSDN for more constants: http://msdn2.microsoft.com/en-us/library/ms839432.aspx
    Const CSIDL_APPDATA = &H16
    Const CSIDL_DESKTOP = &H0
    Const CSIDL_PROGRAMS = &H2
    Const CSIDL_CONTROLS = &H3
    Const CSIDL_PRINTERS = &H4
    Const CSIDL_PERSONAL = &H5
    Const CSIDL_FAVORITES = &H6
    Const CSIDL_STARTUP = &H7
    Const CSIDL_RECENT = &H8
    Const CSIDL_SENDTO = &H9
    Const CSIDL_BITBUCKET = &HA
    Const CSIDL_STARTMENU = &HB
    Const CSIDL_DESKTOPDIRECTORY = &H10
    Const CSIDL_DRIVES = &H11
    Const CSIDL_NETWORK = &H12
    Const CSIDL_NETHOOD = &H13
    Const CSIDL_FONTS = &H14
    Const CSIDL_TEMPLATES = &H15
    Const MAX_PATH = 260
    Private Type SHITEMID
    cb As Long
    abID As Byte
    End Type
    Private Type ITEMIDLIST
    mkid As SHITEMID
    End Type
    Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
    Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal pszPath As String) As Long
    Public Function GetProgramFilesFolder() As String
    Const PROGRAM_FILES = &H26&
    Dim objShell As Object
    Dim objFolder As Object
    Dim objFolderItem As Object
    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.Namespace(PROGRAM_FILES)
    Set objFolderItem = objFolder.Self
    Debug.Print objFolderItem.Path
    End Function
    Private Function GetSpecialfolder(CSIDL As Long) As String
    Dim r As Long
    Dim IDL As ITEMIDLIST
    Dim sPath As String
    'Get the special folder
    r = SHGetSpecialFolderLocation(100, CSIDL, IDL)
    If r = 0 Then
    'Create a buffer
    sPath$ = Space$(512)
    'Get the sPath from the IDList
    r = SHGetPathFromIDList(ByVal IDL.mkid.cb, ByVal sPath$)
    'Remove the unnecessary chr$(0)'s
    GetSpecialfolder = Left$(sPath, InStr(sPath, Chr$(0)) - 1)
    Exit Function
    End If
    GetSpecialfolder = ""
    End Function
    Public Sub PrintSpecFolderPaths()
    'KPD-Team 1998
    'URL: http://www.allapi.net/
    'E-Mail: [email protected]
    'Print the folders to the form
    Debug.Print "Start menu folder: " & GetSpecialfolder(CSIDL_STARTMENU)
    Debug.Print "Favorites folder: " & GetSpecialfolder(CSIDL_FAVORITES)
    Debug.Print "Programs folder: " & GetSpecialfolder(CSIDL_PROGRAMS)
    Debug.Print "Desktop folder: " & GetSpecialfolder(CSIDL_DESKTOP)
    Debug.Print "My Docs folder: " & GetSpecialfolder(CSIDL_PERSONAL)
    End Sub
    Bill Mosca
    www.thatlldoit.com
    http://tech.groups.yahoo.com/group/MS_Access_Professionals

  • How to force checked out CSV Files to open in Excel and not in Notepad

    Hi,
    I'm looking for some pointers / direction.
    .CSV files on SharePoint 2010 document library opens up in notepad by default. I did the DocIcon.xml CSV entry, changed the MIME type in IIS and did the IIS reset. Also on client computer CSV file is associated with MS Excel 2013. Now clicking a CSV file
    opens it up in MS Excel.
    Now a user checks out a CSV file and the same user clicks on the CSV file, the file is opening in notepad! If other users clicks on the same checked out file (checked out by the first user) it opens up in Excel for them. I've tried the 'Edit in Microsoft
    Excel' from the pop up menu but with same result.
    How can I force a checked out CSV file to open in MS Excel?
    Thanks

    1. Highlight one of the images and press cmd+i (or right click and select "Get info")
    2. Click the dropdown menu and select Photoshop (you might have to click "Other..." to find it.
    3. Then click "Change All" button below.
    You're going to have to do this with every different TYPE of image (e.g. jpeg, tiff etc) but once you've covered all the types you won't have the problem again.
    Hope this helps!

  • How to check if document is still open

    I have the following problem with Adobe Acrobat Standard 9:
    I have a Java Applet that uses Adobe Acrobat to present documents to the user. The user is able to edit and save the document. When the user closes the document the document is stored in a database and therefore I somehow have to listen for when the document is closed to determine when to save the docuent in the database.
    The "listener" is implemented in a thread that executes every 500 ms. I use a product called Java2COM (NevaObject Technology) to communicate with the Adobe Object-model in Windows. The code to determine if the document is still open has this implementation:
    private boolean isValid() {
         synchronized (READ) {
              if (mDoc == 0) { //mDoc is the document registered in the COMIGlobalInterfaceTable
                   return false;
         boolean valid = false;
         COMIDispatch document = new COMIDispatch();
         COMDispParams params = null;
         COMVariant ans = null;
         try {
              COMIGlobalInterfaceTable.GetInterface(mDoc, document);
              params = new COMDispParams();
              ans = new COMVariant();
              COMExcepInfo exc = new COMExcepInfo();
              document.Invoke("IsValid",
                   COMIDispatch.LOCALE_SYSTEM_DEFAULT,
                   COMIDispatch.DISPATCH_METHOD,
                   params, ans, exc);
              valid = ans.asBoolean();
              } catch (COMException e) {
                   valid = !COM.isComAppAvslutad(e.hresult().getValue());
              } finally {
                   clear(params);
                   clear(ans);
                   release(document);
              return valid;
    A big part of the problem is that I have not managed to reproduce the problem in test mode... the problem occurs (so far) only in production mode.
    Most part of the code above is Java2COM-specific so my main question is this: Is using the method 'IsValid' in Acrobat's COM/OLE-api the correct way to check if a document is open/showed in Adobe Acrobat?

    Yes, but my problem is that I don't know at what point the user closes the document. For example:
    The user creates a new document (pdf) in my Java Applet.
    The Java Applet launches Acrobat Standard which presents a document to the user.
    The user edits the document, saves and then closes the document.
    The document is now to be stored in a document database... and therefore I have to somehow "listen" for when the document has been closed, I can't store it in the database before it has been properly closed.
    So what I do (or try to do) is ask Acrobat Standard if the document is still open in Acrobat Standard by calling its method IsValid in the COM-api. This is done in a thread that executes every 500 ms.
    There may be better ways to achieve this so any suggestion is appreciated.

  • How can I check if a file is opened?

    Hello,
    I have a problem:
    I want to check if a file is existing or not, and if it exists, I want to check if it is opened.
    The following actions should be taken:
    1. File exists => no error message, everything's ok
    2. File does not exist => NO error message, create the file later 
    3. File exists but it is opened => notify user (Ok message)
    4. path does not exist => notify user (Ok message)
    How can I do that? I have problems to check if the file is opened.
    This is what I have done until now:
    Johannes
    LabVIEW 7.1 (!)
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently

    The error checking method is probably the best, most efficient, and cleanest way to do this (only one case structure needed). But here is a somewhat more "rube goldberg" way that does do the job thinking somewhat linearly. If the directory doesn't exist, then the file won't exist. If the file doesn't exist, then it can't be open. So first you check if the directory exists, if it does, check if the file exists, if it does check if it's open. Not a fan of these nested case structures really, but it is a way to do it.
    Message Edited by for(imstuck) on 10-29-2009 07:56 AM
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    file_stuff.PNG ‏10 KB

  • To check whether a file is open or not.

    Hi,
    I am using proc_listpidspath() to check whether a file is open or not by some application.
    It works in Leopard but not in Tiger.
    Can anyone suggest some function or solution so that i can check whether a file is open or not in Tiger.
    thanks.

    PersianKamran wrote:
    if i create a file
    File f = new File("path");
    f.createNewFile();
    Now i have created this file.. but i havent wrote any thing to it.. how can i determine that whether this file is empty or not..[Read the fine manual|http://java.sun.com/javase/6/docs/api/java/io/File.html#createNewFile()]
    Atomically creates a new, empty file named by this abstract pathname if and only if a file with this name does not yet exist. The check for the existence of the file and the creation of the file if it does not exist are a single operation that is atomic with respect to all other filesystem activities that might affect the file.
    Returns:
    true if the named file does not exist and was successfully created; false if the named file already exists So if it returns true, then the file is created and empty.
    Secondly, once i write some thing to file.. how can erase all the data from file ?deleting it will get erase the file and return you to the state you started from.
    Iif you don't want to create a new file, don't use the createNewFile() method and use the new FileOutputStream/close approach rather than the createNewFile()/delete() pair as already described in this thread.

  • HTML links from Full Check Accessibility report do not open the corresponding PDF links

    I regularly generate full Check accessibility reports for the PDF user guides I create in MSWord. However, when I click the links in the HTML file/report generated, they are supposed to link/highlight the corresponding errors in the PDf file. Instead, I get an error message that "There was an error opening this document. Bad parameters."
    How can I get the links to work so I know which section in my PDF has the error (inaccessible items).
    Thanks

    I understand you are creating HTML reports and then using them to find errors/view the PDFs. 
    Is this a new problem or  have you always had problems with the links?  If it's a new problem, what has changed on your system?
    Can you view other PDFs in your browser? 
    Have you moved any of the files since you created the report -- as you may know the HTML report references a specific lcoation on your hard drive and if you moved the PDF after creating the report, it may not be able to find the file.

  • 2013 Excel WFservlet.xls check exports to Excel and opens blank Windows 7 Ent

    HI All,
    I am trying to work through an issue involving an online check through Accounts payable downloading to a blank Excel document. If the user saves the file it opens as it should but if she chooses to open it, it opens blank. If I go to View>Arrange
    All> leave the Tile selected (basically do nothing but click OK) and click OK it opens. I have done an Office repair with no luck and also a complete uninstall then used the office removal tool then reinstalled with reboots in-between and still no change.
    This computer is on a domain and I can get the check to export to excel without any issues on another computer so I know it's not her roaming profile. I can get it to work on my machine and others as me, admin and her but on her machine no luck. I have opened
    IE settings on her machine and a working machine and matched the settings exactly as well as Excel settings. I have started Excel in safe mode and exported but no luck. I have disabled all add ins in excel and added the site to compatibility settings and trusted
    sites in IE. I reset the browser and deleted history with all options selected.
    In the beginning I was receiving the error "The file format and extension of ".xls" don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyway?" I checked the following
    In Windows Explorer Tools > Folder Options > View tab > made sure "Hide extensions for known file types" was unchecked.
    I also did
    Open your Registry (Start -> Run -> regedit.exe)
    Navigate to HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\OFFICE\12.0\EXCEL\SECURITY
    Right click in the right window and choose New -> DWORD
    Type “ExtensionHardening” as the name (without the quotes)
    Verify that the data has the value “0″
    No luck.
    If I log into the computer as local admin or my domain account it still opens blank.

    HI All,
    I am trying to work through an issue involving an online check through Accounts payable downloading to a blank Excel document. If the user saves the file it opens as it should but if she chooses to open it, it opens blank. If I go to View>Arrange
    All> leave the Tile selected (basically do nothing but click OK) and click OK it opens. I have done an Office repair with no luck and also a complete uninstall then used the office removal tool then reinstalled with reboots in-between and still no change.
    This computer is on a domain and I can get the check to export to excel without any issues on another computer so I know it's not her roaming profile. I can get it to work on my machine and others as me, admin and her but on her machine no luck. I have opened
    IE settings on her machine and a working machine and matched the settings exactly as well as Excel settings. I have started Excel in safe mode and exported but no luck. I have disabled all add ins in excel and added the site to compatibility settings and trusted
    sites in IE. I reset the browser and deleted history with all options selected.
    In the beginning I was receiving the error "The file format and extension of ".xls" don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyway?" I checked the following
    In Windows Explorer Tools > Folder Options > View tab > made sure "Hide extensions for known file types" was unchecked.
    I also did
    Open your Registry (Start -> Run -> regedit.exe)
    Navigate to HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\OFFICE\12.0\EXCEL\SECURITY
    Right click in the right window and choose New -> DWORD
    Type “ExtensionHardening” as the name (without the quotes)
    Verify that the data has the value “0″
    No luck.
    If I log into the computer as local admin or my domain account it still opens blank.
    The file will open in Chrome but I am wondering if that's because Chrome downloads the file as if I choose to save the file opens fine. I am going to run the OffCAT will post my findings.
    Thank you!

  • How do I prevent firefox from automatically opening the plugin checker page every time I open the browser because it is damned annoying?

    I don't like being bothered with pages I am uninterested in opening automatically. It's not a service, it's an annoyance. I want to open my home page, not pages of ANY kind that your browser wishes to open for me. Adblocker doesn't seem to work on this plugin checking page. I do not approve of your browser hijacking my system-I decide what pages get opened, not firefox.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Setup system check says internet explorer is open when it's not

    When I get to the setup screen (for the trial version of Illustrator), the first thing is system check. It says my internet explorer is open, and it's not. I've closed all programs that use internet including all of my antivirus and spyware, my vista sidebar, etc. I've opened task manager, gone into processes and tried to end the internet processes but they show up a second later. They just won't close! I've messed with my automatic startup programs, and that didn't work either. I've taken my ethernet cable out and tried that. Nothing works. Anybody know what's going on?

    Does the performance tab of Task Manager show abnormally high CPU usage even when you have nothing running?
    You might have some piece of malware doing nasty stuff. What's showing up as iexplore.exe in Task Manager is probably not Internet Explorer at all.
    Update all your antivirus and spyware definitions and run thorough scans.
    Do a Google search with keyphrase 'internet explorer constantly running,' and you'll turn up some discussions with links to malware removal tools.

  • A checked checkbox is rendered as unchecked in default pdf viewer of firefox. It is checked when the pdf is opened with adobe.

    I am using DynamicPDF to render a PDF. There are multiple check boxes which are checked. When the PDF is opened in Firefox, none of the check boxes are checked. However, when I save the PDF and open with Adobe, check boxes are checked. There might be a problem with the Firefox built in PDF viewer as the built in PDF viewer for other browsers work fine.

    Current Firefox versions have enabled a built-in PDF Viewer that doesn't have all features that other PDF readers like the Adobe Reader have or may not function properly otherwise.
    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use another application like the Adobe Reader or set to Always Ask in "Firefox > Options/Preferences > Applications".
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to disable the build-in PDF viewer.
    You can check the value of the plugin.disable_full_page_plugin_for_types pref on the about:config page and remove the application/pdf part if present or reset the pref to the default via the right-click context menu if you want to display PDF documents in Firefox with another application (i.e. not the built-in PDF Viewer).
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

  • Recordstore- check existance of records without opening?

    Hello all
    This might be a really daft question but:
    Is is possible to check a the existance of records in a RecordStore without actually opening the Store?
    I would have thought not, but...
    I have just read that opening and closing RecordStores can take a long time therefore on opening my prog I would like to be able to check to see if the Store has anything in, without actually opening it.
    Thanks
    Dan

    BlueNeelu
    Please don't post in old threads that are long dead. This question was asked more than 2½ years ago. Do you really think that DanielFoord was waiting all this time for you to come and answer it, do you?
    I'm locking this thread now.
    db

  • Checking if JDeskTopPane has an opened Window

    Hey, I need to check whenever a user close the DesktopPane if it has an opened window, and if it has, then display a message box... Its quite a simple, but i still dont know how to do it..;)
    Ice

    There is a getSelectedFrame() method in JDesktopPane. This should return null if there is no selected frame. Although, this doesn't guarantee that there are no open windows, it's a pretty good indication. Also, you can try getAllFrames() and check the length of the array. You will have to fiddle around with these to get a definitely correct answer. A window that isn't visible will still show up as being in the JDesktopPane, which may not be what you want.
    Hope this helps,
    m

  • TS2709 I've check my port 3689 is open and I'm still receiving an error

    I'm receiving the error message that Apple TV cannot communicate with my iTunes account.  I've check my port settings and still receive the error.  Please help!

    the port needs to be open in the computers firewall
    and in your router too

  • How to check if a file is open

    I have a file (Test.doc) that is currently opened in my WindowsXP OS.
    How can I check from my java code if the file is opened or not? Is there any posibility?

    http://forum.java.sun.com/thread.jspa?threadID=5197544&messageID=9781245

Maybe you are looking for

  • IPhone no longer recognized and won't charge via USB on desktop machine

    I can get it to charge on my car charger but can't seem to sync with my G5 anymore. Swapped cables - still no joy. Any help?

  • Adding Date to Column Header

    Hi I'm having some issues getting a date into a column header for a tab report I am creating. this thread Re: sysdate in region header suggested using a hidden item and having a pl/sql function body and including the item in the header. So I set the

  • Can't drag jpegs to timeline - File not supported??

    Hello, installed trial version of Premier 8, and have purchased PSE8.  When setting up a new movie in Premier, the Organize pane correctly shows all my jpegs from the PSE8 catalog, but when I try to drag one or several to the timeline (were it says "

  • Can't see or use partition

    When i start bootcamp, i can make a partition +/- 60 mb, put de Win cd in and restart, no bootable bootcamp partition on the grey startup screen, only OS X There is however an bootcamp icon of de HD. Tried several times, deleting the partition again

  • Dynamic dropdown based on user selection of another dropdown on the same page

    hi all, ok, I have a table which contains use data, a name, and a userID. for the example lets say "Simon Bullen" and my userID is "999". on a form I have, there is a dropdown box, which is dynamic from this table, and allows me to select Simon Bulle