Any means to check the existence of a .pdf file before opening in SAP GUI

Dear,
I've learnt from one of the thread that there is a sample program SAP_PDF_VIEWER_DEMO that allows us to open a .pdf file within a SAP windows.
However, I would like to know if there are any means to perform a checking on the existence of the .pdf file first before calling the method open_document as coded in the demo program.
Thanks a lot for your advise in advance,
Francis

where is this pdf file is ? in user desktop?
if yes you can simply use cl_gui_html_viewer for viewing pdf files. and you can use cl_gui_frontend_service=>file_exists method to check whether the file exists
Raja

Similar Messages

  • How to check the resolution of a pdf file using Acrobat 9 pro?

    How to check the resolution of a pdf file using Acrobat 9 pro?

    PDF files don't have one resolution, but may have none or many different resolutions, one per image. You can check the maximum/minimum resoluion with preflight in Acrobat Pro, but not in Adobe Reader.

  • How to reliably check the resolution for a pdf file?

    Should I use preflight to reliably check the resolution for a pdf file?  I have posted my frustrations on http://forums.adobe.com/thread/978098

    You can create your own preflight tool to check for the dpi of embedded images.

  • I need to reduce the size of several pdf files before transferring them onto a research database. Each file is made up of 100 images (pages of diaries)

    I need to reduce the size of several pdf files before transferring them onto a research database. Each file is made up of 100 images (pages of diaries) & is up to 1.36 GB in size. I have tried reducing file size in preview but the images are unreadable. Any ideas? 

    WHen I want to reduce the file size, I either use "Optimize Scanned PDF", or more often use "Reduce File Size". Both are on the Document menu. The Reduce File Size selection has some limited customization that is used, when selected.

  • File problem - checking the existence of a remote file

    I have absolute paths to several text files from a ftp server (which don't require any
    authentication and can be accessed over the internet).
    I am trying to write a Java method that can check any of the above absolute ftp file
    paths and returns true/false depending on whether the file exists/doesn't exist.
    I tried somewhat this way:
    File current_file = new File(absolute_file_path);
    // absolute_file_path comes as a parameter
    // e.g. "ftp://ftp.test.com/myfile.txt"
    if(current_file.exists()) return true;
    // if the file exists return true
    return false;
    // otherwise return false
    Then I ran the program in my local machine which has internet access. But it returned
    false for all the files (even if the file exists). Seems like it's unable to get those
    files.
    Could someone please tell me how can I rewrite my program so that it can be executed
    locally.
    Thanks,
    SQ

    Does anyone know if URL and URLConnection support FTP
    directly? I can imagine downloads being simple, but
    how about uploads? Never tried with FTP myself.Yes, they do. But uploads don't work properly with Java 1.3. (Note: I only know this because I've seen questions asked about it here, not from personal experience.) If I wanted to know whether a certain file existed on an FTP server, I would use an FTP client that could tell me that. Such as the Jakarta Commons/Net FTP client.

  • How to check the existence of DB400 library from java

    Hi all,
    I actunally need to validate a DB400 library via java. so is there any way to check the existence of DB400 library from java side.
    Thanks in advance.

    Hi Sarvan,
    You might not even need a function to tell you if a record exists or not.
    Here in below example i do a check with exists .you will find couple of other ways too..
    create table t as select * from emp where deptno=10now i set salary of every person present in table 'T' to 1111 in emp table.
    update emp e
    set sal=1111
    where exists
            (select 1
              from t
              where t.empno=e.empno) Remember that plain SQL will always outperform PLSQL.
    Hope it helps
    CKLP
    Edited by: CKLP on Sep 26, 2011 3:41 AM

  • Getting the page size in PDF file

    i want know how do get the page size in PDF file befor placing every page in document
    for example height=297 mm And width=210mm

    This script:
    http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both -pdf-and-indd-files.php
    answers all your questions.
    Peter

  • Is there any FUNCTION I can use to check the existence of a USER?

    Hi,
    Is there any FUNCTION I can use to check the existence of a USER? I dont want to write a function by myself to access usr01 directly.
    Thanks in advance.

    You can use FM USER_EXISTENCE_CHECK
    Thanks
    Seshu

  • How to check the existence of file without any error dialog?

    Hi everybody,
    I am trying update some labview programs from LV6.1 to LV7.1, I used the
    function "File/Dictionary Info" to check if the file
    exists or not (if the size=0 then file does not exist), and it ran well with
    LV6.1, but now it shows every time a labview error dialog
    about "LabView: file not found..." with 7.1, if this file dosn't exist.
    Sometimes I feel that it is really stupid to show the dialog, because I
    can write handling by myself, if the error should be handled, and
    I don't want all the process is interrupted because of such dialogs. Is
    there any way to shut the dialog down or check the existence of
    file smoothly?
    Thanks a lot!
    L.Wang

    Hello,
    The dialog is probably appearing because you have Auto Error Handling turned on.  This feature is turned on by default in LabVIEW 7.0.  You should go to VI Properties (Ctrl-I) > Execution and deselect "Enable automatic error handling".  Also you should go to Tools > Options > New and Changed in LabVIEW 7.x and deselect "Enable automatic error handling in new VIs".  If you never want to see one of those dialogs again, you can also deselect "Enaeble automatic error handling dialogs"...I wouldn't recommend this, however, as you would never know if one of your VIs had this setting enabled...you would only find out once somebody else tried to use your VI on another LabVIEW install.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Any means to print the output from an abap report immediately

    Hi,
    I would like to know if there are any means to print the output of an abap program immediately. Our user wants to execute the program online and once the result list is displayed on screen, user wants the same list to be printed simultaneously without the need to press the 'Print' button.
    Thanks in advance for your help and advises.
    Francis

    Hi
      We can print the list while displaying using NEW-PAGE PRINT ON.
      below is the syntax for this.
         NEW-PAGE PRINT ON [NEW-SECTION]
                    [<params> | PARAMETERS <pripar>]
                    [ARCHIVE PARAMETERS <arcpar>]
                    [NO DIALOG].
    Regards
    Ramanjaneya Reddy.
    [email protected]

  • A "designer" file being worked on a machine, is checked-in regularly, if at any point of time the latest version of that file is taken on the same machine, all the data gets deleted

    A “designer” file being worked on a machine, is checked-in regularly, if at any point of time the latest version of that file is taken on the same machine, all the data gets deleted

    Hi,
    Could you provide us more information to help you?
    If you have resolved the issue, it would be better if you can post the solution here, which will help others.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Any function to check the input value is integer?

    May I know if there's any function to check the input value is integer in Form 4.5?
    Thanks.

    just to add :) - (couldn't resist) :
    create or replace function is_integer ( p_number in varchar2 ) return boolean is
      v_return boolean := true;
      v_number number;
    begin
      v_number := p_number;
      if v_number != trunc(v_number) then
        v_return := false;
      end if;
      return v_return;
    exception
      when others then
        v_return := false;
        return v_return;
    end;
    begin
      if not is_integer(1.1) then
        dbms_output.put_line('is not');
      end if;
      if is_integer(1) then
        dbms_output.put_line('is');
      end if;
      if not is_integer('a') then
        dbms_output.put_line('is not');
      end if;
    end;

  • Is thre any view to check the date & time of switch ovr frm prim to standby

    Hi All,
    Is there any view to check the date and time of switch over from primary to standby.
    Thanks,

    784786 wrote:
    Which parameter of v$database can give us the switchover date and time. Please let me know?
    SQL> desc v$database
    Name                            Null?    Type
    DBID                                  NUMBER
    NAME                                  VARCHAR2(9)
    CREATED                             DATE
    RESETLOGS_CHANGE#                        NUMBER
    RESETLOGS_TIME                         DATE
    PRIOR_RESETLOGS_CHANGE#                   NUMBER
    PRIOR_RESETLOGS_TIME                        DATE
    LOG_MODE                             VARCHAR2(12)
    CHECKPOINT_CHANGE#                        NUMBER
    ARCHIVE_CHANGE#                        NUMBER
    CONTROLFILE_TYPE                        VARCHAR2(7)
    CONTROLFILE_CREATED                        DATE
    CONTROLFILE_SEQUENCE#                        NUMBER
    CONTROLFILE_CHANGE#                        NUMBER
    CONTROLFILE_TIME                        DATE
    OPEN_RESETLOGS                         VARCHAR2(11)
    VERSION_TIME                             DATE
    OPEN_MODE                             VARCHAR2(20)
    PROTECTION_MODE                        VARCHAR2(20)
    PROTECTION_LEVEL                        VARCHAR2(20)
    REMOTE_ARCHIVE                         VARCHAR2(8)
    ACTIVATION#                             NUMBER
    SWITCHOVER#                             NUMBER
    DATABASE_ROLE                             VARCHAR2(16)
    ARCHIVELOG_CHANGE#                        NUMBER
    ARCHIVELOG_COMPRESSION                    VARCHAR2(8)
    SWITCHOVER_STATUS                        VARCHAR2(20)
    DATAGUARD_BROKER                        VARCHAR2(8)
    GUARD_STATUS                             VARCHAR2(7)
    SUPPLEMENTAL_LOG_DATA_MIN                   VARCHAR2(8)
    SUPPLEMENTAL_LOG_DATA_PK                   VARCHAR2(3)
    SUPPLEMENTAL_LOG_DATA_UI                   VARCHAR2(3)
    FORCE_LOGGING                             VARCHAR2(3)
    PLATFORM_ID                             NUMBER
    PLATFORM_NAME                             VARCHAR2(101)
    RECOVERY_TARGET_INCARNATION#                   NUMBER
    LAST_OPEN_INCARNATION#                    NUMBER
    CURRENT_SCN                             NUMBER
    FLASHBACK_ON                             VARCHAR2(18)
    SUPPLEMENTAL_LOG_DATA_FK                   VARCHAR2(3)
    SUPPLEMENTAL_LOG_DATA_ALL                   VARCHAR2(3)
    DB_UNIQUE_NAME                         VARCHAR2(30)
    STANDBY_BECAME_PRIMARY_SCN                   NUMBER
    FS_FAILOVER_STATUS                        VARCHAR2(22)
    FS_FAILOVER_CURRENT_TARGET                   VARCHAR2(30)
    FS_FAILOVER_THRESHOLD                        NUMBER
    FS_FAILOVER_OBSERVER_PRESENT                   VARCHAR2(7)
    FS_FAILOVER_OBSERVER_HOST                   VARCHAR2(512)
    CONTROLFILE_CONVERTED                        VARCHAR2(3)
    PRIMARY_DB_UNIQUE_NAME                    VARCHAR2(30)
    SUPPLEMENTAL_LOG_DATA_PL                   VARCHAR2(3)
    MIN_REQUIRED_CAPTURE_CHANGE#                   NUMBERAre you admitting that after reviewing the content of this VIEW, that you see nothing that might contain the detail you desire?
    The switch over is also logged to alert_SID.log on both Primary & Standby

  • Procedure to check the existence of Indexes

    I have a procedure whcih drops all the indexes, when the same procedure is executed again, it gives error "object does not exists" (obviously)
    I want to avoid this error, how can I check the existence of index inside the procedure, so that the procedure will check if the index exists before deleting the index?
    Is there a ready-made procedure available for such scenario?
    Thanks in advance

    The other approach is to catch the exception in your script, i.e.
    BEGIN
      EXECUTE IMMEDIATE 'DROP INDEX <<index name>>';
    EXCEPTION
      WHEN OTHERS THEN
        -- Drop failed.  Do something to record the failure.
        NULL;
    END;Now, most of the time, you'll want to catch a few specific exceptions and you'll want to do something when you catch them (i.e. generate a log entry).
    Justin

  • Programmatically check the existence of objects in the system

    Hi,
    Is there a way to programmatically check the existence of objects? The idea is I'll accept a list of names of objects and their object types and then programmatically check their existence in the system?
    Can you point me to a resource on how to do it?
    Thanks in advance.
    --Carl

    Hi.
    All custom objects (z, y) being referred to a program. May it be z or y table, data element, domain, sapscript form, function module/group.
    The goal is actually to be able to transport a program from a source machine to a target machine. The objects being referred to from the program must also be transported, of course, for it to run properly. Thus, the need to check the objects' existence.
    Thanks.
    --Carl

Maybe you are looking for