File name - When sending a email.

I am just doing a report.the report fetches some data, do a GR Using a BAPI for each line item.
If there are error logs - the logs will be sent to the respective email id which is entered in selection screen.
My Question is.
1. Email is working - > but the file name is coming as ATT*.XLS
PERFORM send_file_as_email_attachment
                                   TABLES it_message
                                          it_attach
                                    USING s_email
                                          'GR Log Entries'
                                          'XLS'
                                          'GR_Error_Log'.
FORM send_file_as_email_attachment  TABLES   it_message
                                             it_attach
                                    USING    s_s_email
                                             p_p_mtitle   "value(p_0402)
                                             p_p_format   "value(p_0403)
                                             p_p_filename "value(p_0404).
ld_mtitle  = p_p_mtitle.
  ld_format              = p_p_format.
  ld_attfilename         = p_p_filename.
   t_packing_list-doc_type   =  ld_format.
  t_packing_list-obj_descr  =  ld_attdescription.
  t_packing_list-obj_name   =  ld_attfilename.
  t_packing_list-doc_size   =  t_packing_list-body_num * 255.
  APPEND t_packing_list.
This t_packing_list is passed to  FM CALL FUNCTION 'SO_DOCUMENT_SEND_API1'.
packing_list               = t_packing_list
ENDFORM.
Please let me know how can i get the correct file name....? ---GR_Error_Log.XLS
2.This report take the file as input from application server.
Hence the first value comes PO number then item number -- this is seperated by PIPE Symbol.
So i am Spliting these values using Split Command as below
SPLIT wa_string AT v_pipe INTO wa_ekko-ebeln wa_ekko-ebelp
when the first line item comes in the file - if there are lenght of PO numbre is 10 Char - its taking only 9 ...and the last number is not picked up.... as per my analysis ...i guess there is a empty space in the front ....but we could not see that exaclty...
i tried Condense ... Shift left with deleting ....its not working.
But the Second line item is working fine.
Please help me to solve this 2 issues.
Thanks
Senthil

Check the length accepted in ld_attfilename and your length of file name.
For testing purpose hardcode ld_attfilename         = 'GR_ERROR_LOG' and run it.
Kesav

