Asked By Alexandru Taras
03-Nov-09 07:27 PM

Hi,
I am currently trying to batch invoice into a sigle message for one output file in BT 2009. The current status is that i have my mapping of the input Flat File message, and BT automatically breaks it into a lot of small EDI messages (one per invoice). My input Flat File is positional and multi leveled (somehow close to EDI):
UNB1 <some data>
UNH1 1 <some data>
BGM1 ...
LIN ...
TAX ...
...ETC
UNH1 2 ...
...
DTM1....
...
...
...
So now i have a simple Receive -> Transform -> Send orchestration that for an input file with 5 invoices, will generate 5 edi files with one invoice each.
1. How can i batch them in one file?
2. How (and is it possible?) can i choose the party based on the UNB data i get from the input in my orchestration?
I've followed some tutorials for batching but the part where i send the messages to the batching orchestration is not clear to me. What's the send port configuration for the orchestration that pushes messages to the batching engine? Where do those messages end up until i release the batch? I saw peopl setting that port to Direct...My biggest problem atm is that i cant get the invoice messages into a batch. And if i would suceed getting them there, how do i get them all into a file after i release the batch by updating PAM_Control??
Thanks,
Alex