SapScript Form by email: Using output medium 5 - several email address
Hello, ppl
I've been doing some developing concerning the send of correspondence by email.
I've used output medium 5, and have have build email recipient parameters as follow:
Getting email address:
CLEAR address.
SELECT SINGLE smtp_addr FROM adr6
INTO address
WHERE addrnumber = p_adrnr
AND persnumber = space
AND flgdefault = 'X'.
IF address IS INITIAL.
p_device = 'PRINTER'.
EXIT.
ENDIF.
create recipient
swc_create_object lo_recipient 'RECIPIENT' space.
swc_set_element lt_container 'SendAsACopy'
'X'.
swc_set_element lt_container 'AddressString'
address.
swc_set_element lt_container 'TypeID'
'U'.
swc_call_method lo_recipient 'CreateAddress' lt_container.
swc_object_to_persistent lo_recipient p_persistent_recipient.
create sender (current user)
swc_create_object lo_sender 'RECIPIENT' space.
swc_set_element lt_container 'AddressString'
sy-uname.
swc_set_element lt_container 'TypeID' 'B'.
swc_call_method lo_sender 'CreateAddress' lt_container.
swc_object_to_persistent lo_sender p_persistent_sender.
And have called open_form as follows:
CALL FUNCTION 'OPEN_FORM'
EXPORTING form = xformular
language = ekko-spras
OPTIONS = itcpo
archive_index = toa_dara
archive_params = arc_params
device = xdevice
dialog = xdialog
mail_sender = p_persistent_sender
mail_recipient = p_persistent_recipient
EXCEPTIONS canceled = 01.
IF sy-subrc NE 0.
PERFORM protocol_update USING '142' ekko-ebeln space space space.
retco = sy-subrc.
EXIT.
ENDIF.
Everything works fine ... problem is i need to send the email to several adresses and also add some as CC: instead of TO: in the email parameters.
Is this possible?
As far as i know mail_ricipient only allows one email reference ...
Please, provide some help.
Thanks,
Mário
LOOP AT <receiver_table>.
w_email = <receiver_table-mailid.
*-- Create persistent send request
send_request = cl_bcs=>create_persistent( ).
*--Add document to send request
CALL METHOD send_request->set_document( document ).
*-- Get sender object
sender = cl_sapuser_bcs=>create(<Sender mailid / userid ).
*--Add sender
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
recipient = cl_cam_address_bcs=>create_internet_address( w_email ).
RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( P_RECVR ).
*--Add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient.
*--set send immediately flag
send_request->set_send_immediately( 'X' ).
*--Send document
CALL METHOD send_request->send( ).
COMMIT WORK.
endloop.
Similar Messages
-
Send email used output management in TM
Dear expert,
we has a requirement to send a email in the tm , as we know tm provide this function in the output mangement,
but i don't know how to do this, can anyone tell how to send email used output mangement in the tm, thank you.
Message was edited by: Michael ApplebyHi mansoor,
<EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
EmailMimeCharset=""
NotificationMode="EMAIL">
<EmailAccount>
<Name>Default</Name>
<GeneralSettings>
<FromName>BPEL POC</FromName>
<FromAddress></FromAddress>
</GeneralSettings>
<OutgoingServerSettings>
<SMTPHost>mail.oracle.com</SMTPHost>
<SMTPPort>25</SMTPPort>
</OutgoingServerSettings>
<IncomingServerSettings>
<Server>mail.oracle.com</Server>
<Port>993</Port>
<Protocol>IMAP</Protocol>
<UserName>xxxxxx</UserName>
<Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService"></Password>
<UseSSL>false</UseSSL>
<Folder>Inbox</Folder>
<PollingFrequency>1</PollingFrequency>
<PostReadOperation>
<MarkAsRead/>
</PostReadOperation>
</IncomingServerSettings>
</EmailAccount> -
Just started getting about 300-400 emails per day from several fraudulent Addresses to my icloud email and am not sure how to stop receiving them, or create a rule to have them all go to Junk.When unsub, I get more. Emails from my contacts are now Junk?! How do I fix this? I have over 800 emails since 5Am YESTERDAY!
First, don't unsubscribe. This only tells the spammer that your email address is valid and they will send even more.
If this is only being sent from a few specific email addresses, you can set up a rules on icloud.com similar to the image below to send them to the trash. This describes how to set up a rule: http://help.apple.com/icloud/#mm6b1a3f8a. -
Config to email using output determination
Hi,
I'm trying to set up output determination that will email a PDF of the invoice at the time of invoice creation. I've created a communication strategy with a single entry for communication method "INT" for email. I added an entry for simple mail(7) in the processing routines config of the output type and pointed to my sapscript form and print program. I created the master data record using VV31 and added my own email in the communication section of the master data record. When I create my invoice, the correct output record is determined, but when it attempts to process at save, the system returns with errors in the processing log. The error message states "No communication type from strategy RD00 could be used". The diagnosis section of this error message says that the message type should be sent with a communication type, but I don't understand why this information is not pulling from the configuration that I set up. Any help would be greatly appreciated!
Jim TollettHi James,
Every output type has a driver program (and subroutine combination) configured for each communication medium. Usually what you are looking for (email PDF) is not supported by most of the standard output types. You may need to write a driver program for this communication medium (7) or enhance the standard to support simple email.
Cheers,
Sanjeev -
Can't read email using my primary apple email account
Ok, I'm new to this forum but here is my problem
Usually I can read Email using my primary Apple E-mail account BEFORE I updated my Ipad into IOS 8.
After I updated my Ipad into IOS 8 (non-jailbreak and from IOS 5 jailbreak), My Ipad says that I need to sign up an Icloud email to use the Mail App.
Then I can't use my Primary Apple Account as an E-mail anymore. When people send a mail to my primary apple account, I cant read it because I cant read emails using my Primary Apple Account anymore.
When I signed in with my primary apple Email account and opened my Mail App, It used my Icloud email instead my primary apple email.
I tried everything Include making an email aliases but my primary apple email uses @Yahoo.com and I can only use aliases of @Icloud.com
Can someone please help me so I can read E-mails when people send an Email to my primary apple account? Because I need to see those subcription mails and change my password of my online game account(<- This one is URGENT).
And sorry for my bad English because I'm Indonesian.Welcome to discussions,
go to settings/mail, contacts.../your mail account/outgoing mail server settings/ and see if you put in the needed password to access your mail server.
Also check out this help article about your issue for more tips: http://support.apple.com/kb/TS2770 -
Extracting MIME attachment from email using OSB proxy service - email transport
Hi,
I'm reading email messages(multipart/mixed) with attachments(pdf, zip, xml and csv) from MS Exchange Server 2010 using OSB proxy service email transport.I need to save the attachments to a local folder and process one of the attachments, an XML file. Below is the proxy service config.
Proxy Service Configuration (Test1/Proxy Services/GetEmail)
Actions:
General Configuration
Service Type Messaging Service
Message Type Configuration
Request Message Type
Text
Response Message Type
None
Transport Configuration
Protocol email
Endpoint URI mailfrom:mailserver.net:143
Get All Headers No
Headers
EMAIL Transport Configuration
Email Protocol imap
Service Account Test1/Proxy Services/email_acc
Managed Server WLS_OSB1
Polling Interval 30
Read Limit 2
Pass By Reference false
Pass Attachments By Reference false
Post Read Action move
IMAP Move Folder processed
Attachments archive
Download Directory \\soasup-stor01\Vacancy\test\download
Archive Directory \\soasup-stor01\Vacancy\test\archive
Error Directory \\soasup-stor01\Vacancy\test\error
Request Encoding iso-8859-1
Message Handling Configuration
Transaction Required Disabled
Same Transaction For Response Disabled
Content Streaming Disabled
The polling is working fine. I've encoded the attachment variable to Base64 using a java callout.$attachments/ctx:attachment/ctx:body/ctx:binary-content has been passed as the byte[] input to the java method and the response is captured in $encodedAttachment. I've created a SaveFile BS(file type) with Request Message Type = Binary and Response Message Type = None. I've tried replacing the node ./ctx:binary-content in body variable with encodedAttachment in the request action of the Publish action to call the BS. One file is getting created with contents of the entire email, MIME headers and boundary parts along with the base64 encoded attachments.
<Contents from the created file>
MIME-Version: 1.0
Content-Type: multipart/related; boundary=MIME_Boundary;
type="binary/octet-stream"
--MIME_Boundary
Content-Type: binary/octet-stream
Content-Transfer-Encoding: 8bit
Thanks & Regards,
Samyajit Talukdar
: [email protected]
-----Original Message-----
From: Samyajit Talukdar
Sent: 10 April 2015 14:11
To: MS MLRP Returns
Subject: FW: 22222
Thanks & Regards,
Samyajit Talukdar
: [email protected]
--MIME_Boundary
Content-Type: application/vnd.ms-excel; name="soainfra_v$session.xls"
Content-Transfer-Encoding: base64
Content-Description: soainfra_v$session.xls
Content-Disposition: attachment; filename="soainfra_v$session.xls";
size=25618; creation-date="Thu, 27 Nov 2014 09:56:35 GMT";
modification-date="Fri, 10 Apr 2015 09:28:23 GMT"
0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAA
EAAAJgAAAAEAAAD+////AAAAAAAAAAD/////////////////////////////////////////////
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAA=
--MIME_Boundary--
If I put a delete action in the request to Publish action for SaveFile BS to delete the $attachments, the created file contains only the email body part and the attachment boundary part is missing.
I've uploaded the OSB log with full trace enabled.
How can I pass the encodedAttachment to the BS for saving the files?
Would iterating through the $aatachment/ctx:attachment give me the individual attachments for saving and processing, as there are separate binary-content refs in them?
Any help to achieve my requirement is highly appreciated.
Thanks in advance.Hi Manoj,
Thanks for the quick reply to my query.
The thing is, the link you have provided talks more from changing the business Service configurations i.e. the type of the service etc, but the concern is, that the Business Service is already Implemented and hence the change would not be an appropriate option for me.
Please let me know, if any more information is required.
Thanks & Regards,
Anu -
Current Setup: Windows 7, Quickbooks Non-profit Edition, Thunderbird. Thunderbird is set as the default email program.
Recent history: Previously to Thunderbird (TB), the non-profit was using Outlook and using server A for email. Then over a month ago moved all users to TB IMAP accounts from broken Microsoft IMAP accounts. Then moved all IMAP accounts to server B using imapsync perl script which is awesome if you don't know about it. All fine after move for regular email, but not for outgoing email coming from QB to TB.
In Quickbooks (QB), you can have it send invoices and statements to "customers" via email. When the setup was with Outlook and server A, it all worked fine. Now with TB and server B, when you try to send hundreds of invoices in email from QuickBooks to TB, TB only will send out 6 of the emails. It is a curious number 6, but that is what happens.
What have done: Searched interwebs for clues, none found. Talked to tech support at hosting for server B to see if there is any limit on sending emails through server; account has 500/hour limit -- not the issues. Now asking help from anyone who has an idea or inkling to pursue.
Thanks for any and all comments!Try disabling email scanning and on access scanning of the temp folder. And make sure most of all McAfee is not in the mix at all.
Place Thunderbird in Offline mode
click the two monitors in the bottom left corner on the status bar. or File menu (ALT+F) > offline > work offline
Going back on line is the reversal of that process.
At a wild guess I am assuming events are simply falling over one another. Unlike outlook Thunderbird is trying to actually send the mails as it gets them. Taking it offline will defer that action until you are online. So each mail will be written to the outbox folder only until Thunderbird is online.
The three options I mention are all designed to remove road blocks to the process. -
on my ipad3, i have a company email account, gmail account, and a yahoo account. my issue is that when using my company email account (making sure that my company email account is on the From: field), the recepient on the over end receives it with my google email account on the From:. and so when they reply, it goes to my gmail account.
Please note that my "default email" is yahoo.com on the ipad's settings - > mail.
i do not have any forwarding and this only happens on my ipad.
Advice is appreciated. Thank youios devices can only send emails from the default sending email you setup that in the settings
-
Sending email using Exchange 2013 defined email addresses not the account email address.
Currently we are using exchange 2013. Let's say a user has a mailbox account defined that has a default email reply address of [email protected] Now I define additional email address for the same account. When the user tries to send an email he can only send from
the default email address. Is it possible to send from a defined email anndress and not the default account email address?
Best Regards
Best RegardsNot natively with Exchange.
You will need 3rd party software if you want to have only one mailbox and the ability to send as any of the proxy addresses associated with it
Example:
http://www.ivasoft.biz/choosefrom2007.shtml
Not sure if Exchange 2013 is supported with it yet
Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied. -
WTA: How to use output type with medium T (Task)
Dear Gurus,
Can anyone shed some light how to use output medium T?
I tried one but at the end the output analysis says: Task T 50000125 is not available for object category BUS2032
My task clearly calling BUS2032 with method DELETEBILLINGBLOCK
Anyone can advise?
Please don't focus on the DELETEBILLINGBLOCK and suggest me workaround how to remove billing block.
It just my sample as I just anyhow select random method.
What I need to know is how to use medium T.
Thanks in advance.Hello Erwin,
I know this is an incredibly old post, but I am wondering if you found a resolution to this issue. I have the same issue and cannot determine why I can see the enter in NAST for an output resulting from a condition record set as medium 9 with timing of 3. If I am in display mode of the sales order I can see it and also see the record in NAST. Like you, if I change the medium to Print, it proposes as expected in VA01, VA02, VA03. If I have the medium of 9, and change the timing to 4, my workflow process executes as expected.
Please let me know if you have any thoughts on how to resolve.
Thanks!
Jan -
How to use Google Fonts in email?
Hi,
I would like to know how I use google fonts in my emails.
We're using the ubuntu font and I see the fonts on my computer but after sending an email the fonts change.
I'm using the addon SmartTemplate4.
Hope any f you know the answer!
Thanks in advanceSeveral online resources point to these two articles at Campaign Monitor:
* [https://www.campaignmonitor.com/blog/post/3897/using-web-fonts-in-email Using web fonts in email] (Dec. 2012)
* [https://www.campaignmonitor.com/resources/will-it-work/webfonts/ Web Fonts] (permanent resource)
The first link provides examples on how to do this, while the second one has informaiton about email client support & compatibility with this feature.
Keep in mind using web fonts will have a limited effect if viewing such emails while offline.
[http://kb.mozillazine.org/Default_HTML_font_for_new_messages_-_Thunderbird This older MozillaZine article] also has information about fonts use in Thunderbird. In my experience in most cases the receiving party will have to have the fonts locally installed for the best results. -
Sending sapscript form through Email
Hi,
I modifyed a std sapscript form for customer statement and that output i want to send to the customer through Email.So now i need a help for further what are the steps need to be do for sending that form by email.Pls be in details so that for me easy to solve this.
Thanks,
Rajendra.Hi ,
I am using the below code to send the form output by mail but it is not working for me.pls correct my code where i want to change so that i can solve my issues.
DATA: itcpo LIKE itcpo,
tab_lines LIKE sy-tabix.
Variables for EMAIL functionality
DATA: maildata LIKE sodocchgi1.
DATA: mailpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
DATA: mailhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
DATA: mailbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: mailtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: mailrec LIKE somlrec90 OCCURS 0 WITH HEADER LINE.
DATA: solisti1 LIKE solisti1 OCCURS 0 WITH HEADER LINE.
parameter: p_email1 like somlreci1-receiver .
PERFORM send_form_via_email.
FORM SEND_FORM_VIA_EMAIL *
FORM send_form_via_email.
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 = 'TEST'.
Mail Subject
maildata-obj_descr = 'Subject'.
Mail Contents
mailtxt-line = 'Here is your file'.
APPEND mailtxt.
Prepare Packing List
PERFORM prepare_packing_list.
Set recipient - email address here!!!
mailrec-receiver = p_email1.
mailrec-rec_type = 'U'.
APPEND mailrec.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = maildata
put_in_outbox = ' '
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.
ENDFORM.
Form PREPARE_PACKING_LIST
FORM prepare_packing_list.
CLEAR: mailpack, mailbin, mailhead.
REFRESH: mailpack, mailbin, mailhead.
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
This form gets the OTF code from the SAPscript form.
If you already have your OTF code, I believe that you may
be able to skip this form. just do the following code, looping thru
your SOLISTI1 and updating MAILBIN.
PERFORM get_otf_code.
LOOP AT solisti1.
MOVE-CORRESPONDING solisti1 TO mailbin.
APPEND mailbin.
ENDLOOP.
DESCRIBE TABLE mailbin LINES tab_lines.
mailhead = 'TEST.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 = 'TEST'.
mailpack-obj_descr = 'Subject'.
mailpack-doc_size = tab_lines * 255.
APPEND mailpack.
ENDFORM.
Form GET_OTF_CODE
FORM get_otf_code.
DATA: BEGIN OF otf OCCURS 0.
INCLUDE STRUCTURE itcoo .
DATA: END OF otf.
DATA: itcpo LIKE itcpo.
DATA: itcpp LIKE itcpp.
CLEAR itcpo.
itcpo-tdgetotf = 'X'.
Start writing OTF code
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = 'Z2006FICSE'
language = sy-langu
options = itcpo
dialog = ' '
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'START_FORM'
EXCEPTIONS
error_message = 01
OTHERS = 02.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
window = 'MAIN'
EXCEPTIONS
error_message = 01
OTHERS = 02.
Close up Form and get OTF code
CALL FUNCTION 'END_FORM'
EXCEPTIONS
error_message = 01
OTHERS = 02.
MOVE-CORRESPONDING itcpo TO itcpp.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
result = itcpp
TABLES
otfdata = otf
EXCEPTIONS
OTHERS = 1.
Move OTF code to structure SOLI form email
CLEAR solisti1. REFRESH solisti1.
LOOP AT otf.
solisti1-line = otf.
APPEND solisti1.
ENDLOOP.
ENDFORM.
Hope i can expect the feedback soon from you guys.
Thanks,
Rajendra. -
How to use Output Transmission Medium 8 (Special Function)
Hi All,
May I get how to use output transmission medium 8(Special Function) in Output Determination.Hi,
configure output type with transmission medium 8
in nace transaction and assign it to driver program
and so that entry exist in table tnapr and use
RSNAST00 program to send output as email.
Before you have create entry in va02->header-output->
with processsing status 0 .
Regards
amole -
Hi All,
Is it possible to send a Sapscript form or a smartform form as an email,
We need to be able to email out the form using a function Module.
Even if we are able to send it as an attachment , it should be fine,
Did not find any function Module that would do this.
Appreciate any input.,
Thank you
Lalithait is possible in both smartforms and scrits
For Scripts
Retrieve the OTF table from the FM CLOSE_FORM then , convert OTF to PDF using FM 'SX_OBJECT_CONVERT_OTF_PDF' then I attach and send mail with 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
For smartform check this link
Create Smartform and Email it -
How i said on the question. I tried to upgrade the ios on the phone and I was asked for my icloud user and password. I don’t remember these exactly and I tried several times with different options but unsuccessfully. I also forget my email used to configurate the phone. I have the phone box and the bill. I sent you an email with my problem and attachments with the box informations, the bill and the reset request. What to do? You said to me:
Your request comes from an unrecognized email domain. Apple accepts email requests only from email domains for Apple-authorized carriers.
Please re-submit your request using your official carrier domain.
but this email is authorized, what to do??
respectfully, BebaIf you have forgotten then these links are the only way to resolve
http://www.apple.com/support/appleid/
As long as you have owned the iPhone from new and your Apple id is the one used to activate when new
OR have you recently purchased the iPhone secondhand ?
Maybe you are looking for
-
SQL Server 2k - Pulling from 2 fact tables causes error
Trying to create a simple RPD as follows: 1 Dimension with Key Fund_ID 2 Fact tables, each with a Key Fund_ID Created a Physical Layer, connecting Dimension to each Facts based off Fund_ID (One to Many) Business Model Layer, connected Dimension to ea
-
Unable to start Oracle Process Manager Service
I installed EPM 11.1.2.1 on Windows 2008 R2. Oracle database 11g. I installed and configured every thing was working fine. But suddenly the Oracle Process Manager service is not starting. I checked in event viewer the following error i found: The Ora
-
Hi everyone! I've read whole bunch of topics related to the subject but didn't actually find what I wanted to. The question of concern is: What actually "*adcfgclone.pl dbconfig*" does? I mean "behind the scenes". So far I know it configures the data
-
PE7 problems on Windows Vista with custom DPI
I "upgraded" from PE4 to PE7 from a purchased download of the combo package containing both Premiere and Photoshop Elements 7. My old versions were Photoshop Elements 6 and Premier Elements 4 which worked fine on my Windows Vista Home Premium runnin
-
Camcorder compatibility problem
My new imac with leopard and imovie '08 does not recognize the same camcorder that works very well with my emac and imovie '05. My camcorder is a 2003 Canon ZR70 MC ( mini DV ). Are there any solutions to this problem other than buying a new camcorde