Similar Messages

  • Change file name when sending form through email

    Hi all,
    I created a form that can be downloaded, viewed and completed by the user in Acrobat reader, and then sent by email as a pdf-attachment by pushing a submit-button. As the form will be sent by several different users to the same address, in order to avoid confusion it would be good when the filename would not be the original form name, but someting based on the individal data entered by the user.
    Is there a way of between having filled in the form and actually sending it, automatically change the file name? I know users could save the file first and thén send it, but I would like to spare them the hassle.
    Thank! Mateo

    To do that you woudl have to certify the form which brings into play a whole other series of issues.

  • Wrong senders name when sending an email from my ipad mini

    When I send an email from my ipad mini the recipient gets my email but is says it is from someone with a different surname to me.  How can I change

    Go into Settings>Mail, Contacts>Calendar>the email account in question and check all the settings. The name the receiver gets is set up in your account.

  • Preserve the file name when sending a file thru AS2

    Hi Ramesh,
    i encounter this requirement that my Customer want us to send a custom document to them with a specific filename thru AS2.
    for example:-ORG1234DES20070423.xml where the 1234 and 20070423 is dynamic value and i get it from the content of the document.
    they are using Cyclone
    can this be done and how ?
    thanks
    Kin Wah

    Hello,
    Right now we do not have a feature as part of AS2 Plugin where in we can preserve the file name. Please raise an SR, depending on the justification we can give this as a feature.
    Rgds,Ramesh

  • Ipad only uses one file name when uploading images via email

    We have an image tool that uploads images to a template website. The problem is the file names for these images must be unique any duplicate file names will be rejected. Some of our users want to be able to upload from the field but Ipad only assigns the file name "photo.JPG" to jpegs. It doesn't seem to include the sequential extension that actually does exist for the image on the file name when uploading. Is there a way to get ipad to do so, or is this something that Apple maybe want to consider looking into. I can easily see the average Joe emailing themselves images and hitting save only to replace and lose an older image because let's face it, not all users are on MACs and PC's do not allow multiple files to have the same file name in the same folder.

    Hi,
    Based on the description, you could send email to external addresses without the Twin Oaks software. However, with the Twin Oaks software, you couldn't send successfully.
    For this issue, I recommend you enable message tracking and check whether you could retrieve message tracking log entires when you send emails to external addresses through the Twin Oaks software.
    If you couldn't retrieve message these tracking log entires when you send emails to external addresses through the Twin Oaks software, it means that the Exchange server is OK and the crux of the problem is the Twin Oaks software.
    Here is an article about message tracking log for your reference.
    Get-MessageTrackingLog
    http://technet.microsoft.com/en-us/library/aa997573(v=exchg.141).aspx
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • How to set attched file name while sending email through ABAP

    Hi All- tell me how to set attched file name while sending email through ABAP.
    regards...
    Abhay

    Sure,  when you are adding your entry to the packing list,  give the name in the obj_name field.
    *File 2
      mailbin = 'This is file 2'.
      append mailbin.
      data: start type i.
      data: end type i.
      start = tab_lines + 1.
      describe table mailbin lines end.
      mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 1.
      mailpack-body_start = start.
      mailpack-body_num = end.
      mailpack-doc_type = 'TXT'.
      mailpack-obj_name = 'TEST2'.        "<-  RIGHT HERE
      mailpack-obj_descr = 'Subject'.
      mailpack-doc_size = tab_lines * 255.
      append mailpack.
    Regards,
    RIch Heilman

  • When sending an email to multiply recipiants, using address autocompletion, all the address boxes convert to the name in the first box

    I use Thunderbird for my email. When sending an email to multiple recipients, I use autocompletion from my local address book. When I select an additional recipient, the name initially appears correctly in the address box. Each time I drop down to add another recipient, the names in each box all revert to the name in the first box. I've used Thunderbird for 2 years and this just started today. Also, the cursor and names in the address box appear now in red instead of black. Hopefully you can solve this problem.
    Thank you,
    bradoc

    There are some evil bugs in the current version of Thunderbird. You may find it works better if you click with the mouse, or move down with the arrow keys and click or use tab. IIRC, there's an issue with use of the Enter key. Or maybe the other way round ; please experiment. It's one of those frustrating bugs that seems to affect everyone but me.
    You can download older versions here:
    https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/
    I believe 31.2.0 is free of this particular issue. 24.6 seems to be a popular choice for those who dislike recent changes in the Composition window UI.

  • When sending an email I used to be able to add a distribution list from my contacts, I now have to add each email address individually, does anyone know how I can add the whole list?

    When sending an email I used to be able to click on a distribution list in my contacts and it would add all the email addresses, I now have to add each email address individually and this takes a lot of time.  Could someone tell me how I can add a distibution list/group to my emails?

    Barney,
    I have four groups.
    I just typed the name of one of those groups in the To field on the iPhone's email, and received:
    Invalid Address
    "<group name>" does not appear to be a valid email address.  Do you want to send it anyway?
    I clicked continue and it remains in my outbox.
    Help is appreciated.
    Thanks,
    Michael

  • MacBooks can't resolve printer name when sending job to windows 2008 R2 print server.

    So I am work at company in a windows server 2008 r2 and we have a windows 2008 r2 printer server. Our macbook pros are not on the domain so every time we print to the server we have to type in our credentials.
    MacBooks can't resolve printer name when sending job to windows 2008 R2 print server while on wifi but works when hard wired. Any thoughts? The error message I receive is "invalid printer name". I've tried adding the printer through the advanced tab in the print and scan tab of system preferences. I add it buy smb://servername/printername.
    When I tried to print on the wifi at my office I get "invalid printer name" in the print job status que.
    We can just do direct printing but I would like to know if anyone has had this issue before and if you could point me in the right direction. Thanks!

    I assume you aare using exchange when configuring the email notifications? What I would do is just use a normal IMAP & SMTP account such as Outlook.com or if you use a POP connector for exchange, one of those accounts' SMTP settings.
    For example, I have a POP connector installed and my emails are hosted at 1and1. What I would do here is put my 1and1 SMTP settings in and use these, instead of using Exchange.
    Let me know if this is possible.
    Ed

  • Using JProgressBar when sending an email

    Good day to all! How can I use the JProgressBar to monitor progress when
    sending an email? I am using the Email package by Jakarta Commons.
    Somehow, I need my application to display progress since the send( )
    function takes a considerable amount of time to complete.
    Regards...

    >
    I Want to learn how to send email . Could you please
    tell me how to send email. and also give me some
    sample Code . so that i can Understand
    Sure. :) I just used a simple-To-Use API of Jakarta Commons Email, which is
    built on Java Mail. Their main site may start you off through simple examples.
    Go to this page: http://jakarta.apache.org/commons/email/userguide.html

  • Certain characters not appearing in the "full name" when sending e-mail

    I have certain characters in my full name of one of my e-mail aliases in iCloud. However, those characters are simply absent from the name shown as sender name when sending mail from Mail app in OS X. For me the problematic characters are C5 A1 and C4 8D (UTF-8 codes).

    Yes, š and č are those. Sorry, I wasn't sure if they will work here. I have my full name containing the š and č in the "Full Name" field of the e-mail alias settings on web interface to the iCloud Mail. But in Mail on OS X my name in the "From" field appears without those two characters (other characters are OK) when I select this alias. Also, those two characters are invisible at the recipient's side. And yes, if I sent a copy of such a mail to myself the š and č are missing again in the "From" field.
    However, I have the same full name with š and č for my main e-mail address (iCloud account name). Using this main e-mail address š and č appear everywhere!
    Message was edited by: mikkec

  • How do I get my photos to sort by file name when sync'd to the iPad?

    How do I get my photos to sort by file name when sync'd to the iPad?  The default sorting method changes the order of pictures when sync'd from my pc.

    http://support.apple.com/kb/HT4221

  • How to retain numerical order (Of file names) when combining files in Acrobat (9) Standard

    How to retain numerical order (Of file names) when combining files in Acrobat (9) Standard, please see the attached screenshot for a clearer explanation.
    I understand that if we prefix all files with leading zero's this will probably resolve the issue but I just wondered if anyone new the answer. The ironic situation is that version 6 has no problem.
    I have spent over an hour with techincal support who were unable to provide me with an answer

    It is not clear how you are trying to do the order. Have you tried to select a set of files and then use the arrow buttons to move them in the list? If you select the heading, that will typically reorder the files by that heading and undo everything you had done before.
    You should be able to select groups of files and move them up and down in the list. All of those options appear on your view, so what is the real question?

  • Same file name from sender to receiver file adapter with out using UDF

    Hi All,
    I am working on FILE TO FILE. My requirement is same file name from sender to receiver file adapter. Is it possible to do using only Adapter Specific message properties?  i mean with out using UDF.
    Thanks
    Karthik

    Hi,
    >>>Is it possible to do using only Adapter Specific message properties?
    yes
    just enable Adapter Specific message properties in sender and receiver channel for file name
    and you're done
    Regards,
    Michal Krawczyk

  • Same file name when downloading new pics

    The prev camera I had (Sony Cyber shot/Steady Shot?)always kept dynamic file numbers/names however now have Nikon D90 and now if do search on a file number now get numerous pics under same file name as new camera restarts at same number all the time.
    Is there an easy way to deal with this. I would really not want to have to rename all files as soon as I download them. That can be over 300 pics at a time.
    Any help would be greatly appreciated! Thanks!

    When I say file name I mean the name/number that appears under the pic in iphoto.
    Yes that is the file name
    Do most people leave these numbers or change them, do you know?
    Most people leave it - some preprocess all photos and assign meaningful file names and then import
    I know you can assign words to them and then retrieve them by calling up all pics associated with that word(s).
    You can assign a title (which can optionally be used as the file name when you export photos), a description, keywords, and a rating
    Do you have any other hints for me? Do you use the Mangler software you referred to in the prev post?
    Normally I do not modify the file names - if I get photos from someone else I usually use name mangler to identify the source (which I could do with keywords but for photos that are not mine I prefer having the file name show the source) - once in a while I will change some but normally I just import directly from the camera and ignore the file name
    LN

