Content Text using Mail Adapter

Hi everybody, and happy New Year.
I've got this kind of scenario:
2 messages (material and document) and I must use them both to compose the body of an e-mail. Only, the mail adapter just has 1 content field, of type string. My problem is that I have to compose a complex text, which is difficult to do by using the said content field.
I know it should be possible to use UXML to compose the text, but I have no clue where to start from.
Any suggestions guys? guides, tips, hints, whatever.
Many thanks in advance for your help!

Hi,
you can do it as I've shown in my blog for example:
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Regards,
Michal Krawczyk
http://mypigenie.com XI/PI FAQ

Similar Messages

  • Sending Formated email content using Mail Adapter !

    Hi,
    I would like to send email notification to customer using mail adapter, could you please to advise how to prepared the content of the email with little bit formated like sample below :
    Dear Madam / Sir
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxx :
    yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
    Best Regards,
    Since the constant function only can accept single line, how i can add change line.
    thank you and Best Regards
    Fernand

    Hi Fernand,
    There are a couple of blogs in SDN regarding sending formatted mail using Mail adapter. I guess there is one written by Prakash Arunachalam. Just do a search and it will give you some idea on using XSLT to achieve the result.
    If all you need is multi line in the content, use a UDF and use \n when ever you need a new line and \t for tab space.
    Regards,
    Jaishankar

  • Swapping attachment to content on Receiver Mail Adapter

    Hi Experts,
    Can I move my attachment data to content on receiver mail adapter ? I am not using Mail package or mapping. I tried using Payloadswapbean on receiver adapter but adapter generated email with attachment only with and without Payload swap bean module.
    Please let me know if it is possible without using Mail Package.
    Thanks,
    Ankit

    Hi there,
    If you want to use attachment in content, then you need to collect the entire mail content in BPM. From there you can use Payloadswap bean on receiver adapter.
    The reason behind using BPM is that the attachment is maintained only in Integration Directory. First the mapping converts the source into mail and then just before moving to receiver the attachment gets added to the mail(i.e. after mapping). So if a BPM is used then all the mail content with attachment will get transported to BPM first and then to the receiver with the above change (Payloadswap bean i.e transferring the attachment to content).
    Best Regards,
    Souvik

  • Prerequisites To Use Mail adapter

    hi All,
    Are there any prerequisites to use Mail adapter in PI (like anydrivers etc ),pls guide me on this.

    Hi Sagar
    AFAIK there is no additonal drivers or specific installation for using mail adapter .
    Please follow below links to setup a channel and test it out.
    https://help.sap.com/saphelp_nw73ehp1/helpdata/en/ad/bf93409c663228e10000000a1550b0/content.htm
    856599 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 Mail Adapter
    Best Regards
    Srinivas

  • I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to customer. Can you please help me on the same?

    HI Experts,
    I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to vendor. Can you please help me on the same?
    Thanks
    SaiSreevastav

    Hi Sai,
    you can use XSLT or java mapping or adapter module to convert IDOC xml to XLS. Please refer the below blog
    Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way
    Convert incoming XML to Excel Sheet Part 2 – Adapter Module way
    Convert incoming XML to Excel Sheet
    then after converting to Excel, you can use the payloadswap bean in mail adapter
    XI: Sender mail adapter - PayloadSwapBean - Step by step
    regards,
    Harish

  • Sending File as attachment using Mail adapter with naming convention

    Dear All,
    I am working on a scenario in which my sender file adapter is sending one file named 'ABC.ok' in one of the folders in application server. I have to send the same file with the same name  to one of the folders at FTP and also to my customer at his email id.
    I have used File Content onversion at the receiver side and has selected adapter specific attributes due to which the required file is getting generated at FTP folder with the same name as that of the source. But how to send the same file using the mail adapter by keeping same name as "ABC.ok". Kindly guide me out in this.
    Regards,
    NJ

    what you need to do:
    1) Select ASMA in Sender and receiver File CC...already done
    2) Using the Dynamic Config UDF get the sender file name in the field Content-Type...for this you need to have a return statement in your UDF
    3) now before pushing this file name to the Content-Type you have to append (concat)the actual type of the file content (xml, txt)
    so your entire Content-Type node will have something like text/plain; name="abc.ok"
    SAP Note has reference on how to do this:
    https://service.sap.com/sap/support/notes/856599
    From the note:
    Q: How can I set the file name of a mail attachment?
    Regards,
    Abhishek.

  • Content Conversion in Mail Adapter

    Hi folks,
    I would like to know whether it is possible to do content conversion when using a mail adapter.
    The scenario is :
    We will receive file as an attachment in a mail. We have to read the file and do the content conversion. Then we have to map the data to an Idoc.Now we r struck that how can we convert the content of the mail attachment. Please help how can we achieve this.
    Thanks in advance.
    Best Regards,
    Noorul

    hi,
    yes you can do it:
    this document describes the same thing with jms adapter:
    https://websmp101.sap-ag.de/~sapdownload/011000358700001186732005E/HowToConveModuleJMS.pdf
    my weblog about e-mail attachments:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • How to map when using mail adapter

    Hi:
    I'm doing a test with mail adapter in XI. The scenario is I put an XML representation content based on the outbound interface used by sender mail adapter directly in inbox mail content and send it. At the other side, I want to using receiver file adapter sotre the content as a file in file system. But some mapping is needed.
    What I have already done is to define one outbound interface(<b>IF_Mail</b>) which is used by sender mail adapter.IF_Mail using the structure like
    <MT_Mail>
    <mail> 
    </mail>
    </MT_Mail>
    I also defined an inbound interface(<b>IF_File</b>). IF_File is using the structure like
    <MT_File>
    <file> 
    </file>
    </MT_File>
    I want to map the value of <mail> in mail to <file> in file. I did structure mapping between two message types in IR and all of the configuration in XI.
    I put the below content
    <MT_Mail>
    <a> test
    </a>
    </MT_Mail>
    as inbox mail content and send it. But when I monitor the XI message. It always says something is wrong with mapping.
    what am I doing wrong?  Thanks.

    Hi Oscar,
    copy the payload of incoming message (SXMB_MONI) to your desctop and test the mapping inside the IB Repository (Test Modus of IF-Mapping or Message Mapping), switch the trace to "all".
    Regards,
    Udo

  • Not able to see Message Content while using SOAP Adapter

    Hi freinds
    I am working on following scenario
    Web Application ---> SOAP Adapter ---> XI ---> RFC Adapter ---> SAP R/3
    Web application is using the WSDL file which I generated from XI.
    Now everything is going fine & I am even getting the XML data in SAP R/3 ( Order is getting created ) but in RWB under message monitoring I am getting " <b>Content of message deleted to save memory</b> " for message content.
    Even in SXMB_MONI for that timeframe it is showing " <b>No messages available for selection</b> ".
    Can you tell me why I am not getting the message content & the message itelf in SXMB_MONI. What I need to do in order to get the message content while monitoring.
    Best Regards
    Lalit
    P.S --> I am able to see the message content if I am using File Adapter in place of SOAP Adapter

    Hi
    After adding the LOGGING_SYNC parameter with value 1. I am able to see the messages in sxmb_moni but they have status as " System Error - Restart not possbile " with the following error ::
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:P1>402</SAP:P1>
      <SAP:P2>ICM_HTTP_TIMEOUT</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText><html><head><title>SAP Web Application Server Error</title> <style type="text/css"> body { font-family: arial, sans-serif;} </style> </head> <BODY text="#172972" link="#808080" vlink="#808080" alink="#8e236b" bgcolor=white leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"> <table height="61" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="http://sapxidev:50000/sap/public/icman/img/bluebar_tile.gif" height="30"><table> <tr> <td width=5></td> <td width=20% nowrap><font face=arial size="-1" color=white>SAP Web Application Server </font></td><td width=75% align="right" nowrap><font face=arial size="-1" color="white"><a href="http://help.sap.com/">Help </font></td><td width=5% nowrap></font></td> </tr></table> </td><td rowspan=2 width=122 height=61 valign=top><img src= "http://sapxidev:50000/sap/public/icman/img/theme.jpg" width=122 height=61 border=0 alt="SAP"></td> </tr><tr><td background="http://sapxidev:50000/sap/public/icman/img/graybar_tile.jpg" height="31">  </td></tr> </table> <br><br> <table width=800> <tr><td width=50 nowrap> </td><td> <H2>500 Connection timed out</H2><br>Connection timed out (-5) <br><hr> <table border="0"> <tr><td>Error:</td><td>-5</td></tr> <tr><td>Version:</td><td>6040</td></tr> <tr><td>Component:</td><td>ICM</td></tr> <tr><td>Date/Time:</td><td>Wed Dec 21 13:59:55 2005 </td></tr> <tr><td>Module:</td><td>icxxthr_mt.c</td></tr> <tr><td>Line:</td><td>2559</td></tr> <tr><td>Server:</td><td>sapxidev_XID_00</td></tr> <tr><td>Detail:</td><td>Connection to partner timed out</td></tr> </table> <p></p> </td></tr></table> <table><tr><td width=50 nowrap></td> <td nowrap><FONT SIZE=-1><a href="http://www.sap.com/">&copy; 2001-2003, SAP AG</a></FONT></td></tr></table></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when receiving by HTTP (error code: 402, error text: ICM_HTTP_TIMEOUT)</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    As my payload was of 100 records with 15 fields I guessed that this can be the reason I am getting timed out. So next time I just send 2 records & this time no error & everything went fine.
    Now one thing I need to do is to increase the TIMEOUT value with the help of <b>OSS Note 824554</b>.
    But still in RWB ( with 2 records also ) under message monitoring I am getting " <b>Content of message deleted to save memory</b> " for message content.
    My objective now, is to display the payload which is coming from Web Application via SOAP Adapter in RWB. Can you help me in this.
    Best regards
    Lalit Chaudhary

  • Error while using mail adapter

    Dear All,
    We have recently transported a scenario from XI 3.0 to PI 7.1.
    In this scenario a BPM is configured which on getting any error triggers an alert mail (Mail adapter configured).
    Now while testing in PI 7.1, mail message is getting generated but mail are not received and following error is coming:
    "Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint  [null "null"]; nested exception caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0"
    If anybody has faced this type of error kindly guide me in resolving this error.
    Regards,
    NJ
    Edited by: nishu jain on Jul 13, 2009 9:08 AM

    Failed to call the endpoint
    Check if you have given the correct details of the mail-server in your receiver mail CC.....also confirm that the mail server is up and running....
    Regards,
    Abhishek.

  • Change attachment name using mail adapter

    Hi All,
    I have a problem changing the attachment name in my scenario. I use Mail scenario to send a pdf Attachment from R/3 to email address. Everything working fine except the attachment name that becoming untitled.pdf and untitled.txt.
    Communication Channel setting :
    message protocol : xipayload
    transport protocol : smtp
    checked use mail package
    checked keep attachment
    I have use MessageTransformBean in my receiver adapter, but no luck. It was produce an error.
    anyone have an idea to solve my problem?
    thx,
    Robby

    Hi,
    You need to go to the Module tab of the Mail adapter receiver communcation channel and give the parameter as Transform.contentDisposition and its value as attachment ( since you needed the output to be sent as an attachment) and give the name of the attachment as you required.
    Please see the help page : [http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm] for more details and more options of the parameters.
    Regards,
    Kalpana.

  • Query regarding file content conversion using file adapter

    Hi All
    I have a question regarding file content conversion in file adapter.
    I have a file coming in the following format.
    AA,111,222,333
    BB,444,555,666
    CC,777,888,999
    My incoming message structure has a hierarchy. The CC record is a structure part of BB record. BB record is a structure part of AA record. It is like this:
    AA,111,222,333
    <<BB,444,555,666>>
    <<<<CC,777,888,999>>>>
    After file content conversion, in the resulted xml, i am getting a flat hierarchy instead of nested hierarchy.
    Is it possible to get a nested hierarchy as a result of file content conversion?
    Please let me know
    Thanks
    Chandra

    Hi Udo
    According to your suggestion, I am trying to use mapping.
    I am getting a flat file and i am reading it.
    This is my source structure:
    AA,11,22,33
    BB,44,55,66
    CC,77,88,99
    This is my required targer structure:
    AA,11,22,33
    <<BB,44,55,66>>
    <<<<CC,77,88,99>>>>
    To explain this, BB record can have multiple records of CC records.
    AA records can have multiple records of BB record.
    I am using removecontext node function.
    CC (Source)  (removecontext)-> CC (target structure)
    But here, when i rightclick on source CC field in the mapping editor, i cannot see any other context except root node. So, how can i proceed here??
    Many Thanks
    Chandra

  • Error: Unable to create socket(While using Mail Adapter in receiver side)

    Hi Experts,
    I have tried the File to Mail scenario. While component monitoring the Sender communication is working fine but the receiver communication is giving error like Unable to create socket. Please help me to solve this error.
    Regards,
    Nutan

    HI,
    before using the mail adapter have you specified all the attributes porperly as well as have setup the SMTP Exchange Server address
    For FAQs about the mail adapter, see SAP Note 856599.
    Please read the below thread, it might be helpful/
    SOAP Receiver   java.io.IOException: unable to create a socket
    Thanks
    Swarup

  • How t o get  the sunject in reciever mail using mail adapter

    hi all.
    i had created a file to mail scenario .
    in archive mapping program it was defined to which mailids of reciever side should be mailed and the body of the mail.
    but i just want to know if there are any settings under reciever mail adapter to get the subject uner reciever mails and an increment value (the number of times that the mailget posted in reciever mails) to be displayed in subject line of mail after descryption of the subject.
    waiting for great answer.
    cheers.
    seeta ram.

    Hi Seeta,
    you have to use a UDF in which you define a Container
    http://help.sap.com/saphelp_erp2004/helpdata/en/75/8e0f8f3b0c2e4ea5f8d8f9faa9461a/frameset.htm
    http://www.erpgenie.com/netweaver/xi/mapping1.htm
    You can make a counter which increments every time you call the UDF.
    Use the UDF in your mail package with the subject.
    Hope this helps.
    Dominic

  • Mail 8.0 deleted email content when using mail drop

    Using Mail 8.0 on Yosemite 10.1 I just spent a very long time answering an email. I attached a PDF of 30 MB before sending and the window to say it would be sent via mail drop appeared. I clicked Yes.
    Later I checked sent messages to see the email I wrote and make sure it all went through OK. However, in the email only a link to the mail dropped PDF was there, and all the text I wrote had disappeared.
    Nothing in sent, or saved boxes. It's a Gmail account, so I checked sent messages from the web interface for Gmail  and also there was just the link.
    I did a test and sent another email with said attachement and some random text, and it came out ok, it even had a fancy download button rather than some super long link.
    What is going on? can I get my email back? Please help!

    I've had - and am having -- all kinds of problems with Mail 8.0.  Is there an update yet to fix the many, many ISSUES with 8.0?
    I am ready to ditch the program unless fixes are forthcoming.

Maybe you are looking for

  • -wap-input-format not working properly in Nokia 58...

    I didn't know where to report this bug, so I'll try here. When you create web pages for mobile use you can set various input formats in form elements. This helps the user by setting up and validating input even before it reaches the server. One of th

  • - tried to use the media sync for itunes says i need a "microsd card"

    is this something I am to purchase separately or is it in my phone?  I am clueless - thanks! Solved! Go to Solution.

  • Magnifying glass icon in Apple's tutorials

    Every time I click and watch a tutorial on Apple's website, a magnifying glass pops up and highlights buttons or key areas that the speaker is referring to. How and where is that tool created and used?

  • ITunes for other countries

    I can't seem to find the music store for iTunes for countries other than the US/Canada. They seem to only have apps, and no front page with all the music ads like the US/Canada stores. Is this because they don't have non-English songs for sale in iTu

  • Spooling a dynamic text filename

    Hi, I'm new to SQLPLUS & currently using Oracle 8.0.6 Is it possible for me to spool a dynamic text file name instead of a flat ones ? eg: flat = SQL> spool testing.txt dynamic = SQL> spool inv270202-001.txt [where text filename = invDDMMYY-batchno ]