Regarding the Email attachment again....

Hi guys its still pending....
Am using the function module SO_NEW_DOCUMENT_ATT_SEND_API1 to send Email.
I have 2 issues...
1) I cannot send the file as attachment. Its going in the body of the mail.
2) The max column size is 256 but i need to send 537 and is must.
Please help me out...
Thanks in advance
Abhi....

HI
GOOD
HERE I AM GIVING SOME DETAILS ABOUT SENDING MAIL, YOU CAN TRY WITH THEM.I HOPE THIS WILL HELP YOU TO SOLVE YOUR PROBLEM.
Sending External email through SAP
What is the FM for sending the external email through SAP by attaching layout set  to it?
These are the FM for sending external email :-
SO_DOCUMENT_SEND_API1 
SAPoffice: Send new document with attachments via RFC 
SO_NEW_DOCUMENT_ATT_SEND_API1
(In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)
SAPoffice: Send new document with attachments via RFC 
Note : If you are using FM SO_NEW_DOCUMENT_ATT_SEND_API1 then Export Parameter DOCUMENT_DATA-OBJ_DESCR contains the Subject. 
SO_NEW_DOCUMENT_SEND_API1 
SAPoffice: Send new document 
How to send a report to an external mail-id?
Try this sample code :-
REPORT ZREPORT_TO_EMAIL NO STANDARD PAGE HEADING LINE-SIZE 200.
DATA : BEGIN OF ITAB OCCURS 0,
PERNR LIKE PA0001-PERNR,
ENAME LIKE PA0001-ENAME,
END OF ITAB.
DATA: message_content LIKE soli OCCURS 10 WITH HEADER LINE,
receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
listobject LIKE abaplist OCCURS 10,
compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
w_object_hd_change LIKE sood1,
compressed_size LIKE sy-index.
START-OF-SELECTION.
SELECT PERNR ENAME
INTO CORRESPONDING FIELDS OF TABLE ITAB
FROM PA0001
WHERE PERNR < 50.
LOOP AT ITAB.
WRITE :/02 SY-VLINE , ITAB-PERNR, 15 SY-VLINE , ITAB-ENAME, 50
SY-VLINE.
ENDLOOP.
Receivers
receiver_list-recextnam = '[email protected]'. "-->
EMAIL ADDRESS
RECEIVER_list-RECESC = 'E'. "<-
RECEIVER_list-SNDART = 'INT'."<-
RECEIVER_list-SNDPRI = '1'."<-
APPEND receiver_list.
General data
w_object_hd_change-objla = sy-langu.
w_object_hd_change-objnam = 'Object name'.
w_object_hd_change-objsns = 'P'.
Mail subject
w_object_hd_change-objdes = 'Message subject'.
Mail body
APPEND 'Message content' TO message_content.
Attachment
CALL FUNCTION 'SAVE_LIST'
EXPORTING
list_index = '0'
TABLES
listobject = listobject.
CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
compressed_size = compressed_size
TABLES
in = listobject
out = compressed_attachment.
DESCRIBE TABLE compressed_attachment.
CLEAR packing_list.
packing_list-transf_bin = 'X'.
packing_list-head_start = 0.
packing_list-head_num = 0.
packing_list-body_start = 1.
packing_list-body_num = sy-tfill.
packing_list-objtp = 'ALI'.
packing_list-objnam = 'Object name'.
packing_list-objdes = 'Attachment description'.
packing_list-objlen = compressed_size.
APPEND packing_list.
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = w_object_hd_change
object_type = 'RAW'
owner = sy-uname
TABLES
objcont = message_content
receivers = receiver_list
packing_list = packing_list
att_cont = compressed_attachment.
GO THROUGH THIS LINK
http://mailman.mit.edu/pipermail/sap-wug/2006-April/022007.html
THANKS
MRUTYUN

