Skip to Content
avatar image
Former Member

Mail to IDOC Scenario

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 20, 2017 at 02:59 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 20, 2017 at 10:58 AM

    Hi Inaki,

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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 20, 2017 at 10:49 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded