File type problem with email attachments

Hi,
I'm using SO_DOCUMENT_SEND_API1 to send email with an attachment. This attachment is a random file uploaded by the user on an ITS web site and sent to my FM.
It is all working fine as long as I tell SO_DOCUMENT_SEND_API1 that the doc_type is 'PDF'. When I say it's 'JPG' I get an error "Message cannot be processed as it cannot be converted".
It's not the actual file that is the problem, I can send jpg-images or any other file as long as I say t_packing_list-doc_type   =  'PDF'. However this leads to the attached file being called *.PDF instead of *.JPG, and the receiver has to rename it.
The relevant code is
  t_packing_list-doc_type   =  ld_format.
  t_packing_list-obj_descr  =  ld_attdescription.
  t_packing_list-obj_name   =  ld_attfilename.
where
- ld_format is the file extension (e.g. 'jpg', 'pdf', ...)
- ld_attdescription = ' ' (1 space)
- ld_attfilename is the file name without extension (e.g. 'image001')
My FM has to work with any file extension. It receives the file name and the file extension (jpg, pdf, doc, whatever) as an input parameter along with the file, and I just need to be able to email this file with the originale file name and extension no matter what that extension is. Any suggestions? Tia.

hi Filip Camerman,
i am giving you the sample code try this as such.
it_packing_list-transf_bin = 'X'.
it_packing_list-head_start = 1.
it_packing_list-head_num = 1.
it_packing_list-body_start = 1.
it_packing_list-doc_type = 'PDF'.
it_packing_list-body_num = tab_lines.
it_packing_list-doc_size = tab_lines * 255.
APPEND it_packing_list.
Regards,
Balaji E.

