Need payload in the mail
Hi Experts,
My requirement is like this.
I need to catch the errors in any scenario and need to send that error details in mail to the End User.
Actually this can be done using Alert configuration.
But the Client requirement is they need Email should have message payload as attachment (xml, plain-text format).
so they need the error details like.
When the error occured and what is the reason... this can be done using Alert.
But to send the payload in the same error mail......how to achive this.
How to take the payload when the error occur and how can we send payload and error details in the same mail.
Thanks and Regards,
Phani Kumar
you can configure alerts to send out emails.
http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/content.htm
the alert categories can help you capture the error etc - http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
Similar Messages
-
Can we get a mail with the payload in the mail...I mean in the alerts.?
if so how ? any idea guys.....Hi,
i don't think its possible, but you can always use some trick to send all these thing.
Please refer weblog /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated , and just think about it.
In this weblog, he is configuring Alerts to enable them to store variables from the XI messages .what if you store all xml payload in on string withing the xml message and using this trick my michale send that variable to alert inbox.
I donno if it work, but its just a wild thought.
Hope this will help you.
Regards
Aashish Sinha
PS ': reward points if helpful -
Need to get the Mail attachment name as it is to the receiver file adapter
I am doing a Mail to File scenario. I need to get the attachment from the mail and store it on the file server. I am using the PayloadSwap bean in the sender mail adapter. My requirement is to carry forward the attachement name as it is to the receiver file adapter side and store the file with the same name.
Did any one try doing this? I was looking at developing an adapter module but got struck as I could not find whether the attachement name is stored in the XI payload after it has got swapped using the swap bean.
Any help would be appreciated.
VJOops pressed the send key. Take two.
This is becoming a damn nightmare. When I run the adapter I am getting ModuleExceptions. Can you pass your eyes over these Java config settings to see what I am doing wrong. Using NWDS CE 7.1 with PI 7.1 both at SP07. All the imports were taken from PI 7.1 after SP07 was applied. The build id of NWDS is
SAP NetWeaver Developer Studio
SAP NetWeaver 7.1 Composition Environment SP07 PAT0001
Build id: 200901152336
APPLICATION.XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>MailPOP_EAR</display-name>
<description>EAR description</description>
<module>
<ejb>MailPOP_EJB.jar</ejb>
</module>
</application>
APPLICATION-J2EE-ENGINE.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application-j2ee-engine SYSTEM "application-j2ee-engine.dtd">
<application-j2ee-engine>
<reference reference-type="hard">
<reference-target provider-name="sap.com" target-type="service">engine.security.facade</reference-target>
</reference>
<reference reference-type="hard">
<reference-target provider-name="sap.com" target-type="library">engine.j2ee14.facade</reference-target>
</reference>
<reference reference-type="hard">
<reference-target provider-name="sap.com" target-type="service">com.sap.aii.af.svc.facade</reference-target>
</reference>
<reference reference-type="hard">
<reference-target provider-name="sap.com" target-type="interface">com.sap.aii.af.ifc.facade</reference-target>
</reference>
<reference reference-type="hard">
<reference-target provider-name="sap.com" target-type="library">com.sap.aii.af.lib.facade</reference-target>
</reference>
<reference reference-type="hard">
<reference-target provider-name="sap.com" target-type="library">com.sap.base.technology.facade</reference-target>
</reference>
<fail-over-enable mode="disable" />
</application-j2ee-engine>
EJB-J2EE-ENGINE.XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-j2ee-engine SYSTEM "ejb-j2ee-engine.dtd">
<ejb-j2ee-engine>
<enterprise-beans>
<enterprise-bean>
<ejb-name>GetMailAttachment</ejb-name>
<jndi-name>GetMailAttachment</jndi-name>
<session-props/>
</enterprise-bean>
</enterprise-beans>
</ejb-j2ee-engine>
EJB-JAR.XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<description>EJB JAR description</description>
<display-name>EJB JAR</display-name>
<enterprise-beans>
<session>
<ejb-name>GetMailAttachment</ejb-name>
<home>com.sap.aii.af.lib.mp.module.ModuleHome</home>
<remote>com.sap.aii.af.lib.mp.module.ModuleRemote</remote>
<local-home>com.sap.aii.af.lib.mp.module.ModuleLocalHome</local-home>
<local>com.sap.aii.af.lib.mp.module.ModuleLocal</local>
<ejb-class>sample.GetMailAttachment</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
SENDER MAIL ADAPTER modules
1 AF_Modules/PayloadSwapBean Local EB 1
2 GetMailAttachment Local EB 2
3 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local EB 3
1 swap.keyName payload-name
1 swap.keyValue MailAttachment-1
RECEIVER FILE MODULES
1 localejbs/AF_Modules/DynamicConfigurationBean Local Enterprise Bean 1
2 localejbs/CallSapAdapter Local Enterprise Bean 2
1 key.0 write http://sap.com/xi/XI/System/File FileName
1 value.0 message.interface
VARIABLE FILENAME SUBST WITH ASMA TURNED ON
fName message:interface_name
JAVA SOURCE
package sample;
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import com.sap.aii.af.lib.mp.module.Module;
import com.sap.aii.af.lib.mp.module.ModuleContext;
import com.sap.aii.af.lib.mp.module.ModuleData;
import com.sap.aii.af.lib.mp.module.ModuleException;
import com.sap.engine.interfaces.messaging.api.Message;
import com.sap.engine.interfaces.messaging.api.MessagePropertyKey;
import com.sap.engine.interfaces.messaging.api.TextPayload;
import com.sap.engine.interfaces.messaging.api.XMLPayload;
import com.sap.aii.af.service.cpa.Channel;
@ejbHome <{com.sap.aii.af.lib.mp.module.ModuleHome}>
@ejbLocal <{com.sap.aii.af.lib.mp.module.ModuleLocal}>
@ejbLocalHome <{com.sap.aii.af.lib.mp.module.ModuleLocalHome}>
@ejbRemote <{com.sap.aii.af.lib.mp.module.ModuleRemote}>
@stateless
<code>GetMailAttachment</code>
@SuppressWarnings("unused")
public class GetMailAttachment implements SessionBean, Module {
private static final long serialVersionUID = 7612238514043673502L;
private SessionContext myContext;
private MessagePropertyKey myFileName;
public void ejbRemove() {
public void ejbActivate() {
public void ejbPassivate() {
public void setSessionContext(SessionContext context) {
myContext = context;
@throws CreateException
public void ejbCreate() throws CreateException {
public void getMessageProperty(MessagePropertyKey FileName) {
myFileName = FileName;
@param moduleContext
Contains data of the module processor that might be important
for the module implementation such as current channel ID
@param inputModuleData
Contains the input XI message as principal data plus eventual
set supplemental data
@return ModuleData Contains the (changed) output XI message. Might be the
response message if the module is the last in the chain.
@exception ModuleException
Describes the cause of the exception and indicates whether
an retry is sensible or not.
@SuppressWarnings("deprecation")
public ModuleData process(ModuleContext moduleContext,
ModuleData inputModuleData) throws ModuleException {
try {
Message msg = (Message) inputModuleData.getPrincipalData();
TextPayload payload = msg.getDocument();
String contentType = payload.getContentType();
// Content Type could be something like
// text/plain;charset="UTF-8";name="file.txt"
contentType = contentType.replaceAll("\"", "");
int i = contentType.lastIndexOf("=") + 1;
String fileName = contentType.substring(i);
msg.setMessageProperty(myFileName, fileName);
inputModuleData.setPrincipalData(msg);
} catch (Exception e) {
return inputModuleData;
JAVA ERRORS
2009-02-04 11:41:14 Information Mail: calling the module processor for channel LMK_Common_Mail_Sender
2009-02-04 11:41:14 Information Swap: swapping by payload-name ? MailAttachment-1
2009-02-04 11:41:14 Information Swap: successfully swapped
2009-02-04 11:41:14 Information Mail: message leaving the adapter (call)
2009-02-04 11:41:14 Information The application tries to send an XI message asynchronously using connection AFW.
2009-02-04 11:41:14 Information Backward validation is enabled
2009-02-04 11:41:14 Error Unable to validate the message with message ID 8702df71-f254-11dd-9b9b-001a64a73518
2009-02-04 11:41:14 Error Returning to application. Exception: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Content is not allowed in prolog.
2009-02-04 11:41:14 Error Mail: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Content is not allowed in prolog.
2009-02-04 11:41:14 Error Mail: error occured: com.sap.aii.af.lib.mp.module.ModuleException -
Me32K - Need to change the mail subject line, attachment name
Hi,
can u please throw light on the below three points which needs to be achieved.
1. Subject line of the mail needs to be modified from standard to "PO# XXXXXXXXXX".
2. Attachment name should be updated from stanadrd to "PO_XXXXXXXXXX".
3. Also by default mail will be delivered to the default id, but it should be delivered to multiple mail ids maintained in the vendor master.
I should achieve the above by user exits or by Zprogram copying from th standard.
Please advise me.
Thanks a lot.
Regards,
Kirancheck in Tcode: NACE, what is the current driver program and form against your document type.
and then change accordingly -
Need to have the mail trigger to manager whenever bank details are changed
Dear Experts,
We got a requirement on changing the Infotype .Whenever the employees Bank details Infotype are changed,a mail has to be triggered to the HR Manager.
What should we do for this requirement.
Please advice.
Thanks and Regards,
Sairam.Hi Experts,
Thanks for the reply.
When ever there is a change in the Bankdetails Infotype for an employee,the system has to trigger a message/mail to the respective HR.
in What way shall we get the desired output i.e triggering the mail whenever infotype changes.
Please share your ideas/solutions to resolve it.
Regards,
Sairam. -
I cannot shut down or restart my computer. The message tells me to close my mailbox, but I cannot open my mailbox, so I am stuck - can't reboot nor can I open my mail to quit mail. HELP!!
Use Force Quit under the Apple, or by clicking the Mail icon. You might also try force quitting the finder.
-
Single keyboard shortcut needed for doing the Mail PDF
I very frequently e-mail Word files (using Apple Mail) as PDFs. However, it takes two long steps (Print Command and pulldown to Mail PDF command). I want to have one single keyboard shortcut for doing the Mail PDF.workflow command from within Word and not have to use the mouse at all. Any ideas?
Maybe you can script it with AppleScript Editor (in Applications)? I'm no AppleScript guru, but since you did not get any other response, I thought I'd mention it.
Get to the point where you want to use your keyboard command. Hit Record in AppleScript editor. If those actions are scriptable (not everything is), they will show up in the window. Hit Stop when you are done. You should be able to save the script as an application. -
Hi All,
Actually i am very new to Mail form . i got the requirement as i need to create the Mail form form sending the mail through campaig as well as i want to print the same form so please help me out how to do this, please help me out by providing some step by step process for creating the mail form and some technical stuff for printing the form
Regatds
MohanHi,
Creating Mail form is multi stage. Have you created any survey.
I believe its for CRM 7.0. Broad steps are
1.Enter the CRM WebClient UI
2.SAP CRM WebClient menu Marketing >> Create: Mail Form
Mail Form for E-Mail
1.On the Mail Form: New screen enter the following values:
Field name User action and values
ID Y_TRADE_SHOW_INVITATION
Description Trade Show Invitation
Language Original:English
Usage Internet Mail (HTML)
Attribute Context ERMS
Subject Trade Show Invitation
2.In the Text Element screen area you can freely define the content of your e-mail in the text element.
3.Choose New Text Element, enter the following data for the e-mail form text block and choose Create:
Field name User action and values
Text Element ID FORM_LETTER
Description Invitation
Format HTML
4.Enter a text for the new text element FORM_LETTER and design it according to your needs.
If you want to upload a pre-defined text from an external source, choose Load Local File.
5.In order to insert the generated survey URL into the text, choose Hyperlink.
6.In the Insert Hyperlink web page dialog enter the following values and choose Insert:
Field name User action and values
URL <surveyURL>
Description Information Survey
URL Category
Tracking Option Via Target Site
7.Save your new mail form.
Hope it helps.
Rgds,
Rajiv -
How do you setup the Mail app with iCloud on an eMac?
I have recently made an iCloud account on my iPad- includng a free "@me.com" email address, which I've been longing for! I do, however, have the old Apple eMac and would like to set up my "@me.com" email address. When I go to set it up, there is (on the pull down menu) ".Mac", which did not work, "IMAP", and "POP". I know iCloud cannot use "POP", so is there any way to do "IMAP" and how? Please help!
For some reason, it won't connect to SMTP. I can get emails, but I can't write any. You said to do each port, but there is nothing asking for each port. I need help with the Mail application for Mac OS X v. 10.4.11 (Tiger). Can you help? The attached pics are the steps I've done...
(Above) I filled in all it asks....
(Above) Then I filled this in- I am trying to do it without typing "imap.mail.me.com" becuase if you see, it says "Example: mail.example.com"... (Below) It has failed...
-NOW I WILL DO "imap.mail.me.com"- (Below)
(Above) Then it gives me a pull-down list to choose from for the Outgoing Mail Server, so I just type: "smtp.mail.me.com" (below)....THEN YOU GET THE ERROR! -
Managing the mail service for WebCenter Spaces
I need to setup the mail service in WebCenter Spaces and could use some assistance. I have a standalone Linux DEV box that has WebCenter 11.1.1.2 installed. I have Documents, Discussions, wikis+blogs all working in this instance.
Now, I need to configure the mail service for this DEV instance to an SMTP mail server but I don't have any experience with this part. Has anyone setup the mail service using the Linux sendmail or Exchange 2003? How did you setup the external application for the mail server if you want to use Sendmail? Any help is appreciated.Hi Everybody
I am also having similar problems. I could configure everything except for the mail service.
I have the SMTP port but do not have IMAP details as our IT team does not maintain the IMAP.
Please let me know how can I configure mail service with the SMTP details only.
Your timely help would be much appreciated as we are in between a project development.
regards
Ramesh Chowdhary
9717003417 -
REG:GIVE THE LINK IN THE MAIL TO OPEN THE TRANSACTION
Hi All:
As part of my workflow i need to send the mail(i am doing),And in that mail i need to provide a link to open an Transaction by the user to review the details.
So please could any one tell the way how to solve this issue.
Thanks in advance.
Srihasa..To provide the link you need to use the link as shown below:-
http://servername:8001/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=loginid&sap-password=password&~transaction=sbwp
where
8001 is the port number
sap-client is the client you will using in the server
sap-user stands for the user id
password stands for password for user id
transaction is the sap transaction which you need to use
let me know if you still face any issue.
Edited by: Rajwin Singh Sood on Jan 20, 2009 10:04 AM
Edited by: Rajwin Singh Sood on Jan 20, 2009 10:07 AM -
Choose Mail sending default account in the Mail app.
There should be a option of choosing the mail account from which i need to send the mail everytime a send the mail and it prompts. its not like that i have to choose the default mail sending account in the settings before hand and then if i need to send the mail from a different account i need to go to settings to edit it. there should be a option of choosing it everytime i send the mail in the Mail app.
Hi SubirMondal,
Thanks for visiting Apple Support Communities.
You can tap the From field in the Mail app to send your email from a different email account:
Send a message from a different account. Tap the From field to choose an account.
See the iOS 7 User Guide for more information:
http://help.apple.com/iphone/7/#/iph3caef30a
All the best,
Jeremy -
I cannot open the mail app on my ipad
HI all,
i am having problems with my iPad 2 when using mail. It all worked fine until today.
when a new email arrives the icon shows waiting mail. When I open the mail app it shows a blank screen with the normal boxes in but no text and no email. After approx 10 seconds the screen fades to black and then goes back to the home screen. See image below.
i have tried doing a reset but it make no difference.
any help much appreciated.
thanks
ChrisHave you tried to force close the mail app? Double tap the home button. You'll see icons and previews on the screen. Scroll sideways if needed to bring the mail app up on the screen. Flick the preview up and off the screen to close it. Then single tap the home button or home page preview to exit the mode and try again.
-
How to find from/for whom the mail has been bounced.
Hi,
I got a bounced email. I have to find which mail has bounced. For example lets take I have sent a mail to [email protected] and the mail is bounced. Now I have to read my message using Javamail API and have to find mail for which intended user is failed. Hope I am clear on my question.
One thing I found is failed recepient address will be in the bounced mail's body but to get it I need to parse the mail (some server doesn't even put it in the body). Is there any other way? (like including it in the header or somewhere)
Thanks,
HarishDid you find the JavaMail FAQ? There's an entry in the FAQ that addresses
this question explicitly. -
How to get payload as body iin the Mail receiver
Hi,
i am using M2M scenario and getting the output data as am email attahment.
But i need that data as the body of the mail in the receiver.
please help me.
Regards,
Sree.Hi Sreenivas,
Use message protocol as XI payload and make sure that you uncheck the "KeepAttachemts" option. Please refer the below links it may help you.
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
The specified item was not found.
Regards,
Priyanka
Maybe you are looking for
-
Muse/Acrobat question about interactive PDFs linked to in Muse...
So I made a link to email, gave it a blue rollover state, exported this in an interactive PDF which I then have a link to in Muse. When you click on it, it opens in a new window/tab, w/ this weird gray color behind it. Any ideas how I can remove this
-
Dump when calling BAPI_CUSTOMERQUOTATION_CHANGE ?
Hi gurus, My code is below : wt_quotation_itemx-updateflag = 'D'. APPEND wt_quotation_itemx. ws_quotation_inx-updateflag = 'M'. CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE' EXPORTING SALESDOCUMENT = is_header
-
I have created an application containing around 50 pages. The first page has a Tree which serves like a menu for the whole application. The tree shows the names of the forms. What I want is when a user clicks on the tree, the page should open on the
-
Please can you help I received a email from Mrinmay Case No 0186451935 asking for my telephone Number which is [telephone number deleted by host] The serial No [serial number deleted by host]. I need to down load and install this programme as my hous
-
Is there a know issue with loading the Google Toolbar on version 4.0.1.
I recently loaded 4.0.1 and cant get my Google toolbar to work. I load it and it is fine. When I close and restart Firefox the toolbar is not there. There is a place for it and when I right click on the menu bar it is checked as if it I should see it