Opening files thru ALV using CL_GUI_FRONTEND_SERVICES-EXECUTE

Hi Friends,
I have a report where i will display, invoices and its respective documents in form of alv, so i have a column which will tell the user to click(as a hyper link), and upon clicking that i want to use CL_GUI_FRONTEND_SERVICES=>EXECUTE
but my doubt is can i open files which are stored in some share drive.
can i achieve this using CL_GUI_FRONTEND_SERVICES=>EXECUTE???
does this GUI frontend services execute method be able to open a file which is in a shared folder.
Pls let me know.
Thanks,
Simha
Edited by: Simha on Jun 16, 2008 11:50 AM
Edited by: Simha on Jun 16, 2008 11:51 AM
Edited by: Simha on Jun 23, 2008 9:43 AM

Hi ,
Hope this will be helpful.
CALL METHOD cl_gui_frontend_services=>execute
      EXPORTING
   document               =
        application            = l_app            " path of the file
        parameter              = l_param        " Path file name.
   default_directory      =
   maximized              =
   minimized              =
   synchronous            =
   operation              = 'OPEN'  " mode
EXCEPTIONS
   cntl_error             = 1
   error_no_gui           = 2
   bad_parameter          = 3
   file_not_found         = 4
   path_not_found         = 5
   file_extension_unknown = 6
   error_execute_failed   = 7
   synchronous_failed     = 8
   not_supported_by_gui   = 9
   others                 = 10
Thanks & regards,
Ravi Sankar.Z

