Skip to Content
A B

IDOC Packaging - Conditional

Hi

I have invoice idoc for salesorg 9999 and Salesorg 8888. The control record is different for these idocs.

Unfortunately, when using idoc packaging, it does look only for logical message type and invoice type. due to this both the salesorg are getting packaged into one and hitting the channel.

I have configured identifier in party to differentiate both . Still both are packaged into one and hitting same communication channel .

How do i take care of this?

Add a comment
10|10000 characters needed characters exceeded

  • Hi A B,

    Are those messages sent from SAP ERP?
    If so then I can see that in theory you can processed IDoc packages according to certain selection criteria - one of those criteria is a queue name.
    My idea would be to use qRFC with different queue names built based on Sales Org. value (you could handle that by creating a custom function module responsible for building rule name similar to IDOC_QUEUE_SUS_MM).
    If you had separate queues you could run execution of RSEOUT00 twice (for both queues separately).

    IDoc Packaging – SAP PI 7.1 EHP1 (and above)
    Regards,
    Bartosz

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 10, 2020 at 09:33 AM

    I did not yet use IDoc Packaging but wouldn't you be able to utilize split mapping afterwards? Or is it the case that PI automatically splits the IDoc already in the adapter so that in Mapping you are dealing with single IDocs? In either case you would be able to react on payload data (sales org is payload, not metadata)

    Cheers

    Jens

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.