help with EDI enveloping/batching/delivery

I’ll be receiving an individual PO and will be mapping it to an 850 ST transaction. These will be sent to a VAN. I’m unsure of what the flow should be after that regarding enveloping and delivery.

  1. Do I send the ST segment to TN, put them in queue, have the built in service batch and send?
  2. If I add a GS and/or ISA segment to each transaction doesn’t the batching have to remove most of the control numbers and regenerate them for the batch?
  3. If I do a batch, does it get delivered in the service that grabs the queue tasks or does it get resent to TN?
  4. If the batch is sent to TN for delivery how does TN differentiate between the individual 850 txn and the batch of 850s?
  5. Does the batching and sending to VAN built in service work properly or do you have to write your own custom service?

If someone could help with the logic and orderly steps that would be helpful.

  1. The document will need to have the envelopes added–it cannot be just the transaction set (ST - SE).

  2. Yes, though there was an option added that batching can be configured to leave the assigned numbers alone.

  3. The resulting batch document is submitted to TN for logging and action. Typically you configure a rule to deliver the document.

  4. The batch process adds an attribute to the batch document that can be used to identify the batch X12. Keep in mind, the rules will be looking at X12 envelope, not 850s.

  5. Define “properly?” :slight_smile: The out of the box facilities work, but if there are any variations to behavior that you’d like you may need to customize some parts. For example, in previous projects we’ve customized the batching itself (avoided use of queues due to various issues) and the delivery service (to log additional data and provide additional file handling controls in the put).

HTH

Ok thanks Rob, so the flow would be:

  1. Create the EDI 850 and add the ISA/GS
  2. Send to TN, recognized as ‘X12 4010 850’
  3. Rule to use scheduled delivery, public queue
  4. scheduled service creates batch reorganizing into one GS and one ISA with possibly new control numbers and sends back to TN
  5. rule triggered from doctype ‘X12 Envelope’ for batch delivers to VAN

Am I getting there? :slight_smile:

Yes you are in the right direction with the above steps:

HTH,
RMG

That depends on the split level defined by the applicable TPA. If split is to transaction level, then you’ll see X12 Envelope, GS Envelope and the 850. If split is not to transaction level, then you’ll only see to the level of the split.

You’re on the right path young Skywalker… :slight_smile:

So yes I’m slightly confused if I send a full ISA/GS for the transaction, and then the batch is also sent back to TN with an ISA how does TN differentiate since they would basically look the same (what is flag, etc)?

Another problem is that since we are using DUNS in the ISA segment, I tried to enter the DUNS number in TN profile for the sender but it is already being used in another profile (that I can’t use, different business unit and we use a new user defined 1 for other routing purposes)

W

Basically for this problem, you can setup a dummy flat file doc type (for ex: Outbound batch 810) and create a batching rule for this (doc type/sender-any/receiver) and in the batch config specify the sender duns/receiver Test (profile) and the required settings…The flat file will have the wrapper EDIdata and use the flatfile gateway service to route to TN which will be Queued.Finally your batch processing send service will retrieve the docs and routes the EDIdata (X12 Envelope) to TN and does the outbound transport (sent to VAN or AS2 or FTP file) etc…

HTH,
RMg

I still have questions - my rule for batching is based on the 850 not the X12 envelope, which I thought would be too generic. So I split the EDI doc at transaction level. When the batch is sent back to TN do I set a rule just on the X12 to deliver it, and base the rule on the sender/receiver since the envelope is not document specific, just an X12?

Hello,
I dont know that I am wrong or right, but till my knowledge, batching process works on the X12 Envelope only, dont worry that you have 850, or 864, etc…

It will work fine and correctly, as I have done this, and seen the transactions working.
DO try and follow up.
And RMG and Rob, please say if I am wrong somewhere…:happy:

Regards
Suvigya.

Yes the batching process you should select the X12 Envelope level for outbound delivery and its a standard process no worries…

HTH,
RMG

Ok but when I send the individual 850 with ISA/GS it splits into 850, Group and X12 Envelope so how does TN know this isn’t the file to be batched? In other words, when the actual batch is sent to TN how will it differentiate the batch from the X12 for the individual 850?

W

Your processing rule/doc type (X12 Envelope) for batching/queue tells that along with EDIBatch configuration…

Can you please be more specific, what in the rule differentiates between individual X12 (one ST) and batch X12 (multiple STs)?

It’s nothing to do with single/multiple ST’s (the Batch queue configuration/X12 Envelope partner specific or generic in case would help) What’s your current setup for batching so far,that way would be easier for anyone to suggest.

Did you tried my previous suggestion:
Setup a dummy flat file doc type (for ex: Outbound batch 810 or 850) and create a batching rule for this (doc type/sender-any/receiver) and in the batch config specify the sender duns/receiver Test (profile) and the required settings…The flat file will have the wrapper EDIdata and use the flatfile gateway service to route to TN which will be Queued.Finally your batch processing send service will retrieve the docs and routes the EDIdata (X12 Envelope) to TN and does the outbound transport (sent to VAN or AS2 or FTP file) etc…

Rob,Please add your comments as well.

HTH
RMG

I don’t want to do custom functionality if I can avoid it. As Rob Eamon said to do I send the 850 to TN with an ISA/GS and it’s going into a public queue. From there it should trigger the batch service and resend to TN. The scheduled delivery is being suspended and it’s complain about the input parameter version. I was hoping the inputs to the batch service would be automatically populated since it’s a public (generic) queue.

So assuming I get the batch to submit to TN, I’m wondering how the batch would be differentiated from the individual 850 (which also has an ISA/GS segment).

If Rob or others can chime it please do. And only if you’ve actually used the built in batching services. :slight_smile:

Regarding version parameter you mentioned,just try to specify 004010 or 4010 and provide the inputs to the EDI Batch (If not please do set)

When the batch service creates the batched X12, it adds an attribute to the TN document. I don’t recall the specific name and value, but the EDI docs have that. That’s how the rules can distinguish between the individual docs and the batched doc.

The attribute name is EDI Batch and values are None/Interchange…

For a batch EDI document, the EDI Batch custom attribute is set to
Interchange. You can use the EDI Batch custom attribute in the extended criteria of the
processing rule, so the processing rule is only used for a batch EDI document.

Mode:IC&GP

HTH,
RMG