Skip to Content
author's profile photo Former Member
Former Member

Bundle message and send them at a certain time

Hi,

for an implementation project we have to collect a lot of invoice messages in a flat file format and bundle them into one XML file. The bundling should be time controlled. Meaning all invoices until 08:00 in the evening should be put into one file.

How can I do this in XI ?

Thanks a lot for any help in advance

Regards

Matthias

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 03:09 PM

    Hi Matthias,

    1) you need a "multi mapping"

    In Integration Repository goto software component SAP BASIS. Here is a sample process. Everything is clarified there.

    2) For sending the message use a "wait step"

    Regards Mario

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 03:13 PM

    Hi,

    For this you may need to go for a BPM. Where bundling of invoices takes place in that use wait step to schedule the transfer of data to file.

    or for schecdling messages plesz go tru link below,

    /people/alexander.bundschuh/blog/2006/01/04/scheduling-messages-in-sap-xi

    Hope this helps.

    kvr

    Message was edited by:

    PrasadBabu Koribilli

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2007 at 05:00 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 05:16 PM

    Hi,

    You need to use a combination of some activities

    For bundling you will have to use multimapping.

    For making it time controlled you need to use Integration administrator to control the interface.In SAP GUI enter transaction SXMB_ADM .There you can time control your interface.

    Regards

    Bipin Joshi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 06:00 PM

    Hi Matthias,

    I had a similary challenge a few weeks ago. Here's my solution:

    - Define two BPMs, let's say "CoreBPM" and "WaitBPM".

    - Define a new MessageType, lets say MI_BundleWait

    - If you want to bundle your messages depending on the content of the invoices (e.g. depending on the customer number), you will need to define correlation in CoreBPM. In this case, MI_BundleWait should consist of the correlation elements.

    In CoreBPM, define a process like this:

    Make a endless loop, which consists of:

    - Receive the Invoice and MI_BundleWait in a parallel branch. Define, that one branch only has to be fulfilled

    - define a correlation for the two receiving steps

    - If an invoice is received, check if this is the first time, that an invoic is received (define container as flag). If it is the first time, make a mapping from invoic to MI_BundleWait (correlation elements!) and send the result. Add the invoic to a multiline container.

    - If a MI_BundleWait Message is received, throw an exception.

    In exception handling, make a multi-mapping of the multiline-containter to a single message. Send this message.

    In WaitBPM define a process, which receives MI_BundleWait and then sends MI_BundleWait.

    Schedule MIBundleWait (/people/alexander.bundschuh/blog/2006/01/04/scheduling-messages-in-sap-xi), once a day at 8:00p.m.

    What will happen?

    CoreBPM will receive an invoic and will send a MI_BundleWait.

    WaitBPM will receive this message and immediately send it back to CoreBPM, but this message will not reach CoreBPM, because of scheduling.

    In the meantime (due to parallel branches) additional invoices can reach und will be gatered in the multiline container.

    After scheduling event was trigger, the process will be finished due to exception.

    Invoices will be bundled and sent.

    Hope you can understand what I tried to explain. It really works!

    Regards,

    Torsten

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2007 at 06:46 PM

    I donot recommend to use BPM for bundling the message at a certain time.Instead event driven monitoring /people/alexander.bundschuh/blog/2006/01/04/scheduling-messages-in-sap-xi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sraya,

      I agree, that event driven scheduling of messages is a good way to activate bundling (I referenced also this blog) But how do you collect the messages, which are to be bundled in your solution, until the starting time?

      Regards,

      Torsten

      Message was edited by:

      Torsten Engel

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.