Similar Messages

  • Problem with email attachments

    I have a problem attaching scanned files to emails. They downsize froma 1Mg scan to a 20kb unreadable attachment when I move them to an outgoing email. How do I fix this ?

    When you add the attachment to the compose window, look in the bottom right corner to attach full sized.
    Captfred

  • Problem with email attachments in 10.10.2

    I posted this in the Mail category but I'm also putting it here because I think that it's a Yosemite issue...
    After the Yosemite 10.10.2 updated that I did last night (1/30/2015) I am having trouble saving attachments from received emails.  I can save the attachment by going to "File" and then "Save Attachment" but I can't do it directly from the message header like I used to.  When I move the mouse to the header I do get the option to "Save all" and when I click on that it seems to work normally.  But after supposedly doing that save the file does not show up in the folder where I "saved" it.

    OK, this is getting really weird!  A 2nd followup...
    Attached files are now saving the way they always have and I made no changes since my last posting!  The only thing that I did was check to see if I could save from my gmail to the downloads folder.  That worked and now saves work to any folder!
    Very strange!  But I'm not complaining!

  • Having a Problem downloading Email Attachments

    In the last month or so (probably late July early August), I have started having problems with email attachments and I have changed no settings.  I have them set to save to my card and the size is set to Maximum in the email settings on both of my email accounts AND there is plenty of room on both the phone memory and my card.  Most of them will not DOWNLOAD to the phone.  I get a list of the attachments with the attachment name and the download arrow with an exclamation point and when I try to re-download they still won't download.  This is becoming a major hinderance for my work because I am expected to be able to read these.  Simple text documents, word doc's, excel spreadsheets, pdf's.  On the same email from 9/12 I have a .doc and a .pdf that did download and another .pdf that did NOT.  HAS THERE BEEN SOME DOCUMENT SIZE CHANGE or some other change that is causing this???  I rarely if ever had this happen before.  Please help me...very frustrated.

        dlcooper, that sounds frustrating!  I'd love to help.  What specific application are you using to download and view the email attachments?  Let me suggest resetting the application.  http://bit.ly/Rjsdjr  Retest and let me know how it works out for you.  Thanks!
    AnthonyTa_VZW
    VZW Support
    Follow us on Twitter @VZWSupport

  • Since changing our computer I have been unable to download ebooks to my Reader Library I get a message Some file types associated with EPUB files are not associated with Reader Library; Waterstones suggest that I may have accidentally created a new Adobe

    When I try to download them from the Waterstones website I get a message saying:
    ‘Some file types associated with EPUB files are not associated with Reader Library.  Do you want to associate them now?  When I reply yes I get another message; ‘Configuration error unable to update EPUB files check network firewall and try again’.
    The ‘books’ are saved in the Download directory and I can’t transfer them from there to my E-Reader. I have not had any problems before, it was very simple; I saved the download and it automatically went into the Reader Library.
    I contacted HP and they said it is a software error and suggested I contact Waterstones.  I contacted Waterstones Customer Support and got the following response:
    As the error message is specifically mentioning the firewall it does sound like something in the firewall settings is stopping the download from taking place correctly. However, the files should not be being saved to the Download folder. It would be worth trying again by going to your Digital Order History on your Waterstones.com account and pressing the download button, and then making sure to press "Open" not "Save". When you press Open rather than Save it should give the option to open the file with Adobe Digital Editions. If the firewall message still comes up then I'm afraid something is blocking it on your end.
    If the above "Open" download method works but you then still get an error message it could possibly be that you have accidentally created a new Adobe ID when setting up on the new computer, rather than signing in with your old Adobe ID. It would be worth trying the aforementioned download technique again first, but if problems did still persist it would be worth calling Adobe themselves on 0207 365 0735, as they should be able to sort out any account issue.
      In response to the first para of Waterstones email I already do what they suggest I do press ‘Open’ not ‘Save’ but I don’t get the open with Adobe Digital Editions (we have installed Adobe Digital Editions on the new computer. Waterstones say we may have ‘accidentally created a new Adobe ID when setting up the new computer’ does that mean that we shouldn’t have installed Adobe Digital Editions on the new computer as it would have already been there? How do I sign in with my old Adobe ID? 

    Hi all after attampting to get some supoport from adobe by phone.... nice people infurating policys as far as support for digital editions or DRM is conserned... However I got no where with support.
    I ended up instaling Digital editions on my desktop PC and going through the motions of registering and borrowing a book then returning it. Then I trying on my iPad, Bluefire worked, Over drive did not so I completely removed Overdrive and reinstalled and re registered. all working now.
    Maybe some one at adobe did something. Maybe the install of the adobe DE client on a PC corrected what ever was out of wack with my account. Mayby the server that my account lives on did a scan disk and corrected a bad clustrer.
    What ever happend My account is actiove and working again. hope this helps others.

  • Why is Apple so bad at providing customers with information on what the problem with email is and what they are doing to fix it?

    Why is apple not providing information on what the problem withe email is and what they are doing to fix, along with a time frame for fixing the problem.

    It was because the problem was major.  If you do not know tech, you should know that a two day outage usually indicates some type of virus, hack, or a bad software load that they had to unravel.  The common way to solve that is to rebuild servers and put back into service.  That takes time.
    Apple did not want to admit this problem.  My guess at this stange was that they loaded new software that might be associated with the new IOS and it crashed.  To reveal this would be to cast into doubt their future revenue.
    Either way.  Run do not walk away from Icloud products and services.  Apple has demonstrated they can not be a business partner.

  • Experimenting with email/attachments

    Experimenting with email/attachments - and the problem with an ATT00001.htm attachment also appearing in Outlook/AOL recipients. is there any way to always force attachments added in any app to be placed AFTER the default email signature ie. at end of message ??

    Our office is having the same problem. Simply can't attach to the email. When the attachment is attempted it just stalls. Nothing. No change. Just won't do anything. We can forcequit the program but it doesnt solve the problem.
    When computer is restarted we are able to attach. Then after a while of routine use of MS Word and Dropbox the problem starts again. Note that we can't even attach stuff from the desktop when this occurs, so I dont think its related to Dropbox.
    We werent having this problem until the recent updates.

  • CS1 and CS2 InDesign file type problems and Tiger

    Dual 2.7GHrz G5, 2GB RAM, OSX 10.4.5
    Previously, InDesign 3 (CS1 version) was installed on this Mac. I needed to install the full CS2 package. Everything installed just fine. The problem I am having is the file type associations. The Mac now sees CS1 InDesign files as Indesign CS2 files. I got info on a file I knew to have been created and saved in InDesign CS1. I changed the "open with:" to InDesign CS and it worked until I hit "Change all". It then reverts back to a CS2 file type. On other sites I found some different things to try like rebuilding or deleting the LaunchServices pref files, checking to see if their was a CFBundleIdentifier, etc. Anyway, what I seem to have found is that Tiger gets confused when the Type and Creator are the same in the info.plist files. Panther, however, does not seem to have this same problem. We have 10+ other G5's of similar hardware specs as the one listed above, running Panther 10.3.9, have CS1 and CS2 installed, and we are not having the same file type problems.
    As a test, I modified the CFBundleIdentifier to be different than the one found in the CS1 info.plist, and it let me "change all" the CS1 files to CS1. Of course, CS2 files could not be associated with CS2 now.
    Is there a fix for this? Or, is there a patch being worked on that will fix this problem? We really need to keep both versions of the software installed, and I don't want to have to rely on users making the decision about what version they are working in.
    Tom

    If Get Info shows both app versions (& it should) as "Open with:" choices, you can at least still set individual docs to open with the preferred version. Instead of having to open Get Info windows, you can do the same thing a bit more easily with the contextual menu that pops up when you right (or CMD) click & hold on a Finder document icon.
    Normally, the "Open with >" choice in this menu is a one time thing, but if you hold down the option key, it changes to "Always Open With >" & makes the new app choice permanent as it opens the doc, all in one step.

  • Please can anyone help with the continuing password rejection problem with email.Ipad and other systems work fine but despite reloading my password on imac it bounces back.Apple store has been visited and I have tried everything they suggest.

    Please can anyone help with the continuing password rejection problem with email on my imac.My Ipad and other systems work fine but despite reloading my password on imac it bounces back.Apple store has been visited and I have tried everything they suggest.

    I use free Yahoo mail webMail access because folders I created in webmail access doesn't get set up in Apple Mail. While I was searching for post about password and keychain issues, I stumbled on several threads that complain about Mail folder issues, so I'm holding off on Apple Mail.
    On the password and keychain issue that your post is all about.  I've been using login keychain to save and automatical fill my login screens for a year or so successfully, with Safari and Chrome. Automatic form fill also works for Facebook login. Unfortunately, about 4 to 6 months ago, automatic password form fill stopped working with Yahoo webmail, while still worked for GMail (Safari and Chrome). I tried deleting the password entry for my two Yahoo email accounts to start fresh, but neither Safari not Chrome will even ask me if I want to save the password. I was so frustrated that I eventually installed the keypassX 0.43 (password manager) that is quite primitive sompare to OS X's keychain (when it works). Probably no surprise to you yet.
    The surprise, to me at least, is that, for whatever reason, password auto form-fill from keychain started working again for Yahoo webmail login on Safari about 5-7 days ago. Still doesn't work on Chrome!
    Two tips I can share, at least with webmail access:
    1. Password is save only for one of my yahoo mail accounts. When I login in with my other yahoo account, I get no prompt to save the password, and form fill doesn't work when I try to log in a second time with my other Yahoo mail account.
    2. On inspection of my login keychain, I see a webform password item saved for my Yahoo account that works with keychain. The name of the password is: login.yahoo.com(MyAccountName1#). When I open the password item and look in the Access Control tab, I see Safari and Chome are listed as allowed to access this password item..
         I also an "Internet password" item with a name of just login.yahoo.com. When I open the the password item, it looks just like the password item created for MyAccountName#1, but the MyAccountName#2 is listed in the Account field. Inside the Access Control tab, no apps are listed in access permission. I added Safari and Chrome to the lists of allowed app, saved the password item.
    Now when I bring up the Yahoo login page(by bookmark) on Safari, form fill fills in MyAccountname#1 for name and the proper password and I can login in. When I change the name to MyAccountName#2, the correct password is retrieved and I can log in! Alas, it still doesn't work on Chrome.
    BTW, I changed the password item type from "Internet password" to "Web Form password" and saw no difference! I also edited the name to be "login.yahoo.com (MyAccountName#2)" to look like the web form password item that works, but it has no effect either.
    From my experimentation, here's my observation:
    1. A Web Form password item is created for the first account name(MyAccountName#1) for login.yahoo.com and typed as Web Form password. When I log in using MyAccountName#2, an Internet Password is created, but no applications are listed as allowed to access the password item, even when the password item was created after just logged in and logged out to yahoo with the account name and password for MyAccountName#2.
    2. Manually adding Safari as an app that is allowed to use the password item works. Doesn't work with Chrome!
    The version of Safari I'm using is Version 5.1.7 (6534.57.2). My installed version of Chrome is Version 21.0.1180.79 beta.

  • Problem with Emailing the Internal table data as an excel attachment

    Hi Friends,
    I am facing problem with Emailing an internal table data as an excel file. I am using standard function module "SO_NEW_DOCUMENT_ATT_SEND_API1" which is using SOLI structure can have record with 255 character length. But my Internal table having each record means after concatenating all the fields it is going to be morethan 450 characters. so i t is not displaying all the data in excel file.
    Can somebody help me if there is any other function module or any other way that i need to follow.
    thanks for help
    venkat.

    You must use the the :
    CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB as a field seperator and
    CL_ABAP_CHAR_UTILITIES=>CR_LF as a record seperator.
    Check this example:
    http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
    Regards,
    Naimesh Patel

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • Problems with email and SMS after 1.3.5

    Let me first say that I love the Pre. Up until this point it has been perfect - I have a replacement, but that is because I dropped it (wrong angle, wrong location, broken screen). However, following the 1.3.5 update I'm now having a fairly important problem with email and sms - I can receive email and messages, but not send them.
    I have two email accounts. My personal account is with earthlink. My work account goes through an ISP using the domain name of my employer. I'm not using Microsoft Exchange or Outlook. I have tried deleting and reentering the accounts and that did not work. I can receive messages but get error messages when I try to send. 
    The same for messaging. I don't use it very often. But yesterday I get a text message  and tried to respond and got the error message.
    I power the phone off every night because I have a landline and use that as the primary phone at home.
    I have been looking around message boards trying to find a fix for this.  Has anyone had this issue and resolved it?
    Thank you.
    Post relates to: Pre p100eww (Sprint)
    Message Edited by starburst42 on 01-05-2010 07:06 AM
    This question was solved.
    View Solution.

    I forgot to add that this is a stock Pre. There are no patches or homebrew apps. 
    Edit:
    I found a fix for the email problem, in posts on precentral and this board from a few months ago. The info came up in a Google search, and not searches of the boards, which is kind of frustrating.  Here is the info, and the link.  I really wish Palm would put info about this work around on their site, or at least make it easy for people to find.  The solution is the last message in the thread linked below:
    Had the same problem.  Checked with Earthlink - no help.  Checked with Sprint - no help.  Checked with Palm - no help.  Here is what finally worked:
    Delete the earthlink account and start over.  When you do - this is the key - set up the account manually!  If you use the Pre defaults and try to change the settings it will not correct the problem. Your settings for outgoing mail must be:
    "smtpauth.earthlink.net"
    Use Authentication set to "on"
    username is your email address
    your email password
    port set to "587"
    encryption "none"
    Again, the key is to set up manually.
    smtp email fix
    Message Edited by starburst42 on 01-06-2010 12:08 PM
    Message Edited by starburst42 on 01-06-2010 12:09 PM

  • I am having a problem with email, when I delete messages from my Ipad, they come back into trash whether they are on my PC or not. The only way I can delete them is to to my providers site and delete everything there.

    I am having a problem with email. I can receive and send, but when I delete, the deleted messages return into either Trash or Bin or both whether or not I have deleted them from my PC.
    The only way I can get rid of them permanently, is to go into my area of my providers site(Sky) and empty all of the boxes there. I imagine it's a setting, please advise.

    For IMAP mail only.
    Settings>Mail, Contacts, Calendars>tap on mail account>Archieve Messages>OFF

  • I have Windows 7 for PC if I view a jpg file I gat the following message - Some of the file types associated with QuickTime applications are currently associated with otherapplications. Should I restore these file type associations to Quicktime. Yes or No

    After viewing a jpg file on my Windows 7 PC I get the following message and I don't know how to answer it "Some of thw file types associated with QuickTime applications are currently associated with other applications. Should I restore these file type associations to QuickTime?" Options are " Yes, No or Do not ask to perform yhis check again. QuickTime Control Panel can be used to make subsequent changes."
    What shoul I do about this message?

    Select no.

  • Problems with email account on ipad2 when changing from mobileme to icloud

    Problems with email account on ipad2 when changing from mobileme to icloud

    Would you please give us some more information about your problems.

Maybe you are looking for

  • How to show dependency Arrrow in Project Gantt chart ?

    Hi, I have a requirement in which I need to show a Gantt chart showing Project and corresponding task of it. If Say Task2 is dependent on Task1 then I need to show an arrrow between these two tasks showing the dependency direction. But in my prototyp

  • Why won't my iPod touch (4th gen) no longer connect to wifi?

    Yesterday I noticed that my iPod Touch (4th generation) was no longer connected to my home wifi. It can see the network, but it won't connect. There is no error message of any kind, but the spinning wheel thing comes up to the left of the network nam

  • SAP XI Seeburger and X.400 Adpater

    Hello, We are trying to implement Seeburger X.400 Adapter in our XI 3.0 landscape for the first time. I went through Seeburgers config documentation and did all the setup and still getting errors. Not sure what I missed. At the log it seems to be com

  • Ipad/Iphone 4s with 7.1 OS distorts pictures received in email

    A friend sent me a few pictures of furniture. I use Outlook 2010 connect to an MS Exchange server. They appear fine in my Outlook 2010 on my Windows PC - I can download them, work with them, etc. However, if I look at them on my Ipad 2 (7.1) or Iphon

  • Macbook bad DVD drive how to install windows in bootcamp

    My macbook has a bad DVD drive. I just upgraded it to snow leopard and want to install windows using bootcamp. Unfortunately when the windows installation starts the machine reboots but does not seem to be able to detect the windows disc in an extern