cancel
Showing results for 
Search instead for 
Did you mean: 

Sender Mail Adapter Question

Former Member
0 Kudos

Hello All,

Iu2019m reading the blog: /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step to apply in my scenario. But Iu2019m having a issue. The messages in sxmb_moni are with state waiting.

I do the same configurations of the blog. But the message go to outbound queue (SMQ2) and have a SYSFAIL with this errror: "Access via 'NULL' object reference not possible".

Anybody have any ideia what's this?

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Your Main Payload is empty. You have to be careful with the PayloadSwapBean.

In Michal's blog a specific attachment name is expected. This will not work in most cases.

I recommend using payload-name as swap-keyname, is this is always the same.

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

How can I use this information?

I keep the swap.keyName = Content-Disposition and Content-Description (in reference Michal's blog) and before I include the value paylod-name? Or just put paylod-name?

I put swap.keyValue to payload-name equals "MailAttachment-1"?

Thanks.

Thiago

stefan_grube
Active Contributor
0 Kudos

You just use one entry for swap.keyname.

You see the payload name in sxmb_moni. Following the screen shot, the payload name of the attachment is MailAttachment-1. So you put swap.keyvalue to this.

Former Member
0 Kudos

Stefan,

I put just this:

localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean TRANSFORM

TRANSFORM swap.keyName payload-name

TRANSFORM swap.keyValue MailAttachment-1

The raw format of e-mails:

--SAP_913fb6e1-6fb1-11de-9ed3-0013725ef0f0_END

Content-ID: <payload-913d45e56fb111deb3b50013725ef0f0 at sap.com>

Content-Type: text/xml; name="MailAttachment-1.xml"

Content-Disposition: attachment;filename="MailAttachment-1.xml"

Content-Description: MailAttachment-1

<?xml version="1.0" encoding="UTF-8" standalone="no"?><nfeProc versao="1.10" xmlns="http://www.portalfiscal.inf.br/nfe"></nfeProc>

SAP_913fb6e1-6fb1-11de-9ed3-0013725ef0f0_END

But the messages in sxmb_moni still was with status Scheduled for Outbound processing and not finished.

Do you have more any ideia?

Regards,

Thiago

stefan_grube
Active Contributor
0 Kudos

Does that work, when you do not apply the PayloadSwapBean?

Former Member
0 Kudos

When I don't use the PayloadSwapBean, the service get a body of message. And If I put, the xml message was going in attach, in the body of mail the service processes with success.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hey

Could you please have a look at the Sap Note 1301829

even though it is in CRM section but it refers to ABAP servers in general.

Thanks

Aamir

Former Member
0 Kudos

So your problem is not about sender adapter mail adapter. You are able to process the messages from Mail server & are able to see them in SXMB_MONI but they are stuck in waiting state???

Are the outbound Queues activated? Use SMQR to restart your Queues...

-SM

Former Member
0 Kudos

Siva,

ok. I receiving the messages, but the messages not going to outbound. They stay in queue.

I was activated again de XBTO. But the errors continuos.