I am doing EDI outbound( from IDOC to X12) and i succeed creation of x12
correctly.what i am facing the problem is if there are 10 idocs coming into webMethods and the client want five idocs in one envelope(ISA/IEA)
and five in another envelope.
Right now my flow is as follows.
After i converting all the idocs to edi string list , i am adding GS/GE,
ISA/IEA finally.
So how can i split from string list to form 2 different envelopes.
Any help should be highly appreciated.
You’ll need to add logic yourself to do the split before the enveloping.
How are you collecting the 10 IDocs together? Are they all the same document type? Does the client just want 5 at a time or is there some other separation criteria? Based on some of this info someone may be able to suggest a splitting strategy.
10 idocs are coming through ALE from SAP.
Yes, they are all same document type.
Just i mentioned 5 idocs seperation as example.
For some partners the client want us to split 2 ST/SE in one envelope.
The client did not have any seperation criteria.
It sounds like you need to do nested repeats where you repeat for 5 idocs, add GS & ISA envelope, send then the outer repeat brings you right back in for the next 5 idocs to be grouped together then enveloped and sent using the outer repeat to bring you through this process until all you idocs are processed.
We did something similar but a bit more difficult since the canonicals received for processing were all individual document yet we needed to group them all into a single ISA envelope. To do this we used TN and queueing to batch up the canonicals. A scheduled service then drained the queue with a similar nested repeat as stated above. This allowed us to batch the immediate delivery canonicals all day and then drain the queue at a scheduled time and send in a batched mode. For our other trading partners that didn’t want the same document batched we just have them attached to processing rules that do not queue but instead do immediate delivery. A fully function option that covers both types of delivery all controlled by processing rules and delivery queues.
HTH
Dawn