Maybe you are looking for

  • Why is Mail 6.2 not displaying messages from my Exchange account?

    Greetings, I have a new 13" MacBook Air running Mountain Lion and I'm noticing that most of the time my Mail inbox is not displaying messages from my work Exchange account; however, it does display messages correctly for my Gmail account.  I've inclu

  • Reporting services integration feature not available in 2010 experience mode site collection.

    I have a 2013 SP farm with SQL reporting services 2012 configured. When I create a site collection using the 2010 experience mode, I don't see the "Reporting Services Integration" feature under site collection features. However this feature is availa

  • Dock uses 100% CPU

    My Dock process, after a while, begins using 100% of a CPU core. I can kill the Dock process and everything goes back to normal once the Dock restarts. I have no idea what is triggering the Dock to start consuming CPU. Has anyone else seen this, or h

  • Get Computer name and move

    Hi all , i need help with small problem , i tried to create new script that know get all computer names that start with " ISR..." And then move them to another ou , i have 2 convention name on my organization name  , 1 - ISR , 2 -TLV  .  some compute

  • Displaying Travel Expense form as attachment to UWL workitem

    Hi experts, We have customized the travel expense workflow that is WS20000040. When the requestor raises a travel expense request it goes to the manager for approval in his UWL. There by default, according to the standard functionality, when approver