cancel
Showing results for 
Search instead for 
Did you mean: 

receiver Mail adapter - Text as a attachment

former_member205101
Participant
0 Kudos

HI folks,

These are my screen shot link of my receiver CC

http://farm4.static.flickr.com/3279/2946574549_aa08b8464c_o.jpg

http://farm4.static.flickr.com/3063/2946575933_e8689c240d_o.jpg

In my receiver Communication channel,

I mentioned these parameters also,

From : xxxxATxyz.com ( i could not at the rate symbol ..bec it considers as a email)

to : sapATmye.com

subject: test

Content encoding: none

I am mailing with in network only

I could get email in my receiver (sapATmye.com ) inbox but only i am getting message in text format only.

I could not get as a the attachment.

I want the output in text format as a attachment

My advanced thanks for the inputs.

Thanks

Prabaharan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Prabhakar

I saw your configuration images

How are you getting data here.

1. Data is coming as an attachment

2. Data is coming as payload(XML).

Thanks

Gaurav

former_member205101
Participant
0 Kudos

Hi Gaurav,

Thanks for ur intiative

I am getting Data as message only ( not as a attachment )

It does not have any format bec message is in the mail message itself.

I am getting Payload in the my mail message itself. (i have to do fixedfieldLengths..i am trying that also)..it is like text format...

Thanks

Prabaharan

Edited by: Prabaharan on Oct 17, 2008 2:08 AM

Former Member
0 Kudos

Hi Prabhakar

Then your configuration is fine in the image for mail adapter without mail package.

1. Use StrictXml2PlainBean - can you share the structure of XML.

2. Using MessageTransformBean use

ContentDiscription as payload.

Thanks

Gaurav

former_member205101
Participant
0 Kudos

hi,

In the message mapping , my receiver side XML str,

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

<ns0:MT_Receiver xmlns:ns0="http://www.xmxyater.com/report">

<SalesEmployee>

<No>0200</No>

<Place>Rama</Place>

<Total>200</Total>

<Sign></Sign>

</SalesEmployee>

</ns0:MT_Receiver>

Former Member
0 Kudos

HI Prabhakaran

Try like this

for StrictXML2PlainBean

recordTypes = SalesEmployee

SalesEmployee.fieldSeparator = ','

SalesEmployee.fieldLengths = 4,4,4,4

SalesEmployee.fieldLengthExceeded = ignore

SalesEmployee.endSeparator = '\r\n'

contentType = text/plain

for MessageTransformBean

Transform.ContentDescription = payload

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

Transform.ContentType = text/plain

Thanks

Gaurav

former_member205101
Participant
0 Kudos

HI Gaurav,

I am getting the error ( i tried like as u said) . even i tried that way before also ( i got the same error)

I am getting the error RWB , CC monitoring,

Message processing failed. Cause: com.sap.aii.af.modules.conversion.xml2plain.ConversionException: Insufficient number of fields read for structure SalesEmployee. Expected 4, got 3 at XML element MT_Receiver,SalesEmployee

Even link for Receiver CC

http://farm4.static.flickr.com/3289/2947598091_6dc5423a82_o.jpg

I do not know why i am getting this kind of error even though,

i mentioned SalesEmployee.fieldLengthExceeded ; = ignore

in my receiver message type 2 attributes has occurence as 1 to unbounded, another 2 attributes occurence as 0 to unbounded

Thanks

Praba

Edited by: Prabaharan on Oct 17, 2008 3:04 AM

Former Member
0 Kudos

Hi Prabhakar

Tell me the correct structure with the occurance then i can try to help.

om.sap.aii.af.modules.conversion.xml2plain.ConversionException: Insufficient number of fields read for structure SalesEmployee. Expected 4, got 3 at XML element MT_Receiver,SalesEmployee

This states that program is expecting 4 values as you have defined length for 4 fields and only 3 reach.

Make changes to this code it should work.

Thanks

Gaurav

former_member205101
Participant
0 Kudos

hI,

I am having

In the message mapping , my receiver side XML str,

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

<ns0:MT_Receiver xmlns:ns0="http://www.xmxyater.com/report">

<SalesEmployee> occurence 0 to unbounded

<No>0200</No> occurence is 1 to unbounded

<Place>Rama</Place> 0 to unbounded

<Total>200</Total> 1 to unbounded

<Sign></Sign> 0 to unbounded

</SalesEmployee>

</ns0:MT_Receiver>

U have said I need to change code ( i guess XI)?

what/where changes need to be done In XI?

when i see payload i am getting values (mandatory fields ie No and Total) for the all the salesEmployee records.

I doubt about the sign only.

Edited by: Prabaharan on Oct 17, 2008 2:30 PM

Answers (3)

Answers (3)

former_member205101
Participant
0 Kudos

I am closing this thread. I guess moderator does not want this thread to continue..

Thanks for ur support Guys esp. Gaurav

Thanks

Praba

Former Member
0 Kudos

HI Prabhakar

What exatcly error you are getting after sorting out the mapping error.

Thanks

Gaurav

former_member205101
Participant
0 Kudos

I do not know whay i am not getting reply option on this thread....

former_member205101
Participant
0 Kudos

HI,

I solved the issue by editing mapping..But still i could not resolve issue attachment