cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Mail Blog

Former Member
0 Kudos

Hi,

im trying this blog.

/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address

After sending the file to xi the mail adapter said:

failed to send mail: com.sap.aii.messaging.util.XMLScanException: expecting start tag: Mail, but found mT_StgLocation at state 1

Do i have to use this http://sap.com/xi/XI/Mail/30 NS ?

Gordon

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Arvind,

is it possible to do a message mapping first.

1. IDoc to Filestructure

and then use the mappedstructure as the source of the xslt ?

Former Member
0 Kudos

u can very well use a message mapping instead fo XSLT. that XSLT infact was to show the capabilities fo getting a appealing content for e.g. color...

what exactly are you looking for

Former Member
0 Kudos

HI Arvind,

my source message structure (IDOC) is complex and that would need a lot of work to implement it in the xslt.

I would like to do a mapping first.

1. IDOC to a simple xml structure "xml_st"

2. xml_st via xslt to mail structure.

i would like to use the xml_st structure to implement it in the xslt.

ideas ?

justin_santhanam
Active Contributor
0 Kudos

Gordon,

As per the blog are you using the target structure as imported in External Definition only right?

If yes then why do u want to change the namespace bcoz the Message itself contains http://sap.com/xi/XI/Mail/30 namespace isn't it?

raj.

Former Member
0 Kudos

no,

im using my own structure.

I added the field <subject>, <From>,<To>,<Content> to the beginning of my structure.

And this mapping is not located in .../Mail/30.

any ideas ?

justin_santhanam
Active Contributor
0 Kudos

Gordon,

Use the Mailpackage and do the scenario. You can download the same from as mentioned in the blog, if you can't then let me know. I'll paste the Xsd over here and copy the same.

raj.

Former Member
0 Kudos

in other words ... i have to use this external file and i can´t use my own one ?

justin_santhanam
Active Contributor
0 Kudos

Gordon,

Its not like that, you can create your own, but similar to the XSD. This is applicable only when u checked the <b>UseMailPackage</b> Option . Bcoz it's be pre-defined.

raj.

Former Member
0 Kudos

Ok it works now.

Is there a possibility to add a complete segment under CONTENT ? I want to display not only 1 line but a complete segment.

Name xxx

Adress xxx

Age xxx

Is this possible ?

Former Member
0 Kudos

check this blog

/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword

Former Member
0 Kudos

Arvind,

i dont want attachments ! I need the information mapped "printed in the body".

any ideas ?

Former Member
0 Kudos

check that blog u have a link to another blog there which tells how to send it as a part of the mail (if no atttachemnt si required)

Former Member
0 Kudos

Arvind,

that´s a great blog. Thx

/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword

What is meant with:

Here is the XSLT mapping which generates the output in the report format from the source structure and then place it under the node somewhere ? or only to add in the interfacemapping ?

Former Member
0 Kudos

Hi,

u need to provide the XSLT mapping in Interface mapping. if u look at the XSLT mapping it provides u the output strucuture. it includes the other fields of the target structure too...

Former Member
0 Kudos

Arvind,

great it works.

I have used HTTP instead of FILE Inpout.

[s]<i>My problem: The mail received and payload is inserted but the details are missing.

The header is filled:

These delivries has been completed:

Delivery Number Order Number Ship-To Name Product Code Qty Billed Status

.. but the itemlines are missing.

any ideas ?</i>[/s]

[SOLVED]

Message was edited by:

Gordon Breuer