How can add or open  a document like word,excel  from forms ?

Hello,
I want to open a excel file from my forms from a specific location , i have to write the code in when-button-pressed button i.e when i will click on add button it will open a dialog box there i need to browse the excel file then it will add the link in my form, when i click on that link it will open the excel file .
Many Thanks.

hi
do u use webutil? if yes then try something like this.
when-button-pressed trigger
declare
      f varchar2(100);
begin
     f := webutil_file.file_open_dialog();
     if f is not null then
          :excel.file_name := f;
          end if;
     end;Note:- u have to attach webutil.pll without webutil it will not work.
sarah

Similar Messages

  • How to upload documents( like word, excel, pdf etc) into r/3 system

    Hi All,
               Does anyone have information on uploading and downloading documents like word, excel,pdf etc into R/3 system. Is there any function modules, classes, programs etc to do this.
        To give an example about what i mean by uploading documents, we can take the process of attaching documents in support of a SLM issue in solution manager.

    Hi Syed,
      Use the FM gui_upload to upload a file from presentation server and gui_download to download file to presentation server. see the code below and also read the documentation of the respective FM's.
    data:
        lw_file  type string,              " File Path
        lw_file1 type IBIPPARMS-PATH.      " File Path
      CALL FUNCTION 'F4_FILENAME'
       IMPORTING
         FILE_NAME            = lw_file1.
      lw_file = lw_file1.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = lw_file
          FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
        tables
          data_tab                      = t_kna1
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
      IF sy-subrc <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.                               " IF SY-SUBRC <> 0
    data:
        lw_file  type string,              " File Path
        lw_file1 type IBIPPARMS-PATH.      " File Path
      CALL FUNCTION 'F4_FILENAME'
       IMPORTING
         FILE_NAME            = lw_file1.
      lw_file = lw_file1.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
    *     BIN_FILESIZE                  =
          FILENAME                      = lw_file
          FILETYPE                      = 'ASC'
    *     APPEND                        = ' '
          WRITE_FIELD_SEPARATOR         = 'X'
    *     HEADER                        = '00'
        TABLES
          DATA_TAB                      = t_KNA1
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.                               " IF SY-SUBRC <> 0
      IF SY-SUBRC = 0.
        message 'file downloaded successfully' type 'S'.
      ENDIF.                               " IF SY-SUBRC = 0
    With luck,
    Pritam.

  • How can I avoid opening the several instances of the same form?

    Hi Friends,
    I have a MDI form with a menu. When open a form by clicking the menu twice, it is opening two instances of the same form. It is eating up all resources of my memory.
    How can I avoid opening the multiple instances of the same form? I want the activate the form which is already open instead of opening the new instance of the same.
    Anybody knows solution please help me.
    Thanks
    Gopinath Kona

    Hi,
    U must be using the built-in OPEN_FORM in your code. Instead of that, check it using the following code....
    IF ID_NULL(FIND_FORM('form_name')) THEN
    OPEN_FORM('form_name with the path');
    ELSE
    GO_FORM('form_name'); --shifts the control into the form which is already open.
    END IF;
    hope it helps...
    null

  • How do open document like word , excell or pdf ??

    hello
    on the application form , how do read (open) and print document like
    as (word , excell , pdf ) ??
    nots : we use oracle V. 10 g
    thank .

    Hello,
    I was trying to open word document from oracle 10g with below code.
    DECLARE
    AppID PLS_INTEGER;
    BEGIN
    AppID := DDE.App_Begin('d:\doc1.doc',
    DDE.App_Mode_Minimized);
    END;
    But it is showing me some error as below:
    ORA-06550: line 4, column 10:
    PLS-00201: identifier 'DDE.APP_BEGIN' must be declared
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignored
    2. AppID PLS_INTEGER;
    3. BEGIN
    4. AppID := DDE.App_Begin('d:\doc1.doc',
    5. DDE.App_Mode_Minimized);
    6. END;
    Could you please help me?
    Thanks

  • Hy, how can i make filter in numbers, like in excel? can anybody help me?

    i am new in mac, and of course in numbers, until now i use exel, and i know to work with it, but now i want to use numbers, so...i want to make a filter like in excel.but i don.t know how.
    Thanks.

    Hi,
    The screen shot didn't really clarify the question for me.
    Here's what Jerry was describing, the Reorganization panel, Numbers's equivalent to the 'Denumire' panel shown in your screen shot:
    It's currently set to show only rows of the table where the temperature is recorded as between 11 and 13 °C. I've clicked the + button to the right of that condition to add a second, but have not started to build that condition yet.
    Regards,
    Barry

  • How to add the parameters onto the reports while calling from forms

    Hi all,
    I am using oracle forms 10g. I want to call a report from the form.
    But i dont know how to add parameters to the url while using
    web.show_document();
    i have a sample code. But it does not add the forms values onto the url.
    DECLARE
    v_host varchar2(100);
    v_port varchar2(10);
    v_parameter_string varchar2(4000);
    v_username varchar2(50);
    v_password varchar2(50);
    v_database varchar2(50);
    BEGIN
    -- Get the full domain name of the server from the formsweb.cfg
    tool_env.getvar('SERVER_URL',v_host);
    -- Get the username/password and database from the .env file
    tool_env.getvar('APPLICATION_USERNAME',v_username);
    tool_env.getvar('APPLICATION_PASSWORD',v_password);
    tool_env.getvar('APPLICATION_DATABASE',v_database);
    -- If it is localhost then we are running on windows and need to use the windows port, otherwise we
    -- are on AIX and need to use the AIX port
    IF v_host = 'localhost' THEN
         v_port := '8889';
    ELSE
         v_port := '7778';
    END IF;
    -- Now build the parameter string for running the report      
    v_parameter_string := 'server=rep_fsprod';
    v_parameter_string := v_parameter_string||'&report=AAP_TOTAL_CONTRACT_VALUE_RPT.rdf';
    v_parameter_string := v_parameter_string||'&userid='||v_username||'/'||v_password||'@'||v_database;
    v_parameter_string := v_parameter_string||'&execution_mode=batch';
    v_parameter_string := v_parameter_string||'&comm_mode=synchronous';
    v_parameter_string := v_parameter_string||'&destype=cache';
    v_parameter_string := v_parameter_string||'&desformat=pdf';
    -- Now run the report
    web.show_document('http://'||v_host||':'||v_port||'/reports/rwservlet?'||v_parameter_string,'_blank');
    END;
    Are we able to add the text values in the form from to the URL.
    Please let me know....
    thanks in advance....
    Naveen

    hello
    read the following white paper http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
    cheers
    Q

  • How can one read ClarisWorks files with MS Word / Excel ?

    Somebody handed me this .cwk file, and wants to be using it in their Office program.
    Thanks for your time!

    Hi, Bruce. If you don't have access to any version of ClarisWorks or AppleWorks yourself, and the person who originated the .cwk file is unavailable to resave it in a more suitable format, MacLink Plus Deluxe can translate it into any of several Word formats.
    If you're in a position where you frequently receive files in a variety of formats that must be used by others who aren't conversant with all those formats, MLPDeluxe would be a very good investment for you.

  • How can I have a Pages document that is shared with me under my Pages section and not open it with the link?

    How can I have a Pages document that is shared with me under my Pages section and not open it with the link?

    Try this.
    Open the document and select and copy a few pages, say ten pages.
    Open a new blank document and paste the pages you copied into that.
    Save it with a new name.
    Work on those new pages to see if the problem has disappeared.
    If this helps, continue breaking up the large file in to smaller chunks and working on them
    You can of course later reverse the process and merge the files into one new one.
    This suggestion is based on my experiences with large Word files. Breaking it up in to smaller chunks does two things. First, if there is any corruption in the old file, the new copies might escape that. Second, the Mac is faster handling the smaller chunks.

  • How do I  undo an update to pages 2.1 on an iPad 2? I can no longer open a document previously saved, even when I try to open it in the iCloud and on my Mac.

    How do I  undo an update to pages 2.1 on an iPad 2? I can no longer open a document previously saved, even when I try to open it in the iCloud and on my Mac.

    With IOS Pages v2.0 and v2.1, Apple introduced a new document format that is incompatible with prior Pages versions on IOS or OS X Pages ’09. Opening older documents with these recent versions of Pages will permanently prevent the document from opening in earlier versions of Pages on IOS or OS X.
    Nice of Apple to warn people.
    There is no undo of an iTunes application update, short of forcing iTunes to restore IOS v6 back on that iPad 2. Even if you did that, you won't find the IOS Pages v1.7.2 in the iTunes store now.
    IOS Pages v2+ will allow you to export content in Word .docx format. You do this by first tapping the box with an up-arrow in it (next to the left-most +). A menu will slide up — choose Send a Copy. Select a document icon. Pick Mail, and then Word. Your Pages v2.1 document will now be converted to Word .docx, and attached to an email body. Fill in the to address and send.

  • After opening a picture in Photoshop Elements 12 how can I copy the picture to a word processor docu

    After opening a picture in Photoshop Elements 12, how can I copy this picture to a word processor document?

    Open the photo. Press ctrl+A (command+A on a mac) to select it, then Ctrl+C (command+C) to copy it. Go to your word processing document and press Ctrl+V (command+V) to paste it in. (Note that for the last step the procedure may vary slightly depending on your word processor.)

  • How can you save a pages document so it can be opened in Microsoft Word

    How can I save a pages document so it can be opened in a Windows (Word) program?

    Word can't read .pages documents. You have to export the Pages  document to a Word document. File > export or share > Word
    Download the Pages User Guide from your Pages Help menu to learn more about how Pages works.

  • How can I rename open PDF files on my android tablet

    How can I rename open files on android tablet

    However, you can rename a file from document browser like this : http://forums.adobe.com/message/4753337

  • A year later...same question: How can I get a Pages document embedded ???

    How can I get a Pages document embedded into an email? (so that the recipient sees it immediately and does NOT have to open a PDF). Although I know a PDF is universal and would allow anyone (mac or not) to open, read and see my business newsletter, I want it to be instantaneous for viewing. So, which leads me to a question I've kicked around for a year now on this discussion board. How do I turn a Pages doc into html for email purposes? If there isn't a way with Pages, How about with Word (the newest version) for Mac? Someone has to know this art, I receive emails like this all the time, probably from Apple! ha ha .
    Please help!
    -dnorheim

    dnorheim wrote:
    How can I get a Pages document embedded into an email? (so that the recipient sees it immediately and does NOT have to open a PDF).
    we can't !
    Although I know a PDF is universal and would allow anyone (mac or not) to open, read and see my business newsletter, I want it to be instantaneous for viewing.
    In Mail.app, single page PDF are directly readable so you may try to
    print your page #1 in a PDF
    then
    print your page #2 in a PDF
    and so on.
    So, which leads me to a question I've kicked around for a year now on this discussion board. How do I turn a Pages doc into html for email purposes?
    we can't !
    As Apple removed the export to html feature, I assume that it's no to reintroduce it one day
    Yvan KOENIG (VALLAURIS, France) lundi 7 septembre 2009 17:50:32

  • I get my emails sent to my Ipad 1 and when I try to open the excel files, they come up in a sort of word doc. how can I get them to come over on excel

    I get my emails sent to my Ipad 1 and when I try to open the excel files, they come up in a sort of word doc. how can I get them to come over on excel

    I was still typing my first post while you had already responded.
    Maybe I am taking your last post the wrong way but reread your post. If I am taking it the wrong way - please accept my apology in advance.
    lisaadele123 wrote:
    I get my emails sent to my Ipad 1 and when I try to open the excel files, they come up in a sort of word doc. how can I get them to come over on excel
    Where do you state that you need to email the files to someone else?
    Where do you state that you need to edit them?
    This was my response ....
    You can't edit any of these files without a compatible iPad app like Documents to Go (Excel, Word) or Pages (Word files).
    You can open and view the files as mail attachments but you will not be able to edit them. Explain exactly what you are doing and maybe you can get meaningful instructions.
    Basically I said the same thing as Julian and I thought that maybe if you explained EXACTLY what you were trying to do, it would be helpful.
    Sorry for not being a mind reader. Your second post ...
    I thought I had already explained, I get excel spreadsheets emailed to me I need to open them, read them, edit them and send them on to another person,
    That is not what you asked the first time around.
    Message was edited by: Demo

  • How can we move our existing documents into iCloud?

    So far I've been presented with the option to save files into iCloud (textedit and the like). How can we take our existing documents (Word, Excel, TXT, PDF, etc) and store them in iCloud as well? Short of individually opening each one and saving in iCloud...

    iCloud is not intended for general file storage. (It is not iDisk.) It's also not organized the same way. Each application is responsible for interfacing with its own documents in iCloud; Word and Excel do not have the function encoded.

Maybe you are looking for

  • Can I use flashback database to flashback a pluggable database?

    Hi All, I created a container database and then created a pluggable database. In the pluggable 12.1 datbase, I loaded the user data. I performed the below sqlplus / as sysdba; create restore point CLEAN_DB guarantee flashback database; And I performe

  • How do i change my alternate apple id address

    Let's just say Right under my Apple ID and Primary Email Address there is something called a "Alternate Apple ID" that I made when i was a child and it does not suit me anymore how would i go about changing it if possible You go to Icload.com or me.c

  • PLSQL and to_date query returning error...

    I'm sure this has something to do with a conversion which I'm not understanding however : Metric_date field is a DATE type field in the database. DECLARE disknum NUMBER; diskcost NUMBER; fystart VARCHAR(20):='01-JUN-'||(:FINANCE_FY-1); fyend VARCHAR(

  • How do you create new lines?

    Hey everyone. I want to separate two or more text labels with a new line, something like <br> in html. How is that possible? Thanks in advance.

  • Adobe Creative Suite 3

    I have a problem with old package Adobe Creative Suite 3 Design Standart. After it installed it asked me for choosing some options like Design Standart 1 and Design Standart 2, but there is not 3rd part of it. What can I do to fix that problem?