wm.b2b.edi.util:getEDIFFSchemaName
WmEDI. Given an EDI standard, version, and transaction set name (or TRADACOMS file name), returns the name of the flat file schema that should be used.
Input Parameters
standard | String EDI standard name, e.g., X12 or UNEDIFACT or TRADACOMS. |
version | String EDI version (e.g., 4010, 96A, etc.) or TRADACOMS file version (e.g., v2). |
name | String Name of the EDI transaction set (e.g., 810, ORDRS, etc.) or TRADACOMS file (ACKMNT). |
message | String (required for use with TRADACOMS files) The header name of the selected TN document type File. For example, if you selected the TN document type ACKMNT, you would provide the value ACKHDR. |
Output Parameters
ffSchemaName | String Standard name of the flat file schema that should be used for this EDI transaction set or TRADACOMS file. |
Usage Notes
![*](chapterTOC_bullet.png)
For ANSI X12 and UN/EDIFACT, the
standard,
version, and
name follow this naming convention:
EDIFFSchema.standard.Vversion:Tname
where:
standard represents the EDI standard (e.g.,
X12).
version represents the EDI standard version (e.g.,
4010).
name represents the EDI transaction (e.g.,
850).
For example: EDIFFSchema.X12.V4010:T850
![*](chapterTOC_bullet.png)
For TRADACOMS, the
version,
name, and
message follow this naming convention:
EDIFFSchema.Tradacoms.Vversion.Tname:Mmessage
where:
version represents the TRADACOMS version (for example,
v2)
name represents the name of the TRADACOMS File document type (for example,
TLPRHDR)
message is derived from the MHD0201.
For example: EDIFFSchema.Tradacoms.v2.TLPRHDR:MLPRHDR