Pdf file name in mail attachment

Hi All,
For sales order invoice, there is an output type configured which sends the output smartform as pdf attachment in mail.
The sending medium is 'External send' (Type 5). I want to know how I can give a specific name to this pdf file attachment.
Since there is no coding involved in generating this pdf attachment, i don't know how to achieve it.
Can I pass it when i call the function module of the smartform ?
Please help.
Regards

Hi,
In your driver program, the title for the pdf has to be provided in the import structure for the smartform with name "OUTPUT_OPTIONS" of type SSFCOMPOP.
In it, use try field TDTITLE or TDCOVTITLE. I don't exactly remember which 1 of these 2, so try both.
Regards,
Ashish

Similar Messages

  • Dynamic file name as mail attachment in receiver Mail Adapter?

    Hi,
    Can any one tell the possibility of attaching file as a mail attachment without using mail Package with dynamic filename.
    Business requirement is to send error response as mail attachment with dynamic name.
    Ex: Error_Response_20110802_13.24 where 20110802 is Date and next part represents time stamp.
    File attachment name should change dynamically in Mail receiver Adapter. Thanks
    Regards,
    Sreeramulu Konjeti.

    there is no standard way.
    you will have to write a module to get this in place.
    other ways are;
    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping - /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
    Dynamic name in the mail attachment - pseudo "variable substitution" :
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution

  • View full file names of mail attachment titles in MAIL application (Apple)

    I often get many attachments sent to me and when I am looking through emails for some reason all attachments show up as an ICON with a shortened version of the name of the file. It is always just the first 10 or so characters of the title and the last 3, which is usually the (.gif, .pdf, etc...)
    A lot of what I get usually has the similar titles and only seeing the first few characters is not making things easy for me to find exactly what I am looking for.
    Is there a way to view the full file name within the mail and within the application without having to open each file up each time in the APPLE MAIL application?
    Maybe there's a way to show all attachments as a list with a smaller icon?
    Anything that'll let me view the full title of all attachments would help.
    Thanks in advance for any suggestions.
    Message was edited by: KennyMac212

    I agree it is frustrating and literally just sent the wrong attachment to a customer because I was trying to live with the truncated filename system. I did find this nifty app called Mail Iconizer (http://lokiware.info/Mail-Attachments-Iconizer). It's pretty neat as it lets you control how attachments are viewed as well as pdfs and images (based on size). It's a free unlimited trial and $15 if you want to register so it's pretty inexpensive.

  • Error while opening a pdf file sent as an attachment in mail

    Dear All,
            We have converted a alv grid into pdf and sent a mail with the attached pdf file. When the attachment is opened in the received mail we get an error " File does not begin with %pdf-". I am pasting the code.
    Select single
      from
        TSP01
      where
        RQIDENT = wa_listident.
      if sy-subrc <> 0.
         exit.
      endif.
      client = tsp01-rqclient.
      name   = tsp01-rqo1name.
    *BREAK-POINT.
      CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
             EXPORTING
                  AUTHORITY     = 'SP01'
                  CLIENT        = client
                  NAME          = name
                  PART          = 1
             IMPORTING
              CHARCO        =
              CREATER       =
              CREDATE       =
              DELDATE       =
              MAX_CREDATE   =
              MAX_DELDATE   =
              NON_UNIQ      =
              NOOF_PARTS    =
              RECTYP        =
              SIZE          =
              STOTYP        =
                  TYPE          = type
                  OBJTYPE       = objtype
             EXCEPTIONS
                  FB_ERROR      = 1
                  FB_RSTS_OTHER = 2
                  NO_OBJECT     = 3
                  NO_PERMISSION = 4.
      if objtype(3) = 'OTF'.
        is_otf = 'X'.
      else.
        is_otf = space.
      endif.
    *BREAK-POINT.
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
             EXPORTING
                  rqident              = wa_listident
                  desired_type         = desired_type
             IMPORTING
                  real_type            = real_type
             TABLES
                  buffer               = l_objcont
             EXCEPTIONS
                  no_such_job          = 14
                  type_no_match        = 94
                  job_contains_no_data = 54
                  no_permission        = 21
                  can_not_access       = 21
                  read_error           = 54.
        IF sy-subrc EQ 0.
          attach_type = real_type.
        ENDIF.
    if is_otf = 'X'.
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
            EXPORTING
              SRC_SPOOLID                    = wa_listident
              NO_DIALOG                      = c_no
          DST_DEVICE                     =
          PDF_DESTINATION                =
            IMPORTING
              PDF_BYTECOUNT                  =  gd_bytecount
              PDF_SPOOLID                    = pdfspoolid
          OTF_PAGECOUNT                  =
              BTC_JOBNAME                    = jobname
              BTC_JOBCOUNT                   = jobcount
            TABLES
              PDF                            = it_pdf_output
            EXCEPTIONS
              ERR_NO_OTF_SPOOLJOB            = 1
              ERR_NO_SPOOLJOB                = 2
              ERR_NO_PERMISSION              = 3
              ERR_CONV_NOT_POSSIBLE          = 4
              ERR_BAD_DSTDEVICE              = 5
              USER_CANCELLED                 = 6
              ERR_SPOOLERROR                 = 7
              ERR_TEMSEERROR                 = 8
              ERR_BTCJOB_OPEN_FAILED         = 9
              ERR_BTCJOB_SUBMIT_FAILED       = 10
              ERR_BTCJOB_CLOSE_FAILED        = 11
      CHECK sy-subrc = 0.
      ENDIF.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Please guide me to resolve this issue.
    Thanks & Regards,
    Anand

    Hi,
    is the next part of the code correct.
    What i mean is packing of the attachment, finding out the size of pdf file and doc type as PDF.
    You can also try below link..
    Link: [http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES]
    Hope this helps.
    Regards,
    -Sandeep

  • Mail Notification with Custom Subject, Mail Body and PDF File Name

    I have successful configured the Action Profile to send SmartForm Mail as PDF. But i would like to modify the Subject, PDF File Name & add text to mail body when a mail is sent to the user.
    The Subject of the Mail is the same as the PDF file name. How to maintain a pre-defined file name for the PDF file.

    I was able to find a commercial product that works very well. MaxBulk Mailer from Max Programming allows you to import a list of recipients, merge with personalized message and designate an attachment (just image types and PDFs, not all types work) and send.

  • Dynamic file name of the attachment in sender mail adapter

    Hi
    I have configured a sender mail adapter which receives some attachments.
    Right now the file name of the attachment is hardcoded to "MailAttachment-1" "MailAttachment-2" using the content-description from "AF_Modules/PayloadSwapBean" module.
    I want to set it to dynamic ie. instead of "MailAttachment-1"... i want it with real name of the attach.
    please suggest a solution w/o the need to develop a custom adapter module.
    Thanks!
    Regards,
    Mariano.

    Thanks Prateek,
    Now, i can see that the name of the original file is into the content type named as  text/xml; name"name of the file.xml" when i send the email from outlook.
    If i send it from hotmail, this is not happend.
    Do you know why happend this?
    If i always would have the original name inside the content type, my problem will be solved.
    Edited by: Mariano Vidal on Feb 13, 2009 2:26 PM

  • Pdf file gets huge when attached to an e-mail

    A very strange problem. Yesterday, I received an e-mail with a pdf attachment that was 10MB.  When I saved the attachement to a fold, it became 9.6kb.  I created a new e-mail and attched the smaller saved version of the pdf.  It showed as 10MB in the e-mail.  The same thing happened to another e-mail pdf attachment that I received this morning.  I even inserted an older pdf file from my computer into a new e-mail.  Same thing.  This is making it very difficult to send e-mails with pdf attachment, as they are too large for some to receive.  the sender of the original e-mail is also seeing it in the sent e-mail as 10 MB.
    I have windows XP Professional Version 2002 SP 3;  Acrobat reader 9.3

    First of all: what e-mail client are you using?
    Do you use Adobe Reader to send the PDF file, or you simply attach the PDF to a message you are composing?  That message, what format is it - plain text, HTML, RTF?
    Anyway, I have a very hard time to understand how a file of 9.6KB can show up more than a 1000 times larger (10MB) as a PDF attachment!  Does your e-mail client give the exact size of the attachment, additionally to the total size of the message?

  • Dynamic file name of the attachment in receiver mail adapter

    Hi
    I have configured a receiver mail adapter which receives the payload as an xml attachment.
    Right now the file name of the attachment is hardcoded to "invoice.xml".
    I want to set it to dynamic ie. instead of "invoice.xml"... i want it as "invoice<invoicenumber>.xml".
    Invoice number is present in the payload.
    please suggest a solution w/o the need to develop a custom adapter module.
    Thanks!
    Regards,
    Faria Mithani

    Hi,
    Go through this thread..
    Dynamic  File Name for Receiver File Adapter
    Regards,
    Sarvesh

  • Can any one tell me how to attach a pdf file to the mail through workflow

    I have a smart which i am able  to convert it to a pdf file...now.. can any one tell me how to attach a pdf file to the mail through workflow

    Hi,
    To create the task for attachment
    Use the BOR SELFITEM and method NOTES_APPEND.
    The out come of this task contain a link called attachment with a clip attached. Clisk on that icon and choose the type of attachment u want . RAW , EXCEL , TXT , PDF... Then using the import icon u can attach the document u like.
    But the TYPE : OBJ.
    Similarly using NOTE_DISPLAY method u can display the documents u like.
    In any work item u have the facility to attach any atttchment for further circulation .
    Attchment @ WORKITEM
    1.Click the workitem for which you want to create the attchment
    2.Press create attachment
    3. Add the attachment u like (PDF)
    Reward points for useful answer.
    Richard A

  • How can I attach a pdf file to outgoing mail without it opening up within the message?

    How can I attach a pdf file to outgoing mail without in opening up within the message?

    You can use the Share button on Preview's toolbar. Choosing Email pops open Mail with the PDF already iconified as an attachment. If it doesn't behave this nicely for you, select the PDF in Mail and choose the right contextual menu, where you will find View as Icon. I also have Send Windows-Friendly attachments enabled.

  • Why does a PDF file created in Pages, attached to e-mail, not get sent?

    Why does a PDF file created in Pages, attached to e-mail, not get sent?  I even blank copied myself and nothing seems to have been sent.  Could it bee the size of the PDF file?

    They send for me, my test document was 3.8 MB.

  • How to chante the PDF File Name in Broadcasting

    Hi Team,
         Could you help me?, I am in a project where the customer need  the Following requirement with the PDF File Name in the Broadcasting:
    I am configuring one distribution Job in Broadcasting configuration Tab this Job need send a report via E-Mail in  PDF Format, but the customer requirement is that the file name is sent with the description name and not with the technical name from report.
    Then, some of you know "How change the name to the PDF File that is sent in the Distribution Jobs, I need the Description name, because actually the E-mail send the PDF File with the Technical Name, and the user does not want in that way".
    Thank you very much.
    Leslie Denise.

    Hi,
        Thank you for your answer, but that parameter i added in the content of the email. But I need change the name from the file not to add the description in the subject or in the content.
    And if there are somebody to know if is possible to change the name from the PDF File I will apreciate your comments and answers.
    But Thank you so much for your answer voodi.
    Regards
    Leslie Denise.

  • Unable To View PDF Files From Google Mail

    This is probably a GMail problem, but it's on my iPod Touch so I thought I'd ask.
    Up until recently, I've been able to view PDF files that have been attached to emails in GMail on my iPod Touch. However lately, I've been getting the following error message when I click on the PDF file:
    +Server Error+
    +We're sorry, but Google Mail is temporarily unavailable. We're currently working to fix the problem -- please try logging in to your account in a few minutes.+
    Well, I've done the logging out and logging back in, and it doesn't work.
    When I try to download the files on my computer, it works fine.
    Is anybody else experiencing this problem?
    Thanks in advance.

    I think it is an Acrobat issue. I have seen it and with PDFs not linked to Fm or Rh. Sometimes you can see the issue and sometimes you don't. I also have Nitro PDF and that displays the PDF without problems.
    If it is a PDF you create, I guess you could try some different settings or use something else to create it to see if the problem goes away.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Compress Smartform PDF file before sending mail

    Hi Experts,
    I need to compress PO smartform.Smartform already converted into PDF file.Vendor received this file as an attachement in their mail box.Vendor complains that file size is too large.They want to compress that PDF file before sending mail.
    Anybody can suggest how to compress a smartform which is already converted into PDF.

    Hi Michael/Satyajit,
    First of all thanks for the suggestions.
    Actually I am working for a application maintenance project and after go-live user is complaining that previously the PO form size was 57 KB and after this implementation the form size is 618KB that is not acceptable.
    I checked with the legacy system and found that the previous form was developed using SAPScript,converted to PDF and then used to send as an attachement to user mail box.
    The new development environment using Smartform for PO form and then it is converted to PDF and send as an attachement to user mail box.I checked with the Logo and the logo size is only of 9KB.No other graphics used in the form.The developer had used 3-4 boxes in the form and page format is landscape. Style is used in the form and the used font is courier,font size is 10 pt .
    Will change in style's font and font size reduces the size upto that level??

  • Can not open all .pdf files in Yahoo Mail.

    Three computers using Windows XP and Internet Explorer can open all .pdf files in Yahoo
    Mail. The fourth and newest Computer with XP Pro, Internet Explorer, and the latest Adobe
    Reader can only open some, but not all, .pdf files in Yahoo Mail. Nothing happens when
    the window is clicked to open file. How can this be fixed?

    Adobe Reader isn't my favorite, but neither are smug and uninformed assertions about Preview. There are PDFs that render only squares and marks under Preview (http://apple.stackexchange.com/questions/24209/this-pdf-displays-with-question-m arks-instead-of-letters), which is a common problem in MS Windows Office generated PDFs, so you may actually need Adobe Reader for Mac.
    If you need to use Adobe Reader (as I do), then it may depend on the filesystem type where you save your PDF.  For example, our Macs are network homed.  Saving to desktop produced the error reported above no matter whether I used Safari:Save As, or the PDF save icon. 
    However, when I saved to a local drive (such as /tmp), then it worked.  I don't know why file system makes a difference, unless Adobe is doing something with extended attributes that doesn't get written correctly to some filesystems.
    Hope this helps.

Maybe you are looking for