Attaching a file

Hi Experts,
I am trying to write this program which will attach a file to the screen with the click of a button. I am using FM f4_filename. Whtever code I have written so far I am pasting it here can you please help me out to execute it successfully its really urgent and I am witing for your response. Thanks!
*& Module Pool       ZINDG
PROGRAM  ZINDG.
*&      Module  USER_COMMAND_1010  INPUT
      text
MODULE USER_COMMAND_1010 INPUT.
AT SELECTION SCREEN
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CLEAR p_file.
data: file_name TYPE string.
PARAMETERS p_file LIKE rlgrap-filename.
OBLIGATORY.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
  PROGRAM_NAME        = SYST-CPROG
  DYNPRO_NUMBER       = SYST-DYNNR
   FIELD_NAME           = 'p_file '.
IMPORTING
   FILE_NAME            = i_path
   p_file = i_path.
START OF SELECTION
START-OF-SELECTION.
PERFORM upload_file.
END-OF-SELECTION.
FORM
FORM upload_file.
file_name = p_file.
endform.
ENDMODULE.                 " USER_COMMAND_1010  INPUT

Hello Saritha,
Please follow like this when you want to have F4 value on file in dialog program.
Create program in se38 with type M
let assume program name is ZFILE
goto se51 give ur program zfile and screen number like 9000 and click on create button.
now give description and save ,activate. click on layout and here click on push button ,maintain name like file ,and function code is  FILE.
save it and activate it.
come to flow logic.
PROCESS BEFORE OUTPUT.
MODULE STATUS_9000. ( Uncomment ,double click on this ,create pf-status for back,cancel,exit(shoule be upper case)
PROCESS AFTER INPUT.
MODULE USER_COMMAND_9000.( uncomment and double click).
PROGRAM ZFILE .
data : v_repid like sy-repid.
data p_file(128)  type c.
*&      Module  USER_COMMAND_9000  INPUT
      text
MODULE USER_COMMAND_9000 INPUT.
case sy-ucomm.
when 'FILE'.
v_repid = sy-repid.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
   PROGRAM_NAME        = v_repid
  DYNPRO_NUMBER       = SYST-DYNNR
  FIELD_NAME          = ' '
IMPORTING
   FILE_NAME           = p_file
when 'BACK'.
leave to screen 0.
when 'CANC'.
leave to screen 0.
when 'EXIT'.
leave to screen 0.
endcase.
ENDMODULE.                 " USER_COMMAND_9000  INPUT
*&      Module  STATUS_9000  OUTPUT
      text
MODULE STATUS_9000 OUTPUT.
  SET PF-STATUS '100'.
SET TITLEBAR 'xxx'.
ENDMODULE.                 " STATUS_9000  OUTPUT
see the code and follow like this ,once you done ,you need activate .
create transaction in se93 select first radio button ,use program name and screen number.

Similar Messages

  • How do I upload and attach the file to Service Request

    [This thread was migrated from the On Demand Developer Forum in the old Siebel Community]
    drangineni
    New Contributor
    Hi,
    I am trying to upload a file and add it to a Service object as an
    attachement. I greatly appreciate if you could provide any code or
    sample...
    Thanks.
    Daya
    Product: CRM OnDemand
    10-21-2006 10:58 AM
    Re: How do I upload and attach the file to Service Request...
    BigSlick
    Valued Contributor
    On Demand doesn't support adding attachments via web services. One
    solution I've seen is depending on the scenario is to create a web link
    field on an object that's based on a custom text field. Your web service
    can populate that custom field and the web link can generate a dynamic
    link to the file in On Demand's UI. However, this depends on where the
    attachment is located and if the user needs some sort of firewall access.
    Hope this helps
    -BigSlick
    10-23-2006 11:43 AM
    ==============================================================================
    Click on the board or message subject at the top to return.

    Yes this still holds ture.
    Bardo

  • How do I attach multiple files from the pages app to my email

    I'm trying to attach multiple documents from the "Pages" app to my email.  I'm using an ipad.  It is only letting me attach one at a time and send each document as individual emails.  I would like to be able to send one email with all 4 documents at the same time.  Any suggestions?
    Another thought- When I go to my gmail app to compose an email, I have the following to send:
    to:
    cc:
    subject:
    But there is not a paperclip to click to attach any documents either.  Is this all connected and something in my ipad settings needs to be adjusted?

    You can only attach one file at a time to email in the Pages app
    You cannot attach files in the mail app. If you want to email a file, you do it from within the app where the file is saved such as what you did with Pages.

  • I am having a problem with the FireFox browser. I have attached two files that best describe the problem. I have labeled them A & B. A is the way it should lo

    I am having a problem with the FireFox browser. I have attached two files that best describe the problem. I have labeled them A & B. A is the way it should look and B is what happens after I have I opened several tabs. I can get it back to normal if I click on VIEW than click on customize. When the customize window appears FireFox returns to its normal state. I than click on the done box and go back to what I have been doing. I tried resetting FireFox back to default settings, but that did not correct the problem.
    This began happening about a month ago. Is there a way I can fix this problem? Thanks for your help.I don't know how to attach my 2 attachments that shows the problem I am having.
    [email address removed to protect your privacy and security]
    <! [email protected] -->

    I found the images here: https://support.mozilla.org/en-US/questions/977542#answer-501598

  • Problem for PCs recieving attached SWF files from Mac Mail 2.1.3

    Hi All,
    When I send this file from my mac mail 2.1.3 (753.1) with a SWF (flash animation) attachment the file wont open on the PC client mail. Instead when I force the unknown attachment to open it says the below with a string of letters.
    --Apple-Mail-37--496662089
    Content-Transfer-Encoding: base64
    Content-Type: application/applefile;
    name=daft3.swf
    Content-Disposition: attachment;
    filename=daft3.swf
    AAUWBwACAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAJAAAAMgAAAAoAAAADAAAAPAAAAAlTV0ZMU1dG
    MgBAZGFmdDMuc3dm
    --Apple-Mail-37--496662089
    Content-Transfer-Encoding: base64
    Content-Type: application/octet-stream;
    x-mac-type=5357464C;
    x-unix-mode=0744;
    x-mac-creator=53574632;
    name=daft3.swf
    Content-Disposition: attachment;
    filename=daft3.swf

    Try creating an archive of the SWF file (.zip) and email that instead. But the recipient needs to have an application on their PeeCee that will open SWF files; Outlook or Outlook Express will not do that.
    Mulder

  • Firefox crashes when I try to attach a file. Seems related to second problem, receive error messages when opening a pdf in adobe (which I've reinstalled twice)

    Crash report:
    bp-74bcae4f-7091-4121-a809-5d0a12140616 is the crash report.
    I have a Toshiba.
    When I open my email (gmail, school email) and try to attach a file, firefox immediately crashes and gives me two error messages. first one is a WerFault, i think. I don't know if that's relevant.
    Apart from these crashes in Firefox, I am also having the same problem when trying to view or open a pdf in adobe reader, or even open adobe reader itself. It won't try to open, I just receive the error messages. I've uninstalled and reinstalled it two times now. I did this thing suggested online where you go into the control panel and look at all your plugins. Then, "repair" adobe reader - pretty sure it's just a button that says repair. that didn't do anything, of course I also could have done something wrong.
    I realize this could be a problem unrelated to Firefox, but I'm doing what I can before I take my laptop in.
    Please save me.

    Ok two things based on the crash report and the steps you took right before the crash:
    # Try to disable scrolling acceleration and restart Firefox. Does it continue to crash?
    # Try Safe Mode and do the same task as above with email and the pdf [[Troubleshoot Firefox issues using Safe Mode]]
    # Also pdf.js may be helpful to read pdfs in the meantime. You can change the default reader in the Preferences/Options > Application menu of Firefox.
    # Try to clear out the downloads folder and update flash to version 14 (that should do it)
    IF it crashes again please also provide the new crash signatures and we can take a look :-) Sorry for the crashing :-(

  • How to attach multiple file in one mail

    Hi,
    I've problems with sending multiple files via Gmail account (Ipad version)  When sending the photo or video, I've to just click the photo and choose send to mail one by one. Any simpler way?  Sometimes i did sent both mpg and jpg but the reciepient didn't see any attachment too
    Anyone can help advise how to attach different file (doc, video, photo) in one mail will be a lot appreciated. Thank you so much

    You can attach multiple pictures to an email on an ipad2. Don't know about original iPad.
    Choose a photo or take a screen shot (hold down home button and button next to volume control at same time--screen shot now will appear in photos).
    Go to photos and edit your picture or screen shot, save it, then hold down on the image and copy it.
    Go to mail, create a new mail and paste it in.
    Save you mail as a draft.
    Go back to photos and select a different photo, copy it, and return to your draft, and paste it in. Repeat if you need to add more.
    Anything that you can take a screen shot or have an photo of can be pasted in one at a time into that draft email.
    If mail gets uncooperative, during this process, then double click on home button and quit multitasking mail, then open up mail again and send your draft. Uncooperative means gets frozen.

  • How ATTACH multiple files from different folders in one ATTACH 'session'?

    Hi,
    In Mac Mail, I often have to attach 2 or 3 separate files, all from different folder locations on my hard drive.
    This requires clicking attach, selecting file 1 and clicking OK, which closes the Attach dialog.
    Then I have to do it again 2 times for each other file. oy.
    Is there a way to Highlight multiple files in different directories (ala Command-Select...which doesn't work) before selecting OK?
    OR
    I've found that I can DRAG a file from the Attach dialog into the email and the dialog will remain open, only the file is HIGHLIGHTED in the email and , hence, gets replaced by the next file I drag into the email (or select by the normal method)....
    Is there a way to drag that file#1 into the email and have it NOT remain highlighted, so that I can pick another file to add in addition to that one?
    Thanks!

    ShizzleFizzle wrote:
    Is there a way to Highlight multiple files in different directories (ala Command-Select...which doesn't work) before selecting OK?
    Have you tried dragging files from Finder windows into the mail message window?

  • How can i reply to an email and attach a file to it?

    How can i reply to an email and attach a file to it?

    http://www.apple.com/feedback/
    Tell Apple. We're just fellow users here and can't control a thing. The sandboxed nature of the iPad, which also means a lack of an overall file manager is what keeps viruses from spreading and improves the stability of the system as a whole. And it's that lack of a file manager system that means you can't just attach something to an e-mail.
    What I'd do, reply to the person, i'm sending the attachment next, do that and you're done. 2 e-mails sure but you've accomplished what you need to do.

  • Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e

    Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e mail in order too send Also, I have not been able to safe a download files on my iPAD as I do not have a download manager on it. Please, kindly send to me ways of getting these problems fixed as i am a young resarcher who sends a lot of mails and download as wel. Als, I am always on the move as this has propmted me in the first place to get an IPAD .
    Last but not the list II will equally wish to know if it will be possible for  me to use a pen to take seminar notes on my iPAD and safe the same on my iPAD fr later reference as it is done on other tablets ke samsung. I read somethng like stylus pen but I don't know how far. Please, kindly make an appropriate recommendaton for me and where i can get it. I reside in Turkey and currently a Ph.D stuudent in ine of the leading niversities in the country. Also, I will like to know if you ave ecoonomics text books that I can buy or published journas in apple store because i have searched but could not get  a desirerable ones.
    Once again, thanks for your anticipated prompt rely to my mail.
    Regards
    Wasu Fawole

    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • How to attach a file in the utl_mail utility in oracle 10.2.0

    hi,
    where is the default file destination to attach a file in the utl_mail utility in oracle 10g. i have to send an attachment..
    regards,
    Deepak
    Edited by: Deepak_DBA on Nov 4, 2009 3:10 PM

    HI,
    I have succesfully created utl_mail and send mail.. but could not able to attach a file in that mail..
    i have used the procedure given below..
    DECLARE
    rfile VARCHAR2(255);
    BEGIN
    UTL_MAIL.send_attach_varchar2(sender =>'[email protected]',recipients =>'[email protected]',subject =>'Test new Mail',message => 'Oracle World',mime_type => 'text; charset=us-ascii',priority => 3,attachment => rfile,att_inline => TRUE,att_mime_type=> 'text/plain; charset=us-ascii',att_filename => 'i:\session.txt');
    END;
    regards,
    Deepak

  • How do I email an attached pdf file to stationary templates in mail.

    How do I email an attach PDF file using the stationary templates in mail on lion.
    I attached the PDF but when try to send it I get back a dialog box that sez:
    "This message cannot be sent because it uses stationery and contains attachments that are not images. Messages with stationery cannot contain attachments that aren’t images. You can cancel and return to editing the message or remove the stationery in order to send." My choice is to cancel or remove stationary.
    Is there a third party solution? Any suggestion?

    No
    Envoyé depuis Molto pour iPad
    De: pwillener
    Envoyé: jeudi, février 12, 2015 07:14 AM
    À: René Allamelle
    Objet:  how do I compress a large pdf file to fit in an email?
    how do I compress a large pdf file to fit in an email?
    created by pwillener in Adobe Acrobat.com Services - View the full discussion
    But generally it is never a good idea to send e-documents as email attachments.  Better use a file sharing service (Acrobat.com, Dropbox, Google Drive, Microsoft OneDrive, ..), upload the document, then send the shared download link via email.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7187079#7187079 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7187079#7187079
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Acrobat.com Services by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • How can I retain the attached .pdf files (displayed as icons) from my word file 2010 to a pdf file?

    Hi everybody,
    I have looked for an answer in this forum ... without any good result.
    I worked on a Word 2010 file with some attached pdf files. These attached files are displayed as icons on the word file. If you double click on them, you can consult them. This works very good.
    Problem: I would like to convert this word 2010 file into a pdf file, which keeps the icons (linked to attached files) active. If I "pdf" this with my current system, icons are displayed as pictures: I cannot open the attached files.
    My question is very simple: is it possible to retain these active icons (= to open attached documents) in a pdf file? Which adobe package should I use?
    Many thanks for your help 
    cheers
    elgreengo

    No, it's not possible, but I agree it would be a very nice feature.

  • Can you copy/paste files from the Finder to Mail in Lion, or drag them onto the Mail icon in the Dock to create a new message and attach the files to it?

    Message title says it: Can you copy/paste files from the Finder to Mail in Lion, or drag them onto the Mail icon in the Dock to create a new message and attach the files to it?
    I can't find anything in the Knowledge Base that says these two options no longer work or still do.
    I do not have a system capable of running Lion, but I need to know the answer nonetheless.

    Gee, I don't know: "paste attachments mail Lion"? ;-)
    One further question, if I may: in Panther (which is where I've aggregated nearly 7 years of mail), if you copy more than one file in the Finder, switch to Mail, and paste the files into a new message, only the file names paste in. If you copy one file and paste it into a Mail message, you get the file, not just the name. Is that still true, or has that (IMHO) bug been fixed since 10.3.9?

  • Ipad 4: how do I attach multiple file types to an email?

    Hello,
    I have seen multiple threads on this topic saying you can only do attachments in an email (other than photos or videos) by going to the app that holds the file and emailing it from there (ex: go to adobe reader or ibooks to email a PDF). This work around seemed sufficient for some people but I have need to attach a JPG, PDF and .doc to a single email. How do I do this within the ipad's built in email app? Is this impossible and if so are there other free email apps that someone can reccmmend?
    I find the ability to only email files from within its parent app to be cumbersome and not in keeping with Apple's style of making one's life easier and more efficient. In fact this seems woefully backward and goes back to the early days of computing. I get it that emailing from within a particular app is necessary but so is the ability to attach multiple file types from within the email app. :-(
    So frustrated!!

    The GoodReader App can manage files and create emails consisting of multiple files types.
    See here: https://itunes.apple.com/us/app/goodreader-4/id777310222?mt=8

  • When I want to attach a file to an e-mail I'm sending from my iCloud account it makes the file show up in the body of the e-mail instead of attaching it as a separate file the receiver can open.  How can I change this?

    When I want to attach a file to an e-mail I'm sending from my iCloud account it makes the file show up in the body of the e-mail instead of attaching it as a separate file the receiver can open.  How can I change this?

    It should be an attachment.  Your Mac just displays a preview of certain attachments (such as .pdfs) in the body of the message.  A PC, for example, will see it as an attached file rather than a preview.
    You can save the attachment on your Mac by Control-clicking on it and selecting Save Attachment.

Maybe you are looking for