Similar Messages

  • Limit the email attachment size XI

    Hi All ,
    I am working on a requirement . I did an extensive search on this(SAP Notes, SDN and on the system itself) but couldnu2019t find any such functionality provided by SAP.
    1.  CCMS configuration for the ability to check emails being sent out of Sap that exceed a certain threshold i.e. 5+MB for an attachment.
    The only thing that I could figure out was that we can limit the email attachment size (SAP Note 837300) but this is not what is required.
    Wanted to check , whether someone is aware of any such functionality. It would be really helpful.
    Thanking in anticipation.
    Warm Regards
    Amit

    Thanks Michael .
    Anything I can can do with the payload size in XI .
    I can get the payload size from sxmb_moni tcode. Can I generate alerts based on payload size ,again I am aware that we can limit the size of the payload ,but can we generate something based on payload size.
    Thanks
    Regards
    Amit
    Edited by: Amit Bangotra on Feb 2, 2010 12:44 PM
    Edited by: Amit Bangotra on Feb 2, 2010 12:53 PM

  • The email attached to icloud is longer in use. I would like to use the email attached my my appleid. Can you help? Thanks

    The email attached to my icloud is no longer good. I would like to attach a new email to the icloud. The same one i use for my apple id.

    I thought you wanted to change it on your Mac since this is the iCloud on my Mac forum.  To change it on your phone, go to Settings>iCloud, tap Sign Out (or Delete Account if you aren't running iOS 8), then choose Delete from My iPhone and provide your password when prompted.  If you're syncing your Mac with iCloud, you should also go to System Preferences>iCloud, click Sign Out and choose Delete from Mac at all of the prompts.  Then change the primary email address associated with your iCloud ID as explained here: Change your Apple ID. Once you've made the change and verified the new address, go back to Settings>iCloud, sign in with the revised ID and make sure your sync settings are the way you want them as well as turning on Find My iPhone again.  If you're syncing your Mac with iCloud, also go back to System Preferences>iCloud and sign back in with the revised ID.  Your iCloud data will download back to your phone and Mac with you sign back in.

  • How to make the Email attachment password protected?

    Hi,
           Is there any way to make the email attachment sent via SAP password protected so that when the receiver tries to open it, it will ask for password?
    Jissa.

    see [old posts|Protect Workbook] before you post new ones..
    Regards,
    Srinivas

  • I bought an iphone 4 from my friend and he do not know his apple ID and we are trying to know the email attached to is apple ID so we can rest it cause he forgot them as well and the reset button in the 2 steps always says that the email is always sent !

    i bought an iphone 4 from my friend and he do not know his apple ID and we are trying to know the email attached to is apple ID so we can rest it cause he forgot them as well and the reset button in the 2 steps always says that the email is always sent ! ( even if you wrote a worng ID like ( asdasdasd ) it will say sent !! how come and now am trying to know or need a hint on that email so my freind could try to remember it !
    to those who will think that this phone is stolen , no its not and i would love to go to apple store if there is 1 in jordan so they can help us ,
    i have everything with this iphone the box the catalog its serial number , everything but the ID and the (and apple ID is everything as you know)
    so please if anyone have any suggestion to help me , and even apple it self if the can help me to get a support from them cause i tried everything to contact them by mail or any other option since as i said there is no apple store in jordan

    he knows his ID , if he did all whats in the link he can get his password back ?
    how can i make him call applecare ? is there a way to speak to them from jordan ??
    i have been trying to reach any1 in apple so they can communicate and help my friend (us) to make him remember it .
    am not asking for the password or trying to get into the phone without using it , and i can take my money back though i need to help my friend as well since now he cant use it as well.
    thanks kil

  • How do I customize the Email Attachment name in Email Bursting?

    I had worked on BI Publisher extensively on 10g and 11g. I have a client requirement with BIP email bursting to deliver the reports as email attachments. I'm able to do it, and also customize mail body etc. However the email attachment file name is randomly generated with some numbers. I read through the docs, and couldn't find any parameter mapping to the attachment/file name (like we do it with File bursting). How do I specify the mail attachment file names in my Busrting properties?
    Thanks,
    Padma

    Please go through the following link:
    http://garethroberts.blogspot.com/2008/03/bi-publisher-ebs-bursting-101.html
    I think after the 'Output' we can specify the filename

  • How can I print only the emailed attachment to my ePrint enabled printer?

    I have ePrint working fine.  I was able to email an attachment to the printer from many miles away.  To prevent wasting paper, I'd like to be able to tell my printer or ePrint Center to just print the attachment, not the email it is attached to.
    I have an HP OfficeJet 6500A.

    Hi Sparty80,
    The way ePrint is designed, it will print the body of the email and any supported attachments. The only way to print the attachment and not the body of the email is to attach the document to a blank email, or delete the body in the email when you forward the message, which maybe easier.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Deleted the email attached to old Apple Acc & forget password. Still registered to my iPod? How do I use a new Apple ID in App Store for my iPod?

    I have deleted the email address attached to my Apple ID. I know what the email address is but it is non-existant. I thought I remembered the password but apparently it is incorrect? When I go to the App Store on my iPod and click my account to try and sign out. It does nothing and the button is faded out. When I try to download a free app it asks for the password for the old account with a deleted email attached to it. How do I sign out of this account on my iPod so I can sign in to another Apple ID to download apps?

    - Go to settings>Store and sign out and sign into another account.
    NOTE:
    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.
    Try recovering access to your account by using the secret question methosd
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.
    Then
    I no longer have an email address that was also my Apple ID. Can I still use the email address as my Apple ID?
    Apple recommends you change your Apple ID to your current, working email address. This will not create another Apple ID, it will only change it to your working email address. See Changing the name you use for your Apple ID if you'd like more information.

  • Regarding the email function in Iphoto

    When I email ordinary through mail, I add a attachment in the email, then it is shown inline and as a attachment.
    But when I use the email function in iphoto it only inlines the picture, it doesnt add the file as regular attachment, is there anyway I can change that?

    the reason why I need this so you understand me.
    is that I use to blog from email.
    if I email regular no problem at all with my attachment, but if I email through iphoto my blog doesnt recognize the picture in the email so it dont get added.

  • Can the email attachment image cache be disabled?

    I receive email with attached images from a security system with four cameras on a detected alarm event. No problems before update to ios 5. Now the first attachment image received becomes the default image for all camera emails. If I delete the first alarm email, power cycle phone, the next email attachment image becomes the default image. All images are time stamped jpg so no duplicate names to cache on. Because I use Imap, I can go to other computers and the images are correct on those machines. I have another different system that emails attachment jpg images that come through correctly. Only those images are slightly larger in size. 30k versus 19k for the problem emails.

    Same problem on ipad mail. Received 5 emails with each one different photo. Imap zimbra mail client shows each photo ok, ipad shows always the same photo. Cache problem ? Moved the files to different imap dirs, reboot ipad, played with options ... No workaround. How can we submi a bug report ?

  • I pre-ordered the new Save Rock and Roll album by Fallout Boy and now i cant download it even with the email attachment, how can i download it now?

    I preordered the Save Rock and Roll album by Fallout boy from itunes and i cant download it. I received the email and the link on it didnt work.

    Hello Stardestroyer918
    You can download the previous purchase by following the steps in the article below.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • How and where to save the email attached files on iPhone 5?

    how and where can I save on my iPhone 5 the files (mp3, wav, doc, jpeg, etc.) that come attached to the emails?...
    thanks a lot

    Photos attached to an email can be saved to the Camera Roll in the Photos app on your phone. Tap and hold on a photo in the email until you get a choice to Save Image.
    Other documents require a suitable app.
    PDFs can be saved in the free iBooks app available in the App Store.
    Word docs can be saved in Pages or other apps that support text files.
    Etc.
    To save a document tap on the doc. You will either be able to view the contents or get a choice to open in some other app,

  • I keep getting the emails downloaded again after I delete them from one user

    When I delete the email messages from one of my neighbors the messages keep coming back as new mail in the in box. Mail from other sources is fine. This happens to both my wife's and my emails.

    For IMAP mail only
    Delete message permanently
    Settings>Mail......>tap the little arrow on right of mail account>Archive Messages>OFF
    You can't set it to less than 50 Recent Messages.

  • Regarding the email notification

    I have a report for pricing. I want to change the email recipient. How do i do that?
    Thank you

    Hi,
    When you run any report and click on sent
    Then on next screen at below there is option to specify RECIPIENT and it's type
    Kapil

  • Change the name of the email attachment

    Hello,
    When a form is submitted via email, how can I change the name of the file that is attached?
    Thanks,
    MDawn

    The attachment will take the name of the form that that is being attached. If you rename the file to what you want then it will take that name.
    Paul

Maybe you are looking for