Any FM to pick an excel from a path in desktop, and send it as mail ?
Hi,
I want to pick a file from desktop, and send it through mail, as an attachment.
Does SAP provided that facility?
Regards
Rudra
Hi Rudra,
Please chk if this program suits ur requirement..
report y_send_mail.
data method1 like sy-ucomm.
data g_user like soudnamei1.
data g_user_data like soudatai1.
data g_owner like soud-usrnam.
data g_receipients like soos1 occurs 0 with header line.
data g_document like sood4 .
data g_header like sood2.
data g_folmam like sofm2.
data g_objcnt like soli occurs 0 with header line.
data g_objhead like soli occurs 0 with header line.
data g_objpara like selc occurs 0 with header line.
data g_objparb like soop1 occurs 0 with header line.
data g_attachments like sood5 occurs 0 with header line.
data g_references like soxrl occurs 0 with header line.
data g_authority like sofa-usracc.
data g_ref_document like sood4.
data g_new_parent like soodk.
data: begin of g_files occurs 10 ,
text(4096) type c,
end of g_files.
data : fold_number(12) type c,
fold_yr(2) type c,
fold_type(3) type c.
parameters ws_file(4096) type c default 'c:\debugger.txt'.
Can me any file fromyour pc ....either xls or word or ppt etc ...
g_user-sapname = sy-uname.
call function 'SO_USER_READ_API1'
exporting
user = g_user
PREPARE_FOR_FOLDER_ACCESS = ' '
importing
user_data = g_user_data
EXCEPTIONS
USER_NOT_EXIST = 1
PARAMETER_ERROR = 2
X_ERROR = 3
OTHERS = 4
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
fold_type = g_user_data-outboxfol+0(3).
fold_yr = g_user_data-outboxfol+3(2).
fold_number = g_user_data-outboxfol+5(12).
clear g_files.
refresh : g_objcnt,
g_objhead,
g_objpara,
g_objparb,
g_receipients,
g_attachments,
g_references,
g_files.
method1 = 'SAVE'.
g_document-foltp = fold_type.
g_document-folyr = fold_yr.
g_document-folno = fold_number.
g_document-objtp = g_user_data-object_typ.
*g_document-OBJYR = '27'.
*g_document-OBJNO = '000000002365'.
*g_document-OBJNAM = 'MESSAGE'.
g_document-objdes = 'sap-img.com testing by program'.
g_document-folrg = 'O'.
*g_document-okcode = 'CHNG'.
g_document-objlen = '0'.
g_document-file_ext = 'TXT'.
g_header-objdes = 'sap-img.com testing by program'.
g_header-file_ext = 'TXT'.
call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
exporting
method = method1
office_user = sy-uname
ref_document = g_ref_document
new_parent = g_new_parent
importing
authority = g_authority
tables
objcont = g_objcnt
objhead = g_objhead
objpara = g_objpara
objparb = g_objparb
recipients = g_receipients
attachments = g_attachments
references = g_references
files = g_files
changing
document = g_document
header_data = g_header
FOLMEM_DATA =
RECEIVE_DATA =
File from the pc to send...
method1 = 'ATTCREATEFROMPC'.
g_files-text = ws_file.
append g_files.
call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
exporting
method = method1
office_user = g_owner
ref_document = g_ref_document
new_parent = g_new_parent
importing
authority = g_authority
tables
objcont = g_objcnt
objhead = g_objhead
objpara = g_objpara
objparb = g_objparb
recipients = g_receipients
attachments = g_attachments
references = g_references
files = g_files
changing
document = g_document
header_data = g_header
method1 = 'SEND'.
g_receipients-recnam = 'MK085'.
g_receipients-recesc = 'B'.
g_receipients-sndex = 'X'.
append g_receipients.
call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
exporting
method = method1
office_user = g_owner
ref_document = g_ref_document
new_parent = g_new_parent
importing
authority = g_authority
tables
objcont = g_objcnt
objhead = g_objhead
objpara = g_objpara
objparb = g_objparb
recipients = g_receipients
attachments = g_attachments
references = g_references
files = g_files
changing
document = g_document
header_data = g_header.
*-- End of Program
Warm Regards
Gokul
Similar Messages
-
Hello I have a customer Close iPhone 5S any cloud symbol purchased the device from one of my colleagues and the activation message please help me
<Personal Information Edited by Host>It's a bad idea to post your IMEI number and I've asked the Hosts to remove it.
If the previous owner of the phone has set the Activation Lock in iCloud, only he can unlock it either by giving you the ID and password, or by removing it from his list of devices - details here:
http://support.apple.com/kb/TS4515
Without his unlocking it for you, you cannot use the phone. -
My Macbook Air does not pick up wifi from Airport but iMac, iPad and iPhone do. Help please.
Are you testing in the same room as the TC?
Power cycle the TC.. does it show up now?
Has it ever showed up .. ie is this a problem that just started from an existing setup, or has never worked?
Is the TC new? If old how old?
If you continue to have issues.. setup the TC from iMac and preferably using ethernet.
Change the wireless names to SMB compatible ones, short no spaces, pure alphanumeric.
Use WPA2 Personal security only.
Then set the wireless channels manually.. try 11, 6, 1 for 2.4ghz and try 36 or 40 at 5ghz.
Tell us how that goes. -
Attach any file type in the same format and send it thorugh mail
Dear Guru ,
I have encountered an issue which i am not able to resolve .
The issue is like this I need to upload any kind of file type(such as .txt, .xls, .pdf, .doc, .jpeg, .bmp)
and need to send that file send that particular file and the same file type format attached in the mail.
how i should approch to get solution to this issue.
I have gone through the all prog refered in the code gallry (related to send mail with attachment) but i am not able to find out any prog which is giving guidine line attach any kind of file type from the PC (most of the prog is with either taking filetype .txt, .xls or RAW) and send it via mail .
Need proper guideline to resolve this issue.... how i should approch to solve this.....
Thanks & regards
Saifur RahamanDear Saha Da,
Yes saha da i know using SO00 or Sap Business Workplace (SBWP) you can send it.
But the requirment is like this it must have to do from the selection scereen of the prog .User can save the path of the file which is residing in pc in a variant and from that variant prog will run in background to automate the process.
We can do it using harcoding the filetype while uploading data from the selection screen.
But we have to provide the flexiblity to the user so that he/she can change to any file or any file path.
I am not pretty sure but i my plan i am thinking 1st i will provide the provision of uploading the file into sap application server and from there we will read the file type , file content and send it to mail.
I know it can be done but right now dont know how it can be done ..... but i will findout...
Can you give me some more guideline reagrding this.
Thanks & regards
Saifur Rahaman -
Generating a PDF from a OTF (imported from CLOSE_FORM) and send it by mail.
Hello!
I have a problem.
I'll try to explain it toy you.
I have a SapScript that the user has the option to send it to the printer or have a Print Preview. I need to send it by mail in PDF format.
If the user select PRINT, a spool id is created, I can get the OTF, generate the PDF and send it by mail. Everything OK with that.
The problem is if the user select PRINT PREVIEW I don't get a spool id. So, what I did is to get the OTF from the CLOSE_FORM MF and generate de PDF from there. I tried several FM to generate the PDF but for sure I'm doing something wrong, because or the PDF is corrupted or I have a problem with the parameters in the SO_NEW_DOCUMENT_ATT_SEND_API1 FM.
So, what I need it: Generate a PDF from a OTF imported from CLOSE_FORM FM and send it by mail.
Examples or the FM I can use are welcome.
I tried to do search here, but I couldn't find anything that may help me..
So, please... Show me the light!!!
Thanks!!!
BettinaPart 3
* Send Report
clear: maildata, mailtxt, mailbin, mailpack, mailhead, mailrec.
refresh: mailtxt, mailbin, mailpack, mailhead, mailrec.
* Creation of the document to be sent File Name
maildata-obj_name = 'REPORT'.
* Mail Subject
maildata-obj_descr = 'Your Report'.
describe table mailtxt lines tab_lines.
read table mailtxt index tab_lines.
maildata-doc_size = ( tab_lines - 1 ) * 255 + strlen( mailtxt ).
* Creation of the entry for the compressed document
clear mailpack-transf_bin.
mailpack-head_start = 1.
mailpack-head_num = 0.
mailpack-body_start = 1.
mailpack-body_num = tab_lines.
mailpack-doc_type = 'RAW'.
append mailpack.
* Creation of the document attachment
loop at solisti1.
move-corresponding solisti1 to mailbin.
append mailbin.
endloop.
describe table mailbin lines tab_lines.
mailhead = 'REPORT.OTF'.
append mailhead.
** Creation of the entry for the compressed attachment
mailpack-transf_bin = 'X'.
mailpack-head_start = 1.
mailpack-head_num = 1.
mailpack-body_start = 1.
mailpack-body_num = tab_lines.
mailpack-doc_type = 'OTF'.
mailpack-obj_name = 'ATTACHMENT'.
mailpack-obj_descr = 'Some Report'.
mailpack-doc_size = tab_lines * 255.
append mailpack.
mailrec-receiver = lv_email_address. "<-- a valid email address
mailrec-rec_type = 'U'.
append mailrec.
* Sending the document
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = maildata
put_in_outbox = 'X'
tables
packing_list = mailpack
object_header = mailhead
contents_bin = mailbin
contents_txt = mailtxt
receivers = mailrec
exceptions
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
others = 99.
Regards,
Rich Heilman -
HT4993 Hi I got 32 gb iphone 5 sprint line from America but using Turkey and send sms problem
Hi
I got 32 gb iphone 5 sprint line from America but using Turkey and send sms problemDid you request that Sprint unlock the phone?
If so, did they? Did you follow the process to complete the unlock by restoring as new?
Did you get the message indicating the iPhone is unlocked? -
How to pick a video from gallery with wp8.1 and wp8.0
I found this article
https://msdn.microsoft.com/en-us/library/windows/apps/jj655411.aspx
where a file is filtered by type and picked up.
Is it possible to do that with video in wp8.1?
I tried with a third party library (cordova) and is not possible to pick video from gallery in wp8.0, can you confirm that there is no way to do that (pick a video from gallery) in wp8.0?
Many thanksHello,
The
FileOpenPicker can be used to open any type of file including video files. You can have the picker default to the video library by setting the
SuggestedStartLocation property of the picker to
VideosLibrary.
I hope this helps,
James
Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/ -
PDF's sent from Reader to Outlook won't send as e-mail
I came across a problem where only certain e-mails were "sitting" in an Outlook Outbox and not sending. After investigation, it turned out to be e-mails that were attached with pdf's directly through Reader (Send Files function). I had her save these same pdfs to her desktop and open a new e-mail instance and attach the pdf that way. When done this way they send fine, so the problem stems from attaching the file straight from Reader through the Send Files function. This doesn't create a big problem. More curious than anything. Any ideas? Thanks!
We have this problem in our organisation, here is our situation:
We use MS Office 2010 and MS Exchange server.
Some users have multiple mail profiles for specific email accounts that they can choose to open when they launch Outlook 2010.
If a user has launched Outlook using one of the other mail profiles that does not actually belong to their login account but they have permissions to use (ie. user Jane Doe [doej] has access to another Exchange email account of Primary Industries [primary]) , and then tries to use the "Send file as email attachment" button, it launches a new email and all looks good, says it is coming From: Primary Industries, user can click Send, but then the email is sitting in the users mail account Outbox (doej not Primary), and cannot be sent.
The PDF can be sent as an attachment from the Primary email account if the user first chooses to save the PDF, and then manually adds it to an email message they manually started to compose. This would be very time consuming for the users to do as they need to perform this function many times throughout the day.
It's as if the Adobe Reader application only wants to work with the logged in users mail account that belongs to them (ie. doej). I have even tried adding the other e-mail account in "Mail Setup - Outlook" in the Control Panel and setting this one as the Default E-mail account to use, but that hasn't helped. -
Transfer word docs from Macbook pro to Iphone and send (NO WIFI)
I am a regular business traveler and recent mac convert. With my pc and windows mobile phone, I used to be able to easily do the following:
1. Write word documents on the computer while on the plane.
2. When documents are complete, connect phone to computer with usb cord.
3. Transfer files to phone.
4. When plane lands and cell coverage is available, send documents as attachments from phone using 3G coverage.
I have found lots of suggestions that cover part of this process for mac and Iphone, but all require wifi at some point. Please note, if I HAD a WIFI connection, I wouldn't need to do this because then I would send the docs from my macbook pro. The sole purpose is to be able to work around not having a wifi connection.
Any help would be appreciated. My Iphone is not jailbroken and I'm in the US on ATT.Thanks for the suggestion of Diskaid. I have read what I can about it, and my understanding is that while it does allow me to move the document to the phone, the OS won't let me access the document to send via email. Can you clarify? Thanks much!
-
I want to move photos from my laptop to desktop and merge catalogs
I have Photoshop Elements 5 on my desktop with about 15,000 photos. Prior to a big trip I bought a laptop and loaded Elements 9 on it. I took about 5,000 pictures on the trip and organized them. Now I'm back and I want everything from my laptop on my desktop, including my copy of Elements 9.
I can probably figure out how to get Elements 9 from my laptop to desktop, however I searched the forums and it appears you can't merge catalogs.
Can anyone recommend the best way to handle my situation?
What I'm thinking...
Upgrade my desktop from Elements 5 to Elements 9.
Make sure my old Elements 5 catalog on my desktop is converted and functioning in Elements 9.
Copy all my files from the Laptop to the Desktop
Import all my files
Done.
The only problem is I will lose all the organization I did on my laptop! I don't want that.
Thanks!I think its the best solution to write tags and all in photographs.... and get them back on import...
Here is one article about the simple case of migrating from one machine to other..: http://photoshopelementsbyadobe.blogspot.com/2010/06/how-to-transfer-your.html
There is no easy solution to catalog merging and one needs to look for solutions as suggested in last reply -
My iPhone has suddenly started showing my imessages in green. I am home, connected to wifi and sending them to others in the house. Also I am not receiving their responses. Any ideas?
Apple is having server issues, hopefully to be resolved in the next 24 hours.
-
Hi, I have read detail here - https://www.paypal-community.com/t5/How-to-use-PayPal-Archive/Auto-Reply/m-p/9339 ...but need to know how to test that a reply has gone out to an e-mail address after purchase, using Sandbox? Obviously I'm using random e-mail address for buyer and business Sandbox accounts, so is there a way to force the e-mail reply to a working e-mail address to check? ----- Also, what PHP code do I need to write after ipn success/validation to send an e-mail myself to the customer? Thanks! Ash
lisavs12686 wrote:
Whould it also be possible to send the sender the submited data (looking like the filled in form or so)?
not really nessecary but whould be a nice jextra
You can but you would need to send it as an html email which is much more complicated.
What you would do is build a page/table construction like below. You would need to use the php variables to echo out the information in the <td></td> cells (example below).
$reply = $_POST['email'];
$from = '[email protected]';
$replysubject = "Auto-Reply: Website Name";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $from\r\nReply-to: $reply";
$replymessage = '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Comments from Website</title>
</head>
<body>
<table>
<tr>
<td bgcolor="#ffffff" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px; padding: 10px 15px;">Name: </strong>'.$name.'
</td>
</tr>
</table>
</body>
</html>';
mail($reply, $replysubject, $replymessage, $headers); -
Labview Excel Search data in one column and send back data from the second!
Hello,
I am still very new with using LABVIEW and I have a issue. I am using an excel worksheet with two columns and four rows. In one column I have barcode numbers and in the second I have which sequence tests that the particular barcode has with it. I have it where I get the barcode scanned but what I need help with is having Labview search the excel sheet for a match on the Barcode (From column one) and return back the related test sequence that goes with it ( From Column two). Any suggestions???
JoeSorry!
Attachments:
Excel String Search.vi 50 KB
Barcode.xlsx 10 KB -
My IPad 2 has suddenly been unable to connect to wifi unless it is physically close to the router. Previously it picked up wifi anywhere in the house or garden.but now, for example, I lose the signal if I go to the top floor of the house. My wife and daughters' IPads do not have this problem and can get wifi throughout the house and garden.
Reset network settings:
Settings > General > Reset > Reset Network Settings
If that doesn't work you could try a complete reset of the iPad, so back it up using iTunes first. -
I went into the activity monitor and force quit this 1890
coreaudiod
_coreaudiod
6.6
5
3.1 MB
Intel (64 bit) that works until you watch another video.
I really would like for bert and ernie to stop talking in the background the game was on the Sesame Street Website.When posting in Apple Communties/Forums/Message Boards.......It would help us to know which MBP model you have, which OS & version you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.
This will help in providing you with the proper and/or correct solutions.
===================
Which browser & version are you using?
Please detail ALL you have done so far in the way of troubleshooting? Need this info to avoid the been there done that scenarios.
Maybe you are looking for
-
Error in Transporting Process Chain in BI 7.0
Hi Gurus, i m getting following error "Object 'DM' (APCO) of type 'Application' is not available in version 'A' " in BI 7.0 while transporting a process chain. I thought it my have issues with version of process chain, but the proces chain is in A ve
-
Error while cancel Purchase Order
Hello everyone. I'm trying to cancel a Purchase Order which has a Purchase Delivery Note. First I cancel the Purchase Delivery Note and than I try to cancel the Purchase Order, but I'm having the following error: "The requested action is not supporte
-
Slideshows don't function on tablet versions?
Is anyone having an issue with slideshows and drop down menus on tablet versions. I cannot get these to work. Home page: About and Services has a drop down that works perfectly on desktop version but no go on tablet. Slideshow toward bottom of page:
-
Indication of Virtual Copy in Develop Module
I'm working on Virtual Copies right now. Is there any indication within the Develop Module where I would see that what I'm workin on is a VC or an original? Not seeing it at all is kind of dangerous ... Beat Gossweiler Switzerland
-
Oracle ses Admin password not working
Hi, The ip address of my machine has changed. So, the admin and search pages were not opening up since they have old ip address. So I went to the files and changed all the occurences of old ip with new one. I was not able to change it in .dbf and .lo