Skip to Content
avatar image
Former Member

XI Mail Adapter TXT file as attachment

Hi, I am using Mail Receiver adapter to receive data from Sender ABAP Proxy.The attachment file contains data with all Labels, i used in the Target Message Type.

<?xml version="1.0" encoding="UTF-8"?>

8000001959 http://selectcomfort.com/sapcrm/xogistics/outbound"> 8000001959 > 1 Di Capri Sheela

Please let me know how can i exclude these labels such as

<HEADER1000> </HEADER1000> , <TASK_ID></TASK_ID>,

<NAME_LAST></NAME_LAST> etc...

from appearing in the File Content.

The ModuleKey contains

Transform.ContentDisposition attachment;filename="Outbound1.txt"

Transform.ContentDescription Outbound1

Transform.ContentType text/txt;name="Outbdound1.txt"

Thanks.

Rushikesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jul 21, 2008 at 09:54 AM

    Hi,

    You can get rid of this by using java udf.Write the code to eliminate those extra tags and then pass the data in the mail adapter.

    Regards,

    Arijit

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 21, 2008 at 10:35 AM

    Hi,

    If ur using the mail adapter as receiver then if u dont use mail package then the attachment will come as it is file.

    If u use mail package then it will come in XML format

    for reference please check some links.

    Receiver Mail Adapter.

    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure

    eMail Reporting

    eMail Report as Attachment (Excel/Word)

    https://blogs.sap.com/?p=40111

    https://blogs.sap.com/?p=41052

    https://blogs.sap.com/?p=41157

    Regards,

    Phani

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 21, 2008 at 03:37 PM

    My scenario is ABAP Proxy to Mail as TXT attachment.

    But the tags labels are unwanted in the TXT file.

    Do i need to use the "Mail Package" for this.

    Currently

    The ModuleKey contains

    Transform.ContentDisposition attachment;filename="Outbound1.txt"

    Transform.ContentDescription Outbound1

    Transform.ContentType text/txt;name="Outbdound1.txt"

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 21, 2008 at 06:26 PM

    Hi,

    If you want the text file, as attachment you can use the following parameters and describe the structure.

    Transform.ContentDisposition - attachment

    Transform.ContentType - text.plain

    xml.conversionType - StructXML2Plain

    xml.recordsetStructure - HEADER,BODY,SUMMARY

    Hope this helps.

    Regards,

    Geetha

    Add comment
    10|10000 characters needed characters exceeded