RE: Test mailer
Automatic porgramme can be used both ways i.e incoming and outgoindg payment.So what is customizing in incoming (customer) payments in automatic payment?
Hi,
look here: http://help.sap.com/saphelp_47x200/helpdata/en/01/a9bc90455711d182b40000e829fbfe/frameset.htm
and maintain customer with xd02 - payment transactions
(central and in company code)
-bank details
-payment method
A.
Message was edited by:
Andreas Mann
Similar Messages
-
Mail send error in Oracle UCM Test Mail/Notifications
Hi Everyboby,
I have configured workflows which need approval. While the documenr is checked in the notification should be fired to the reviewer. But the mail notification is not working.
Also I have tried to login as sysadmin and tried the Administration -> Actions -> Send test mail link but it pops up the following message/exception.
Unable to send email. The following recipient(s) '[email protected]' are not valid user or alias names.
[ Details ]
intradoc.common.ServiceException: !csRecipientsNotUsersOrAliases,[email protected]
at intradoc.server.SystemAuditHandler.sendEmail(SystemAuditHandler.java:414)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
It is noteworthy that a couple of days back the Notifications were working fine. No clue what happened.
I am pasting the config file portion. Hope this helps.
#Internet Variables
HttpServerAddress=localhost
MailServer=172.16.1.10
SysAdminAddress=[email protected]
SmtpPort=25
HttpRelativeWebRoot=/idc/
CgiFileName=idcplg
UseSSL=No
WebProxyAdminServer=true
Can someone help or provide me a comprehensive document for enabling Notifications.
Thanks in AdvanceHey Prashant,
In UCM you cant send an email directly to a mail address. What you need to do it add user and provide that user with correct email address.
and at all place in to field you need to mention name of the user, not his email address.
while testing the email send the mail to sysadmin
then you would not face any problem.
cheers,
sapan -
Send test mail not working in content server 11g(UCM)
Hi all ,
I am using content server 11g and i have installed all the components required for email and also i had made all the internet configuration in (admin server -> internet configuration) according to my company mail server.
But while sending test mail from the administration panel i am getting the following error::-
Unable to send email. Could not send mail message from [email protected] with subject line: test mail. Invalid mail message: "xyz" <[email protected]> "Unable to find one or more recipients of message." Mail server responded with error message: 554 5.7.1 <[email protected]>: Sender address rejected: Access denied
the associated log file is ::
!csSMTPInvalidMessage,[email protected]!csSMTPResponseIndicatesFailure,554 5.7.1 <[email protected]>: Sender address rejected: Access denied
java.lang.Exception: !csSMTPResponseIndicatesFailure,554 5.7.1 <[email protected]>: Sender address rejected: Access denied
at intradoc.common.SmtpClient.writeMsg(SmtpClient.java:531)
at intradoc.common.SmtpClient.writeMultiMsg(SmtpClient.java:555)
at intradoc.common.SmtpClient.sendMail(SmtpClient.java:337)
at intradoc.server.InternetFunctions.sendMail(InternetFunctions.java:440)
at intradoc.server.InternetFunctions.sendMailToEx(InternetFunctions.java:358)
at intradoc.server.InternetFunctions.sendMailTo(InternetFunctions.java:83)
at intradoc.server.InternetFunctions.sendMailPackage(InternetFunctions.java:719)
at intradoc.server.InternetFunctions$1.run(InternetFunctions.java:624)
at java.lang.Thread.run(Thread.java:662)
Please reply!!!
Edited by: user13475326 on Dec 14, 2010 2:27 AMWHo is administering your mail server?
They have obvioulsy placed some restrictions on the server to stop it being abused.
First try using a real valid email address for the Administrator address for the network. Otherwise speak to the sys admin for your SMTP/mail infrastructure and see what needs toi be done.
Tim -
DAC email notification not working.even if we get test mail.
DAC clients are installed in Windows machine (Remote) and DAC servers are installed on UNIX platform.
I have set up the smtp configuration in DAC client.i am also getting test mail.
But after my schedule load completion i am not getting email notification.
my question to be specific:
1)can we getting email notification if we r having DAC server and client on 2 seperate platform.
any help on this issue will be very helpful.if yes then how can it be done.
Thanks in advance.hope a prompt answer and solution 4m the OBIEE gurus here.You need to set this config at unix box using file serverSetupPrompt.
For your Q: YES
If it is helpful, please mark as correct or helpful -
Hi All,
I have configured database Mail in Sql server 2012 but couldn't able to send the test mail.
1) Enabled "broker"
2) Enabled "Database Mail XPs"
3) Selected "Public"
4) Tried both Basic and Anonymous authentication respectively
5) Account has sysadmin rights
When I verified select *from sysmail_allitems from msdb, every time it is moving from unsent, retrying and finally failed
Please find the below error from "Veiw Database Mail Logs"
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 9 (2014-07-15T15:02:50). Exception Message: Cannot send mails to mail server. (Failure sending mail.).
Please suggest and kindly let me know if you need any further details on this.
Thanks for your time and support
Regards,
Kalyan
Grateful to your time and support. Regards, ShivaMake sure you specified correct mail. server
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Undeliverable: Test Mail 08.10.2014
Dear Sir,
Please see the trail mail. We are unable to sent mail to any hotmail mail account.
Please resolve the issue ASAP.
Regards,
Shouvik De
From: Microsoft Exchange
Sent: Wednesday, October 08, 2014 11:50 AM
Subject: Undeliverable: Test Mail 08.10.2014
Delivery has failed to these recipients or distribution lists:
An error occurred while trying to deliver this message to the recipient's e-mail address. Microsoft Exchange will not try to redeliver this message for you. Please try resending this message, or provide the following diagnostic text to your system administrator.
The following organization rejected your message: BAY004-MC4F45.hotmail.com.
Sent by Microsoft Exchange Server 2007
Diagnostic information for administrators:
Generating server: mail.mani-group.com
BAY004-MC4F45.hotmail.com #550 SC-002 (BAY004-MC4F45) Unfortunately, messages from 111.93.183.228 weren't sent. Please contact your Internet service provider since part of their network is on our block list. You can also refer your provider toHi shouvikde,
Agree with jatin's opinion, the issue may be caused by your ISP, I recommend you contact your exchange administrator directly and let them to contact the ISP to troubleshoot the issue.
Best regards,
Niko Cheng
TechNet Community Support -
How to Test Mail's Trainable Filter?
In the Apple Support Discussions topic No Junk mailbox in Training mode? a question arose regarding how to test if the trainable filter (the filter that evaluates the "Message is Junk Mail" condition) is evaluated independently of the other conditional tests of the Junk Filter rule -- IOW, if some other test condition in the Junk Filter rule, like sender is not in the address book, evaluates to false, does the "Message is Junk Mail" test which follows it in the rule's list of conditions ever get evaluated?
A proposed test for this involved resending to yourself a message that Mail had previously marked as junk using the "Message > Send Again" function of Mail. It has been pointed out to me that this probably isn't a valid test because "Message > Send Again" doesn't send the original message in unaltered form (there are substantial changes in the header info regarding sender, path, etc.) & thus the filter may not consider the resent message as junk, even if it were to evaluate it.
So, for testing purposes, does anybody have a suggestion about how to resend (or fake resending) a received message to myself without altering its header info?What matters is whether the Message is Junk
Mail condition would still evaluate to true
regardless.
That depends on what you are trying to determine & if the test produces decisive results.
For instance, consider tests with the standard Junk Filter automatic settings & no other rule involving "Message is Junk Mail" in the list. A test is performed in an attempt to determine if the filter's conditional tests are performed in the indicated order only until one evaluates to false.
"Send Again" should not cause the "Message is Junk Mail" test to be evaluated at all, since in this case the sender is oneself & the Junk Filter should exit as soon as the 'sender not in Address Book' test is evaluated.
Yet, when I try this with a message (correctly) marked as junk when originally received, the resent version is still marked as junk, & this happens not just on my on Mac but on the few others I have checked as well. I have tested with only a limited number of junk messages because on the other Macs the owners do not keep them for long & on my own I do not get that many (AOL is my primary account & has excellent spam filtering), so I would love to know if readers of this topic see similar results.
BTW, I should mention here what might be a potential hazard of using "Redirect" for testing with "real" spam: As I hope everybody knows by now, it is a bad idea to enable automatic loading of remote html images because doing so can alert spammers one's email address is valid. In one case, when I tried the "Redirect" method on my own Mac, AOL refused to accept the redirected message, possibly because of AOL's spam filters. At that point, Mail displayed the message, asking if I wanted to try sending it from another account, edit it, or what. Even though I have the option disabled, Mail loaded the original's remote html images along with its other content. I don't know if that is a design feature of Mail, a problem with just my Mac, particular to AOL, or what, but I want readers to be aware of it, just in case.
Anyway, for this reason I have since confined myself to testing with "Send Again," which seems safe in all cases, & mostly to testing only on my on Mac, just in case it is not.
Back to the "so what" aspects of this topic: It may be that the "Message is Junk Mail" test is sometimes treated differently from the other conditional tests in the Junk Filter in that it may be evaluated first or even if other tests before it evaluate to false. This makes some sense as a design feature in that even if the Junk Filter's automatic mode action isn't performed, it gives users more training opportunities. It may be a bug. It may just be something particular to my Mac. It may be something else, perhaps having to do with trusting junk headers, or something more subtle as yet unconsidered.
In any event, the point is holding all variables save one constant in any single "black box" test of a multi-variable system is a necessity for definitive results because variables may be interdependent. Because of this, the ability to resend to oneself the same message in unaltered form would be useful for a variety of tests, so I would still like to know if anyone has any ideas about how to do this.
iMac G5/2.0 GHz 17" ALS (Rev B) Mac OS X (10.4.7) 512 MB RAM, Kensington Trackball -
Exception in javascript library when testing Mail app with IE9/ Safari
Hi,
I have almost finished my mail app, but a strange issue that only appears with IE9 prevents me from successfully completing the verification process and therefore I can not publish my app.
The issue is very similar to this post, which could unfortunately not have been answered so far:
'OSF is undefined' script error in o15apptofilemappingtable.js
file when Mail App launched
I have tested the app successfully with the following browsers: Chrome (40.0.2214.111 m), Firefox (35.0.1), IE 11 and IE 10.
In IE9 I first get:
App
Error Something
went wrong and we couldn't start this app. Please try again later or contact your system administrator.
When
I then click "retry" I get:
App
Error This
app may not load properly, but you can still try to start it.
After
I click start the app works. The debug console of IE indicates that there is a problem in the o15apptofilemappingtable.js file:
SCRIPT438: Object doesn't support property or method 'GetContext' o15apptofilemappingtable.js, line 11 character 110934
The problem should be the call to: "window.external.GetContext()" in the file mentioned above.
Important to mention is, that when I build and deploy the sample mail project that ships with Visual Studio it just works fine (this is a difference to the other thread from above). There must be something special with my code but even after days of research
I can absolutely not figure out what it is. In contrast to the sample mail app, my project is an ASP.NET MVC application by the way (if that is important).
To isolate the problem I tried several things:
* I have removed all other javascript libraries to make sure that there are no conflicts between them.
* I removed all javascript code except the Office.initialize= ...
code to be sure that there isn't a problem with my custom javascript code.
But whatever I tried it doesn't help and basically I am fishing in troubled waters as I do not have an idea what the real problem is and why it is only happening on IE9.
Best regards
StefanHi,
in the meantime I noticed that I also get this problem with Safari.
I started to debug the office api and could isolate the problem further.
Please forward the following information to the responsible microsoft engineer as it contains valuable information to fix the problem.
The Exception I get happens becaus of a call to window.external.GetContext() in in the o15apptofilemappingtable.js. The calls happens because in the function OSF.InitializationHelper.prototype.getAppContext, the value of this._hostInfo.isRichClient
is true. Looks like in IE9 and Safari the api thinks it is running in the desktop version of outlook (but of course it is not and therefore the call to window.external fails -> I guess only available/set in desktop environment).
The api thinks of running as rich client becaus the XdmInfoValue does not exist in o15apptofilemappingtable.debug.js line 155 (it is undefined). I am not a javascript specialist and don't know what xdm stands for (cross domain? X-Document?) but however:
the xdm part which should be passed in the window.location as a hash value is not set in IE9/ Safari.
At this position I lose the scent and don't know where the xdm part is passed/added to the url. Perhaps in the osfruntime.js? Unfortunately I couldn't find a debug version of this file.
Please do not hesitate to contact me if you have further questions
Regards
Stefan -
Hi
This is ravi shankar....my senarion is Mail --> XI --> File... i am testing this senarion in sxmb_moni transaction...but its not working its showing "no messages found" error... i have an xml file as an attachement in my mail inbox...i keep that mail as unread....... my xml file is like this
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Mail_Message_Type xmlns:ns0="http://mailtofiledemo.com/ravi">
<Order>
<Header>
<Name>Ravi</Name>
<Address>Visakhapatnam</Address>
</Header>
<Item>
<material>Bus</material>
<units>5</units>
<price>200000</price>
</Item>
</Order>
</ns0:Mail_Message_Type>
but the mail adapter is not picking this file.....
Thanks & Regards
Ravi Shankar BHi,
Which mail server you are using ? Just go in to the inbox folder of your mail server and check if the message is present or not. Also check in the adapter monitoring whether there is any problem with the mail message. Can you plz more details about your mail server? How are accessing mails??
Regards,
Sudheer. -
How to test mail adapter ?
Hi,
Is there any guide thats explains the process of sending mails from XI to outlook. What is the Outbound Interface and Inbound interface. I know the configuration of Mail Adapter but little confused about Design. Any suggestions, or docs as how to go about is highly appreciated.
Thanks in Advance,
MayaHi Maya,
You can create a simple File->XI->Mail scenario.
Here you need to have Data type, message type and message interfaces for both Sender and Receiver side.
Do the message mapping and interface mapping and you design is complete.
You can very well use a common data type for both the ends.
Now you need to do the configuration part which i believe you are comfortable with.
Also, Please go through these links:
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
and,
https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
I hope it helps,
Thanks & Regards,
Varun Joshi -
hi,
I have cisco ironport C370. we configured and try to send mail through ESMTP. I got the following error
Your message did not reach some or all of the intended recipients.
Subject: test mail @ 3:31 PM
Sent: 1/20/2011 3:32 PM
The following recipient(s) cannot be reached:
( to address) on 1/20/2011 3:32 PM
There was a SMTP communication problem with the recipient's email server. Please contact your system administrator.
(from address) #5.5.0 smtp;550 #5.1.0 Address rejected.>
Pls give solution to solve the issue.Looks like the other mailserver did not like the recipient address or domain. Did you sent the message to an existing account? And is the error message from your internal mailserver that tries to reach the IronPort, or did the IronPort receive the error from the mailserver it wanted to deliver?
Andreas -
Strange email content received when test email mailer on RedHat 3 -- HELP
Hi,
Please have a look at the two email contents below, they are sent by java mailer when I click the test mailer button in workflow manager, and they are actually the same message, but one of which has full content, the other doesn't seem to like picking up the &SUBJET and &BODY.
PS: This is a test mailer action (CLICK ON TEST MAILER BUTTON WITHIN WF MANAGER), I do not need to specify any values for the email message content, the &SUBJECT and &BODY are not attributes in my worflow processes.
1. Email content sent from notfication mailer on WINDOW 2003 SERVER:
SUBJECT: Action Required: Message for Testing Notification Mailer
From: Oracle Workflow
Priority: Normal
Oracle Workflow Notification Mailer Test in System
adc055.adc055.admin.abdn.ac.uk_Oracle Workflow - Successful!
Please respond to acknowledge this message.
Please click on one of the following choices to automatically generate an
E-mail response. Before sending the E-mail response to close this notification,
ensure all response prompts include a desired response value within quotes.
Acknowledgment for the message
Result: Acknowledge Request Information
2. Email content sent from notfication mailer on LINUX REDHAT3 Enterprise
Edition:
SUBJECT: Action Required: &SUBJECT
From: Oracle Workflow
Priority: Normal
Oracle Workflow Notification Mailer Test in System
babarAS.babar.admin.abdn.ac.uk_Oracle Workflow - Successful!
Please respond to acknowledge this message.
Please click on one of the following choices to automatically generate an
E-mail response. Before sending the E-mail response to close this notification,
ensure all response prompts include a desired response value within quotes.
&MAILTO
&HISTORY
If you make a comparison between the two contents of a same notification
message perhaps you will notice the difference between them. SEE that &SUBECT,
&MAILTO & HISTORY don't pick up the real value.
ANY IDEA?
ThanksHi Platomey, I have the same problem with my Blackberry 9360 and so do several others who have posted on this site since around February 2012, but so far no answer from anyone on how to fix it. I tried uninstalling & re-installing Hotmail but it made no difference. My service supplier is Orange but I've seen the same problem on a Vodaphone forum, so it doesn't seem to be to do with the service. Help us someone please!
http://supportforums.blackberry.com/t5/BlackBerry-Curve/Blackberry-9360-duplicate-wording-in-my-emai...
http://supportforums.blackberry.com/t5/BlackBerry-Curve/Duplicate-text-in-an-email/td-p/1554343
http://supportforums.blackberry.com/t5/BlackBerry-Curve/Email-content-duplicates-itself/m-p/1556165/...
http://supportforums.blackberry.com/t5/BlackBerry-Curve/Sent-email-content-is-duplicated-when-receiv... -
Error while sending a mail using UTP_MAIL package in Oracle 10g
Hi,
We are using UTP_MAIL package to send a mail from Oracle 10g.We have follwed the following steps ...
SQL> connect sys/password as sysdba
Connected.
SQL> @$ORACLE_HOME/rdbms/admin/utlmail.sql
Package created.
Synonym created.
SQL> @$ORACLE_HOME /rdbms/admin/prvtmail.plb
Package body created.
SQL > alter system set smtp_out_server = '<mail_server_ip:25>' scope =spfile;
System altered..
Now we try the code
begin
utl_mail.send(
sender => 'sender's mail',
recipients => 'receiver mail',
CC => 'optional',
subject => 'Testing utl_mail',
message => 'Test Mail'
end;
But we get the following error...
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 21
ORA-06512: at "SYS.UTL_SMTP", line 97
ORA-06512: at "SYS.UTL_SMTP", line 139
ORA-06512: at "SYS.UTL_MAIL", line 405
ORA-06512: at "SYS.UTL_MAIL", line 594
ORA-06512: at line 2
We also tried connecting to the mail server through telnet .But it is not getting connected..
Please help us to solve the issue.From your own posting you may have the clue, if you try to access your mail server through telnet and it is not successful, it means the service is down or there are networking issues.
On pre 10gR2 versions there was a bug 4083461.8. It could affect you if you are on 10gR1
"Bug 4083461 - UTL_SMTP.OPEN_CONNECTION in shared server fails with ORA-29278 Doc ID: Note:4083461.8"
This was fixed on 10gR2 base and on 9.2.0.8.0
~ Madrid -
Sending mail with multiple attachment
hi.
i want to send mail with multiple attachment.
i m succeed in sending multiple attachment but the second pdf is not open.
its given error like "This file is damaged and could not be open.
pls check my code. and
give the solution....
point should be assured...........
hope all u r understand my problem..
& tell me where is i m missing something.
REPORT YSDPASALE1_MAIL LINE-SIZE 110.
data : year_month(6) type c.
data : from_date like sy-datum,to_date like sy-datum.
INITIALIZATION.
year_month = sy-datum+0(6).
CONCATENATE year_month '01' into from_date.
to_date = sy-datum.
ranges : temp for mkpf-budat.
temp-low = from_date.
temp-high = to_date.
append temp to temp.
DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
jobname like TBTCJOB-JOBNAME,
L_RELEASE(1) TYPE c.
CONSTANTS : l_c_device(4) VALUE 'LOCL'.
DATA : t type i value 0.
DATA : p_email1 like somlreci1-receiver,
p_sender LIKE somlreci1-receiver.
Data Declaration
DATA: gd_recsize TYPE i,gd_recsize1 TYPE i.
Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att1 LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att2 LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_desc1 TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des,
gd_mtitle LIKE sodocchgi1-obj_descr.
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
DATA: BEGIN OF mailstr OCCURS 0,
p_email like somlreci1-receiver,
END OF mailstr.
DATA: mailtab like STANDARD TABLE OF mailstr WITH HEADER LINE.
DATA: ypp18tab like STANDARD TABLE OF mailstr WITH HEADER LINE,
ymis008tab like STANDARD TABLE OF mailstr WITH HEADER LINE,
ysd15tab like STANDARD TABLE OF mailstr WITH HEADER LINE,
ymis10tab like STANDARD TABLE OF mailstr WITH HEADER LINE.
SUBMIT YSDPASALE1 with bdt in temp
to sap-spool
with line-size = '255'
with KEEP_IN_SPOOL = 'X'
with IMMEDIATELY = ' '
WITHOUT SPOOL DYNPRO
AND RETURN
NEW-PAGE PRINT ON
DESTINATION l_c_device
IMMEDIATELY ' '
KEEP IN SPOOL 'X'
NEW LIST IDENTIFICATION 'X'
NO DIALOG.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
PERFORM convert_spool_to_pdf.
select yemail as p_email into CORRESPONDING FIELDS OF TABLE ymis008tab
from ymail
where ytcode = 'YMIS008'.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool & mail sending',
'request to be created.'.
ENDIF.
wait up to 3 seconds.
submit YSD_MONTHLY_SALES
USING SELECTION-SET 'MAIL'
to sap-spool
with KEEP_IN_SPOOL = 'X'
with IMMEDIATELY = ' ' "SPACE
WITHOUT SPOOL DYNPRO
AND RETURN
NEW-PAGE PRINT ON
DESTINATION l_c_device
IMMEDIATELY ' '
KEEP IN SPOOL 'X'
NEW LIST IDENTIFICATION 'X'
NO DIALOG.
new-page print off.
IF sy-batch EQ 'X'.
gd_attachment_desc1 = 'YMIS10'.
gd_mtitle = 'Monthly Sales Report'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
PERFORM convert_spool_to_pdf1.
loop at it_mess_att.
move it_mess_att1 to it_mess_att.
APPEND it_mess_att.
endloop.
APPEND LINES OF it_mess_att1 to it_mess_att.
free it_mess_att1.
it_mess_att[] = it_mess_att1[].
insert LINES OF it_mess_att1 into it_mess_att.
APPEND LINES OF it_mess_att2 to it_mess_att .
insert LINES OF it_mess_att1 into it_mess_att.
insert LINES OF it_mess_att2 into it_mess_att.
loop at ymis008tab into mailstr.
p_email1 = mailstr-p_email.
p_email1 = '[email protected]'.
PERFORM process_email.
endloop.
clear mailstr.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ELSE.
SKIP.
ENDIF.
FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
FORM get_job_details *
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM convert_spool_to_pdf1.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att1 = gd_buffer.
APPEND it_mess_att1.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
DESCRIBE TABLE it_mess_att1 LINES gd_recsize1.
CHECK gd_recsize > 0 or gd_recsize1 > 0.
PERFORM send_email." USING p_email1.
perform send_email using p_email2.
ENDFORM.
FORM send_email *
--> p_email *
FORM send_email." USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = gd_attachment_desc1 .
gd_attachment_desc = 'YPP18 - Daily Highlights'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Dear Sir,'.
APPEND it_mess_bod.
it_mess_bod = ' '.
APPEND it_mess_bod.
it_mess_bod = ' '.
APPEND it_mess_bod.
it_mess_bod = 'kindly find the attached document'.
APPEND it_mess_bod.
it_mess_bod = ' '.
APPEND it_mess_bod.
it_mess_bod = 'Do not reply on this mail, It is generated from SAP'.
APPEND it_mess_bod.
it_mess_bod = ' '.
APPEND it_mess_bod.
it_mess_bod = ' '.
APPEND it_mess_bod.
it_mess_bod = 'Regards,'.
APPEND it_mess_bod.
it_mess_bod = 'Arpit Shah'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
it_mess_att1
using "p_email
gd_mtitle
'Testing mail generated from SAP'
'Daily Highlights Abstract Report - YPP18'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables it_message
it_attach
it_attach1
using "p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1,w_doc_data1 like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data1-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
For 2nd Attachments
* Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach1 INDEX w_cnt.
w_doc_data-doc_size = w_doc_data1-doc_size +
( w_cnt - 1 ) * 255 + STRLEN( it_attach1 ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
APPEND LINES OF it_attach1 to t_attachment.
t_attachment[] = it_attach1[].
APPEND LINES OF it_attach1 to t_attachment.
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
DESCRIBE TABLE it_mess_att LINES t_packing_list-body_num.
DESCRIBE TABLE it_attach LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = 'YMIS008'."ld_attdescription.
t_packing_list-obj_name = 'YMIS008'."ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
clear t_packing_list.
for 2 attachments
data : a type i,b type i.
a = t_packing_list-body_num.
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = a + 1. "1
DESCRIBE TABLE it_mess_att1 LINES t_packing_list-body_num.
DESCRIBE TABLE it_attach1 LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = 'YMIS10'."ld_attdescription.
t_packing_list-obj_name = 'YMIS10'."ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
a = t_packing_list-body_num.
clear t_packing_list.
* Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = a + 1.
t_packing_list-body_num = t_packing_list-body_num + 1.
DESCRIBE TABLE it_mess_att1 LINES t_packing_list-body_num.
t_packing_list-body_num = a + t_packing_list-body_num .
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = 'YMIS10'."ld_attdescription.
t_packing_list-obj_name = 'YMIS10'."ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
loop at ymis008tab into mailstr.
t_receivers-receiver = mailstr-p_email. "ld_email.
t_receivers-receiver = p_email1.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'. "X "Read Acknoledgement
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
endloop.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
Rgds.
ArpitHi Arpit,
Take a look at the documentation of FM 'SO_DOCUMENT_SEND_API1' for parameter PACKING_LIST. I think you should set t_packing_list-head_num to a different value than 0 for the second attachment.
Regards,
John. -
Instead of "Mailbox busy", Mail asks for password, long delay
We're testing Mail as a replacement for Eudora at my place of work. There is a POP account (not .mac) that is checked by five people. Using Eudora 6.x, if one person was checking the account, anybody else trying to check would get a Mailbox Busy message. Using Mail, you'd get an alert symbol next to the mailbox in the mailbox list, but next time mail was checked and the mailbox wasn't busy, it would work fine.
We just switched to a new mail server yesterday (on a Vereo host?) and now, though Eudora is behaving as before if the account is busy, Mail will pop up a box saying the password wasn't recognized, asking for the correct password, and then there's a loooong delay while it times out.
I presume the new server is sending some kind of busy message that Mail interprets incorrectly, but it's a show-stopper for us. Currently our options are:
1. Stop using a shared mailbox (my personal preference, but the actual users might not go for it)
2. Find out from the provider why the new server is causing this behavior (fat chance--they're likely to blame it on our weird Apple software)
3. Find out how to make Mail interpret the busy signal correctly.
4. Forward the account's mail to all the users' own addresses, instead of having them check that account themselves (am doing this now, will see how it works out. It will require more storage space on the server, at a minimum.)
I'm trying to find out if the server supports IMAP but in any case that would not be a workable solution for us.
Any feedback or enlightenment would be greatly appreciated.
--Colleen
Mac mini G4 1.25 Mac OS X (10.4.5)"More Like this" entry " Phantom Mail Account won't let go! Steven Shmerler SASNET Design, New York Oct 10, 2011 7:56 PM" gave me a clue, which after 15 minutes without annoying message, seems to work.
Went to Mail Preferences/ Accounts/ Account Information/ Outgoing Mail Server (SMTP)/ Edit SMTP Server List...
There were four (count them, 4) references to Earthlink. I deleted them, restarted Mail, and so far so good.
Thanks
Maybe you are looking for
-
Problem in updating field in databse
Hi experts I have internal table i_lips I need to update a single field in lips table on certain condtions I have tried this code but performance is too low .. Loop at i_lips. If i_lips-kostl NE i_lips-ikostl. Update lips ser kostl = i_lips-ikostl
-
Hello, I am getting several errors in DW 8, which started after several months of error-free usage. Upon loading of DW: "The following JavaScript errors occurred: at line 56 of file "C:/ProgramFiles/Macromedia/Dreamweaver 8/Configuration/Shared/Commo
-
"Charging is not supported with this acessory" opped up out of the blue
I left my phone charging after i woke up, took it off when it was 100% and went to work. When i came back home, i plugged it again and the "Charging is not supported with this acessory" error popped up. I was using the same cable and wall charger i a
-
I just had all of my music transferred to a new Windows Dell computer. Itunes doesnt show any of the music except the music that is in the cloud. Can smeone help me direct my itunes to the corect library. THanks
-
Is there an expected timeline for software updates?
The update available for the HTC 8X phone includes several enhancements and bug fixes that I am looking forward to, including an audio issue fix. When can I expected this to be pushed out to my phone?