Skip to Content
0

Mail to IDOC Scenario

Mar 20, 2017 at 09:57 AM

43

avatar image

Hi Experts,

I have a mail to IDoc scenario, wherein, the sender sends IDoc segments as the header in an excel as an attachment. This excel is converted to IDoc XML in PI. My question is : If suppose there are 10 excel attachments being sent ...out of which 8 are valid and the other 2 are invalid...then how do we handle this error?

Another question related to the same scenario is I just want only specific senders to be able to send the email, how can we achieve this without doing any mapping changes?

Thanks

Deepika Raikode

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Evgeniy Kolmakov Mar 20, 2017 at 02:59 PM
1

Hi Deepika!

If suppose there are 10 excel attachments being sent ...out of which 8 are valid and the other 2 are invalid...then how do we handle this error?

1. This should be described in interface specification. It depends on your scenario processing logic.

I just want only specific senders to be able to send the email,

2. Why not to set incoming mail rule to move messages from given list of senders to specified folder and use that folder as source for sender mail adapter?

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded
Deepika Raikode Mar 20, 2017 at 10:58 AM
0

Hi Inaki,

The requirement is not to hard code the senders in the channel and instead use RefDB entries for specific senders.

Share
10 |10000 characters needed characters left characters exceeded
Iñaki Vila Mar 20, 2017 at 10:49 AM
0

Hi Deepika,

10 excel attachments being sent ...out of which 8 are valid and the other 2 are invalid...then how do we handle this error?

how do you define "error"?, i think the best way is to implement the validations inside a java mapping.

I just want only specific senders to be able to send the email, how can we achieve this without doing any mapping changes?

AFAIK you can't restrict the senders directly in the channel, but you can get the sender with the parameter SHeaderFROM (https://help.sap.com/saphelp_nw73/helpdata/en/48/3276dba3af58d8e10000000a421937/content.htm) and to configure the receivers with a local rule only with the senders that you want.

Regards.

Share
10 |10000 characters needed characters left characters exceeded