Similar Messages

  • Using CL_GUI_FRONTEND_SERVICES- EXECUTE to open excel

    Is there a way to get EXCEL to run a macro when you open it using CL_GUI_FRONTEND_SERVICES? I have seen no documentation about the options of this method.
    Thanks

    hi,
    Get the filename using the CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DAILOG
    Using OLE run the macro using below code
    CREATE OBJECT h_excel 'EXCEL.APPLICATION'.
    call method of h_excel 'WORKBOOKS' = h_mapl.
    set property of h_excel 'VISIBLE' = 0.
    call method of h_mapl 'OPEN'
    EXPORTING
    #1 = d_file.
    CALL METHOD OF H_EXCEL 'ActiveWorkbook' = h_book .
    CALL METHOD OF H_book 'Activesheet' = H_sheet .
    CALL METHOD OF h_excel 'RUN'
    EXPORTING
    #1 = ld_macro.

  • Print PDF using CL_GUI_FRONTEND_SERVICES = EXECUTE

    I have a requirement to print pdf which is stored in my local drive, I am able to print the pdf using method EXECUTE of CL_GUI_FRONTEND_SERVICES, but the problem is, after printing, a adobe page is opening, which client does not want..
    So could anyone suggest me to how to resolve this issue.
    Thanks in advance.
    Regards,
    Harsha

    I belive there is something in ADOBE settings
    Please have a look.

  • How can I change the default "file type" in the open file dialog when using Firefox on certain web pages?

    I work for a bankruptcy attorney. We use the Court's file upload to file our documents. When I am on the Court's site and I have to pick a file to upload, the "open file" dialog box pops up. In Firefox, the default "file type" is always "image" files. I need it to be "all files". How can I change this setting?

    Two observations.
    First — "Tools-> ...." is specific to Acrobat X and XI. It did not exist prior to Acrobat X.
    Second — Acrobat 9 Pro / Standard (nor earlier release) does not support viewing a PDF page containing a scanned image and performing a right-click  ... Save Image As. 
    The context menu provided by Acrobat 9 Pro with a right-click on a scanned image is:
    The context menu,from a right-click with the TouchUp Object tool selected, for Acrobat 9 Pro is:
    So, to paraphrase what Paul Harvey used to say ... What's the rest of the story?
    Be well...

  • Unable to open file in emulator using Connector.open()

    This is my code (run on emulator) used to open a file located in the dir: C:\WTK25\appdb\DefaultColorPhone\filesystem\root1
    /**************************************CODE***********************************/
    FileConnection fileConn = (FileConnection)Connector.open("file:///root1/" fileName, Connector.READ);
    if(!fileConn.exists())
    System.out.println("File not found");
    else
    System.out.println("File opened");
    /**************************************CODE***********************************/
    I always get the o/p as "File Not Found" although there exists a .txt file in the directory /root1. What is to be done to open file on emulator? Please give suggestions...
    Message was edited by:
    Chintan.Kanal
    Message was edited by:
    Chintan.Kanal

    i m not sure but i hope this one is right 4 u......
    StringBuffer buff = new StringBuffer();
    InputStream istr = getClass().getResourceAsStream("/CLM.txt");
    for(int i=0 ; ; i++) {
    try {
    if(istr != null) {
    someByte = istr.read();
    if(someByte == -1) {
    buff.append("*");
    clmcontent = buff.toString();
    break;
    buff.append((char)someByte);
    } else {
    // do some necessary
    } catch(IOException ioe) {
    }

  • Why I can not open "open file" dialog when using FileNameGet?

    For my script, I tried to open file using FileNameGet, but it doesn't work,what's wrong with this script?
    Call WndShow("SHELL", "Normal")
    Call  SUDDefLoad("PSA")
    Do
      Call SUDDLGSHOW("Mainmenu")
      If DLGSTATE = "IDOk" Then
        If CUSTLASTCTRL="BtLoad" Then
           Call FileNameGet("DATA", "FileRead")
    '     If DlgState ="IDOk" Then
    '      Call DataLoad(FileDlgName) 
    '     Else DlgState = "IDOk"
    '     End If
        End If
      End If 
    Loop Until DLGSTATE = "IDCancel"
    Call WndShow("SHELL", "Normal")
    Call ApplicationExit()
    Attachments:
    sud.zip ‏3 KB

    @Andreas: You can but beginning with DIAdem 10 it isn't documented anymore -> you don't know in wich future version it is eliminated.
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • Opening files from flash using navigateToURL

    I am opening a series of slides from my swf using:
    var fileUrl:String = "http://place" + locationstring + filename;
    var request:URLRequest = new URLRequest (fileUrl);
    navigateToURL (request);
    This opens up my file fine but it gives the user the option to save or open the file.
    Due to the nature of the files - often being replaced and updated, I wish to take away this option so that the document just opens.
    Is this the right way to do this, and if so how is it done?
    Thanks in advance.

    Thanks for reply.
    Ah ok thats a shame...Is there another way to open files?
    In the most part I will be opening a .ppsx (power point show)
                                                    an .exe
                                                    and maybe the odd excel and word docs.

  • Problem opening files from Sharepoint using Firefox 4

    When trying to open a file for editing from sharepoint 2010, I get the following message:
    The document could not be opened for editing. A Microsoft SharePoint Foundation compatible application could not be found to edit the document
    It works fine with IE8. Any thoughts/suggestions?

    Hi,
    According to your description, it is a good way to do a test about office 2010 SP2, here is an article about this issue- limitations of using the OneDrive for Business sync app with Office 2010 applications , it may help you.
    http://office.microsoft.com/en-us/sharepoint-help/solve-problems-youre-having-with-the-onedrive-for-business-sync-app-HA104047973.aspx
    Paul Shui
    Microsoft Online Community Support
    Please remember to click “Mark as Answer?on the post that helps you, and to click “Unmark as Answer?if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread

  • Cannot open files on SharePoint using OWA - There was no endpoint listening at net.pipe

    Greetings,
    Today we have had people calling in saying that they cannot open their files.  After digging in for a bit, we found that if we set the library to open with the client it worked fine, thus OWA is having the issue.
    The correlation exception is the following :
    There was no endpoint listening at net.pipe://localhost/SecurityTokenServiceApplication/appsts.svc that could accept the message
    One user here (
    https://ericjfehn.wordpress.com/tag/sharepoint-2013-office-web-apps/ ) suggests reprovisioning the service applications, but that sounds very dangerous, wouldn't  that mess up all my services, ie; excel, state service, ssrs, etc.. ?
    any help is appreciated!
    Thank you

    Robert,I would recommend to check the configuration of OWA and restart the token services.please check the below links that explains more details on the issue.
    http://expertsharepoint.blogspot.de/2013/12/microsoft-office-web-apps-server-2013_19.html
    Anil Avula[Partner,MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • Can't open files within illustrator using cntrl+O or file open

    I recently upgraded to OSX Yosemite and haven't been able to open any documents/files within illustrator (only from the launch screen). Both cntrl+O and file>open will not allow me to open any files within illustrator. Every time i need to access an existing file I have to quit and launch illustrator again. This is horribly frustrating as I need to juggle between client work. I rebooted my computer and this didn't resolve the issue. Please help or fix this issue.

    See your other listing.

  • Cl_gui_frontend_services= execute - browser opens minimised.

    From our CRM 2007 system, we launch an R3 ECC6 transaction. Once in the transaction, we have another button which uses cl_gui_frontend_services=>execute to open a url. For some people this works as expected, for others the browser opens minimised (despite passing maximized   = 'X' to the method). It's important to us that the browser is maximised.
    We thought this may be a java version issue but the people for which the browser is minimised from CRM are reporting that it opens as maximised if they run the transaction directly from R3.
    I've searched OSS but found nothing. Has anyone else experienced anything similar ?
    thanks,
    Malcolm.

    Hi,
    Check out this link whether it helps you or not.
    /thread/47572 [original link is broken]
    Regards,
    Lakshman.

  • TextEdit no longer opens files it used to open just fine.

    Ever since I upgraded to Snow Leopard, TextEdit has been giving me an error message when I try to open various text files: "The document “CRD-FONT.TXT” could not be opened. Text encoding Unicode (UTF-8) isn’t applicable."
    I wish I knew how to set TextEdit to open the file anyway. I am sure it can be done; it used to open these files just fine. The files didn't change.
    I had to download and install another company's editor just so I could open files that I used to work with in TextEdit. It's good to have the other editor, but it'd be great if TextEdit went back to being able to open these files without complaint.
    Is there a setting in prefs that would resolve this? I may have changed a setting without realizing it would cause this.

    Sounds like there's something wrong with the file, though what that might be I'm not sure. I don't know enough about encodings to know, but sounds like there's probably a mismatch between the file's encoding and what the file claims its encoding is.
    Try opening it with [TextWrangler|http://www.barebones.com/products/TextWrangler>, then choose Edit -> Document Options and see what the encoding is reported to be there.

  • Why won't FireFox open local .html files (when using "open file")?

    I teach hand coding and use FireFox to grade my students work. I also tell them to use this browser to review their own work. If they cannot navigate to their files on their desktop I will have to switch to another browser. I know it is something from the latest version... as I have been using FireFox for the last 5 years as my classroom browser of choice.

    Firefox should still be able to open files using open files.
    I use Windows so things may differ slightly but the option to open files is available but not visible by default, I can get the option to browse for files using: keyboard keys'''Alt , F , O'''
    My directory structure and path may differ slightly but I am also able to key directly into the location bar something such as '''''file:///C:/'''''
    A third option would be simply to click on the relevant HTML file and use the option to open, or open with Firefox. Such files may also be bookmarked.

  • Send files thru email

    hey all
    is it possible to send files thru email using a java program??? i tried using Runtime..... and executing outlook...but i could not figure out how to give filename and reciever's name at the command prompt...can anybody help me in this???
    thanx in advance
    bharthi

    This is a good tutorial for javamail:
    http://developer.java.sun.com/developer/onlineTraining/JavaMail/
    The part about sending attachments is:
    http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html#SendingAttachments

  • When I hit the escape key to close out the open file dialog box, firefox hangs or crashes.

    When I open the "open file" dialog box using the ctrl+O and then hit the escape key to exit the box, I get an error message which I'm not able to paste here.
    it says something about a runtime problem and if I try the same thing again to reproduce the problem, it will sometimes just hang and windows vista will tell me the program is not responding.
    I've checked to see if there are any crash IDs but none were found for this time frame.
    I have even disabled all add ons.
    I'm currently using vista 64 bit edition and Firefox 6, beta edition.

    Hi,
    Please also try right-clicking on the link corresponding to the language version and '''Save Target As''' to save the Firefox installer. If the problem persists, posting [http://answers.microsoft.com/ here] would also be helpful.
    [https://www.mozilla.org/en-US/firefox/all.html Firefox Latest]

Maybe you are looking for

  • XML validation in 11g using DTD

    Hello I'm using a DTD, stored in a database table to validate client information XML files; the problem is that i have an element, lets say A, that has an atribuite Type, and this element have two sub-elements, B and C, so the XML is something like:

  • Google Maps in Contacts

    Hi. Anybody knows the script to use Google Maps with the contact address ?? Thanks !!

  • Mail tries to download hundreds of non existing mail then freezes

    when Mail opens it Mail Activity shows 600 mails (which dont exist) and shows it downloaded 72 mails (which it did not) and then keeps trying to download but nothing happens. Nothing works thereafter in Mail, force quit is only option. Please help !

  • Updating database table using ALV Grid class CL_ALV_CHANGED_DATA_PROTOCOL

    Hi, I am trying to use class CL_ALV_CHANGED_DATA_PROTOCOL to update a database table from an ALV grid. I have used program BCALV_EDIT_04 as an example. I am able to successfully processed inserted or deleted lines using the attributes MT_DELETED_ROWS

  • LabVIEW module use DLL

    In a teststand sequence file, it uses LabVIEW modules that call .NET DLL.  The DLL cannot be linked to the program.  If I were using LabVIEW only, I know that I can insert the DLL into a LabVIEW project and the VI in the project will know where the D