DISCOVER_EDI

This activity processes an EDI transaction document file to discover more information about its contents.  If the document has already been registered in the transaction document register, the activity will update the register with information extracted from the document.

The functions of this activity include:

INPUT Parameters:

EDINUMBER: Required

This parameter specifies the transaction document envelope number for the transaction document.  This number is normally assigned by the TXDOC_REGISTER activity.

If the document has not been registered, you can specify the special value '*NONE'.  If you specify '*NONE', the activity will not attempt to use or update the transaction document register with information gleaned from the document.

EDIFILE: Required

This parameter specifies the path and name of the EDI transaction document file.

EDIDIR: Required

This parameter specifies the direction (I=inbound, O=outbound) for the document exchange.

OUTPUT Parameters:

EDISTD:

Upon successful completion, this parameter will contain the document standard id (as defined in LANSA Composer's Document types) that applies to the EDI transaction document.

EDIVER:

Upon successful completion, this parameter will contain the document standard version id (as defined in LANSA Composer's Document types) that applies to the EDI transaction document.

EDITYPE:

Upon successful completion, this parameter will contain the EDI transaction type (eg: 850 or INVOIC) of the EDI transaction(s) contained in the EDI transaction document.

EDIPRODTEST:

Upon successful completion, this parameter will contain P if the EDI transaction is a production transaction or T if it is a test transaction.

EDIVALID:

Upon successful completion, this parameter indicates whether the transaction is deemed to be valid (Y) or not (N), if the transaction was validated according to the LANSA Composer settings for the applicable trading partner and document standard.

EDIMATCHTP:

Upon successful completion, this parameter will contain the internal identifier of the trading partner that matches the EDI transaction document.

EDIMATCHTPNAME:

Upon successful completion, this parameter will contain the name of the trading partner that matches the EDI transaction document.

EDIVALERRORS:

Upon successful completion and if the transaction was validated and found to have validation errors, this parameter will contain a list of the validation error messages.