Module For EDI Install and Users Guide
Module For EDI Install and Users Guide
Installation and User’s Guide
Version 9.12
September 2017
This document applies to webMethods Module for EDI Version 9.12 and to all subsequent releases.
Specifications contained herein are subject to change and these changes will be reported in subsequent release notes or new editions.
Copyright © 2000-2017 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or
its affiliates and/or their licensors.
The name Software AG and all Software AG product names are either trademarks or registered trademarks of Software AG and/or
Software AG USA Inc. and/or its subsidiaries and/or its affiliates and/or their licensors. Other company and product names mentioned
herein may be trademarks of their respective owners.
Detailed information on trademarks and patents owned by Software AG and/or its subsidiaries is located at
hp://softwareag.com/licenses.
Use of this software is subject to adherence to Software AG's licensing conditions and terms. These terms are part of the product
documentation, located at hp://softwareag.com/licenses and/or in the root installation directory of the licensed product(s).
This software may include portions of third-party products. For third-party copyright notices, license terms, additional rights or
restrictions, please refer to "License Texts, Copyright Notices and Disclaimers of Third Party Products". For certain specific third-party
license restrictions, please refer to section E of the Legal Notices available under "License Terms and Conditions for Use of Software AG
Products / Copyright and Trademark Notices of Software AG Products". These documents are part of the product documentation, located
at hp://softwareag.com/licenses and/or in the root installation directory of the licensed product(s).
Table of Contents
webMethods Module for EDI Installation and User’s Guide Version 9.12 3
M
Table of Contents
webMethods Module for EDI Installation and User’s Guide Version 9.12 4
M
Table of Contents
webMethods Module for EDI Installation and User’s Guide Version 9.12 5
M
Table of Contents
webMethods Module for EDI Installation and User’s Guide Version 9.12 6
M
Table of Contents
webMethods Module for EDI Installation and User’s Guide Version 9.12 7
M
Table of Contents
webMethods Module for EDI Installation and User’s Guide Version 9.12 8
M
Table of Contents
webMethods Module for EDI Installation and User’s Guide Version 9.12 9
M
Table of Contents
webMethods Module for EDI Installation and User’s Guide Version 9.12 10
M
Table of Contents
webMethods Module for EDI Installation and User’s Guide Version 9.12 11
M
Table of Contents
Index.............................................................................................................................................. 409
webMethods Module for EDI Installation and User’s Guide Version 9.12 12
M
Odd Header
This guide describes how to use webMethods Module for EDI to process EDI
documents, including:
How to install and configure Module for EDI and install webMethods Trading
Networks document types
Define processing rules
Create services to process inbound and outbound EDI documents
For an overview of Module for EDI features, see webMethods Module for EDI Concepts
Guide.
Document Conventions
Convention Description
Italic Identifies variables for which you must supply values specific to
your own situation or environment. Identifies new terms the first
time they occur in the text.
{} Indicates a set of choices from which you must choose one. Type
only the information inside the curly braces. Do not type the { }
symbols.
webMethods Module for EDI Installation and User’s Guide Version 9.12 13
M
Even Header
Convention Description
... Indicates that you can type multiple options of the same type.
Type only the information. Do not type the ellipsis (...).
Online Information
Software AG Documentation Website
You can find documentation on the Software AG Documentation website at hp://
documentation.softwareag.com. The site requires Empower credentials. If you do not
have Empower credentials, you must use the TECHcommunity website.
Software AG TECHcommunity
You can find documentation and other technical information on the Software AG
TECHcommunity website at hp://techcommunity.softwareag.com. You can:
Access product documentation, if you have TECHcommunity credentials. If you do
not, you will need to register and specify "Documentation" as an area of interest.
Access articles, code samples, demos, and tutorials.
Use the online discussion forums, moderated by Software AG professionals, to
ask questions, discuss best practices, and learn how other customers are using
Software AG technology.
Link to external websites that discuss open standards and web technology.
webMethods Module for EDI Installation and User’s Guide Version 9.12 14
M
Odd Header
Installing, Upgrading, and Uninstalling webMethods Module for EDI
■ Overview ....................................................................................................................................... 16
■ Requirements ............................................................................................................................... 16
■ Installing Module for EDI ............................................................................................................. 16
■ Upgrading the Module for EDI from 9.0 to 9.12 .......................................................................... 21
■ Uninstalling Module for EDI ......................................................................................................... 22
webMethods Module for EDI Installation and User’s Guide Version 9.12 15
M
Even Header
Installing, Upgrading, and Uninstalling webMethods Module for EDI
Overview
This chapter explains how to install, upgrade, and uninstall webMethods Module for
EDI. The instructions use the Software AG Installer and the Software AG Uninstaller
wizards. For complete information about the wizards or other installation methods, or
to install other webMethods products, see the Installing webMethods Products for your
release.
Requirements
For a list of the operating systems and webMethods products that Module 9.12 for
EDI supports, see webMethods eStandards Modules System Requirements, available in the
webMethods area of the Software AG Documentation website.
Note: Module for EDI stores data in Trading Networks tables. If you are installing
the module in a clustered environment, you must install Module for EDI
and Trading Networks on each Integration Server in the cluster, and
each installation must be identical. For information on running Trading
Networks in a clustered environment, see the webMethods Trading Networks
Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 16
M
Odd Header
Installing, Upgrading, and Uninstalling webMethods Module for EDI
6. In the product selection list, navigate to eStandards > webMethods Module 9.12 for EDI.
Install any other required products as indicated in webMethods eStandards Modules
System Requirements .
Software AG Installer installs the following packages in the
Integration Server_directory\instances\$instance_name \packages directory:
Note: If you select the top level check box for a schema package, then all the
versions for that package are selected automatically. If you don't want to
install all the versions for a schema package, then deselect the top level
check box, and select individual versions for a package or individual
packages instead.
Note: Starting with webMethods Module for EDI 9.12, XML schemas are
introduced for use with XML based document types. XML schemas
provide the following advantages:
View the code list details of a segment for a document type.
View the alternate name and description of a segment for an XML
schema.
Program WmEDI
Files
WmEDIforTN
TRADACOMS WmEDI_TRADACOMS 2, 3, 4, 5, 6, 8,
and 9
webMethods Module for EDI Installation and User’s Guide Version 9.12 17
M
Even Header
Installing, Upgrading, and Uninstalling webMethods Module for EDI
webMethods Module for EDI Installation and User’s Guide Version 9.12 18
M
Odd Header
Installing, Upgrading, and Uninstalling webMethods Module for EDI
webMethods Module for EDI Installation and User’s Guide Version 9.12 19
M
Even Header
Installing, Upgrading, and Uninstalling webMethods Module for EDI
Note: Module for EDI uses the Trading Networks JDBC pool associated with
Integration Server. The module database scripts are installed as part of
the Trading Networks script installation using the Database Component
Configurator. For more information about Trading Networks script
installation, see the Installing webMethods Products for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 20
M
Odd Header
Installing, Upgrading, and Uninstalling webMethods Module for EDI
Important: Module 9.12 for EDI requires the supported Trading Networks version. You
must upgrade all your webMethods products at the same time. For more
information about upgrading your webMethods products, see the Upgrading
Software AG Products for your release.
Important: If all products, applications, and business processes are not shut down,
Installer cannot replace the key files that are locked by the operating
system.
Note: If you have not copied the schemas to the installation directory, then
perform the following actions:
webMethods Module for EDI Installation and User’s Guide Version 9.12 21
M
Even Header
Installing, Upgrading, and Uninstalling webMethods Module for EDI
Create the flat file schemas that are used in Module for EDI 9.0 in
Module for EDI 9.12. For information about creating flat file schemas,
see "Flat File Schema Namespace Conventions" on page 44.
To use the migrated document types; open the document type in
My webMethods Server and click Save and Close. This registers the
document type with Integration Server and is ready for use.
webMethods Module for EDI Installation and User’s Guide Version 9.12 22
M
Odd Header
Configuring webMethods Module for EDI
webMethods Module for EDI Installation and User’s Guide Version 9.12 23
M
Even Header
Configuring webMethods Module for EDI
Overview
Before you can process EDI documents using webMethods Module for EDI (Module
for EDI), you must first configure the module. The following table summarizes the
configuration tasks and where you can find more information about those tasks.
Define the Module for EDI properties "Defining Module for EDI Properties"
on page 26
Set up the items required for parsing "Seing Up Items Required for
and validating the structure of EDI Structural Validation and Conversion"
documents and converting documents on page 32
to a different format
For more information about schemas
and formaing related services,
including how to specify format
services for fields in flat file schemas
and dictionaries, see Flat File Schema
Developer’s Guide.
Define the TN EDI document types that "Defining TN EDI Document Types"
you want to process on page 37
For more information about TN
document types, profiles, and TPAs
and how Trading Networks uses them,
see the webMethods Trading Networks
Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 24
M
Odd Header
Configuring webMethods Module for EDI
Functional permission Actions a role can perform when assigned this functional
permission
Submit Documents to Use the Administration > Integration > B2B Seings >
TN Submit Documents page to submit EDI documents to
Trading Networks.
Manage EDI Control Use the Administration > Integration > B2B Seings >
Number Sequences Control Numbers page to manage (add, edit, delete)
control numbers.
To set data permissions, you must first define data sets. After defining a data set, you
then specify the roles that can act on the data in the data set. For each role, define
permissions that indicate the actions the role can perform on the data.
For more information about data permissions, general functional privileges, managing
permissions, and data and actions governed by data permissions, see the webMethods
Trading Networks Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 25
M
Even Header
Configuring webMethods Module for EDI
The following table describes the module-specific Trading Networks data permissions
that you can assign to a role.
Data permission Actions a role can perform when assigned this data permission
Edit EDI Edit the control number sequence associated with partner
Control Number profiles in the data set
Sequences
Note: You need Manage EDI Control Number Sequences
functional permission to use the Control Number tab in
the Administration > Integration > B2B > Partner Profiles
> Partner Profile page.
Edit EDI FA Edit EDI FA Status aributes of the transactions in the data
Status Aributes set
Property Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 26
M
Odd Header
Configuring webMethods Module for EDI
Property Description
content into memory during processing.
The default is -1.
n . A positive whole number specifies
the number of bytes over which Module
for EDI treats a document as large. For
example, if the value is 1000000, the module
considers all documents greater than
1,000,000 bytes as large.
webMethods Module for EDI Installation and User’s Guide Version 9.12 27
M
Even Header
Configuring webMethods Module for EDI
Property Description
EDIAllowCustomControlNumberSequences
Specifies the control number sequence. Valid
values are:
false—Module for EDI looks up the next
control number using the corporation
names of the sender and receiver. This is
the default.
true—Module for EDI looks up the next
control number using the sender and
receiver IDs and qualifiers. If no record
is found using this criteria, the module
aempts to identify the sequence based on
corporation names. If no sequence is found,
the module creates a new sequence based
on partner corporation names.
strictCompatibility—Specifies whether
to use either the external IDs of partners
or their corporation names to define the
control number sequence. Use this value
for backward compatibility with Module
for EDI 6.5.2 or if you want to adopt the
sequence that a particular operation uses.
(For example, with the batching feature,
Module for EDI uses corporation names
when generating outbound batches but
webMethods Module for EDI Installation and User’s Guide Version 9.12 28
M
Odd Header
Configuring webMethods Module for EDI
Property Description
uses sender/receiver IDs and qualifiers in
services that add envelopes and groups.)
webMethods Module for EDI Installation and User’s Guide Version 9.12 29
M
Even Header
Configuring webMethods Module for EDI
Property Description
ignoreFAStatusUpdateForOutboundBatch
Controls whether Module for EDI checks
and updates the EDI FA Status of incoming
EDI documents during batching.
true—The module does not check and
update the EDI FA Status.
false—The module checks and updates
the EDI Status. This is the default.
webMethods Module for EDI Installation and User’s Guide Version 9.12 30
M
Odd Header
Configuring webMethods Module for EDI
Property Description
wm.b2b.edi:convertToString service. Software AG
recommends seing this property to false.
true—Module for EDI performs less
stringent validation against the flat file
schema during implementation of the
wm.b2b.edi:convertToString service. Specifically,
Module for EDI prevents sorting the
edidata from the wm.b2b.edi:convertToString
service when the service’s input data does
not follow the same order as the flat file
schema and the sortInput parameter is set
to false.
false—Module for EDI performs
stringent validation against the flat file
schema during implementation of the
wm.b2b.edi:convertToString service when the
sortInput parameter is set to false. This is
the default.
Note: Any properties you set in the properties.cnf file, will appear in My
webMethods. You can edit these properties in the Module for EDI
Configuration Properties section of the Administration > Integration > B2B
Settings > Configure Properties page.
webMethods Module for EDI Installation and User’s Guide Version 9.12 31
M
Even Header
Configuring webMethods Module for EDI
4. Click Save.
5. Restart Integration Server.
Specify how to associate the format "Associating the EDI Format Services
service to fields defined in a flat file with EDI Data Types" on page 35
schema for an EDI document
Create flat file schemas for EDI "Creating Flat File Schemas for
documents and your internal-format Internal-Format Documents" on page
documents 36
webMethods Module for EDI Installation and User’s Guide Version 9.12 32
M
Odd Header
Configuring webMethods Module for EDI
Important: If a field does not have a value (that is, a value is not returned in the IS
document (IData object) for the convertToValues service or is not present in the
input data for the convertToString service), the assigned format service does not
execute.
For more information about the convertToValues and convertToString services, see webMethods
Module for EDI Built-In Services Reference. For more information about how to use these
services when processing EDI documents, see "Logic to Include in the Service to Process
EDI Documents" on page 193.
The format services use the seings in the following configuration file to determine how
to perform field conversions:
Integration Server_directory\instances\$instance_name \packages\WmEDI\config
\format.xml
The format.xml configuration file specifies the format required by the EDI standard
(external format) and your internal application (internal format). By default, the external
formats in this configuration file match the EDI ANSI standard format. You must update
the configuration so that it reflects the EDI standard that you are using and the formats
of your internal application in order for the system to accurately convert field values
from one format to another.
To apply conversion configurations, perform the following procedure to update
the configuration in memory so changes are applied immediately, as well as in the
format.xml file.
For example:
<FormatService
name="formatDate6"
isEnabled="true"
internalFormatString="MM/dd/yy"
externalFormatString="yyMMdd"
applyFormat="true"/>
webMethods Module for EDI Installation and User’s Guide Version 9.12 33
M
Even Header
Configuring webMethods Module for EDI
Setting Description
name The name of the format service that the entry governs.
Do not change name.
The entry formatImpliedDecimal affects all implied
decimal services (formatN0-formatN9), which format fields
with EDI data types N0 - N9. For a complete description
of these and other EDI format services, see webMethods
Module for EDI Built-In Services Reference.
webMethods Module for EDI Installation and User’s Guide Version 9.12 34
M
Odd Header
Configuring webMethods Module for EDI
Setting Description
java.text.SimpleDateFormat. For more information
about these classes, see Oracle’s documentation.
To determine the format service to associate with a specific data type, the
wm.b2b.edi:SEFParse service uses information that you configure in the following
configuration file:
Integration Server_directory\instances\$instance_name \packages\WmEDI\config
\format.xml
In the format.xml configuration file, you configure the format service you want the
wm.b2b.edi:SEFParse service to use for each EDI data type.
To associate EDI format services with EDI data types, perform the following procedure
to update the configuration in memory (so the changes take effect immediately) and in
the format.xml file.
webMethods Module for EDI Installation and User’s Guide Version 9.12 35
M
Even Header
Configuring webMethods Module for EDI
For more information about the format services provided with Module for EDI, see
the description of the wm.b2b.edi.util.formatServices folder in webMethods Module for EDI
Built-In Services Reference.
Examples:
The following entry associates the data type N1 with the formatN1 format service.
This entry matches all elements with data type N1, regardless of their length.
<DatatypeFormat
datatype="N1"
service="wm.b2b.edi.util.formatServices:formatN1"/>
The following entry associates the data type TM with a minimum length of 4 and
a maximum length of 8 with the formatTime4_8 format service:
<DatatypeFormat
datatype="TM,4,8"
service="wm.b2b.edi.util.formatServices:formatTime4_8"/>
4. Click Save.
webMethods Module for EDI Installation and User’s Guide Version 9.12 36
M
Odd Header
Configuring webMethods Module for EDI
Note: For backward compatibility, you can also use an IS document type to
define the structure of internal-format documents. However, Software AG
recommends using flat file schemas.
Note: You might need to customize flat file schemas for your specific validation
needs. For example, you might want to validate fewer constraints, or modify
the valid values.
For information about how to work with flat files schemas, see Flat File Schema
Developer’s Guide.
These are the following three high-level steps for defining TN EDI document types:
Note: You must have administrator privileges and data permission to define
and manage document types in Trading Networks. For information about
defining data permissions and role-based access, see the webMethods Trading
Networks Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 37
M
Even Header
Configuring webMethods Module for EDI
Field Description
Module for EDI generates the name of the TN EDI document type based on the
standard, the version, and the transaction type you selected. This name is displayed
in the Name field on the EDI Document Type Details page. You cannot edit the name
of the TN EDI document type.
webMethods Module for EDI Installation and User’s Guide Version 9.12 38
M
Odd Header
Configuring webMethods Module for EDI
In addition to generating the name of the TN EDI document type, the module
installs a flat file schema. For information about flat file schema namespace
conventions, see "Flat File Schema Namespace Conventions" on page 44.
5. In the EDI Document Type Details page, specify the following:
Field Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 39
M
Even Header
Configuring webMethods Module for EDI
To define the attributes that you want Trading Networks to extract from the document
1. Complete the steps in "Step 1: Define Document Type Information" on page 38.
2. On the EDI Document Type Details page, click the Extract tab. The document tree
view displays the contents of the installed TN EDI document type.
3. For each aribute that you want Trading Networks to extract from documents
identified by this TN EDI document type:
a. Expand the document tree view, and select a node that represents the aribute
that you want Trading Networks to extract.
b. Do one of the following to display the Add Extracted Aribute dialog box:
Click next to the Query field, and then select Add Attribute.
In the EDI document tree view panel, click in the Action column, and then
select Add Attribute.
c. In the Add Extracted Aribute dialog box, specify the following:
Field Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 40
M
Odd Header
Configuring webMethods Module for EDI
Field Description
For VDA documents, you must also select the type of the
external IDs (for example, DUNS) from the Built-in list for
both SenderID and ReceiverID aributes so that Trading
Networks can match the external IDs in SenderID and
ReceiverID with the external IDs in the profiles. This is how
Trading Networks verifies the identities of the sender and
receiver.
d. Click OK.
For information about using an XQL query of a node in a document tree to extract a
document aribute, see "Extracting a Document Aribute Using an XQL Query" on page
42.
Is Multiple yes no no
Envelope
webMethods Module for EDI Installation and User’s Guide Version 9.12 41
M
Even Header
Configuring webMethods Module for EDI
To extract a document attribute by specifying an XQL query of a node in the document tree
1. In My webMethods: Administration > Integration > B2B > Document Types Administration >
Document Types.
2. Select the document type for which you want to specify aributes to extract and then
click the Action tab.
3. On the Extract tab, in the document tree view, select a node that represents the
aribute that you want Trading Networks to extract.
4. Click either next to the Query field or in the Action column in the EDI document
tree view panel.
5. Select Add Attribute.
6. In the Add Extracted Aribute dialog box, specify the values, as described in "Step 2:
Define Aributes to be Extracted from Documents" on page 39.
7. Click OK.
Example 1. To extract the first field, 01, in the BEG record of the sample EDI document,
specify the following XQL query: /ST/BEG/BEG01/code
Example 2. To extract the first field, AB, in the first REF record of the sample EDI
document, specify the following XQL query: /ST/REF[0]/REF01/code
Example 3. To extract the first field, BC, in the second REF record of the sample EDI
document, specify the following XQL query: /ST/REF[1]/REF01/code
webMethods Module for EDI Installation and User’s Guide Version 9.12 42
M
Odd Header
Configuring webMethods Module for EDI
to consider when matching a document to a TN EDI document type. Use the following
procedure to define options.
Field Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 43
M
Even Header
Configuring webMethods Module for EDI
To save the changes and close the TN EDI document type, click Save and Close.
To create a TN EDI document type based on a transaction saved in the Trading Networks
1. In My webMethods: Monitoring > Integration > B2B > Transactions.
2. Click on the row containing the 'Unknown' document that you want to use for
creating the document type.
3. Select Create Document Type.
4. In the Create Document Type dialog box, click EDI to select the document type
category.
5. In the EDI Document Type dialog box, select the appropriate values for Standard,
Version, and Transaction.
6. Click Create.
7. In the EDI Document Type Details page, specify the details.
8. Do one of the following:
Click Save to save the changes you have made and continue defining the TN EDI
document type.
Click Save and Close to save the changes and close the TN EDI document type.
Click Cancel if you do not want to save the TN EDI document type.
webMethods Module for EDI Installation and User’s Guide Version 9.12 44
M
Odd Header
Configuring webMethods Module for EDI
where Standard is the name of the EDI standard, version is the version number of the
EDI standard, and TransactionSet is the EDI transaction set. For example:
For a TN EDI document type for version 4010 of an ANSI X12 850, Trading
Networks creates the following flat file schema in the WmEDIforTN package:
EDIFFSchema.X12.V4010:T850
For a TN EDI document type for version 99A of the UN/EDIFACT standard with a
transaction set of ORDERS, Trading Networks creates the following flat file schema
in the WmEDIforTN package: EDIFFSchema.UNEDIFACT.V99A:TORDERS
EDIFFSchema.Tradacoms.Vversion.Tname:MdetailMessage
EDIFFSchema.Tradacoms.Vversion.Tname:MVATMessage
EDIFFSchema.Tradacoms.Vversion.Tname:MtrailerMessage
where:
version represents the version of the TRADACOMS File document type (for example,
v2).
name represents the name of the TRADACOMS File document type (for example,
TLPRHDR).
headerMessage , detailMessage , VATMessage , and trailerMessage are derived from the
MHD0201.
For example: EDIFFSchema.Tradacoms.v2.TLPRHDR:MLPRHDR
For information about the aributes stored for TRADACOMS document types, see
"Aributes Stored for TRADACOMS Document Types" on page 41.
webMethods Module for EDI Installation and User’s Guide Version 9.12 45
M
Even Header
Configuring webMethods Module for EDI
Note: The code list descriptions are available only for the document types
based on the XML schemas for the EDI schema packages available in the
installer. By default, Module for EDI installs the document types from the
XML schemas which are available in the EDI schema packages.
The code list descriptions in My webMethods are displayed only for the
default values of the installed EDI standards. If these values are modified
and any additional values are added to these standards in Designer, then
the changes do not reflect in My webMethods.
1. In My webMethods: Administration > Integration > B2B > Document Types Administration >
Document Types.
2. Click on an EDI Document Type.
3. Navigate to the EDI Document Type Details > Extract tab and expand the document type
tree at the UUID level.
4. Click on the corresponding Lookup link for a document type.
The CodeList Lookup dialog box lists all the code IDs, names, and descriptions for
the document type. You can also search for a specific code ID using the Search Code
ID > ID field.
webMethods Module for EDI Installation and User’s Guide Version 9.12 46
M
Odd Header
Configuring webMethods Module for EDI
You cannot update the name, standard, and version of a TN EDI document type.
When you update a TN EDI document type, the changes are logged in the activity
log if you have set the tn.docType.EnableLogDocumentType property to true. For
more information about seing Trading Networks configuration properties, see the
webMethods Trading Networks Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 47
M
Even Header
Configuring webMethods Module for EDI
For more information about these options, see "Defining TN EDI Document Types"
on page 37.
3. Do one of the following:
To save the changes you have made and continue defining the TN EDI document
type, click Save.
To save the changes and close the TN EDI document type, click Save and Close.
webMethods Module for EDI Installation and User’s Guide Version 9.12 48
M
Odd Header
Configuring webMethods Module for EDI
webMethods Module for EDI Installation and User’s Guide Version 9.12 49
M
Even Header
Configuring webMethods Module for EDI
from TN_parms and saves it to the database to use later. For more information about the
wm.tn:receive service, see the webMethods Trading Networks Built-In Services Reference for
your release.
You can overwrite the values of system and custom aributes for Transaction, Group,
and Envelope document types depending on the type of transaction. Trading Networks
displays the new value of the aribute on the Attributes tab in My webMethods.
For more information about document aributes, see " Trading Networks Aributes and
EDI Documents" on page 211 and the webMethods Trading Networks Administrator’s
Guide for your release.
EDI Transaction
The following tables show the system and custom aributes that you can overwrite for
an EDI transaction, where:
Yes means that the value of the aribute you specify overwrites the default value.
No means that you cannot overwrite the aribute.
NA means that the aribute is not present in the document.
Table 1. System Aributes
webMethods Module for EDI Installation and User’s Guide Version 9.12 50
M
Odd Header
Configuring webMethods Module for EDI
Envelope CntrlNum No No No
Status
Group CntrlNum No No NA
Status
TA1 Transaction
The following tables show the system and custom aributes that you can overwrite for a
TA1 transaction, where:
Yes means that the value of the aribute you specify overwrites the default value.
No means that you cannot overwrite the aribute.
NA means that the aribute is not present in the document.
Table 3. System Aributes
ConversationID No Yes
DocumentID No Yes
GroupID No Yes
webMethods Module for EDI Installation and User’s Guide Version 9.12 51
M
Even Header
Configuring webMethods Module for EDI
TA1 Status NA No
TA1 Code NA No
EDI FA Status NA NA
FA Transaction
The following tables show the system and custom aributes that you can overwrite for
an FA transaction, where:
Yes means that the value of the aribute you specify overwrites the default value.
No means that you cannot overwrite the aribute.
NA means that the aribute is not present in the document.
Table 5. System Aributes
webMethods Module for EDI Installation and User’s Guide Version 9.12 52
M
Odd Header
Configuring webMethods Module for EDI
LateFA NA NA No
webMethods Module for EDI Installation and User’s Guide Version 9.12 53
M
Even Header
Configuring webMethods Module for EDI
Note: The service does not update the envelope segments structure or the
validation for individual fields. However, the service does update the
following fields in the IS document type wm.b2b.editn.rec:EDIHEADERS so that
Trading Networks recognizes the new version during validation:
Note: If the new version of the EDI standard introduces changes to the structure
of the 997 transaction set, these changes will not be reflected in the
functional acknowledgments created by the wm.b2b.edi:generateFA service.
webMethods Module for EDI Installation and User’s Guide Version 9.12 54
M
Odd Header
Configuring webMethods Module for EDI
Important: After you install a new version of an EDI standard and the corresponding
TN EDI document type, do not re-install that version of the EDI standard.
If you re-install it, the internal ID of the document type will change,
and any references to that ID will be incorrect. In addition, any Trading
Networks processing rules that refer to the document type will also be
incorrect.
webMethods Module for EDI Installation and User’s Guide Version 9.12 55
M
Even Header
webMethods Module for EDI Installation and User’s Guide Version 9.12 56
M
Odd Header
Defining Trading Partner Information
webMethods Module for EDI Installation and User’s Guide Version 9.12 57
M
Even Header
Defining Trading Partner Information
Overview
To process documents when you are using webMethods Trading Networks with
webMethods Module for EDI, you must define both trading partner profiles and
trading partner agreements (EDITPAs) for the partners with whom you will trade EDI
documents. How you define information for your partners depends on whether you
want Module for EDI to use standard or non-standard processing. For more information,
see webMethods Module for EDI Concepts Guide.
Important: The chapters in this guide describe how to use standard processing. When
you want to use non-standard processing, certain tasks must be performed
differently. Such tasks are indicated by the graphic, as well as
a reference to the corresponding section in "Non-Standard Processing" on
page 371. When you are using standard processing, you can ignore these
references.
For... Define...
Tailoring how Module for A default EDITPA, which defines the seings that
EDI processes documents you want to use for most partner pairs.
A partner-specific EDITPA for each interchange
sender/receiver pair for which you want to
override the default EDITPA seings.
webMethods Module for EDI Installation and User’s Guide Version 9.12 58
M
Odd Header
Defining Trading Partner Information
For... Define...
For more information about how Module for EDI works with Trading Networks, see
webMethods Module for EDI Concepts Guide.
Note: When you use non-standard processing, you must create profiles
only for partners at the group level. For more information, see "Defining
Trading Networks Profiles When Using Non-Standard Processing" on page
373. For more information about the difference between standard and non-
standard processing, see webMethods Module for EDI Concepts Guide.
When you define trading partner profiles, you need to specify the external IDs your
partners use in their documents. The external IDs correspond to the standard EDI ID
qualifiers. Trading Networks does not provide external IDs for all EDI ID qualifiers;
however, Module for EDI provides a way for you to add them to Trading Networks.
Before creating the profiles, you might want to add additional external ID types to
Trading Networks that correspond to the EDI ID qualifiers. For more information, see
"Adding External ID Types for EDI ID Qualifiers" on page 60.
For instructions about creating trading partner profiles, see the webMethods Trading
Networks Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 59
M
Even Header
Defining Trading Partner Information
The EDI ID qualifier “01” corresponds to a D-U-N-S number (which is the Trading
Networks external ID type, DUNS). The EDI ID qualifier “ZZ” corresponds to the
Trading Networks external ID type Mutually-Defined. Trading Networks automatically
provides the DUNS and Mutually-Defined external ID types. However, Trading Networks
does not provide external ID types for all EDI ID qualifiers. To Trading Networks, you
can add external ID types that correspond to standard EDI ID qualifiers. For all EDI ID
qualifiers and their external ID type equivalents, see the EDI Standards documentation
for your EDI standard and version.
webMethods Module for EDI Installation and User’s Guide Version 9.12 60
M
Odd Header
Defining Trading Partner Information
To add a new external ID, click Add ID, select the ID type from the ID Type list,
type a value in the Value box, and click OK.
Step Description
1 In any user-defined package, create a service that overrides the value of the
ID qualifier code and name it custom.EDIIDMapping:addEDIIDMapping.
5 In the map step, hard code the value of the output idType with any value,
such as “User Defined 1.”
For more information about creating custom flow services, see the webMethods Service
Development Help for your release. For a sample service, see the Technical community
area of the Empower Product Support website at hp://communities.softwareag.com/.
webMethods Module for EDI Installation and User’s Guide Version 9.12 61
M
Even Header
Defining Trading Partner Information
A partner-specific EDIDTPA is unique for a specific sender and receiver pair and
contains variables that the module uses only when processing documents that match
the specified sender/receiver pair.
A sender-specific EDITPA specifies a sender but leaves the receiver defined as
“unknown.” The value “unknown” equates to “any,” thus matching all document
types to the EDITPA.
A receiver-specific EDITPA identifies the receiver but leaves the sender defined as
“unknown.”
A default EDITPA defines both the sender and receiver as “unknown.” A default
EDITPA contains variables used by all trading partners when partner-specific
information is not available. The seings in the default EDITPA should meet the
requirements of the majority of your trading partner relationships. You can modify
the default EDITPA. For more information, see "Modifying the Default EDITPA" on
page 62.
During document processing, Module for EDI identifies the EDITPA to use for the
sender/receiver pair of a document as follows:
1. When a partner-specific EDITPA exists, the module uses the values specified in the
partner-specific EDITPA.
2. When a partner-specific EDITPA does not exist and a sender specific EDITPA does
exist, Module for EDI uses the values specified in the sender-specific EDITPA.
3. When neither a partner-specific EDITPA nor a sender-specific EDITPA exists, and
a receiver-specific EDITPA does exist, the module uses the values specified in the
receiver-specific EDITPA.
4. When a partner-specific EDITPA, a sender-specific EDITPA, and a receiver-specific
EDITPA do not exist, the module uses the value from the default EDITPA.
Note: Do not disable the default EDITPA. Module for EDI uses the seings in the
default EDITPA when values are missing in the partner-, sender-, or receiver-
specific EDITPAs.
webMethods Module for EDI Installation and User’s Guide Version 9.12 62
M
Odd Header
Defining Trading Partner Information
When you modify the default EDITPA, in My webMethods, specify the following
seings on the Administration > Integration > B2B > Trading Partner Agreements page:
Sender Unknown
Receiver Unknown
Agreement ID EDITPA
Field Description
Agreement ID EDITPA
webMethods Module for EDI Installation and User’s Guide Version 9.12 63
M
Even Header
Defining Trading Partner Information
Field Description
Control Number The value that the application using the TPA expects (only
relevant if the application uses the Control Number field).
The value for this field must be an integer. The default is
zero (0).
Data Status Whether to modify the values of the TPA data of the
IS document type. This field only applies when the
agreement status is Agreed.
Initialization A service that you created to define the default values for
Service the wm.b2b.editn.TPA:EDITPA IS document type. (Or, leave
this field blank.)
Software AG recommends that you do not use the
initialization service ( wm.b2b.editn.TPA:initService)
that is provided with Module for EDI. The
wm.b2b.editn.TPA:initService service is used to populate the
values of the default EDITPA.
Export Service The service to convert the data in the Trading Networks
TPA to an industry-format trading partner agreement.
For more information about the export service, see the
webMethods Trading Networks Administrator’s Guide for
your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 64
M
Odd Header
Defining Trading Partner Information
Field Description
"wm.b2b.editn.TPA:EDITPA IS Document Type" on page
65.
Note: You can disable partner-specific EDITPAs. When you disable a partner-
specific EDITPA, Module for EDI uses the values in the default EDITPA.
Tip: It is helpful to understand how Module for EDI processes EDI documents
and uses the variables in the EDITPA. For more information, see webMethods
Module for EDI Concepts Guide.
For details about specific EDITPA variables, see the following locations:
webMethods Module for EDI Installation and User’s Guide Version 9.12 65
M
Even Header
Defining Trading Partner Information
webMethods Module for EDI Installation and User’s Guide Version 9.12 66
M
Odd Header
Defining Trading Partner Information
GSRouting Variables
Module for EDI creates Interchange, Group, and Transaction documents based on the
splitOption variable in the EDITPA. The GSRouting variables indicate the value the
module uses for the sender and receiver in these documents.
The values that you select for the GSRouting variables determine:
How you define criteria for Trading Networks processing rules when you create
them for the Interchange, Group, and Transaction documents. You can use the
sender and receiver as criteria in the processing rules.
The external ID types and values that you define in the partner profiles. For Trading
Networks to match the sender and/or receiver criteria in a processing rule, you must
define a partner profile with an external ID type and value that match the value that
the module will put in the Interchange, Group, and Transaction documents.
For more information about creating processing rules and defining external IDs in
trading partner profiles, see the webMethods Trading Networks Administrator’s Guide for
your release.
GSRouting/routingMode EDITPA Variable
Default: OFF
The routingMode variable indicates how Module for EDI obtains the sender and receiver
for each type of document. The following table provides the possible values for this
variable. The examples use the following headers:
ISA*00**00**01*123456789*ZZ*987654321*020201*1535*U*00300*000004323*0*P
GS*PO*901234572000*908887732000*020201*1535*4369*X*003020
Value Description
GSOnly Module for EDI determines the sender and receiver as follows:
For Interchange documents, the module uses the interchange
header.
For example, the sender uses EDI ID qualifier “01” with value
“123456789” and the receiver uses the EDI ID qualifier “ZZ” with
the value “987654321.”
For Group and Transaction documents, the module uses the
group header.
For example, the sender uses the value “901234572000” and the
receiver uses the value “90888773200.” For the EDI ID qualifiers,
see the GSRouting/senderQualifier and GSRouting/receiverQualifier
variables.
GS&ISA Module for EDI determines the sender and receiver as follows:
webMethods Module for EDI Installation and User’s Guide Version 9.12 67
M
Even Header
Defining Trading Partner Information
Value Description
OFF Module for EDI determines the sender and receiver as follows:
For Interchange, Group, and Transaction documents, the module
uses the interchange header.
For example, the sender uses the EDI ID qualifier “01” with the
value “123456789” and the receiver uses the EDI ID qualifier “ZZ”
with the value “987654321.”
Value Description
* Module for EDI uses the EDI ID qualifier for the sender from the
interchange header (for example, ISA05 field).
Other EDI ID You can specify any EDI ID qualifier that the EDI standard
qualifiers supports. For all EDI ID qualifiers, see the documentation for your
EDI standard and version.
webMethods Module for EDI Installation and User’s Guide Version 9.12 68
M
Odd Header
Defining Trading Partner Information
Value Description
Value Description
* Module for EDI uses the EDI ID qualifier for the receiver from the
interchange header (for example, ISA07 field).
Other EDI ID You can specify any EDI ID qualifier that the EDI standard
qualifiers supports. For all EDI ID qualifiers, see the EDI Standards
documentation for your EDI standard and version.
PersistMultipleDocEnvelope Variable
persistMultipleDocEnvelope EDITPA Variable
Default: true
The persistMultipleDocEnvelope variable indicates whether Module for EDI saves the
original document in the Trading Networks database. The original EDI document
usually contains multiple interchange segments. Module for EDI only uses the
persistMultipleDocEnvelope variable from the default EDITPA.
Note: Module for EDI splits each interchange segment within the original EDI
document into Interchange, Group, and Transaction documents based
on the seing of the splitOption EDITPA variable. Control whether the
Interchange, Group, and Transaction documents are saved in the Trading
Networks database in the processing rule.
webMethods Module for EDI Installation and User’s Guide Version 9.12 69
M
Even Header
Defining Trading Partner Information
Value Description
true Module for EDI saves the original EDI document in the Trading
Networks database. The document is saved with both the sender
and receiver set to “unknown.”
false Module for EDI does not save the original EDI document in the
Trading Networks database.When you specify false, there is no
way to retrieve the original EDI document later.
processingMode Variable
processingMode EDITPA Variable
Default: Testing
The processingMode variable indicates whether the partners using the EDITPA are
in testing, production, or custom mode. When processing Interchange, Group, and
Transaction documents, Module for EDI includes the custom aribute EDI Processing Mode
in the BizDocEnvelope and sets the value of this aribute based on the processingMode
EDITPA variable.
In your processing rules for Interchange, Group, and Transaction documents, you can
use the EDI Processing Mode custom aribute to customize processing according to the
partner's processing mode. For example, you might set up two processing rules: one
for when partners are in testing mode and another for when partners are in production
mode.
For more information about custom aributes and using them when creating processing
rules, see the webMethods Trading Networks Administrator’s Guide for your release.
Value Description
Production Use when you are confident that your logic for
exchanging documents is successful.
Interchange Define Module for EDI sets the value of EDI Processing
Mode based on the processing mode defined in the
interchange header.
webMethods Module for EDI Installation and User’s Guide Version 9.12 70
M
Odd Header
Defining Trading Partner Information
Value Description
splitOption Variable
splitOption EDITPA Variable
Default: Transaction
The splitOption variable defines how Module for EDI splits an interchange segment
within an EDI document. The module uses splitOption to determine which of the
following document types to create from the interchange segment:
Interchange documents—Contain a single interchange envelope, group
segments, and transaction sets
Group documents—Contain a single group segment and transaction sets
Transaction documents—Contain a single transaction set
To perform processing on the transactions in an inbound document, set splitOption to
Transaction or Group. To use Trading Networks to route the inbound EDI document
without processing individual transactions, set the splitOption to Interchange.
The following table lists the possible values for the splitOption variable and the types of
documents that Module for EDI creates for each value.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 71
M
Even Header
Defining Trading Partner Information
Value Description
document at the Group level. For more information, see
"FAReconciliation Variable" on page 72.
Group Module for EDI creates the Interchange document and a Group
document for each group segment in the interchange segment.
FAReconciliation Variable
FAReconciliation EDITPA Variable
Default: false
The FAReconciliation variable indicates whether to enable FA reconciliation so Module
for EDI performs both of the following:
Reconciles inbound FA acknowledgments that it receives with the outbound EDI
documents that it has sent
Reconciles outbound FA acknowledgments that it sends with the inbound EDI
documents that it has received
To reconcile FAs, Module for EDI makes a record of each Group/Interchange EDI
document that it sends and receives through Trading Networks. For ANSI EDI
documents, the module records each Group document it sends or receives. For
UN/EDIFACT EDI documents, the module records each Group document if the
EDI document contains Group-level documents; if it does not, the module records
Interchange-level document. Module for EDI records the information about these
documents to the EDITRACKING table, which is a Module for EDI-specific table in the
Trading Networks database. For more information about the EDITRACKING table, see
"Routing the Outbound EDI Document to Trading Networks " on page 304.
Note: When you form an outbound EDI document and send it directly to the
Trading Networks processing rules rather than allow Trading Networks
to recognize the document with its TN document types, you will need
to invoke the wm.b2b.editn:trackEDIdocs service to record the outbound
document in the EDITRACKING table.
webMethods Module for EDI Installation and User’s Guide Version 9.12 72
M
Odd Header
Defining Trading Partner Information
When FA reconciliation is enabled, Module for EDI updates the status for each Group/
Interchange document in the EDITRACKING table when it sends or receives the
Group/Interchange document's corresponding FA. For more information about FA
reconciliation, see "Reconciling Functional Acknowledgments" on page 341.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 73
M
Even Header
Defining Trading Partner Information
UNAmode Variable
UNAmode EDITPA Variable
Default: auto
The UNAmode variable indicates whether you want to create a UNA segment to precede
the interchange in an outbound UN/EDIFACT EDI document.
When you use the Module for EDI batching feature to create an outbound EDI
document, the batchProcess service honors this seing. For more information, see
"Batching EDI Documents" on page 311.
Additionally, services you create to form outbound UN/EDIFACT EDI documents
can retrieve this seing from the EDITPA using the wm.tn.tpa:getTPA service. For more
information about this service, see the webMethods Trading Networks Built-In Services
Reference for your release.
Value Description
yes The module creates the UNA segment prior to the interchange in
the outbound EDI UN/EDIFACT document.
auto The module creates the UNA segment prior to the interchange in
the outbound EDI UN/EDIFACT document.
publishBatchFailEvent Variable
publishBatchFailEvent EDITPA Variable
Default: false
The publishBatchFailEvent variable indicates whether you want Module for EDI to
publish an IS document when it is unable to include an EDI document that is queued for
batching into the final batch EDI document. The format of the IS document is defined by
wm.b2b.editn.rec:batchFailRecord IS document type. For more information, see webMethods
Module for EDI Built-In Services Reference. For more information about how this EDITPA
variable is used during batching and how to handle the failure, see "Updating the Task
Status and Publishing Documents for Failed Tasks" on page 320.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 74
M
Odd Header
Defining Trading Partner Information
Value Description
delimiters Variables
delimiters/record EDITPA Variable
Default: (no default)
The delimiters/record variable indicates the segment terminator to use in an outbound
EDI document, for example, +. Services you create to form outbound EDI documents
can retrieve this seing from the EDITPA using the wm.tn.tpa:getTPA service. For more
information about this service, see the webMethods Trading Networks Built-In Services
Reference for your release.
When you use the Module for EDI batching feature to create an outbound EDI
document, if you do not specify the delimiters input parameter to the batchProcess service,
the batchProcess service retrieves this seing from the EDITPA. For more information, see
"Delimiters Used for the Batch EDI Document" on page 319.
delimiters/field EDITPA Variable
Default: (no default)
The delimiters/field variable indicates the field separator to use for each EDI segment in
an outbound EDI document, for example, !. Services you create to form outbound EDI
documents can retrieve this seing from the EDITPA using the wm.tn.tpa:getTPA service.
For more information about this service, see the webMethods Trading Networks Built-In
Services Reference for your release.
When you use the Module for EDI batching feature to create an outbound EDI
document, if you do not specify the delimiters input parameter to the batchProcess service,
the batchProcess service retrieves this seing from the EDITPA. For more information, see
"Delimiters Used for the Batch EDI Document" on page 319.
delimiters/subfield EDITPA Variable
Default: (no default)
The delimiters/subfield variable indicates the separator to use for composite elements in
an outbound EDI document, for example, *. Services you create to form outbound EDI
documents can retrieve this seing from the EDITPA using the wm.tn.tpa:getTPA service.
For more information about this service, see the webMethods Trading Networks Built-In
Services Reference for your release.
When you use the Module for EDI batching feature to create an outbound EDI
document, if you do not specify the delimiters input parameter to the batchProcess service,
the batchProcess service retrieves this seing from the EDITPA. For more information, see
"Delimiters Used for the Batch EDI Document" on page 319.
delimiters/release EDITPA Variable
Default: (no default)
webMethods Module for EDI Installation and User’s Guide Version 9.12 75
M
Even Header
Defining Trading Partner Information
The delimiters/release variable indicates the release character to use for an outbound EDI
document (for example, “\\xd3). Services you create to form outbound EDI documents
can retrieve this seing from the EDITPA using the wm.tn.tpa:getTPA service. For more
information about this service, see the webMethods Trading Networks Built-In Services
Reference for your release.
When you use the Module for EDI batching feature to create an outbound EDI
document, if you do not specify the delimiters input parameter to the batchProcess service,
the batchProcess service retrieves this seing from the EDITPA. For more information, see
"Delimiters Used for the Batch EDI Document" on page 319.
envelopeIdentifier Variables
The envelopeIdentifier variables consist of ID and qualifier variables for senders and
receivers.
envelopeIdentifier/sender/ID EDITPA Variable
Default: (no default)
The envelopeIdentifier/sender/ID variable indicates the sender ID to use for an outbound
EDI document. Services you create to form outbound EDI documents can retrieve this
seing from the EDITPA using the wm.tn.tpa:getTPA service. For more information about
this service, see the webMethods Trading Networks Built-In Services Reference for your
release.
When using the Module for EDI batching feature:
When the batchProcess service oneBatchQueue input parameter is NONE, the
batchProcess service uses its input parameters to locate the EDITPA, and then uses
the envelopeIdentifier variables to set the sender/receiver in the interchange and
group headers of the outbound batch EDI document. For more information, see
the webMethods Trading Networks Built-In Services Reference for your release
When you are using batching with oneBatchQueue set to SINGLEOUTPUT or
MULTIPLEOUTPUTS, do not specify the envelopeIdentifier/sender/ID variable.
envelopeIdentifier/sender/qualifier EDITPA Variable
Default: (no default)
The envelopeIdentifier/sender/qualifier variable indicates the EDI ID qualifier associated
with the value you specify for envelopeIdentifier/sender/ID . For example, if you specified a
D-U-N-S number for the envelopeIdentifier/sender/ID , for envelopeIdentifier/sender/qualifier
specify 01, which is the EDI ID qualifier for a D-U-N-S number. Services you create to
form outbound EDI documents can retrieve this seing from the EDITPA using the
wm.tn.tpa:getTPA service. For more information about this service, see the webMethods
Trading Networks Built-In Services Reference for your release.
When using the Module for EDI batching feature:
When the batchProcess service oneBatchQueue input parameter is NONE, the
batchProcess service uses its input parameters to locate the EDITPA, and then uses
the envelopeIdentifier variables to set the sender/receiver in the interchange and
webMethods Module for EDI Installation and User’s Guide Version 9.12 76
M
Odd Header
Defining Trading Partner Information
group headers of the outbound batch EDI document. For more information, see
the webMethods Trading Networks Built-In Services Reference for your release.
When you are using batching with oneBatchQueue set to SINGLEOUTPUT or
MULTIPLEOUTPUTS, do not specify the envelopeIdentifier/sender/ID variable.
envelopeIdentifier/receiver/ID EDITPA Variable
Default: (no default)
The envelopeIdentifier/receiver/ID variable indicates the receiver ID to use for an outbound
EDI document. Services you create to form outbound EDI documents can retrieve this
seing from the EDITPA using the wm.tn.tpa:getTPA service. For more information about
this service, see the webMethods Trading Networks Built-In Services Reference for your
release.
When using the Module for EDI batching feature:
When the batchProcess service oneBatchQueue input parameter is NONE, the
batchProcess service uses its input parameters to locate the EDITPA, and then uses
the envelopeIdentifier variables to set the sender/receiver in the interchange and
group headers of the outbound batch EDI document. For more information, see
the webMethods Trading Networks Built-In Services Reference for your release.
When you are using batching with oneBatchQueue set to SINGLEOUTPUT or
MULTIPLEOUTPUTS, do not specify the envelopeIdentifier/sender/ID variable.
envelopeIdentifier/receiver/qualifier EDITPA Variable
Default: (no default)
The envelopeIdentifier/receiver/qualifier variable indicates the EDI ID qualifier associated
with the value you specify for envelopeIdentifier/receiver/ID . For example, if you specified
a D-U-N-S number for the envelopeIdentifier/receiver/ID , specify 01 for envelopeIdentifier/
receiver/qualifier , which is the EDI ID qualifier for a D-U-N-S number. Services you create
to form outbound EDI documents can retrieve this seing from the EDITPA using the
wm.tn.tpa:getTPA service. For more information about this service, see the webMethods
Trading Networks Built-In Services Reference for your release.
When using the Module for EDI batching feature:
When the batchProcess service oneBatchQueue input parameter is NONE, the
batchProcess service uses its input parameters to locate the EDITPA, and then uses
the envelopeIdentifier variables to set the sender/receiver in the interchange and
group headers of the outbound batch EDI document. For more information, see
the webMethods Trading Networks Built-In Services Reference for your release.
When you are using batching with oneBatchQueue set to SINGLEOUTPUT or
MULTIPLEOUTPUTS, do not specify the envelopeIdentifier/sender/ID variable.
ICheaderInfo Variables
The ICheaderInfo variables indicate the values to use for ANSI X12 interchange and
group headers and UN/EDIFACT UNB headers in outbound EDI documents.
webMethods Module for EDI Installation and User’s Guide Version 9.12 77
M
Even Header
Defining Trading Partner Information
webMethods Module for EDI Installation and User’s Guide Version 9.12 78
M
Odd Header
Defining Trading Partner Information
wm.tn.tpa:getTPA service. For more information about this service, see the webMethods
Trading Networks Built-In Services Reference for your release.
When using the Module for EDI batching feature, the module uses this seing when
creating the interchange headers of the outbound batch EDI document.
ICheaderInfo/GS/GS07 EDITPA Variable
Default: (no default)
The ICheaderInfo/GS/GS07 variable indicates the value to use for the GS07 element
of an ANSI X12 group header in an outbound EDI document. Services you create to
form outbound EDI documents can retrieve this seing from the EDITPA using the
wm.tn.tpa:getTPA service. For more information about this service, see the webMethods
Trading Networks Built-In Services Reference for your release.
When using the Module for EDI batching feature, the module uses this seing when
creating the interchange headers of the outbound batch EDI document.
ICheaderInfo/UNB/UNB01 EDITPA Variable
Default: (no default)
The ICheaderInfo/UNB/UNB01 variable indicates the value to use for the UNB01 element
of a UN/EDIFACT UNB header in the outbound EDI document. Services you create
to form outbound EDI documents can retrieve this seing from the EDITPA using the
wm.tn.tpa:getTPA service. For more information about this service, see the webMethods
Trading Networks Built-In Services Reference for your release.
When using the Module for EDI batching feature, the module uses this seing when
creating the interchange headers of the outbound batch EDI document.
ICheaderInfo/UNB/UNB06 EDITPA Variable
Default: (no default)
The ICheaderInfo/UNB/UNB06 variable indicates the value to use for the UNB06 element
of a UN/EDIFACT UNB header in the outbound EDI document. Services you create
to form outbound EDI documents can retrieve this seing from the EDITPA using the
wm.tn.tpa:getTPA service. For more information about this service, see the webMethods
Trading Networks Built-In Services Reference for your release.
When using the Module for EDI batching feature, the module uses this seing when
creating the interchange headers of the outbound batch EDI document.
ICheaderInfo/UNB/UNB08 EDITPA Variable
Default: (no default)
The ICheaderInfo/UNB/UNB08 variable indicates the value to use for the UNB08 element
of a UN/EDIFACT UNB header in the outbound EDI document. Services you create
to form outbound EDI documents can retrieve this seing from the EDITPA using the
wm.tn.tpa:getTPA service. For more information about this service, see the webMethods
Trading Networks Built-In Services Reference for your release.
When using Module for EDI batching feature, the module uses this seing when
creating the interchange headers of the outbound batch EDI document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 79
M
Even Header
Defining Trading Partner Information
FAGeneration Variables
FAGeneration/autoGenerateFA EDITPA Variable
Default: Off
Value Description
Per Document Automatically generates FAs based on the indicator flag in the
interchange header (for example, ISA14 or UNB09).
Note: When you are using non-standard processing, Module for EDI
does not use this EDITPA variable. Instead, it uses the FA Level seing
available on the Interchange Information Detail panel of the module’s
home page. For more information about accessing and using this panel,
see "Defining Interchange-Level Sender/Receiver Pair Information" on
page 376.
The FAGeneration/FALevel variable defines the level of detail that the module
acknowledges in the FAs that it generates.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 80
M
Odd Header
Defining Trading Partner Information
Value Description
Note: When you are generating FAs at the element level, be sure
to configure the maximum number of errors to report per
FA transaction. For more information, see "Configuring the
Maximum Number of Transaction Errors" on page 172.
Note: When you are using non-standard processing, Module for EDI
does not use this EDITPA variable. Instead, it uses the Child Transaction
Rejected Status seing that you set from the Interchange Information Detail
panel of the module’s home page. For more information about accessing
and using this panel, see "Defining Interchange-Level Sender/Receiver Pair
Information" on page 376.
The FAGeneration/processDocument variable indicates how you want Module for EDI
to process a transaction, group, or UN/EDIFACT interchange based on its FA status.
Use this EDITPA variable to define which FA statuses are acceptable and which are
unacceptable.
For acceptable FA statuses, the module processes a transaction, group, or UN/
EDIFACT interchange using its normal processing.
For unacceptable FA statuses, the module processes documents differently.
For more information about how Module for EDI processes documents based on FA
status, see "Defining Actions Module for EDI Takes Based on FA Status" on page 279.
The following table describes the seings for the FAGeneration/processDocument EDITPA
variable, when to use each one, and the acceptable and unacceptable FA statuses based
on the processDocument seing.
Not Allowed
Only Accepted Process only Accepted
Interchange, Rejected
webMethods Module for EDI Installation and User’s Guide Version 9.12 81
M
Even Header
Defining Trading Partner Information
Not Allowed
Not Rejected Process all Rejected
Interchange, Partially
Group, and Accepted
Transaction Accepted, But
documents Errors Were
unless they have Noted
the FA status Accepted
"Rejected".
Note: When you are using non-standard processing, Module for EDI
does not use this EDITPA variable. Instead, it uses the Generate Control
Number seing that you set from the Interchange Information Detail panel
of the module’s home page. For more information about accessing and
using this panel, see "Defining Interchange-Level Sender/Receiver Pair
Information" on page 376.
The FAGeneration/generateControlNumber variable defines how Module for EDI is to
generate the control numbers that it uses in the interchange and group headers of the
FAs that it automatically generates.
Value Description
FromInboundDocument Module for EDI uses the control numbers from the
corresponding headers of the inbound EDI document
that the FA acknowledges.
The module uses the control number from the
corresponding header of the inbound EDI document that
the FA acknowledges. For example, if acknowledging
a group, the module uses the control number from the
corresponding group header in the inbound document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 82
M
Odd Header
Defining Trading Partner Information
Value Description
FromControlNumberTable Module for EDI obtains the control numbers from the
EDIControlNumber table.
The module searches the EDIControlNumber table
for the entry that matches the sender/receiver, EDI
standard/version, production mode, and type (for
example, “Envelope” or group type) identified in the
corresponding interchange or group header of the
inbound EDI document that the FA acknowledges.
The module uses the next control number from this
EDIControlNumber table entry for the FA. It also
increments the value of the next control number in the
table entry, so it reflects the new next control number.
Note: Module for EDI always sets the control number for the transaction (997 or
CONTRL) to 001.
Value Description
false Does not add a functional group to the FA. This is the default.
Value Description
false Does not add zeros to the control number field value.
webMethods Module for EDI Installation and User’s Guide Version 9.12 83
M
Even Header
Defining Trading Partner Information
Note: When you are using non-standard processing, Module for EDI
does not use this EDITPA variable. Instead, it uses the Syntax Error Status
seing that you set from the Interchange Information Detail panel of the
module’s home page. For more information about accessing and using this
panel, see "Defining Interchange-Level Sender/Receiver Pair Information"
on page 376.
The FAGeneration/RejectionRules/syntaxErrorStatus variable indicates how you want
Module for EDI to report the syntax error status for a transaction, group, or UN/
EDIFACT interchange.
Value Description
Rejected Use this seing when you want to reject the element (for
example, transaction) because of syntax errors.
Reports the syntax error status as:
“Accepted” when there are no syntax errors
“Rejected” when there are syntax errors
Accepted, Use this seing when you want to know whether there were
But Errors syntax errors, but you do not want to reject the element (for
Were Noted example, transaction) because of syntax errors.
Reports the syntax error status as:
“Accepted” when there are no syntax errors
“Accepted, But Errors Were Noted” when there are syntax
errors
Accepted Use this seing when you do not want to check for syntax errors.
Always reports the syntax error status as “Accepted” regardless
of whether there are any syntax errors.
Note: When you are using non-standard processing, Module for EDI
does not use this EDITPA variable. Instead, it uses the Logical Error Status
seing that you set from the Interchange Information Detail panel of the
module’s home page. For more information about accessing and using this
panel, see "Defining Interchange-Level Sender/Receiver Pair Information"
on page 376.
webMethods Module for EDI Installation and User’s Guide Version 9.12 84
M
Odd Header
Defining Trading Partner Information
Value Description
Note: When you are using non-standard processing, Module for EDI
does not use this EDITPA variable. Instead, it uses the Child Transaction
Rejected Status seing that you set from the Interchange Information Detail
panel of the module’s home page. For more information about accessing
and using this panel, see "Defining Interchange-Level Sender/Receiver Pair
Information" on page 376.
The FAGeneration/rejectionRules/childTransactionRejectedStatus variable indicates
how you want Module for EDI to report the child transaction rejected status. The
child transaction rejected status indicates whether child elements of a group or UN/
EDIFACT interchange have an FA status of "Rejected". For more information, see "
childTransactionRejectedStatus Parameter" on page 176.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 85
M
Even Header
Defining Trading Partner Information
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 86
M
Odd Header
Defining Trading Partner Information
webMethods Module for EDI Installation and User’s Guide Version 9.12 87
M
Even Header
Defining Trading Partner Information
When the group type of the inbound message is listed and autoGenerateFA for
that group type is set to On, the module generates the FA for that particular
group type as per the seings.
When the group type of the inbound message is not listed, the module examines
the FAGeneration/autoGenerateFA variable to determine whether an FA should be
generated as follows:
When the FAGeneration/DocumentSeings/autoGenerateFA variable is set to On,
the module automatically generates an FA for the inbound message.
When the FAGeneration/DocumentSeings/autoGenerateFA variable is set to Per
Document, the module automatically generates an FA based on the indicator
flag in the interchange header (for example, ISA14 or UNB09).
When the FAGeneration/DocumentSeings/autoGenerateFA variable is set to
Off, the module does not generate an FA for the inbound message.
Note: When more than one record exists for a group type, Module for EDI
considers the first record it encounters for the group when generating the
FA.
Important: Do not update and delete elements in the DocumentSeings array at the
same time. Because no single identifier exists for these entries, there is
no way for Module for EDI to identify which element was deleted and
which one was modified. As a result, the message that the module logs
to the Activity Log will not correctly reflect all of the changes that were
performed. You should first delete the element to be deleted, save the
TPA, and then modify the other elements as necessary.
ControlNumberManagement Variables
ControlNumberManagement/validateInboundEnvelopeControlNumbers EDITPA Variable
Default: false
webMethods Module for EDI Installation and User’s Guide Version 9.12 88
M
Odd Header
Defining Trading Partner Information
more information about accessing and using this panel, see "Defining
Interchange-Level Sender/Receiver Pair Information" on page 376.
The ControlNumberManagement/validateInboundEnvelopeControlNumbers variable indicates
whether you want the module to validate and track control numbers in the interchange
headers of inbound EDI documents. For more information, see " Trading Networks
Aributes and EDI Documents" on page 211.
Value Description
true Module for EDI validates and tracks control numbers in the
interchange headers of inbound EDI documents.
false Module for EDI does not validate or track control numbers in the
interchange headers of inbound EDI documents.
Value Description
true Module for EDI validates and tracks control numbers in the group
headers of inbound EDI documents.
false Module for EDI does not validate or track control numbers in the
group headers of inbound EDI documents.
webMethods Module for EDI Installation and User’s Guide Version 9.12 89
M
Even Header
Defining Trading Partner Information
For more information, see " Trading Networks Aributes and EDI Documents" on page
211. For more information about each of the following actions, see "Actions Module
for EDI Can Take for Invalid Control Numbers" on page 262.
Value Description
Error & Module for EDI logs the error and then continues to process
Continue the EDI document that contains the invalid control number
normally.
ProcessNormally Module for EDI logs a warning and processes the EDI document
that contains the invalid control number normally.
Reject Module for EDI logs the error and does not process the
document normally. The module does not split the EDI
document. Typically, the module splits an inbound EDI based
on the EDITPA splitOption variable and sends the documents it
splits out to Trading Networks for processing. However, if you
set the action to Reject, the module sends the document without
spliing it to Trading Networks processing rules.
Additionally, Module for EDI sets the Trading Networks custom
aribute EDI Status to Duplicate Control Number. You can use
the custom aribute EDI Status in processing rule criteria. You
should create a processing rule to handle this rejected document.
For information, see "Defining Processing Rules to Handle
Documents with Invalid Control Numbers" on page 265.
You can force processing of the duplicate document later, if you
want. For more information, see "Reprocessing EDI Documents
with Invalid Control Numbers" on page 268.
webMethods Module for EDI Installation and User’s Guide Version 9.12 90
M
Odd Header
Defining Trading Partner Information
For more information, see " Trading Networks Aributes and EDI Documents" on page
211. For more information about each of the following actions, see "Actions Module
for EDI Can Take for Invalid Control Numbers" on page 262.
Value Description
Error & Module for EDI logs the error, and then continues to process
Continue the EDI document that contains the invalid control number
normally.
ProcessNormally Module for EDI logs a warning and processes the EDI document
that contains the invalid control number normally.
Reject Module for EDI logs the error and does not process the
document normally. The module does not split the EDI
document. Typically, the module splits an inbound EDI based
on the EDITPA splitOption variable and sends the documents
it splits out to Trading Networks for processing. However, if
you set the action to Reject, Module for EDI sends the document
without spliing it to Trading Networks processing rules.
Additionally, the module sets the Trading Networks custom
aribute EDI Status to Duplicate Control Number. You can use
the custom aribute EDI Status in the processing rule criteria.
You should create a processing rule to handle this rejected
document. For information, see "Defining Processing Rules to
Handle Documents with Invalid Control Numbers" on page
265.
You can force processing of the duplicate document later, if you
want. For more information, see "Reprocessing EDI Documents
with Invalid Control Numbers" on page 268.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 91
M
Even Header
Defining Trading Partner Information
Value Description
false Module for EDI does not validate the structure of inbound VDA
documents.
useReverseRoute Variable
useReverseRoute EDITPA Variable
Default: false
The useReverseRoute variable indicates that when a UNG segment is not present in a UN/
EDIFACT document, the partner IDs for UN/EDIFACT transaction documents will be
determined as follows:
Value Description
false Module for EDI uses the ID and Qualifier portions of the UN/
EDIFACT Sender/Receiver ID to determine the partner ID of the
document. This is the default.
true Module for EDI uses the ReverseRoute Id and Qualifier portions of
the UN/EDIFACT Sender/Receiver ID to determine the partner ID
of the document.
useInternalIds Module for EDI uses the internal identification and internal sub-
identification portions of the UN/EDIFACT Sender/Receiver ID to
determine the partner ID of the document.
The qualifier is the normal Identification code qualifier, but the ID
is constructed as follows:
<Internal identification >[:<internal sub-identification >]
Note that when no sub-identification value is present, this seing
behaves the same way as the true seing.
Note: Once your production system is running, do not change the value of
the useReverseRoute variable. For example, if you send a document with
useReverseRoute set to false, Module for EDI considers your partner
ID to be the values of ID and Qualifier , and it stores these values in
the EDITRACKING table. When you change useReverseRoute to true
and then receive an FA from the receiver, the module tries to use the
ID and ReverseRoute Id values to try to determine the sender of the FA
you received. In this case, the module cannot reconcile the FA with the
document you sent.
webMethods Module for EDI Installation and User’s Guide Version 9.12 92
M
Odd Header
Defining Trading Partner Information
BatchCriteria Variables
Batching involves grouping together transactions from all queued EDI documents.
You can use the BatchCriteria variables to specify which fields Module for EDI uses to
identify the collections and sub-collections by which to batch transactions.
BatchCriteria/useDefault EDITPA Variable
Default: true
The BatchCriteria/useDefault variable indicates whether to consider only the standard
fields for sorting the documents in the batching process.
When this variable is not present in the TPA, Module for EDI considers only the
standard fields for sorting the documents in the batching process.
Value Description
true Module for EDI considers only the standard fields for sorting the
documents in the batching process.
false Module for EDI considers the standard fields and all the other
fields set to true in UNB, UNG, ISA, and GS records for sorting
the documents in the batching process.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 93
M
Even Header
Defining Trading Partner Information
Value Description
The module considers the following standard fields for sorting the X12 documents to a
collection area.
Value Description
The module considers the following standard fields for sorting the EDIFACT documents
to a sub-collection.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 94
M
Odd Header
Defining Trading Partner Information
Value Description
The module considers the following standard fields for sorting the X12 documents to a
sub-collection.
Value Description
Note: Do not include S0010, the syntax identifier field, in the sorting process.
EDITransportMedia Variable
EDITransportMedia EDITPA Variable
Default: FTP
The EDITransportMedia variable indicates the protocol (for example, HTTP, HTTPS,
FTP, AS1, and AS2) to be used to transport the EDI documents. Module for EDI uses this
variable to display information on the Summary of EDI Activity by Transport Media and
webMethods Module for EDI Installation and User’s Guide Version 9.12 95
M
Even Header
Defining Trading Partner Information
EDI Volume by Transport Media reports, if you have purchased the appropriate EDI
reporting license.
persistOriginalEnvelope Variable
Value Description
true Before processing the document, Module for EDI persists the
original incoming EDI document in Trading Networks with the
following aribute values:
Processing Status = NEW
User Status = Original EDI Envelope
EDI Status = Persisted
webMethods Module for EDI Installation and User’s Guide Version 9.12 96
M
Odd Header
Defining Trading Partner Information
Value Description
document was not processed completely. Resubmit these original
documents to Trading Networks for reprocessing.
When the module successfully processes the inbound document,
that is, after all the transactions, groups, and envelope of the
document are processed, the additional document persisted in
Trading Networks is deleted.
false Module for EDI does not persist the original inbound EDI
envelope in Trading Networks before processing the document.
This is the default.
documentPersistOrder Variable
Value Description
EnvelopeLast Module for EDI submits the envelope of the EDI document to
Trading Networks after submiing the transactions and groups.
This is the default.
Module for EDI submits the EDI documents to Trading Networks
in the following order:
1. Transactions
2. Groups
3. Envelope
When the persistOriginalEnvelope variable is set to false, if
the module fails while submiing large EDI documents, you
cannot retrieve the original EDI document received from the
partner because the module submits the envelope last. For more
webMethods Module for EDI Installation and User’s Guide Version 9.12 97
M
Even Header
Defining Trading Partner Information
Value Description
information, see "persistOriginalEnvelope Variable" on page
96.
EnvelopeFirst Module for EDI submits the envelope of the EDI document to
Trading Networks before submiing the groups and transactions.
The module submits the EDI documents to Trading Networks in
the following order:
1. Envelope
2. Groups
3. Transactions
Even though the persistOriginalEnvelope variable is set to true,
the module does not persist the original inbound EDI document
in Trading Networks before processing the document. Because
the module submits the envelope first, you can track the original
inbound EDI document at any time until processing is complete.
LateFA Variables
Use the LateFA variables for tracking the late functional acknowledgments for a partner
pair. For more information, see "Tracking Late Functional Acknowledgments" on page
185.
LateFA/LateFATime EDITPA Variable
Default: (no default)
The LateFA/LateFATime variable indicates the time in minutes by which Trading
Networks must receive the FA for a partner pair. When Trading Networks receives
the FA late, Module for EDI sets the Late FA aribute of the original document to Y in
Trading Networks.
For a partner pair, Module for EDI checks the Trading Networks database to find
the time difference between the time the document was sent and the time the sender
receives the FA. When the time difference is more than the value of the LateFA/
LateFATime variable, the module sets the Late FA aribute of the original document to
Y in Trading Networks. When the FA is not late, the Late FA aribute of the original
document is set to N.
When the value of the LateFA/LateFATime variable is 0 or a negative integer, the
module does not consider any FA as late for the partner pair.
When the value of the LateFA/LateFATime variable is a positive integer, if Trading
Networks receives the FA later than the value of the LateFA/LateFATime variable,
the module sets the Late FA aribute of the original document in Trading
Networks to Y. If Trading Networks receives the FA within the time specified by
the LateFA/LateFATime variable, the module sets the Late FA aribute to N.
webMethods Module for EDI Installation and User’s Guide Version 9.12 98
M
Odd Header
Defining Trading Partner Information
When the value of the LateFA/LateFATime variable is not set, the Late FA
aributes of the original documents are not set.
LateFA/LateFAForX12Group EDITPA Variable
Default: (no default)
The LateFA/LateFAForX12Group variable defines the late FA seing for the X12 groups
specified in the LateFA/LateFAForX12Group/groupType variables.
Note: Module for EDI does not support tracking of late FAs for UN/EDIFACT
groups.
webMethods Module for EDI Installation and User’s Guide Version 9.12 99
M
Even Header
Defining Trading Partner Information
X12TA1Generation Variables
The X12TA1Generation variables indicate the seings for interchange acknowledgment
(TA1).
X12TA1Generation/autoGenerateTA1 EDITPA Variable
Default: Off
The X12TA1Generation/autoGenerateTA1 variable indicates whether you want the Module
for EDI to automatically generate TA1s for an inbound EDI document.
Value Description
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 100
M
Odd Header
Defining Trading Partner Information
Value Description
EANCOMAUTACK Variables
The EANCOMAUTACK variables indicate the configurations necessary for generating a
secure Authentication and Acknowledgement (AUTACK) message.
Use the following EANCOMAUTACK variables to configure the seings for generating
or processing the AUTACK messages:
EANCOMAUTACK/autoGenerateAUTACK EDITPA Variable
Default: off
The EANCOMAUTACK/autoGenerateAUTACK variable indicates whether the AUTACK
message containing the digital signatures are generated automatically.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 101
M
Even Header
Defining Trading Partner Information
Value Description
Value Description
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 102
M
Odd Header
Defining Trading Partner Information
Value Description
Value Description
Value Description
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 103
M
Even Header
Defining Trading Partner Information
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 104
M
Odd Header
Defining Trading Partner Information When Using TRADACOMS
webMethods Module for EDI Installation and User’s Guide Version 9.12 105
M
Even Header
Defining Trading Partner Information When Using TRADACOMS
Overview
To process documents when you are using webMethods Trading Networks (Trading
Networks) with webMethods Module for EDI (Module for EDI), you must define both
Trading partner profiles and trading partner agreements (EDITPAs) for the partners
that will send and receive the EDI documents you expect to process. Module for EDI
processes the transmission, its batch, and its file using seings that you define for the
transmission sender/receiver pair.
For more information about how Module for EDI processes inbound documents, see
webMethods Module for EDI Concepts Guide.
For... Define...
Tailoring how Default EDITPA that defines the seings that you want to
Module for use for most partner pairs.
EDI processes
Partner-specific EDITPA for each transmission sender/
documents
receiver pair for which you want to override the seings in
the default EDITPA.
For more information, see "Defining EDI Trading Partner
Agreements When Using TRADACOMS" on page 109.
webMethods Module for EDI Installation and User’s Guide Version 9.12 106
M
Odd Header
Defining Trading Partner Information When Using TRADACOMS
For... Define...
transmission reference number in the STX and BAT
segments of TRADACOMS documents.
Regardless of whether your EDI standard includes
control numbers or transmission reference numbers,
you define them the same way in Trading Networks;
the only difference is in the terminology. For
simplicity, Trading Networks and Module for EDI
use the term control number to mean either control
number or transmission reference number.
For more information about how Module for EDI works with Trading Networks, see
webMethods Module for EDI Concepts Guide. For more information about profiles and
TPAs and how Trading Networks uses them, see the Trading Networks Concepts Guide for
your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 107
M
Even Header
Defining Trading Partner Information When Using TRADACOMS
The external ID types that Module for EDI automatically installs (Tradacoms Code and
Tradacoms Name) correspond to the STX segment's FROM and UNTO data elements.
Each data element is a composite with two optional fields: Code and Name. Either or
both of these fields can be used to identify the sender or receiver of a TRADACOMS
transmission.
When Trading Networks examines partner profiles to look up a sender or receiver, the
following four possibilities can result, depending on which fields have values:
For example:
If the sender's Then the sender will be the trading partner with...
FROM data element
contains...
Code field is empty The external ID type Tradacoms Name defined as ABC.
-and-
Name=ABC
webMethods Module for EDI Installation and User’s Guide Version 9.12 108
M
Odd Header
Defining Trading Partner Information When Using TRADACOMS
Property Description
Note: If CodeOnly=true is set and the Code field is blank, Trading Networks
looks up a trading partner as described in the table in "External ID Types
When Using TRADACOMS" on page 107.
3. Click Save.
webMethods Module for EDI Installation and User’s Guide Version 9.12 109
M
Even Header
Defining Trading Partner Information When Using TRADACOMS
During processing, Module for EDI first aempts to find values in the partner-specific
EDITPA for the sender/receiver pair of a document. If a partner-specific EDITPA does
not exist for the sender/receiver pair, or the value in the partner-specific EDITPA is null
or empty, Module for EDI uses the value from the default EDITPA.
Note: Do not disable the default EDITPA. If you do not specify a value for a TPA
parameter, Module for EDI uses the value from the default EDITPA.
You modify the default EDITPA using My webMethods. For instructions, see the
webMethods Trading Networks Administrator’s Guide for your release.
When you modify the default EDITPA, the following seings (visible on the
Administration > Integration > B2B > Trading Partner Agreements page) must be
maintained.
Sender Unknown
Receiver Unknown
Agreement ID EDITPA
webMethods Module for EDI Installation and User’s Guide Version 9.12 110
M
Odd Header
Defining Trading Partner Information When Using TRADACOMS
the information that is different from the defaults. Define partner-specific EDITPAs for
transmission-level sender/receiver pairs.
Note: You can disable partner-specific EDITPAs. When you disable a partner-
specific EDITPA, Module for EDI functions as if the partner-specific EDITPA
does not exist. That is, Module for EDI uses the values in the default EDITPA.
You create a partner-specific EDITPA using My webMethods. You can create a partner-
specific EDITPA in one of the following three ways:
Agreement ID EDITPA
Initialization A service that you created to define the default values for the
Service wm.b2b.editn.TPA:EDITPA IS document type. (Or, leave this field
blank.)
It is recommended that you do not use the initialization
service ( wm.b2b.editn.TPA:initService) that is provided with
Module for EDI. The wm.b2b.editn.TPA:initService service is used
to populate the values of the default EDITPA.
webMethods Module for EDI Installation and User’s Guide Version 9.12 111
M
Even Header
Defining Trading Partner Information When Using TRADACOMS
Tip: It is helpful to have an understanding about how Module for EDI processes
EDI documents to understand how Module for EDI uses the variables in the
EDITPA. For more information, see webMethods Module for EDI Concepts Guide.
TRADACOM Variables
TRADACOMS/splitOption EDITPA Variable
Default: File
This variable indicates how you want Module for EDI to split a transmission segment
within an EDI document. The module creates the following types of documents from a
transmission segment, based on the value of this variable:
Transmission documents that contain the single transmission envelope along
with its batch segment and file
Batch documents that contain a single batch segment along with its files
File documents that contain a single file
If you want to perform processing on the file in an inbound document, set splitOption
to File or Batch. If you are sending the inbound EDI document through Trading
Networks to simply deliver it to a destination without processing the file, set splitOption
to Transmission.
Note: Validation errors can prevent Module for EDI from spliing a transmission
document. The kinds of errors that will cause splitOption to fail are listed
in "Errors that Prevent the Spliing of Transmissions" on page 120.
The following table lists the possible values for this variable and the types of documents
that Module for EDI creates for each value.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 112
M
Odd Header
Defining Trading Partner Information When Using TRADACOMS
Value Description
Value Description
One Message Default. For a TRADACOMS File, Trading Networks creates one
File document type that contains all the detail messages contained
in the file.
Note: When you use the Monitoring > Integration > B2B > Transaction page to
view transactions, and the value of storageOption is One Message, the
control number displayed is the control number in the FIL segment. If
the value of storageOption is N Messages, the control number displayed is
taken from the sequence number in the MHD segment.
TRADACOMS/ControlNumberManagement/validateInboundTransmissionControlNumbers EDITPA
Variable
Default: false
This variable indicates whether you want Module for EDI to validate and track control
numbers in the transmission headers of inbound EDI documents.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 113
M
Even Header
Defining Trading Partner Information When Using TRADACOMS
Value Description
Value Description
false Does not validate or track control numbers in the batch headers of
inbound EDI documents.
Value Description
false Does not validate or track control numbers in the file headers of
inbound EDI documents.
webMethods Module for EDI Installation and User’s Guide Version 9.12 114
M
Odd Header
Defining Trading Partner Information When Using TRADACOMS
Value Description
Error & Module for EDI logs the error and then continues normal
Continue processing of the EDI document that contains the invalid control
number.
ProcessNormally Module for EDI logs a warning and then continues normal
processing of the EDI document that contains the invalid control
number.
Reject Module for EDI logs the error and then sends the document to
Trading Networks without spliing it. (Typically, Module for
EDI splits an inbound EDI based on the EDITPA splitOption
variable and sends the split documents to Trading Networks for
processing.)
Additionally, Module for EDI sets the Trading Networks custom
aribute EDI Status to Duplicate Control Number. You can use
the custom aribute EDI Status in processing rule criteria. You
should create a processing rule to handle this rejected document.
For information, see "Defining Processing Rules to Handle
Documents with Invalid Control Numbers" on page 265.
If desired, you can force a duplicate document to be processed
later. For more information, see "Reprocessing EDI Documents
with Invalid Control Numbers" on page 268.
Value Description
Error & Logs the error; then continues normal processing of the EDI
Continue document that contains the invalid control number.
Reject Logs the error and sends the document to Trading Networks
without spliing it. Typically, Module for EDI splits an
webMethods Module for EDI Installation and User’s Guide Version 9.12 115
M
Even Header
Defining Trading Partner Information When Using TRADACOMS
Value Description
inbound EDI based on the EDITPA splitOption variable and
sends the split documents to Trading Networks for processing.
Additionally, the module sets the Trading Networks custom
aribute EDI Status to Out of Sequence Control Number. You
can use the custom aribute EDI Status in processing rule
criteria. You should create a processing rule to handle this
rejected document. For information, see "Defining Processing
Rules to Handle Documents with Invalid Control Numbers" on
page 265.
You can later force processing of the out-of-sequence document
if you want. For more information, see "Reprocessing
Documents with Out-of-Sequence Control Numbers" on page
269.
Value Description
true Validates that the APRF field contents match the file type of the
messages.
Value Description
true Creates an RSGRSG message at the end of the transmission for the
batched TRADACOMS document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 116
M
Odd Header
Defining Trading Partner Information When Using TRADACOMS
Value Description
Value Description
true Returns the value of the APRF field, which is the file type
specified in the transmission, for example, ORDHDR.
Note: Module for EDI splits each transmission segment within the original EDI
document into Transmission, Batch, and File documents based on the
seing of the TRADACOMS/splitOption EDITPA variable. You can control
whether the Transmission, Batch, and File documents are saved to the
Trading Networks database via a processing rule.
webMethods Module for EDI Installation and User’s Guide Version 9.12 117
M
Even Header
Defining Trading Partner Information When Using TRADACOMS
Value Description
false Does not save the original EDI document to the Trading Networks
database. If you specify false, you will not have a way to retrieve
the original EDI document.
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 118
M
Odd Header
Defining Trading Partner Information When Using TRADACOMS
Message header
Message detail (one content part per message detail)
VAT message (if applicable)
Message trailer
Transmission/Batch trailer information (END/EOB segments)
For example:
Note: These are not the actual names of the content parts. You should not write
code to access the content parts directly. Instead, use the built-in services
provided in the wm.b2b.edi.tradacoms.doc folder to access the content parts. For
more information, see webMethods Module for EDI Built-In Services Reference.
Storing File document types in this way enables you to build logic to process individual
detail messages yet still be able to easily access related summary information from the
header, VAT, and trailer messages.
However, if a single File document contains many detail messages (for example, fifty or
more), My webMethods may not be able to display all of the content parts. In this case,
you might want to consider using an alternative storage option.
The alternative storage option stores the Transmission and Batch information in the
same manner as the default storage option. However, instead of storing all message
details in a single File document type, Trading Networks creates a separate File
document type for each detail message.
For example:
Message contents The default storage The alternative storage method creates...
method creates...
STX
Header1 One File document Three file document types (one per
Detail1 type with eight detail message), each with six content
Detail2
Detail3
content parts as parts as follows:
VAT1 follows:
Trailer1
Document type 1:
STX
END Header1 STX
Detail1 Header1
Detail2 Detail1
Detail3 VAT1
webMethods Module for EDI Installation and User’s Guide Version 9.12 119
M
Even Header
Defining Trading Partner Information When Using TRADACOMS
Message contents The default storage The alternative storage method creates...
method creates...
VAT1 Trailer1
Trailer1 END
END
Document type 2:
STX
Header1
Detail2
VAT1
Trailer1
END
Document type 3:
STX
Header1
Detail3
VAT1
Trailer1
END
Validation Errors
If the processing rule triggered by a transmission document is set to validate the
structure of the document, and if any of the following errors occur, splitOption will not
split the transmission:
Data Error
The message structure is invalid, or a field contains an invalid value, or a mandatory
field is missing. These errors are detected by the wm.b2b.edi:convertToValues service when its
validate flag is set to true. This only applies to errors within the STX, BAT, MHD, MTR,
EOB, and END segments. Errors within the MHD and MTR segments will not prevent
splitOption from spliing the entire transmission.
Missing or Invalid RSGRSG Message
When ANAA is specified in the STX segment and:
There is no RSGRSG
The control number in the RSGRSG does not match the control number in
STX
The Sender Reference in RSGRSG does not match the Sender Reference in
STX
webMethods Module for EDI Installation and User’s Guide Version 9.12 120
M
Odd Header
Defining Trading Partner Information When Using TRADACOMS
webMethods Module for EDI Installation and User’s Guide Version 9.12 121
M
Even Header
webMethods Module for EDI Installation and User’s Guide Version 9.12 122
M
Odd Header
Defining Control Number Information for Trading Partners
webMethods Module for EDI Installation and User’s Guide Version 9.12 123
M
Even Header
Defining Control Number Information for Trading Partners
Overview
A control number is a number in the header of a non-TRADACOMS EDI document that is
used for validation and for ordering documents exchanged between trading partners.
For inbound EDI documents, Module for EDI can perform control number validation,
which determines whether control numbers are valid or invalid and detects duplicate or
out-of-sequence control numbers. Also, inbound control number validation determines
whether the control numbers are in order, and therefore whether the EDI documents
arrived in order. However, inbound control number validation does not guarantee that
EDI documents are processed in the same order in which they are received.
This chapter discusses actions that are taken to define and manage control number
information. For information about control number validation, see "Optional Inbound
Processing When Using Trading Networks " on page 257.
Note: If you use the TRADACOMS EDI standard, the term control number is
equivalent to the transmission reference numbers specified in the STX and
BAT segments of your TRADACOMS documents. Whether your EDI standard
includes control numbers or transmission reference numbers, you define them
the same way in Trading Networks. The only difference is in the terminology.
For simplicity, Trading Networks and Module for EDI use the term control
number to mean either control number or transmission reference number.
webMethods Module for EDI Installation and User’s Guide Version 9.12 124
M
Odd Header
Defining Control Number Information for Trading Partners
Sender A
Receiver B
Version 4010
Production Testing
Mode
Group Type PO
The following table lists the actions you can take to manage control number information,
as well as where you can find more information about each action.
To... See...
Define how Module for EDI creates "Defining How Module for EDI Creates the
the control number sequence Control Number Sequence" on page 126
webMethods Module for EDI Installation and User’s Guide Version 9.12 125
M
Even Header
Defining Control Number Information for Trading Partners
To... See...
Defining How Module for EDI Creates the Control Number Sequence
Use the EDIAllowCustomControlNumberSequence property to define how Module for
EDI creates the control number sequence. For more information, see "Defining Module
for EDI Properties" on page 26.
webMethods Module for EDI Installation and User’s Guide Version 9.12 126
M
Odd Header
Defining Control Number Information for Trading Partners
control number The lowest number the control number 0 (for VDA)
minimum can be.
1 (for all other
standards)
For example, Module for EDI receives an Interchange document that has an interchange
header identifying sender A, receiver B, a production mode of Production, and a
type of Envelope. The module locates the control number seings by locating the
EDIControlNumber table entry for sender A, receiver B, where production mode is
Production, and type is Envelope. If the module is validating a control number in
an inbound document, and an EDIControlNumber table entry does not exist for the
combination of sender/receiver, EDI standard/version, production mode, and type, the
module:
1. Adds an entry to the table
2. Sets the control number maximum, minimum, increment, and window to their
defaults
3. Sets the next expected control number to the sum of the control number from the
inbound EDI document plus the control number increment
Note: It is possible for Module for EDI to encounter more than one sender/receiver
pair that maps to the same Trading Networks internal ID. For example, when
you have the same sender ID/receiver ID pair combination for two separate
sender/receiver pairs, the two pairs map to the same Trading Networks
internal ID. Because Module for EDI uses the same Trading Networks internal
ID to identify senders and receivers in the EDIControlNumber table, both
sender/receiver pairs correlate to the same row in the EDIControlNumber
table. As a result, when Module for EDI receives a document from either
sender/receiver pair, it will update the next expected control number in the
same row of the EDIControlNumber table.
webMethods Module for EDI Installation and User’s Guide Version 9.12 127
M
Even Header
Defining Control Number Information for Trading Partners
When your environment is set up so that Module for EDI maintains separate
control number sequences for each sender/receiver pair, the module will
indicate that the example’s control numbers are invalid. This is because the
module checks the control number sequences for two sender/receiver pairs
using the same EDIControl number entry.
To identify sender and receiver pairs correctly in this scenario, set the
EDIAllowCustomControlNumberSequence property to true. When
EDIAllowCustomControlNumberSequence is set to true, Module for EDI
looks up the next control number using both the sender/receiver ID and the
sender/receiver qualifiers.
For more information about the EDIAllowCustomControlNumberSequence
property, see "Defining Module for EDI Properties" on page 26.
Configure control number seings using either the Control Numbers page or the Partner
Profiles page in My webMethods. For more information about configuring control
number seings using the Control Numbers page, see "Configuring Control Number
Seings Using the My webMethods Control Numbers Page" on page 128. For more
information about configuring control number seings using the Partner Profiles page,
see "Configuring Control Number Seings Using the My webMethods Partner Profiles
Page" on page 132.
Note: You must have the Manage Control Numbers general functional permission to
configure control number seings using the Control Number page.
webMethods Module for EDI Installation and User’s Guide Version 9.12 128
M
Odd Header
Defining Control Number Information for Trading Partners
Field Description
Sender Qualifier Leave this blank. This field is available when the value of
the EDIAllowCustomControlNumberSequence property
is true or strictCompatibility and you define the control
number using Partner external ID.
webMethods Module for EDI Installation and User’s Guide Version 9.12 129
M
Even Header
Defining Control Number Information for Trading Partners
Field Description
Receiver Qualifier Leave this blank. This field is available when the value of
the EDIAllowCustomControlNumberSequence property
is true or strictCompatibility and you define the control
number using Partner external ID.
webMethods Module for EDI Installation and User’s Guide Version 9.12 130
M
Odd Header
Defining Control Number Information for Trading Partners
Field Description
5. In the Seings panel, specify information that describes the value to use for the
control number as follows:
Field Description
Next Control The next control number that you expect for the
Number interchange or group (or transmission or batch) to use.
Increment The value that Module for EDI uses to increment the
control number to determine the next expected control
number.
Minimum The lowest number that the control number can be.
Maximum The highest number that the control number can be.
If Module for EDI calculates the next expected control
number and that number is greater than the control
number maximum, Module for EDI sets the control
number to the value you specify in the Minimum field.
Note: When seing the values for Maximum, Minimum, and Window, the difference
between Maximum and Minimum must be at least two times as large as the
value you specify for Window.
6. Click Save & Close. Module for EDI adds the control number information you defined
to the EDIControlNumber table.
webMethods Module for EDI Installation and User’s Guide Version 9.12 131
M
Even Header
Defining Control Number Information for Trading Partners
Note: The ControlNumber tab will be available in the Partner Details page only
if you have Edit EDI Control Number Sequences data permission and
Manage Control Numbers general functional permission. For more
information, see "Assigning User-Specific Permissions in My webMethods"
on page 25.
4. Click Add Control Number and continue with step 3 in "Configuring Control Number
Seings Using the My webMethods Control Numbers Page" on page 128.
webMethods Module for EDI Installation and User’s Guide Version 9.12 132
M
Odd Header
Defining Control Number Information for Trading Partners
Important: Module for EDI does not validate control numbers that contain non-numeric
characters.
The following sections summarize the EDITPA variables used to turn validation on and
off for each type of control number.
webMethods Module for EDI Installation and User’s Guide Version 9.12 133
M
Even Header
Defining Control Number Information for Trading Partners
webMethods Module for EDI Installation and User’s Guide Version 9.12 134
M
Odd Header
Defining Control Number Information for Trading Partners
webMethods Module for EDI Installation and User’s Guide Version 9.12 135
M
Even Header
Defining Control Number Information for Trading Partners
Defining Actions Module for EDI Can Take for Invalid Control
Numbers
How you define the actions Module for EDI can take for invalid control numbers
depends on the EDI standard you are using.
ANSI X12 or "Defining How to Handle Invalid Control Numbers for ANSI X12
UN/EDIFACT or UN/EDIFACT Documents" on page 136
For a description of the specific actions Module for EDI can take when it encounters
an invalid control number, see "Actions Module for EDI Can Take for Invalid Control
Numbers" on page 262.
Defining How to Handle Invalid Control Numbers for ANSI X12 or UN/
EDIFACT Documents
The following table describes how to define the action you want Module for EDI to
take for invalid control numbers in ANSI X12 and UN/EDIFACT documents (and all
supported sub-standards):
webMethods Module for EDI Installation and User’s Guide Version 9.12 136
M
Odd Header
Defining Control Number Information for Trading Partners
webMethods Module for EDI Installation and User’s Guide Version 9.12 137
M
Even Header
Defining Control Number Information for Trading Partners
webMethods Module for EDI Installation and User’s Guide Version 9.12 138
M
Odd Header
Defining Control Number Information for Trading Partners
Note: The Control Number tab will be available in the Partner Details page
only if you have Edit EDI Control Number Sequences data permission
and Manage Control Numbers general functional permission. For
more information, see "Assigning User-Specific Permissions in My
webMethods" on page 25.
2. Perform either a basic search if you know the control number, or an advanced search
if you do not know the control number or if you want to display a list of control
numbers that meet certain criteria.
To perform a basic search:
i. On the Keyword tab, enter the search keyword in the Keywords field.
ii. Click Search. Module for EDI executes the search in the Trading Networks
database and displays the search results in the Control Numbers panel.
iii. If you want to save the search criteria, click Save, type a name and description
for the search, and then click Save.
To perform an advanced search:
i. On the Advanced tab, select a search field, an appropriate operator, and a
value as follows:
webMethods Module for EDI Installation and User’s Guide Version 9.12 139
M
Even Header
Defining Control Number Information for Trading Partners
TRADACOMS transmissions,
type the TRADACOMS file type.
webMethods Module for EDI Installation and User’s Guide Version 9.12 140
M
Odd Header
Defining Control Number Information for Trading Partners
webMethods Module for EDI Installation and User’s Guide Version 9.12 141
M
Even Header
Defining Control Number Information for Trading Partners
ii. If you want to add another search criteria row, click Add and specify
additional search criteria.
iii. Click Search to execute the search in the Trading Networks database. The
system displays the search results in the Control Numbers panel.
iv. If you want to save the search criteria, click Save, type a name and description
for the search, and then click Save again.
webMethods Module for EDI Installation and User’s Guide Version 9.12 142
M
Odd Header
Creating Clients that Send EDI Documents to Integration Server
webMethods Module for EDI Installation and User’s Guide Version 9.12 143
M
Even Header
Creating Clients that Send EDI Documents to Integration Server
Overview
To send an EDI document to Integration Server for processing, you create a client to
Integration Server. The client you create must:
Send the document to Integration Server using a content type that Module for EDI
handles.
Invoke a service on Integration Server that you created to process the EDI document.
Use HTTP, HTTPS, FTP, or File Polling to transport the document to Integration
Server. If you want to use EDIINT to transport the document, you must use Module
for EDIINT and webMethods Trading Networks. For more information, see the
webMethods Module for EDIINT Installation and User’s Guide.
For more information about creating clients, see the chapter about creating client code in
the webMethods Service Development Help for your release.
For more information about using clients for inbound EDI document processing, see the
webMethods Module for EDI Concepts Guide.
Note: For backward compatibility, Module for EDI also has content handlers to
accept documents with the content types application/EDI, application/X12,
and application/UNEDIFACT. With these content types, the Module for
EDI content handler must convert the document to a String that it places in
the pipeline. This can potentially consume a lot of pipeline space and use a
significant amount of memory. As a result, it is recommended that you use
the application/EDIstream content type because it conserves system memory.
webMethods Module for EDI Installation and User’s Guide Version 9.12 144
M
Odd Header
Creating Clients that Send EDI Documents to Integration Server
Module for EDI uses the schema to create the EDI document from an IData object.
For instructions, see "Creating Flat File Schemas for EDI Documents" on page 403.
Optionally, the flat file schema that defines the structure of the internal-format
document.
This is needed if your client passes the internal-format document to your service in
String format or as an InputStream. Your service uses the flat file schema as input to
the wm.b2b.edi:convertToValues service to convert the internal-format document to an
IData object and optionally validate the document's structure. If your service receives
the document as an IData object, a flat file schema is not needed. Use Software AG
Designer to create the flat file schema. For more information, see the Flat File Schema
Developer’s Guide.
Optionally, an IS document type for the structure of the internal-format document.
This is needed if 1) your client passes the internal-format document to your service
as an IData object, and 2) you want to validate the internal-format document before
forming the EDI document. Your service uses the IS document type as input to the
pub.schema:validate service, which performs the structure validation. For instructions
about how to create an IS document type, see the webMethods Service Development
Help for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 145
M
Even Header
Creating Clients that Send EDI Documents to Integration Server
information about all of the built-in services that the sample uses, see webMethods Module
for EDI Built-In Services Reference.
Flow Description
operation
2 Add your own logic to handle errors that might result from
executing the convertToValues service, for example, validation errors.
3 Map data from the internal-format document IData object into the
EDI document IData object. Depending on the complexity of your
mapping requirements, you might need to add more logic than a
MAP flow operation, or create a separate service to perform the
mapping.
webMethods Module for EDI Installation and User’s Guide Version 9.12 146
M
Odd Header
Creating Clients that Send EDI Documents to Integration Server
Flow Description
operation
webMethods Module for EDI Installation and User’s Guide Version 9.12 147
M
Even Header
Creating Clients that Send EDI Documents to Integration Server
Flow Description
operation
if you are creating a UN/EDIFACT EDI document or the
wm.b2b.edi.util:addICEnvelope service if you are creating another
kind of EDI document. For more information about adding UN/
EDIFACT envelopes, see "Adding UN/EDIFACT Envelopes" on
page 407.
8 Add your own logic or invoke a service that you create to send the
EDI document outbound.
When you use the pub.schema:validate service, you must have an IS document type that
defines the structure of the internal-format document. For more information about the
pub.schema:validate service, see the webMethods Integration Server Built-In Services Reference
for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 148
M
Odd Header
Creating Clients that Send EDI Documents to Integration Server
webMethods Module for EDI Installation and User’s Guide Version 9.12 149
M
Even Header
Creating Clients that Send EDI Documents to Integration Server
Address the request to the URL of the service that is to process the EDI document,
for example, http://rubicon:5555/invoke/myEDIServices.v1/processEDIDoc).
Set the content type to application/EDIstream in the HTTP request header.
Put the EDI document to be processed in the body of the message. The document
must be the only text that appears in the body of the request.
Important: Do not include manual line breaks at the end of the EDI document like
you might do with an XML document.
url String The URL of the service that you want to invoke to
process the EDI document.
Example: http://rubicon:5555/invoke/
myEDIServices.v1/processEDIDoc
loadAs String The data type of the input data source. Specify
one of the following:
bytes. The document data source is a byte[].
Parameter Value
webMethods Module for EDI Installation and User’s Guide Version 9.12 150
M
Odd Header
Creating Clients that Send EDI Documents to Integration Server
Name Content-type
Also, the client can set any optional HTTP variables, such as authorization information,
that are required by your application.
Note: The root directory for this operation is your Integration Server's namespace
directory (ns), not the root directory of the target machine. Therefore, if
you want to send a file to a service in the myEDIServices.v1 folder, you
use \ns\myEDIServices\v1\ServiceName as the path to that service,
webMethods Module for EDI Installation and User’s Guide Version 9.12 151
M
Even Header
Creating Clients that Send EDI Documents to Integration Server
Send the EDI document to this directory using the following put command:
putlocalFileName filename ;content type :content sub-type
For example,
put x12_850 x12_850;application:EDIstream
In this example, the local EDI document's name is X12_850, the document's content
type is application, and the document's content sub-type is EDIstream.
localfile String The name of the source file containing the EDI
document, for example, x12_850.
webMethods Module for EDI Installation and User’s Guide Version 9.12 152
M
Odd Header
Creating Clients that Send EDI Documents to Integration Server
For example,
x12_850;application:EDIstream
Content type Content type that you want Integration Server to use for
documents that are placed in the Monitoring Directory. Specify
a content type that the Module for EDI recognizes. For more
webMethods Module for EDI Installation and User’s Guide Version 9.12 153
M
Even Header
Creating Clients that Send EDI Documents to Integration Server
For general steps to configure a File Polling listener port, see the webMethods Integration
Server Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 154
M
Odd Header
Creating Clients that Send EDI Documents to Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 155
M
Even Header
Creating Clients that Send EDI Documents to Trading Networks
Overview
If you want to process your EDI documents through webMethods Trading Networks
(Trading Networks), create a client to Integration Server that submits the documents to
Trading Networks. For more information about creating clients, see the chapter about
creating client code in the webMethods Service Development Help for your release. For
more information about using clients for inbound EDI document processing when you
are using Trading Networks with Module for EDI, see the webMethods Module for EDI
Concepts Guide.
The client you create must:
Send the document to Integration Server using a content type that Module for EDI
handles. For more information, see "Content Type to Use" on page 156.
Invoke the appropriate service to handle the document.
Use HTTP, HTTPS, FTP, File Polling, or EDIINT to transport the document to
Integration Server. For more information, see one of the following sections in this
chapter:
"Sending EDI Documents to Trading Networks via HTTP/S" on page 158
"Sending EDI Documents to Trading Networks via FTP" on page 159
"Sending EDI Documents to Trading Networks via File Polling" on page 160
For more information about using EDIINT, see the webMethods Module for EDIINT
Installation and User’s Guide.
webMethods Module for EDI Installation and User’s Guide Version 9.12 156
M
Odd Header
Creating Clients that Send EDI Documents to Trading Networks
Note: For backward compatibility, Module for EDI also has content handlers to
accept documents with the content types application/EDI, application/X12,
and application/UNEDIFACT. With these content types, the Module for
EDI content handler must convert the document to a String that it places in
the pipeline. This can potentially consume a lot of pipeline space and use a
significant amount of memory. As a result, it is recommended that you use
the application/EDIstream content type because it conserves system memory.
When you use one of the application/x-wmedi... content types, Integration Server passes
the document to the Module for EDI content handler as an InputStream. The content
handler removes the return and new line characters as specified by the content type.
Then the content handler forms the pipeline with the edidata parameter and assigns this
parameter as the pointer to InputStream.
webMethods Module for EDI Installation and User’s Guide Version 9.12 157
M
Even Header
Creating Clients that Send EDI Documents to Trading Networks
If your client uses EDIINT, see webMethods Module for EDIINT Installation and User’s
Guide for information about how to create the client and the service the client is to
invoke.
loadAs String The data type of the input data source. Specify
one of the following:
bytes. The document data source is a byte[]
webMethods Module for EDI Installation and User’s Guide Version 9.12 158
M
Odd Header
Creating Clients that Send EDI Documents to Trading Networks
Also, the client can set any optional HTTP variables, such as authorization information,
that are required by your application.
webMethods Module for EDI Installation and User’s Guide Version 9.12 159
M
Even Header
Creating Clients that Send EDI Documents to Trading Networks
localfile String The name of the source file containing the EDI
document, for example, x12_850
webMethods Module for EDI Installation and User’s Guide Version 9.12 160
M
Odd Header
Creating Clients that Send EDI Documents to Trading Networks
To add a File Polling listener port that submits documents to Trading Networks, set
the Processing Service to wm.tn:receive rather than identify a service that you created to
process the EDI documents.
When seing the value of the Content Type field, you can use any of the content types
listed in "Content Type to Use" on page 156.
webMethods Module for EDI Installation and User’s Guide Version 9.12 161
M
Even Header
Creating Clients that Send EDI Documents to Trading Networks
sending each document. Use either the wm.tn:receive service or wm.tn.doc.xml:routeXml service
to send the document. Then, after each invocation of either of these services, drop the
editn_env parameter from the pipeline.
webMethods Module for EDI Installation and User’s Guide Version 9.12 162
M
Odd Header
Handling Large Documents When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 163
M
Even Header
Handling Large Documents When Using Trading Networks
Overview
A large EDI document is defined as either an EDI document that contains many
interchanges, many groups, and many transactions, or as a transaction that contains
many line items. Typically, when using webMethods Module for EDI (Module for EDI)
with webMethods Trading Networks (Trading Networks), Module for EDI uses the
Trading Networks large document seings.
Tip: To simplify large document handling for all of your documents, you might
choose to assign identical values to some or all of the Module for EDI and
Trading Networks large document seings.
However, some services provided with the WmEDI package process large documents
differently. When these services are invoked, Module for EDI uses the Module for EDI
large document seings described in "Configuring Module for EDI for Large Document
Handling" on page 164.
The following services use the Module for EDI large document seings. You might
invoke these services from a Trading Networks processing rule.
For ANSI X12 and UN/EDIFACT documents:
wm.b2b.edi:envelopeProcess
wm.b2b.edi:convertToValues
wm.b2b.edi.util:generateFA
For TRADACOMS and VDA documents:
wm.b2b.edi.tradacoms:convertToValues
webMethods Module for EDI Installation and User’s Guide Version 9.12 164
M
Odd Header
Handling Large Documents When Using Trading Networks
Property Description
For more information about Integration Server properties, see the webMethods
Integration Server Administrator’s Guide for your release.
3. Click Save Changes.
For more information about configuring Trading Networks for large document
handling, see the webMethods Trading Networks Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 165
M
Even Header
Handling Large Documents When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 166
M
Odd Header
Handling Large Documents When Using Trading Networks
For more information about configuring the EDIBigDocThreshold property for large
document handling, see "Defining Module for EDI Properties" on page 26.
Create clients that send documents to Integration Server as InputStreams.
Convert documents to IData objects iteratively by using the iterator parameter in the
wm.b2b.edi:convertToValues service to process a document a segment or section at a time.
webMethods Module for EDI Installation and User’s Guide Version 9.12 167
M
Even Header
webMethods Module for EDI Installation and User’s Guide Version 9.12 168
M
Odd Header
Generating Acknowledgments
9 Generating Acknowledgments
■ Overview ..................................................................................................................................... 170
■ Generating Functional Acknowledgments .................................................................................. 170
■ Before You Can Generate a Functional Acknowledgment ........................................................ 172
■ Determining How Module for EDI Reports FA Status ................................................................ 173
■ When to Invoke the generateFA Service ................................................................................... 180
■ Output from the generateFA Service ......................................................................................... 183
■ Tracking Late Functional Acknowledgments .............................................................................. 185
■ Generating Interchange Acknowledgments ............................................................................... 187
webMethods Module for EDI Installation and User’s Guide Version 9.12 169
M
Even Header
Generating Acknowledgments
Overview
Module for EDI can generate functional acknowledgments (FAs) and interchange
acknowledgments (TA1s) both manually and automatically. The following table lists
what to use to generate acknowledgments and where to find more information.
webMethods Module for EDI Installation and User’s Guide Version 9.12 170
M
Odd Header
Generating Acknowledgments
ANSI X12 ANSI X12 997 The module generates an FA for each
group in the inbound document.
UCS
VICS
The generated FA reports one of the following FA statuses for a transaction, group, or
UN/EDIFACT interchange:
N N Not Allowed
R R Rejected
A A Accepted
NR NR Not Required
Note: The rest of this chapter uses the FA statuses reported when the ANSI X12 997
standard is used. Refer to this table to see the related FA status that is reported
when the UN/EDIFACT CONTRL standard is used.
The value that the generateFA service reports for the FA status depends on whether
a child transaction is allowed in its envelope and the values you specify for the
syntaxErrorStatus , logicalErrorStatus , and childTransactionRejectedStatus input
parameters. For more information, see "Determining How Module for EDI Reports FA
Status" on page 173.
webMethods Module for EDI Installation and User’s Guide Version 9.12 171
M
Even Header
Generating Acknowledgments
The generateFA service does not specify what to do with the FA that it creates. Therefore,
in addition to invoking the generateFA service to generate the FA, your service should also
invoke a service to deliver the FA to the sender of the original document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 172
M
Odd Header
Generating Acknowledgments
For more information about this property, see "Defining Module for EDI Properties"
on page 26.
3. Click Save.
webMethods Module for EDI Installation and User’s Guide Version 9.12 173
M
Even Header
Generating Acknowledgments
webMethods Module for EDI Installation and User’s Guide Version 9.12 174
M
Odd Header
Generating Acknowledgments
syntaxErrorStatus Parameter
The syntaxErrorStatus input parameter to the generateFA service indicates how you want
the service to report the syntax error status. syntaxErrorStatus indicates whether syntax
errors exist in the transaction, group, or UN/EDIFACT interchange, for example, missing
mandatory elements, violation of syntax rules, invalid field lengths, code list violations,
or segment repeat counts exceeded.
The following table describes the values of the syntaxErrorStatus input parameter and
their meanings:
webMethods Module for EDI Installation and User’s Guide Version 9.12 175
M
Even Header
Generating Acknowledgments
logicalErrorStatus Parameter
The logicalErrorStatus input parameter to the generateFA service indicates how you want
the service to report the logical error status. The logical error status indicates whether
the transaction, group, or UN/EDIFACT interchange is malformed. For example:
The control number in a header does not match the control number in the
corresponding trailer.
The segment count in a trailer does not have an accurate group, transaction, or
segment count.
The following table describes the values of the logicalErrorStatus input parameter and
their meanings:
childTransactionRejectedStatus Parameter
The childTransactionRejectedStatus input parameter to the generateFA service indicates
how you want the service to report the child transaction rejected status. The child
webMethods Module for EDI Installation and User’s Guide Version 9.12 176
M
Odd Header
Generating Acknowledgments
webMethods Module for EDI Installation and User’s Guide Version 9.12 177
M
Even Header
Generating Acknowledgments
Transaction FA Status
The generateFA service uses the most restrictive value in the following list when seing
the FA status for a transaction:
Whether the transaction is an FA (997 or CONTRL). For more information about
transactions that are not allowed, see "Determining If a Transaction Is an FA or If a
Group Contains an FA" on page 175.
Syntax error status. For more information about how the module sets the syntax
error status, see " syntaxErrorStatus Parameter" on page 175.
Logical error status. For more information about how the module sets the logical
error status, see " logicalErrorStatus Parameter" on page 176.
The following table shows the possible combinations of values and how the generateFA
service sets the FA status for a transaction based on these values.
Module for EDI When the transaction has the following statuses...
reports this
FA status for a Is transaction Is the Syntax Error Logical Error
transaction... allowed? transaction an Status Status
FA?
webMethods Module for EDI Installation and User’s Guide Version 9.12 178
M
Odd Header
Generating Acknowledgments
Group FA Status
The generateFA service uses the most restrictive value in the following list when seing
the FA status for a group:
Whether the group is "FA" or "CONTRL". For more information, see "Determining If
a Transaction Is an FA or If a Group Contains an FA" on page 175.
Syntax error status. For more information about how the module sets the syntax
error status, see " syntaxErrorStatus Parameter" on page 175.
Logical error status. For more information about how the module sets the logical
error status, see " logicalErrorStatus Parameter" on page 176.
Child transaction rejected status. For more information about how the module sets
the child transaction rejected error status, see " childTransactionRejectedStatus
Parameter" on page 176.
The following table shows the possible combinations of values and how the generateFA
service sets the FA status for a group based on these values.
Module for EDI When the group has the following statuses...
reports this
FA status for a Is group Syntax Error Logical Error Child
group... either "FA" or Status Status Transaction
"CONTRL"? Rejected Status
webMethods Module for EDI Installation and User’s Guide Version 9.12 179
M
Even Header
Generating Acknowledgments
Module for EDI When the interchange has the following statuses...
reports this FA
status for an Syntax Error Status Logical Error Status Child Transaction
interchange... Rejected Status
Accepted, But Statuses are either Accepted, But Errors Were Noted OR
Errors Were Accepted, AND at least one status is Accepted, But Errors
Noted Were Noted
Not Required Any syntax error Any logical error Any child
status status transaction
rejected status
webMethods Module for EDI Installation and User’s Guide Version 9.12 180
M
Odd Header
Generating Acknowledgments
document all at once or iteratively, segment by segment. For more information about
these two options, see "Determining Which Process Method to Use" on page 193.
For more information about the wm.b2b.edi.util:generateFA service, see webMethods Module
for EDI Built-In Services Reference.
After invoking the generateFA service to generate the FA, add logic or invoke a service
that you create to deliver the FA to the sender of the original EDI document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 181
M
Even Header
Generating Acknowledgments
Note: If you are using previously parsed and validated data as input to the
generateFA service, the input data must be the correctly formaed results of
proper services, that is, the error array must be included in the results.
The following diagram shows an updated version of the service that was illustrated
in "Processing the Entire Document at One Time" on page 194 which includes the
invocation of the generateFA service. In the Pipeline section of the screen, the Values
parameter in Pipeline In is the output from the envelopeProcess service. The ICValues
parameter in Service In is the input parameter to the generateFA service that accepts a
parsed EDI document. In the Pipeline section of the screen, map the Values parameter to
the ICValues parameter, as shown.
After invoking the generateFA service to generate the FA, add logic or invoke a service
that you create to deliver the FA to the sender of the original EDI document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 182
M
Odd Header
Generating Acknowledgments
parameter is placed in the pipeline by an EDI content handler. For more information
about the edidata parameter, see "Inputs to Your Service" on page 192.
The following diagram shows an updated version of the service illustrated in
"Processing the Document Iteratively, Segment by Segment" on page 199, which
includes invocation of the generateFA service. Note that in the Pipeline section of the
screen, the edidata parameter in Pipeline In is mapped to the edidata parameter in Service
In.
After invoking the generateFA service to generate the FA, add logic or invoke a service
that you create to deliver the FA to the sender of the original EDI document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 183
M
Even Header
Generating Acknowledgments
Because the generateFA service does not specify what to do with the FA that it has created,
any service that you use or develop that calls the generateFA service must also invoke a
service to deliver the FA to the original sender.
Each FA contains a code that indicates whether the validation was successful. This code
appears in a different position for each level. For example, the code in a Transaction Set
level FA will appear in AK501. For more information about the location of this code in
your documents, see the documentation for your EDI standard and version.
The appropriate position of the transaction, group, or UN/EDIFACT interchange
will contain one of the codes listed in the table of possible FA statuses in "Generating
Functional Acknowledgments" on page 170.
webMethods Module for EDI Installation and User’s Guide Version 9.12 184
M
Odd Header
Generating Acknowledgments
webMethods Module for EDI Installation and User’s Guide Version 9.12 185
M
Even Header
Generating Acknowledgments
Example
In this example, consider that partner A is the sender and partner B is the receiver.
Partner A wants to track the late FAs for PO and IN groups of X12 standard documents.
Partner A must:
1. Set the LateFATime variable for both the LateFA/LateFATime and the LateFA/
LateFAForX12Group partner-specific EDITPA variables
2. Set the FAReconciliation EDITPA variable to true in the EDITPA where partner A is
the receiver, so that the module can map the late FAs to the original document and
track the late FAs
Partner A sets the LateFA/LateFATime and the LateFA/LateFAForX12Group partner-
specific EDITPA variables as follows:
LateFATime Value
PO 2
IN 3
webMethods Module for EDI Installation and User’s Guide Version 9.12 186
M
Odd Header
Generating Acknowledgments
When partner A sends X12 documents to partner B, the module sets the Late FA
aribute of the original document in Trading Networks to Y when any of the following
conditions occur:
Partner A receives the functional acknowledgment for the PO group more than two
minutes later.
Partner A receives the functional acknowledgment for the IN group more than three
minutes later.
Partner A receives the functional acknowledgments for any other group more than
one minute later.
Module for EDI sets the Late FA aribute of the original document in Trading Networks
to N when the FA is not late.
webMethods Module for EDI Installation and User’s Guide Version 9.12 187
M
Even Header
Generating Acknowledgments
Field Description
Interchange date Indicates the date, in YYMMDD format, when the interchange
was prepared. For example, if the interchange was prepared on
January 2, 2014, the interchange date would be 140102.
Interchange time Indicates the time, in 24-hour format (HHMM), when the
interchange was prepared.
R—Rejected
webMethods Module for EDI Installation and User’s Guide Version 9.12 188
M
Odd Header
Generating Acknowledgments
Field Description
TA1 code A three-digit number that corresponds to a TA1 code. For more
information about TA1 codes, see "TA1 Status and TA1 Code" on
page 218.
webMethods Module for EDI Installation and User’s Guide Version 9.12 189
M
Even Header
webMethods Module for EDI Installation and User’s Guide Version 9.12 190
M
Odd Header
Before Creating the Service to Process EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 191
M
Even Header
Before Creating the Service to Process EDI Documents
Overview
The WmEDI package of Module for EDI provides built-in services that support
functions required by the EDI standard. When you create the service that processes
your EDI documents, you add logic to invoke the Module for EDI built-in services.
This chapter contains information about how to create the service to process an EDI
document. For information about how to process an inbound EDI document, see the
webMethods Module for EDI Concepts Guide.
Before you create the service to process EDI documents that are sent to your Integration
Server, you must create:
The flat file schema that defines the structure of the EDI document to process.
Module for EDI uses the flat file schema for parsing, converting, and validating an
inbound EDI document.
Optionally, the flat file schema that defines the structure of the internal-format
document. This is the document that your service will send to your internal
application (for example, a back-end system). Module for EDI provides a service that
you can have your service invoke to create your internal-format document based
on the flat file schema. Use Software AG Designer to create the flat file schema. For
more information, see Flat File Schema Developer’s Guide.
If you use this content type... The data type of edidata is...
application/EDIstream InputStream
Note: It is recommended that your client use the content type application/
EDIstream. The other content types (application/EDI, application/X12, and
application/UNEDIFACT) are provided for backward compatibility. For more
information, see "Defining the Content Type to Use" on page 144.
webMethods Module for EDI Installation and User’s Guide Version 9.12 192
M
Odd Header
Before Creating the Service to Process EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 193
M
Even Header
Before Creating the Service to Process EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 194
M
Odd Header
Before Creating the Service to Process EDI Documents
Flow Description
Operation
webMethods Module for EDI Installation and User’s Guide Version 9.12 195
M
Even Header
Before Creating the Service to Process EDI Documents
Flow Description
Operation
that is used to access the data. The service assigns the reference
ID for the transaction set contents to the element _RID_ , which
is in the Values IData object under the transaction set header.
For example, for a UN/EDIFACT document that contains group
envelopes, the reference ID would be in the elements Values/UNB/
UNG/UNH/_RID_ . For more information about how Module for
EDI handles large documents, see "Handling Large Documents
When Using Trading Networks " on page 163.
Additionally, the envelopeProcess service can perform an optional
check for basic compliance on the interchange envelope. You
specify whether to perform the compliance check by seing
two optional input parameter for the envelopeProcess service. For
more information about the compliance check, see "Performing
Envelope Validation and Compliance Checks" on page 198.
2 Add your own logic to handle errors that might result from
executing the wm.b2b.edi:envelopeProcess service, for example errors
with the compliance check.
3 Loop through the interchange envelope headers. The data for the
interchange headers is within the Values IData object. The sample
code shows the loop over Values/<InterchangeHeader> . If you are
processing:
ANSI X12 document, the interchange headers are in Values/ISA .
UN/EDIFACT document, the interchange headers are in Values/
UNB .
4 Loop through the group envelope headers. The data for the group
headers is within the Values IData object. The sample code shows
the loop over Values/<InterchangeHeader>/GroupHeader . If you are
processing:
ANSI X12 document, the group headers are in Values/ISA/GS .
UN/EDIFACT document and the document has group headers,
the group headers are in Values/UNB/UNG .
If you are processing an UN/EDIFACT document that
might not contain group headers, your processing will
need to be slightly different. For sample code, see the
sampleServices:UNEDIFACTToValues in the WmEDIsamples package,
which is located under Code Samples in the Technical community
area of the Empower Product Support website at hps://
webMethods Module for EDI Installation and User’s Guide Version 9.12 196
M
Odd Header
Before Creating the Service to Process EDI Documents
Flow Description
Operation
empower.softwareag.com. The samples in this folder have been
certified by Software AG.
5 Loop through the transaction set headers. The data for the
transaction set headers is within the Values IData object. The
sample code above shows the loop over Values/<InterchangeHeader>/
GroupHeader/<Transaction> . If you are processing:
ANSI X12 document, the transaction set headers are in Values/ISA/
GS/ST .
UN/EDIFACT document, the transaction set headers are in Values/
UNB/UNG/UNH.
The remaining steps specify processing to perform for the content of each
transaction.
Flow Description
Operation
webMethods Module for EDI Installation and User’s Guide Version 9.12 197
M
Even Header
Before Creating the Service to Process EDI Documents
Flow Description
Operation
10 Add your own logic or invoke a service that you create to send
the internal-format document to your internal application, for
example, a back-end system.
validate Validate the interchange envelope. For ANSI X12 and UN/
EDIFACT standards this includes validating field lengths,
code lists, ranges, and partitions. If the service finds any
errors, it records them in the errorArray output parameter.
The interchange envelopes are validated against the EDI
flat file schema for the EDI document. Module for EDI ships
webMethods Module for EDI Installation and User’s Guide Version 9.12 198
M
Odd Header
Before Creating the Service to Process EDI Documents
If you set both the complianceCheck and validate parameters to true, the envelopeProcess
service performs the interchange envelope validation first, followed by the compliance
check.
Step Description
1 If you created the EDI flat file schema from a SEF file, add the elements
for the interchange envelopes and group envelopes into the flat file
structure.
SEF files do not describe these elements. Your service will execute the
wm.b2b.edi:convertToValues service against the entire EDI document rather
than just a transaction set or file. As a result, the flat file schema needs to
reflect the envelope structure.
webMethods Module for EDI Installation and User’s Guide Version 9.12 199
M
Even Header
Before Creating the Service to Process EDI Documents
Step Description
2 Update the flat file structure to reflect how you want the convertToValues
service to return segments.
When you execute the convertToValues service with the iterator input
parameter set to true, the convertToValues service uses the flat file structure
to determine the number of segments to process into an IData object. It
starts processing at a top-level element and processes all of its children
into an IData object in one invocation. For example, if you want the
first invocation to return only the ISA header information, update the
structure as follows:
ISA
ISA01
ISA02
ISA03
ISA04
ISA05
ISA06
ISA07
ISA08
ISA09
ISA10
ISA11
ISA12
ISA13
ISA14
ISA15
ISA15
GS
.
.
.
3 Identify the repeating sections of the EDI document that you want to
loop over to process and remove these sections from the flat file schema
structure. For example, in an ANSI X12 810 document, you might want
to loop over the IT1 (line item) segments because you want the line items
included in the invoice.
webMethods Module for EDI Installation and User’s Guide Version 9.12 200
M
Odd Header
Before Creating the Service to Process EDI Documents
Step Description
4 During execution of the convertToValues service with the updated flat file
schema, when the service encounters sections of the document that are
not defined in the flat file schema structure, it places those sections as
unparsed in the returned IData object. The unparsed sections will be
in either an element named unDefData , or in an element named _RID_
if the document is considered large. For more information about large
documents, see "Handling Large Documents When Using Trading
Networks " on page 163.
webMethods Module for EDI Installation and User’s Guide Version 9.12 201
M
Even Header
Before Creating the Service to Process EDI Documents
Step Description
5 Create new flat file schemas for the sections that you removed from the
EDI flat file schema.
In your service, you will perform a second pass of the convertToValues
service for the unparsed sections of the document. When you invoke the
convertToValues service for the second pass, the input flat file schema is this
new flat file schema that you are creating that defines the structure of the
data left unparsed, that is, a repeating section of the document that you
want to process iteratively.
webMethods Module for EDI Installation and User’s Guide Version 9.12 202
M
Odd Header
Before Creating the Service to Process EDI Documents
Flow Description
operation
webMethods Module for EDI Installation and User’s Guide Version 9.12 203
M
Even Header
Before Creating the Service to Process EDI Documents
Flow Description
operation
For example, the first BRANCH under the call to the convertToValues
service checks for an ISA element in the returned IData object,
EDIValues . If EDIValues/ISA exists and is not null, the flow service
executes the logic under the BRANCH on ‘EDIVAlues/ISA' flow
operation.
webMethods Module for EDI Installation and User’s Guide Version 9.12 204
M
Odd Header
Before Creating the Service to Process EDI Documents
Flow Description
operation
10 Add your own logic or invoke a service that you create to send
the internal-format document to your internal application, for
example, a back-end system.
Note: If you want to perform the interchange (or transmission) envelope validation
and the compliance check, you need to add logic to your service to do so.
For more information, see "Performing Envelope Validation and Compliance
Checks" on page 198.
Samples
For samples, see the flow services in the sampleServices folder of the WmEDIsamples
package, which is located under Code Samples in the Technical community section of
the Empower Product Support website at hps://empower.softwareag.com. The samples
in this folder have been certified by Software AG.
The sampleServices:X12toValues service illustrates how to use the
wm.b2b.edi:convertToValues service to convert an ANSI X12 document to an IData object
at one time and process it.
The sampleServices:UNEDIFACTtoValues service illustrates how to use the
wm.b2b.edi:convertToValues service to convert a UN/EDIFACT document to an IData
object at one time and process it.
webMethods Module for EDI Installation and User’s Guide Version 9.12 205
M
Even Header
Before Creating the Service to Process EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 206
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 207
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Overview
This chapter describes how to set up basic inbound processing when using Trading
Networks for all EDI standards except TRADACOMS.
Processing EDI documents using Module "Using Module for EDI Decoupled
for EDI decoupled from Trading Networks from Trading Networks " on page
399
webMethods Module for EDI Installation and User’s Guide Version 9.12 208
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
the document aributes that are available, see " Trading Networks Aributes and
EDI Documents" on page 211.
Actions that Trading Networks is to take against the document. You will typically
want to use the Execute a Service action in a processing rule to invoke a service that
you create to process the Interchange, Group, or Transaction document. For more
information about defining processing rules and creating a service to process an
Interchange, Group, or Transaction document, see "Defining Processing Rules to
Process Inbound EDI Documents" on page 222.
For more information about processing EDI documents and business processes,
including an illustration of how EDI documents are passed to a business process, see
webMethods Module for EDI Concepts Guide.
For more information about Trading Networks document aributes and processing
rules, see the Trading Networks Concepts Guide and the webMethods Trading Networks
Administrator’s Guide for your release.
Step Description
1 Define the TN document types for the EDI documents that you want to
process. For instructions, see "Defining TN EDI Document Types" on
page 37.
When you define the TN document types for EDI documents, Module
for EDI creates the flat file schemas that define the structure of the
EDI documents. Module for EDI uses the flat file schemas for parsing,
converting, and validating the structure of inbound EDI documents.
2 Optional. Create the flat file schema that defines the structure of an
internal-format document. Use Designer to create the flat file schema.
For more information about creating a flat file schema, see the Flat File
Schema Developer’s Guide.
Note: You use the flat file schema created in this step if the service that
you create to process an Interchange, Group, or Transaction
document creates an internal-format document. Module for EDI
provides a service that you can invoke to create the internal-
format document based on the flat file schema.
3 Define profiles for the senders and receivers in the inbound EDI
document. For more information about how to create profiles, see
webMethods Module for EDI Installation and User’s Guide Version 9.12 209
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Step Description
"Defining Trading Partner Profiles" on page 59 and the webMethods
Trading Networks Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 210
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
contains the syntax version number, the syntax release number, and the directory
version number. The name of the least specific schema contains only the syntax version
number.
The module searches for the appropriate flat file schema to use for the document
validation of each incoming EDIFACT document in the following search order priority:
1. EDIFFSchema.Standard .envelope:VSyntaxVersionNumber_DirectoryVersionNumber_Syntax
ReleaseNumber schema
2. EDIFFSchema.Standard .envelope:VSyntaxVersionNumber_DirectoryVersionNumber
schema
3. EDIFFSchema.Standard .envelope:VSyntaxVersionNumber schema
4. wm.b2b.editn.rec:EDIHEADERS (default document type)
Module for EDI uses the most specific schema that exists. If the module does not find
any of the listed schemas, the module uses the default wm.b2b.editn.rec:EDIHEADERS
document type. Only the wm.b2b.editn.rec:EDIHEADERS document type is available when
you install the module. You must install the more specific EDIFACT schemas.
webMethods Module for EDI Installation and User’s Guide Version 9.12 211
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
At run time, Module for EDI uses information from the EDI document being processed
to set values for some of the system aributes and custom aributes.
You can use aributes to:
Process EDI documents using content-based processing rules, that is, select a
processing rule for a document based on the value of the aributes extracted from
the document.
Search for saved documents based on aribute values.
DocumentID
The DocumentID system aribute is an identifier of the document. Module for EDI sets
the DocumentID as follows:
webMethods Module for EDI Installation and User’s Guide Version 9.12 212
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
GroupID
Module for EDI hierarchically assigns the GroupID system aribute so that by viewing
the GroupID, you can determine the envelope to which an element originally belonged.
The module sets the GroupID as follows:
Transaction The group control number, so that you can determine to which
group the Transaction document belongs. For example, the
sample’s GroupID would be set to 1, which is the value of GS06.
ConversationID
The ConversationID system aribute is an identifier that links all documents that are part
of the same business process (also called a conversation). That is, all documents in the
same business process use the same ConversationID.
Trading Networks can extract ConversationIDs from EDI Envelope, Group, and
Transaction documents and use them to pass documents to webMethods Process Engine
after Trading Networks performs the actions identified by a processing rule. Process
Engine is the facility of Integration Server that executes and manages business processes.
For more information, see the webMethods Trading Networks Administrator’s Guide for
your release.
For more information about assigning conversation IDs to EDI documents and including
EDI documents in business processes, see "Including Documents in a Business Process"
on page 361.
webMethods Module for EDI Installation and User’s Guide Version 9.12 213
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
2. For Transaction document types, enable Module for EDI to assign ConversationIDs by
creating an instance ID query that specifies the value to use for the conversation ID.
Note: By default, Module for EDI assigns the conversation IDs in Interchange
and Group documents. Because these documents have a conversation ID,
they are passed to Process Engine.
webMethods Module for EDI Installation and User’s Guide Version 9.12 214
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
TA1 Status and TA1 "TA1 Status and TA1 Code" on page 218
Code
For information about custom aributes that Module for EDI sets when using
TRADACOMS, see "Custom Aributes that Module for EDI Sets When Using
TRADACOMS" on page 242.
EDI Outbound FA
Module for EDI sets this aribute to indicate whether the document it generated is an
outbound FA. The value of the EDI Outbound FA custom aribute is set to:
true for an outbound FA that the module generated
EDI Status
Module for EDI sets this aribute based on the outcome of optional inbound processing,
that is, inbound control number validation and automatic FA generation. The module
only performs this optional inbound processing when the EDITPA indicates to do so.
webMethods Module for EDI Installation and User’s Guide Version 9.12 215
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
For more information, see "Optional Inbound Processing When Using Trading Networks
" on page 257.
If the EDITPA indicates to do so, the module first performs inbound control number
validation. If the module determines that a document contains:
A duplicate control number, it sets this aribute to Duplicate Control Number.
An out-of-sequence control number, it sets this aribute to Out of Sequence
Control Number.
Regardless of whether control number validation was performed, Module for EDI will
generate the FA if the EDITPA indicates to do so. If there is an unacceptable FA status,
the module sets the EDI Status aribute based on the FA status as follows:
Generate FA—Not Allowed
Generate FA—Rejected
Generate FA—Partially Accepted
Generate FA—Accepted, But Errors Were Noted
If the control numbers are valid and the FA status is acceptable, Module for EDI sets
the EDI Status aribute to Processed. Additionally, if the module does not validate the
control number nor generate the FAs, it sets the EDI Status aribute to Processed.
EDI Version
Module for EDI sets this aribute to the version of the EDI standard that the document
uses (for example, 4010).
For Interchange documents, the module only sets the Envelope CntrlNum Status
aribute.
For Group documents, the module sets the following aributes:
Envelope CntrlNum Status to indicate the status of the associated Interchange
document
Group CntrlNum Status to indicate the status of the associated Group document
For Transaction documents, the module sets the following aributes:
Envelope CntrlNum Status to indicate the status of the associated Interchange
document
Group CntrlNum Status to indicate the status of the associated Group document
webMethods Module for EDI Installation and User’s Guide Version 9.12 216
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Note: For UN/EDIFACT Transaction documents, Module for EDI may also set
this aribute to Not Present.
EDI FA Status
The EDI FA Status aribute indicates the status of a functional acknowledgment (FA) that
Module for EDI has returned to the sender of an inbound document.
For inbound ANSI X12 Group documents and UN/EDIFACT Interchange
documents, this aribute may return the following values:
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 217
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Value Description
For functional acknowledgments (for example, ANSI X12 997s and UN/EDIFACT
CONTRL documents), this aribute may return the following values:
Value Description
Duplicated Module for EDI has one or more other documents recorded
in the EDITRACKING table that match the FA for this
document.
DUP_FA Module for EDI received more than one FA that matches this
document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 218
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
001 The interchange control number in the header and trailer do not
match. The acknowledgment uses the value in the header.
webMethods Module for EDI Installation and User’s Guide Version 9.12 219
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
028 The delivery date in the Deferred Delivery Request is not valid.
029 The delivery time in the Deferred Delivery Request is not valid.
030 The delivery time code in the Deferred Delivery Request is not
valid.
webMethods Module for EDI Installation and User’s Guide Version 9.12 220
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Create a service that sets the "Seing the Aribute Values at Run
aribute values at run time. Time" on page 221.
Define a processing rule that uses "Defining a Processing Rule that Uses
the custom aributes. Your Custom Aribute as Criteria" on
page 222.
webMethods Module for EDI Installation and User’s Guide Version 9.12 221
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Note: When ordering your processing rules, be sure to list the processing rule that
uses your custom aributes as criteria before the processing rule that sets the
aribute values. This ensures that Trading Networks will skip the processing
rule that uses the custom aribute criteria the first time the document is
processed but select it the second time.
webMethods Module for EDI Installation and User’s Guide Version 9.12 222
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
selection criteria that Trading Networks uses to determine which processing rule to
apply.
The processing rules that you define are based on the splitOption variable that you set in
the EDITPA.
Interchange document
Group
Group documents
Interchange document
Transaction
Group documents
Each type of Transaction document (for
example, ANSI X12 850, ANSI X12 810, UN/
EDIFACT INVOIC, or UN/EDIFACT ORDERS)
Define processing rules in My webMethods. For more information, see the webMethods
Trading Networks Administrator’s Guide for your release.
Use this criterion... To have Trading Networks select a processing rule based on...
webMethods Module for EDI Installation and User’s Guide Version 9.12 223
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Use this criterion... To have Trading Networks select a processing rule based on...
Note: Module for EDI does not set the User Status system aribute, so you should
not use the User Status criterion.
webMethods Module for EDI Installation and User’s Guide Version 9.12 224
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
If a preprocessing action fails, Trading Networks records the error and continues
processing. Trading Networks records the error in the errors variable in the
BizDocEnvelope, which is in the bizdoc pipeline variable. Subsequent processing that
you add, for example a service invoked by the Execute a Service processing action, can
access the error information.
Note: You cannot use the Verify Digital Signature preprocessing action because
values for the SignedBody and Signature system aributes are not set for EDI
documents.
webMethods Module for EDI Installation and User’s Guide Version 9.12 225
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 226
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
The services you create can use information that is in the pipeline. For information about
using data in the pipeline when your service is invoked, see "Information in the Pipeline
that Your Service Can Access" on page 228.
webMethods Module for EDI Installation and User’s Guide Version 9.12 227
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Variable Description
Aributes The custom aributes that were set for the document. For
information about the custom aributes that Module for EDI
sets, see "Custom Aributes that Module for EDI Sets When
Using TRADACOMS" on page 242.
Errors The errors that Trading Networks and Module for EDI
encountered while processing the document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 228
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Variable Description
Key Description
Key Description
Key Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 229
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Variable Description
docTypeIDString Internal ID of
the TN document type
used.
Flow Description
operation
webMethods Module for EDI Installation and User’s Guide Version 9.12 230
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Flow Description
operation
3 Map the data from the EDI transaction set into a document in internal
format.
Now that the transaction set is an IData object, you can access the
data in the transaction set to map it to an IData object for the internal-
format document. Depending on the complexity of your mapping
requirements, you might need to add more logic than a MAP flow
operation, or create a separate service to perform the mapping.
5 Branch based on the value of the EDI Processing Mode custom aribute.
This aribute is in the bizdoc/Aributes/EDI Processing Mode variable.
Module for EDI sets the value of the EDI Processing Mode custom aribute
based on the seing of the EDITPA processingMode variable. For more
information, see "processingMode Variable" on page 70.
webMethods Module for EDI Installation and User’s Guide Version 9.12 231
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Flow Description
operation
Flow Description
operation
webMethods Module for EDI Installation and User’s Guide Version 9.12 232
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Flow Description
operation
For more information about getTspace, see webMethods Module for EDI
Built-In Services Reference.
The remaining steps specify processing to perform for the content of each transaction.
Flow Description
operation
webMethods Module for EDI Installation and User’s Guide Version 9.12 233
M
Even Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Flow Description
operation
information about the wm.b2b.edi.util:getEDIstring service, see webMethods
Module for EDI Built-In Services Reference.
You must have an element that contains the entire transaction set,
including header and trailer, before you can invoke the next service,
wm.b2b.edi:convertToValues. This is because convertToValues uses a flat file
schema for the EDI transaction set that includes the transaction set
header and trailer. If you input data without the header and trailer,
convertToValues returns errors.
7 Map the data from the EDI transaction set into the internal format.
Now that the contents of the transaction set are an IData object, you
can access the data in the transaction set to map it to an IData object for
the internal-format document. Depending on the complexity of your
mapping requirements, you might need to add more logic than a MAP
flow operation, or create a separate service to perform the mapping.
9 Branch based on the value of the EDI Processing Mode custom aribute.
This aribute is in the bizdoc/Aributes/EDI Processing Mode variable.
Module for EDI sets the value of the EDI Processing Mode custom
webMethods Module for EDI Installation and User’s Guide Version 9.12 234
M
Odd Header
Preparing to Process Inbound Non-TRADACOMS Documents Using Trading Networks
Flow Description
operation
aribute based on the seing of the EDITPA processingMode variable.
For more information, see "processingMode Variable" on page 70.
webMethods Module for EDI Installation and User’s Guide Version 9.12 235
M
Even Header
webMethods Module for EDI Installation and User’s Guide Version 9.12 236
M
Odd Header
Processing Inbound TRADACOMS Documents Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 237
M
Even Header
Processing Inbound TRADACOMS Documents Using Trading Networks
Overview
This chapter specifically addresses processing inbound TRADACOMS documents using
Trading Networks. For information about processing inbound documents using any
other EDI standard, see "Preparing to Process Inbound Non-TRADACOMS Documents
Using Trading Networks " on page 207.
When webMethods Trading Networks (Trading Networks) receives an EDI document, it
passes it to an EDI recognizer that performs the initial processing. The EDI recognizer is
installed in Trading Networks when you install webMethods Module for EDI (Module
for EDI). You can use EDITPA variables to tailor how the EDI recognizer processes an
inbound EDI document. For more information, see "Specifying EDITPA Variables that
Affect Inbound Processing When Using TRADACOMS" on page 240.
To prepare the EDI document for the processing that you want to perform against it,
the EDI recognizer splits the original inbound EDI document based on the seing of
the TRADACOMS/splitOption variable in the EDITPA. The EDI recognizer can split the
original EDI document into Transmission, Batch, and/or File documents. After forming
the transmission, batch, and file documents, the EDI recognizer sends the documents to
Trading Networks for normal processing.
You define the processing that Trading Networks performs against transmission and
batch documents, and files by defining processing rules. Processing rules consist of:
Criteria that Trading Networks uses to select the appropriate processing rule for a
document. To set the criteria, you can use Trading Networks aributes along with
other information that Trading Networks records about a document, for example,
the TN document type used for the document. This allows you to set up criteria
for processing rules so that Trading Networks selects the correct processing rule
for your document. For example, you can set up criteria so that Trading Networks
selects a processing rule only if it is from specific senders. For more information
about the document aributes that are available, see " Trading Networks Aributes
and EDI Documents When Using TRADACOMS" on page 240.
Actions that Trading Networks is to take against the document. You will typically
want to use the Execute a Service action in a processing rule to invoke a service
that you create to process the Transmission, Batch, or File document. For more
information about defining processing rules and creating a service to process a
Transmission, Batch, or File document, see "Defining Processing Rules to Process
Inbound EDI Documents When Using TRADACOMS" on page 245.
Note: This chapter describes how to set up basic inbound processing when using
Trading Networks. For information about seing up to validate transmission
and/or batch control numbers, see "Optional Inbound Processing When Using
Trading Networks " on page 257.
webMethods Module for EDI Installation and User’s Guide Version 9.12 238
M
Odd Header
Processing Inbound TRADACOMS Documents Using Trading Networks
For more information about processing EDI documents and business processes,
including an illustration of how EDI documents are passed to a business process, see
webMethods Module for EDI Concepts Guide.
For more information about Trading Networks document aributes and processing
rules, see the Trading Networks Concepts Guide and the webMethods Trading Networks
Administrator’s Guide for your release.
Task Description
1 Define the TN document types for the EDI documents that you want to
process. For instructions, see "Defining TN EDI Document Types" on page
37.
When you define the TN document types for EDI documents, the flat file
schemas that define the structure of the EDI documents to process are
created. Module for EDI uses the flat file schemas for parsing, converting,
and validating the structure of an inbound EDI document.
2 Optional. Create the flat file schema that defines the structure of an
internal-format document. Use Designer to create the flat file schema. For
more information about creating a flat file schema, see Flat File Schema
Developer’s Guide.
Note: You use the flat file schema created in this step if the service that
you create to process a file, or a transmission or batch document
might create an internal-format document. Module for EDI provides
a service that you can invoke to create the internal-format document
based on the flat file schema.
3 Define profiles for the senders and receivers in the inbound EDI document.
For more information about creating profiles, see "Defining Trading
Partner Profiles When Using TRADACOMS" on page 107 and the
webMethods Trading Networks Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 239
M
Even Header
Processing Inbound TRADACOMS Documents Using Trading Networks
Task Description
Variables that Affect Inbound Processing When Using TRADACOMS" on
page 240.
webMethods Module for EDI Installation and User’s Guide Version 9.12 240
M
Odd Header
Processing Inbound TRADACOMS Documents Using Trading Networks
DocumentID
The DocumentID system aribute is an identifier of the document. Module for EDI sets
the DocumentID as follows:
GroupID
Module for EDI hierarchically assigns the GroupID system aribute so that by viewing
the GroupID, you can determine the envelope to which an element originally belonged.
The module sets the GroupID as follows:
webMethods Module for EDI Installation and User’s Guide Version 9.12 241
M
Even Header
Processing Inbound TRADACOMS Documents Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 242
M
Odd Header
Processing Inbound TRADACOMS Documents Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 243
M
Even Header
Processing Inbound TRADACOMS Documents Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 244
M
Odd Header
Processing Inbound TRADACOMS Documents Using Trading Networks
Defining a Processing Rule that Uses Your Custom Attribute as Criteria When
Using TRADACOMS
To use the custom aributes you defined as criteria in a processing rule, you need to:
Associate custom aributes with EDI document types, as described in "Managing
Your Own Custom Aributes for EDI Documents When Using TRADACOMS" on
page 243.
Create a processing rule to process the document, considering the following:
Do not use content-based processing.
Leave the Extended Criteria tab of the Processing Rules screen blank.
In the Execute a Service processing rule, invoke a service that sets the values of the
custom aributes, as described in "Seing Aribute Values at Run Time When
Using TRADACOMS" on page 244.
Ensure that the service invokes the wm.tn.reroute service so that Trading Networks
selects another processing rule for the document. (The next processing rule uses
your custom aributes as criteria.)
Create a processing rule that uses the custom aributes as criteria in the Extended
Criteria tab.
Note: When you order your processing rules, be sure to list the processing rule
that uses your custom aributes as criteria before the processing rule that
sets the aribute values. This ensures that Trading Networks will skip
the processing rule that uses the custom aribute criteria the first time the
document is processed but select it the second time.
webMethods Module for EDI Installation and User’s Guide Version 9.12 245
M
Even Header
Processing Inbound TRADACOMS Documents Using Trading Networks
Define processing rules using My webMethods. For more information, see the
webMethods Trading Networks Administrator’s Guide for your release.
Use this criteria... To have Trading Networks select a processing rule based on...
webMethods Module for EDI Installation and User’s Guide Version 9.12 246
M
Odd Header
Processing Inbound TRADACOMS Documents Using Trading Networks
Use this criteria... To have Trading Networks select a processing rule based on...
Note: Module for EDI does not set the User Status system aribute, so do not use the
User Status criterion.
Validate Structure Validates the structure of the Validate the structure of the
EDI document envelope
webMethods Module for EDI Installation and User’s Guide Version 9.12 247
M
Even Header
Processing Inbound TRADACOMS Documents Using Trading Networks
If a preprocessing action fails, Trading Networks records the error and continues
processing. Trading Networks records the error in the errors variable in the
BizDocEnvelope, which is in the bizdoc pipeline variable. Subsequent processing that
you add, for example a service invoked by the Execute a Service processing action, can
access the error information.
Note: You cannot use the Verify Digital Signature preprocessing action because
values for the SignedBody and Signature system aributes are not set for EDI
documents.
webMethods Module for EDI Installation and User’s Guide Version 9.12 248
M
Odd Header
Processing Inbound TRADACOMS Documents Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 249
M
Even Header
Processing Inbound TRADACOMS Documents Using Trading Networks
The services you create can use information that is in the pipeline. For information about
the data that is in the pipeline when your service is invoked, see "Information in the
Pipeline that Your Service Can Access When Using TRADACOMS" on page 250.
Variable Description
Aributes The custom aributes that were set for the document. For
information about the custom aributes that Module for EDI
sets, see "Custom Aributes that Module for EDI Sets When
Using TRADACOMS" on page 242.
Errors The errors that Trading Networks and Module for EDI
encountered while processing the document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 250
M
Odd Header
Processing Inbound TRADACOMS Documents Using Trading Networks
Variable Description
Key Description
Key Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 251
M
Even Header
Processing Inbound TRADACOMS Documents Using Trading Networks
Variable Description
transactionDocuments
(optional) A Document List that
contains a summary of all the file
documents in the batch.
Key Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 252
M
Odd Header
Processing Inbound TRADACOMS Documents Using Trading Networks
Flow Description
operation
webMethods Module for EDI Installation and User’s Guide Version 9.12 253
M
Even Header
Processing Inbound TRADACOMS Documents Using Trading Networks
Flow Description
operation
For more information about these built-in services, see webMethods Module for EDI Built-
In Services Reference.
webMethods Module for EDI Installation and User’s Guide Version 9.12 254
M
Odd Header
Processing Inbound TRADACOMS Documents Using Trading Networks
Flow Description
operation
webMethods Module for EDI Installation and User’s Guide Version 9.12 255
M
Even Header
webMethods Module for EDI Installation and User’s Guide Version 9.12 256
M
Odd Header
Optional Inbound Processing When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 257
M
Even Header
Optional Inbound Processing When Using Trading Networks
Overview
During inbound processing, you can have webMethods Module for EDI (Module for
EDI) perform the following optional processing:
Validate inbound interchange and/or group control numbers (or TRADACOMS
transmission and/or batch control numbers). For more information, see "Validating
Inbound Control Numbers" on page 258 and "Performing Control Number
Validation" on page 261.
Automatically generate functional acknowledgments (FAs). For more information,
see "Automatically Generating Functional Acknowledgments" on page 275.
webMethods Module for EDI Installation and User’s Guide Version 9.12 258
M
Odd Header
Optional Inbound Processing When Using Trading Networks
For VDA documents. Unlike other EDI standards, the VDA message has two control
number fields at the envelope level: the old control number and the new control
number. (For this reason, no control number incrementing occurs.) If validation
is turned on, Module for EDI extracts the old control number from the document
and matches it against the one stored in the database. Then the module updates the
EDIControlNumber table with the value of the new control number field so that
the next document's old control number field can be validated against the current
document's new one.
For the ordering of VDA documents exchanged between trading partners, the first
document must have 00000 as the old control number, and the new control number
must be any positive number. For subsequent exchanges, the old control number of
that message must match the new control number fields of the previous message.
If the new control number field for the inbound document is greater than the control
number maximum, Module for EDI sets the value of the next expected control number
as the control number minimum.
For all other standards. Non-VDA documents contain a single control number,
which Module for EDI uses to compare with the control number entry in
the EDIControlNumber table. When Module for EDI determines a control
number is valid, it calculates the next expected control number, saves it in the
EDIControlNumber table, and continues processing the EDI document.
To determine the next expected control number, Module for EDI adds the control
number increment to the valid control number. If the result is greater than the control
number maximum, the module sets the next expected control number as the control
number minimum.
webMethods Module for EDI Installation and User’s Guide Version 9.12 259
M
Even Header
Optional Inbound Processing When Using Trading Networks
the control number window to determine a range of numbers greater than the expected
control number that should be considered duplicate, as shown in this example :
Note: Because Module for EDI only maintains the next expected control number
(not a list of all previously used control numbers), and because the next
expected control number can be set manually, the module might determine
that a control number is:
A duplicate, even though the control number was never received
previously.
Out-of-sequence, even though the control number has been received
already.
You define the action that you want Module for EDI to take if a document with
a duplicate or out-of-sequence control number arrives. For example, you can set
the module to prevent processing of documents with duplicate or out-of-sequence
control numbers. For more information, see "Actions Module for EDI Can Take for
Invalid Control Numbers" on page 262. Later, you can force the processing of these
documents. For more information, see "Reprocessing EDI Documents with Invalid
Control Numbers" on page 268 and "Reprocessing Documents with Out-of-Sequence
Control Numbers" on page 269.
webMethods Module for EDI Installation and User’s Guide Version 9.12 260
M
Odd Header
Optional Inbound Processing When Using Trading Networks
lower than the expected control number that should be considered out-of-sequence, as
shown in this example :
Note: Module for EDI maintains only the next expected control number in the
EDIControlNumber table, not a list of all previously used control numbers.
Because the next expected control number can be manually set, the module
might determine that a control number is out of sequence even though a
document with the control number has already been received.
Step Description
3 Module for EDI determines whether the control number is valid (that is, in
order) by comparing the control number from the header with the control
number from the EDIControlNumber table entry. The module maintains
the next expected control number in the EDIControlNumber table. The
control number is either valid or invalid, as follows:
webMethods Module for EDI Installation and User’s Guide Version 9.12 261
M
Even Header
Optional Inbound Processing When Using Trading Networks
Step Description
Valid control number. The control number value from the header matches
the next expected control number in the EDIControlNumber table entry.
If there is no EDIControlNumber entry for the sender/receiver, EDI
standard/version, production mode, and type (for example, "Envelope"
or group type) identified in the interchange or group header, the module:
1. Assumes the control number is valid.
2. Adds an entry to the EDIControlNumber entry for the sender/
receiver, EDI standard/version, production mode, and type. In the
EDIControlNumber entry, the module sets the control number
maximum, minimum, increment, and window to their defaults and
calculates the next expected control number and saves this number
in the EDIControlNumber table entry. For more information, see
"Validating Inbound Control Numbers" on page 258.
3. Sets the Trading NetworksEDI Status custom aribute to Processed.
Invalid control number. The control number value from the header does
not match the next expected control number in the EDIControlNumber
table entry. When the control number is invalid, Module for EDI first
determines whether the control number is a duplicate or out-of-sequence,
and then takes the action you defined based on this information.
For more information about invalid control numbers, see "Invalid
Control Numbers" on page 259. For more information about the
actions the module takes for invalid control numbers, see "Actions
Module for EDI Can Take for Invalid Control Numbers" on page 262.
Actions Module for EDI Can Take for Invalid Control Numbers
The actions that you can define for duplicate or out-of-sequence control numbers are:
For information about how to define the action you want Module for EDI to take, see
"Defining Actions Module for EDI Can Take for Invalid Control Numbers" on page 136.
webMethods Module for EDI Installation and User’s Guide Version 9.12 262
M
Odd Header
Optional Inbound Processing When Using Trading Networks
Process Normally
When you select Process Normally and Module for EDI encounters an invalid control
number, the module performs these steps:
1. Logs the warning to the Trading Networks activity log.
Note: Because an error is not logged to the BizDocEnvelope, you cannot use the
Recognition Errors criterion in a processing rule to select the documents that
have errors.
2. Sets the next expected control number for the sender/receiver by incrementing
the control number in the appropriate EDIControlNumber table entry. For more
information, see "Validating Inbound Control Numbers" on page 258.
3. Continues normal processing of the document.
Reject
When you select Reject and Module for EDI encounters an invalid control number, it
does not perform normal processing on the document. Rather, the module:
1. Does not split the Interchange or Group document according to the seing of the
splitOption EDITPA variable (or the Transmission or Batch document according to
the seing of the TRADACOMS/splitOption EDITPA variable).
webMethods Module for EDI Installation and User’s Guide Version 9.12 263
M
Even Header
Optional Inbound Processing When Using Trading Networks
For an out-of-sequence control number, sets the EDI Status aribute to Out of
Sequence Control Number.
webMethods Module for EDI Installation and User’s Guide Version 9.12 264
M
Odd Header
Optional Inbound Processing When Using Trading Networks
Additionally, you can later force the processing of documents that contain invalid
control numbers. For more information, see "Reprocessing EDI Documents with
Invalid Control Numbers" on page 268.
Note: If the control number is invalid, Module for EDI does not increment the
control number in the EDIControlNumber table.
EDI Status Module for EDI sets this aribute to indicate whether a
control number for a document is valid. If the module
determines that a document contains:
Valid control number, it sets this aribute to Processed.
Duplicate control number, it sets this aribute to Duplicate
Control Number.
For information about other Trading Networks document aributes that Module for EDI
uses, see:
webMethods Module for EDI Installation and User’s Guide Version 9.12 265
M
Even Header
Optional Inbound Processing When Using Trading Networks
For non-TRADACOMS users: " Trading Networks Aributes and EDI Documents"
on page 211.
For TRADACOMS users: " Trading Networks Aributes and EDI Documents When
Using TRADACOMS" on page 240.
Extended Criteria To select EDI documents that Module for EDI rejected
because it detected an invalid control number and the action
to take was set to Reject, use the Extended Criteria of the
Trading Networks processing rules. You can use the Extended
Criteria to select documents based on the value of custom
aributes. In this case, you select documents based on the
value of the EDI Status custom aribute, as shown below.
webMethods Module for EDI Installation and User’s Guide Version 9.12 266
M
Odd Header
Optional Inbound Processing When Using Trading Networks
Important:
When specifying the value for extended criteria, be
sure to use the exact combination of upper and lower
case leers.
Action Description
Action Define the actions that you want to take to handle the
EDI document containing the invalid control number. For
example, you might select:
Alert e-mail to send an e-mail message to notify an
administrator of the problem.
Execute a service to invoke a service that you create to
perform processing. You might choose to write your own
service to send an e-mail message or perform some other
type of notification.
webMethods Module for EDI Installation and User’s Guide Version 9.12 267
M
Even Header
Optional Inbound Processing When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 268
M
Odd Header
Optional Inbound Processing When Using Trading Networks
Value Meaning
webMethods Module for EDI Installation and User’s Guide Version 9.12 269
M
Even Header
Optional Inbound Processing When Using Trading Networks
about creating a user task to schedule a service to run periodically, see the webMethods
Integration Server Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 270
M
Odd Header
Optional Inbound Processing When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 271
M
Even Header
Optional Inbound Processing When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 272
M
Odd Header
Optional Inbound Processing When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 273
M
Even Header
Optional Inbound Processing When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 274
M
Odd Header
Optional Inbound Processing When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 275
M
Even Header
Optional Inbound Processing When Using Trading Networks
For more information about FAs, including the contents of a generated FA, see
"Generating Acknowledgments" on page 169. For more information about defining a
processing rule to deliver FAs, see "Defining a Processing Rule to Deliver FAs" on page
281.
The following table lists the tasks you must perform to set up automatic FA generation
and includes a cross reference to the section in this guide that provides more
information about each task.
Ensure you have installed the "Configuring webMethods Module for EDI"
TN document types and flat on page 23
file schemas for the FA (997 or
CONTRL)
Determine how Module for "Determining How Module for EDI Reports
EDI sets the FA status for FA Status" on page 277
an interchange, group, or
transaction within an EDI
document
Define the action Module for "Defining Actions Module for EDI Takes Based
EDI takes for an interchange, on FA Status" on page 279
group, or transaction document
based on its FA status
webMethods Module for EDI Installation and User’s Guide Version 9.12 276
M
Odd Header
Optional Inbound Processing When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 277
M
Even Header
Optional Inbound Processing When Using Trading Networks
For more information about how Module for EDI processes the documents based on
their FA statuses, see "Defining Actions Module for EDI Takes Based on FA Status" on
page 279.
webMethods Module for EDI Installation and User’s Guide Version 9.12 278
M
Odd Header
Optional Inbound Processing When Using Trading Networks
Step Description
1 Sets the EDI Status custom aribute for the Interchange, Group, or
Transaction document to Processed.
webMethods Module for EDI Installation and User’s Guide Version 9.12 279
M
Even Header
Optional Inbound Processing When Using Trading Networks
Step Description
creates Transaction documents and processes the Transaction
documents.
For a Group document
If the splitOption is Transaction, Module for EDI creates
the Transaction documents and processes the Transaction
documents.
Step Description
1 Sets the EDI Status custom aribute for the Interchange, Group, or
Transaction document based on the documents FA status. When
the FA status is:
Not Allowed, the module sets the EDI Status custom aribute to
Generate FA - Not Allowed
Rejected, the module sets the EDI Status custom aribute to
Generate FA - Rejected
Partially Accepted, the module sets the EDI Status custom
aribute to Generate FA - Partially Accepted
Accepted, But Errors Were Noted, the module sets the EDI Status
custom aribute to Generate FA - Accepted, But Errors Were
Noted
webMethods Module for EDI Installation and User’s Guide Version 9.12 280
M
Odd Header
Optional Inbound Processing When Using Trading Networks
Step Description
Criteria Use to select outbound FAs that Module for EDI generated,
based on the following criteria:
Receiver. If you want to perform different processing
based on the receiver, select specific receivers in the
Selected box. For information about the receiver set in the
BizDocEnvelope for an outbound FA, see "Output from
the generateFA Service" on page 183.
Document Type. The TN document type used for an
outbound FA will be one of the following:
For an ANSI X12: X12 Envelope
For a UN/EDIFACT: EDIFACT Envelope
webMethods Module for EDI Installation and User’s Guide Version 9.12 281
M
Even Header
Optional Inbound Processing When Using Trading Networks
Action Use to specify how to deliver the outbound FA. Use either
of the following processing rule actions:
Execute a Service. Invokes the service you created to
deliver the FA.
Deliver Document By. Batches the outbound FA or delivers
it to a VAN. For more information, see "Batching
EDI Documents" on page 311 and "Retrieving and
Delivering EDI Documents from and to VANs" on page
335.
For more information about defining processing rules, see the webMethods Trading
Networks Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 282
M
Odd Header
Optional Inbound Processing When Using Trading Networks
Generate FA - Rejected
The actual values available for the EDI Status custom aribute
are based on how you set up automatic FA generation,
specifically how you define acceptable and unacceptable FA
statuses. For more information, see "Defining FA Statuses as
Acceptable and Unacceptable" on page 277.
The following shows an example of how to set the extended
criteria to select the processing rule for documents that have
an unacceptable FA status of Rejected; that is, the value
of the EDI Status custom aribute is set to Generate FA -
Rejected. When specifying Value, be sure to use the exact
combination of uppercase and lowercase characters.
Important:
When you set up processing rules, you must set up
a different processing rule for each unacceptable
FA status. Do not list all possible values for the EDI
Status custom aribute on the Extended Criteria tab.
Trading Networks performs an AND operation for
all custom aribute criteria. As a result, a document
must exhibit all custom aribute criteria that you
specify for Trading Networks to select the processing
rule. If you define multiple rows for the EDI Status
custom aribute, Trading Networks will never use the
processing rule because a document will never have
the EDI Status custom aribute set to more than one
value.
webMethods Module for EDI Installation and User’s Guide Version 9.12 283
M
Even Header
Optional Inbound Processing When Using Trading Networks
Action Use to define the actions that you want to take to handle
EDI documents that have an FA status of unacceptable. For
example, you might select:
Alert e-mail to send an e-mail message to notify an
administrator of the problem.
Execute a Service to invoke a service that you create to
perform processing. You might choose to write your own
service to send an e-mail message or perform some other
type of notification.
Note: When both autoGenerateTA1 and autoGenerateFA are turned on, the
module creates two envelopes. The FA and the TA1 are not combined into
one envelope.
Step Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 284
M
Odd Header
Optional Inbound Processing When Using Trading Networks
Step Description
4 For an ANSI X12 document, the module generates the FAs for the groups
in the interchange.
For a UN/EDIFACT document, the module generates the FAs for the
interchange.
Note: The FAs are not sent to Trading Networks processing rules at this
time.
In addition to generating the FAs during this step, Module for EDI also
obtains information about:
Whether any child element is not allowed in its envelope
Syntax errors for the interchange, groups, and transactions
Logical errors for the interchange, groups, and transactions
Because Module for EDI has information about the syntax errors and logical
errors for transactions, it can also determine the child rejection error status
for groups and interchanges.
6 For an ANSI X12 document, the module generates the TA1s for the
interchange.
webMethods Module for EDI Installation and User’s Guide Version 9.12 285
M
Even Header
Optional Inbound Processing When Using Trading Networks
Step Description
Note: The TA1s are not sent to Trading Networks processing rules at this
time.
7 For ANSI X12 documents, if the interchange contains groups, Module for
EDI works with each Group document that was split from the interchange,
as follows:
1. The module determines the FA status of each group and then uses this
information to determine how to handle the Group document. For more
information, see "Determining How Module for EDI Reports FA Status" on
page 277.
If the group FA status is acceptable, the module processes the Group
document normally.
If the group FA status is unacceptable, the module handles the Group
document differently.
For more information, see "Defining Actions Module for EDI Takes Based
on FA Status" on page 279.
2. If the Group document is being processed normally, that is, it has an
acceptable FA status, and the splitOption EDITPA variable is defined as
Transaction, Module for EDI works with each Transaction document that
was split from the group, as follows:
a. The module determines the FA status of the transaction and then
uses this information to determine how to handle the Transaction
document. For more information, see "Defining Actions Module for
EDI Takes Based on FA Status" on page 279.
If the transaction FA status is acceptable, the module processes the
Transaction document normally.
If the transaction FA status is unacceptable, the module handles the
Transaction document differently.
For more information, see "Defining Actions Module for EDI Takes
Based on FA Status" on page 279.
3. Module for EDI sends all Transaction and Group documents that are
processed normally to Trading Networks processing rules.
webMethods Module for EDI Installation and User’s Guide Version 9.12 286
M
Odd Header
Optional Inbound Processing When Using Trading Networks
Step Description
9 Module for EDI sends the generated FAs to Trading Networks processing
rules.
When the FAs are processed through Trading Networks, the EDI recognizer
updates the EDITRACKING table for the FAs. Module for EDI uses the
EDITRACKING table to track FAs and related groups/transactions for
FA reconciliation. For more information about FA reconciliation, see
"Reconciling Functional Acknowledgments" on page 341.
webMethods Module for EDI Installation and User’s Guide Version 9.12 287
M
Even Header
webMethods Module for EDI Installation and User’s Guide Version 9.12 288
M
Odd Header
Forming EDI Documents to Send Outbound When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 289
M
Even Header
Forming EDI Documents to Send Outbound When Using Trading Networks
Overview
You can send documents to webMethods Trading Networks (Trading Networks) from
internal applications (for example, back-end systems) and map information from
them into a standard EDI format document. When you use Trading Networks with
webMethods Module for EDI (Module for EDI), when forming the EDI documents, you
can access information for delimiters and headers that Module for EDI maintains in the
Trading Networks database.
This chapter describes how to:
Prepare Trading Networks to process internal-format documents. For more
information, see "Preparing Trading Networks to Process Internal-Format
Documents" on page 290.
Create a service to form the EDI document from an internal-format document. For
more information, see "Creating the Service to Form the EDI Document" on page
291.
Deliver the outbound EDI document. For more information, see "Delivering the
Outbound EDI Document" on page 297.
To learn more about forming outbound EDI documents when you are using Trading
Networks with Module for EDI, see webMethods Module for EDI Concepts Guide.
webMethods Module for EDI Installation and User’s Guide Version 9.12 290
M
Odd Header
Forming EDI Documents to Send Outbound When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 291
M
Even Header
Forming EDI Documents to Send Outbound When Using Trading Networks
Note: For ANSI X12 and UN/EDIFACT users: When using non-
standard processing, you also have to define: 1) Interchange
sender/receiver pair information and 2) Group-level
sender/receiver pair associations. For more information,
see "Defining Interchange-Level Sender/Receiver Pair
Information" on page 376 and "Defining Group-Level
Sender/Receiver Pair Associations" on page 388. For more
information about the difference between standard and non-
webMethods Module for EDI Installation and User’s Guide Version 9.12 292
M
Odd Header
Forming EDI Documents to Send Outbound When Using Trading Networks
The following sample code illustrates how to form an ANSI X12 EDI document from an
internal-format document when using Trading Networks with Module for EDI.
Flow Description
operation
webMethods Module for EDI Installation and User’s Guide Version 9.12 293
M
Even Header
Forming EDI Documents to Send Outbound When Using Trading Networks
Flow Description
operation
forming the EDI document. See "Validating the Input
Internal-Format Document When It Is an IData Object" on
page 406.
2 Map data from the internal-format document IData object into the
EDI document IData object. Depending on the complexity of your
mapping requirements, you might need to add more logic than
a MAP flow operation or create a separate service to perform the
mapping.
webMethods Module for EDI Installation and User’s Guide Version 9.12 294
M
Odd Header
Forming EDI Documents to Send Outbound When Using Trading Networks
Flow Description
operation
webMethods Module for EDI Installation and User’s Guide Version 9.12 295
M
Even Header
Forming EDI Documents to Send Outbound When Using Trading Networks
Flow Description
operation
Obtaining Control Numbers for Outbound Processing (ANSI X12 and UN/
EDIFACT)
Module for EDI maintains information about control numbers in the
EDIControlNumber table, which is a Module for EDI-specific table in the Trading
Networks database.
For ANSI X12 and UN/EDIFACT documents, when you create services to form
outbound EDI documents, you can invoke the following services that are provided with
Module for EDI to add group and interchange headers to the outbound EDI document:
wm.b2b.edi.util:addGroupEnvelope wm.b2b.edi.util:addGroupEnvelopeEDIFACT
wm.b2b.edi.util:addICEnvelope wm.b2b.edi.util:addICEnvelopeEDIFACT
webMethods Module for EDI Installation and User’s Guide Version 9.12 296
M
Odd Header
Forming EDI Documents to Send Outbound When Using Trading Networks
When invoking one of the above services to add a header, use the ctlFromTable or
grpCtlNumber input parameter to indicate whether you want to use the control
numbers from the EDIControlNumber table for group and interchange headers. If the
EDIControlNumber table does not have an entry for the group or interchange sender/
receiver pair, a row is added to the table for the sender/receiver pair and the control
number is set to 1.
You can set the initial values you want to use for sender/receiver pairs using the Module
for EDI home page. For instructions, see "Configuring Control Number Seings" on page
126.
webMethods Module for EDI Installation and User’s Guide Version 9.12 297
M
Even Header
Forming EDI Documents to Send Outbound When Using Trading Networks
Add logic to the service that forms the EDI document to deliver it. For more
information, see "Delivering the EDI Document Directly from the Service that Forms
It" on page 298.
Submit the EDI document back to Trading Networks document recognition to have
the EDI recognizer within Trading Networks recognize the EDI document, and
then use a processing rule to deliver the EDI document. For more information, see
"Submiing the EDI Document to Trading Networks " on page 298.
Route the EDI document back to Trading Networks processing rules to use a
processing rule to deliver the document. For more information, see "Routing the
Outbound EDI Document to Trading Networks " on page 304.
To learn more about these three methods for delivering outbound EDI documents, see
webMethods Module for EDI Concepts Guide.
Delivering the EDI Document Directly from the Service that Forms It
In the service that you create to form the EDI document, you can add your own logic to
deliver the outbound EDI document.
When you deliver an EDI document directly from the service that forms the document
and you want to use the functional acknowledgment (FA) reconciliation feature of
Module for EDI, you must also invoke the wm.b2b.editn:trackEDIdocs service.
This service updates the EDITRACKING table that keeps track of Group documents
and their corresponding FAs. To use the FA reconciliation feature, you must enable FA
reconciliation on a per-partner-pair basis in the EDITPA. For more information about the
FAReconciliation EDITPA Variable, see "FAReconciliation Variable" on page 72. For more
information about how to generate FA reconciliation reports, see "Reconciling Functional
Acknowledgments" on page 341.
The following code sample shows a portion of the service to form EDI documents that
is described in "Creating the Service to Form the EDI Document" on page 291, with
additional flow operations added to invoke:
The wm.b2b.editn:trackEDIdocs service for FA reconciliation
A service that you create to deliver the EDI document
webMethods Module for EDI Installation and User’s Guide Version 9.12 298
M
Odd Header
Forming EDI Documents to Send Outbound When Using Trading Networks
splitOption The EDI recognizer will split the EDI document based on the
value of the splitOption EDITPA variable. For an outbound
document, set the splitOption variable to one of the following:
Interchange—The EDI document is delivered and FA
reconciliation is not performed.
Group—The EDI document is delivered and FA
reconciliation is performed.
ControlNumberManagement/
For an outbound document, set this EDITPA variable to
validateInboundEnvelopeControlNumbers
false so Module for EDI does not aempt to validate the
interchange control numbers in the outbound document.
For more information about this EDITPA variable, see
"ControlNumberManagement Variables" on page 88.
webMethods Module for EDI Installation and User’s Guide Version 9.12 299
M
Even Header
Forming EDI Documents to Send Outbound When Using Trading Networks
ControlNumberManagement/
For an outbound document, set this EDITPA variable to false
validateInboundGroupControlNumbers
so Module for EDI does not aempt to validate the group
control numbers in the outbound document.
For more information about this EDITPA variable, see
"ControlNumberManagement Variables" on page 88.
webMethods Module for EDI Installation and User’s Guide Version 9.12 300
M
Odd Header
Forming EDI Documents to Send Outbound When Using Trading Networks
Profiles for the senders and receivers in the outbound EDI document.
For instructions when using standards other than TRADACOMS, see
"Defining Trading Partner Profiles" on page 59
For instructions when using TRADACOMS, see "Defining Trading Partner
Profiles When Using TRADACOMS" on page 107
TN document type for the Interchange (or Transmission) document that the
EDI recognizer creates from the outbound EDI document. For instructions
about how to define TN document types, see the webMethods Trading Networks
Administrator’s Guide for your release.
Processing rule for the Interchange (or Transmission) document. For instructions
about how to define processing rules, see the webMethods Trading Networks
Administrator’s Guide for your release. When you define the processing rule, use
one of the following:
Execute a Service processing action to invoke the service you created to deliver
the EDI document.
Deliver Document By processing action to batch the outbound EDI document
or deliver it to a VAN. For more information, see "Batching EDI Documents"
on page 311, and "Retrieving and Delivering EDI Documents from and to
VANs" on page 335.
If the splitOption variable is Group (or Batch), define the following in Trading
Networks:
Profiles for the senders and receivers in the outbound EDI document.
For instructions when using standards other than TRADACOMS, see
"Defining Trading Partner Profiles" on page 59
For instructions when using TRADACOMS, see "Defining Trading Partner
Profiles When Using TRADACOMS" on page 107
TN document type for the Interchange and Group (or Transmission and Batch)
documents that the EDI recognizer creates from the outbound EDI document.
For instructions about defining TN document types, see the webMethods Trading
Networks Administrator’s Guide for your release.
Processing rule for the Interchange and Group (or Transmission and Batch)
documents. For instructions about defining processing rules, see the webMethods
Trading Networks Administrator’s Guide for your release. When you define
the processing rule for the Interchange (or Batch) document, use one of the
following:
Execute a Service processing action to invoke the service you created to deliver
the EDI document.
Deliver Document By processing action to batch the outbound EDI document
or deliver it to a VAN. For more information, see "Batching EDI Documents"
webMethods Module for EDI Installation and User’s Guide Version 9.12 301
M
Even Header
Forming EDI Documents to Send Outbound When Using Trading Networks
on page 311, and "Retrieving and Delivering EDI Documents from and to
VANs" on page 335.
Adding Logic to the Service that Forms the EDI Document to Submit to Trading
Networks
To submit a document to Trading Networks document recognition, in the service that
you created to form the EDI document, invoke the wm.tn.doc.xml:routeXml service.
The following code sample shows a portion of the service to form EDI documents that is
described in "Creating the Service to Form the EDI Document" on page 291, with an
additional INVOKE flow operation added to invoke the wm.tn.doc.xml:routeXml service.
Step Description
2 In Pipeline Out, create a document. (In the figure below, the new document
is named DocToDeliver.) Within the document, create a string named
edidata . Then map the output from the addICEnvelope service, which is in
the outDocument parameter, to your new edidata parameter, as shown:
webMethods Module for EDI Installation and User’s Guide Version 9.12 302
M
Odd Header
Forming EDI Documents to Send Outbound When Using Trading Networks
Step Description
4 After seing the scope, when you select the INVOKE wm.tn.doc.xml:routeXml
flow operation, Pipeline In contains only the edidata parameter, as
illustrated in the figure below.
webMethods Module for EDI Installation and User’s Guide Version 9.12 303
M
Even Header
Forming EDI Documents to Send Outbound When Using Trading Networks
Step Description
5 When you use scope, the output from the wm.tn.doc.xml:routeXml service
also goes into the document that you used for the scope (for example,
DocToDeliver). After invoking the wm.tn.doc.xml:routeXml service, you can
drop all parameters in the document that you created, as shown:
webMethods Module for EDI Installation and User’s Guide Version 9.12 304
M
Odd Header
Forming EDI Documents to Send Outbound When Using Trading Networks
Adding Logic to the Service that Forms the EDI Document that Routes through
Trading Networks
To route a document through Trading Networks, in the service that you created to form
the EDI document, invoke the wm.tn.route:routeBizdoc service.
The following code sample shows a portion of the service to form EDI documents that
is described in "Creating the Service to Form the EDI Document" on page 291, with
additional flow operations added to invoke:
The wm.b2b.editn:trackEDIdocs service to do FA reconciliation.
A service that you define to create a BizDocEnvelope for the outbound EDI
document (the sample invokes the createEDIBizDoc service). For more information
about how to create this service, see "Creating a BizDocEnvelope for the Outbound
EDI Document" on page 305.
The wm.tn.route:routeBizdoc service to send the BizDocEnvelope to the Trading
Networks processing rules.
webMethods Module for EDI Installation and User’s Guide Version 9.12 305
M
Even Header
Forming EDI Documents to Send Outbound When Using Trading Networks
sender The sender ID for the sender of the outbound EDI document.
This is the sender at the interchange or transmission level.
senderQualifier The EDI ID qualifier for the sender, for example, 01 if you
specify a D-U-N-S number for sender .
receiverQualifier The EDI ID qualifier for the receiver, for example, 01 if you
specify a D-U-N-S number for receiver .
The following table shows the output parameter for the createEDIBizDoc service:
webMethods Module for EDI Installation and User’s Guide Version 9.12 306
M
Odd Header
Forming EDI Documents to Send Outbound When Using Trading Networks
The following figure illustrates the flow operations used for the service that creates a
BizDocEnvelope for the outbound EDI document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 307
M
Even Header
Forming EDI Documents to Send Outbound When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 308
M
Odd Header
Forming EDI Documents to Send Outbound When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 309
M
Even Header
Forming EDI Documents to Send Outbound When Using Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 310
M
Odd Header
Batching EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 311
M
Even Header
Batching EDI Documents
Overview
Important:You cannot use the EDI batching feature if you are using non-
standard processing. For more information about processing
levels, see “Using Standard or Non-Standard Processing” in
webMethods Module for EDI Concepts Guide.
The EDI batching feature uses webMethods Trading Networks (Trading Networks)
scheduled delivery. That is, you set up a public scheduled delivery queue that will
receive the EDI documents that you want to batch into a batch EDI document. You
define processing rules that use the Deliver Document By processing action to place EDI
documents into the scheduled delivery queue.
When you define the scheduled delivery, you associate it with a service. To batch EDI
documents, you use the wm.b2b.editn.batch:batchProcess service, which is provided with
webMethods Module for EDI (Module for EDI). The batchProcess service acts on the EDI
documents in the scheduled delivery queue to create a batch EDI document.
Trading Networks uses large document handling for batching EDI documents. For more
information about large document handling, see "Handling Large Documents When
Using Trading Networks " on page 163.
To learn more about the basics of batching EDI documents, see the webMethods Module
for EDI Concepts Guide.
Important: If you set oneBatchQueue to NONE, this signals that you want to use
backward compatibility and have the batchProcess service combine the
documents in the method available in version 6.0.1 of Module for EDI.
webMethods Module for EDI Installation and User’s Guide Version 9.12 312
M
Odd Header
Batching EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 313
M
Even Header
Batching EDI Documents
The following figure illustrates an example of collection and subcollection areas used for
batching EDI documents.
webMethods Module for EDI Installation and User’s Guide Version 9.12 314
M
Odd Header
Batching EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 315
M
Even Header
Batching EDI Documents
The following figure shows how the transactions from the above three documents are
sorted into collection areas.
webMethods Module for EDI Installation and User’s Guide Version 9.12 316
M
Odd Header
Batching EDI Documents
about the EDITPA variables that the batchProcess service uses, see "Controlling How
the batchProcess Service Forms the Batch Document" on page 327.
3. The batchProcess service sorts the transactions. For more information, see "Sorting
Transactions when Queued Documents Have No Interchange Headers" on page
317.
4. Each queued EDI document is associated with a Trading Networks delivery task.
After all transactions for an EDI document have been extracted, the batchProcess
service updates the task status. For more information, see "Updating the Task Status
and Publishing Documents for Failed Tasks" on page 320.
Version of the The version input parameter of the batchProcess service. In the
EDI standard final batch EDI document, the interchange or transmission
that corresponds to the default collection area will use this
version.
webMethods Module for EDI Installation and User’s Guide Version 9.12 317
M
Even Header
Batching EDI Documents
Subcollections when there Are No Headers (Groups in the Final Batch EDI Document)
The batchProcess further sorts the transaction into a subcollection. Each subcollection
becomes a group (or a TRADACOMS batch) in the final batch EDI document. If the
EDI document has group headers, the batchProcess service sorts the transaction into the
subcollection as described in "Subcollections Representing a Group in the Final Batch
EDI Document" on page 314. If the EDI document does not have group headers, it
uses the following:
Version of the Obtained from the version input parameter of the batchProcess
EDI standard service
(for example,
4010)
webMethods Module for EDI Installation and User’s Guide Version 9.12 318
M
Odd Header
Batching EDI Documents
result, can determine whether the transaction uses delimiters that are different from
those used by the collection area. When the interchange or transmission header is
not available, the batchProcess service is unable to determine the delimiters used by a
transaction; therefore, the service cannot replace delimiters if they do not match.
Important: If you place EDI documents into a scheduled delivery queue for batching
and the EDI documents do not have interchange or transmission headers,
you must ensure that the delimiters that the EDI documents use match the
delimiters of the default collection area. If there is a delimiter mismatch, the
batchProcess service will create a batch EDI document that is not valid and
that will not be able to be processed.
Note: For TRADACOMS documents, Module for EDI provides built-in support for
the following TRADACOMS delimiters: segment terminator, data element
separator, sub-element separator, and segment code separator. You cannot
modify this list of delimiters. TRADACOMS users should skip this section
and continue reading "Updating the Task Status and Publishing Documents
for Failed Tasks" on page 320.
The batchProcess service uses these delimiters when it combines the transactions in the
collection area into the final batch EDI document(s). The batchProcess service determines
the delimiters to use for a collection in the following order:
1. The batchProcess service delimiters input parameter. If you specify the batchProcess
service delimiters input parameter, the batchProcess service uses the delimiters you
specify for all collection areas. As a result, all interchanges in the output batch EDI
document(s) will all have the same delimiters.
2. The delimiters EDITPA variables. If you leave the batchProcess service delimiters
input parameter null, the batchProcess service uses the delimiters EDITPA variable to
determine the delimiters to use for a collection area. Leave the batchProcess service
delimiters input parameter if you want the interchange segments of the output batch
EDI document(s) to use different delimiters.
How the batchProcess service locates the EDITPA varies based on whether the EDI
document in the batch queue has interchange headers, as follows:
webMethods Module for EDI Installation and User’s Guide Version 9.12 319
M
Even Header
Batching EDI Documents
If the EDI document has interchange headers, the batchProcess service uses the
sender and receiver from the interchange header to locate the EDITPA.
If the EDI document does not have interchange headers, the batchProcess service
uses its senderIDQualifier , senderID , receiverIDQualifier , and receiverID input
parameters to locate the EDITPA.
3. Module for EDI defaults for delimiters. If the batchProcess service cannot obtain
delimiters from either its delimiters input parameter or the delimiters EDITPA
variable, it uses the following default for delimiters:
Type of delimiter Default to use when cannot obtain delimiter value from other
sources
Updating the Task Status and Publishing Documents for Failed Tasks
Each EDI document in the queue of documents that are being batched is associated with
a Trading Networks delivery task. You can view tasks from the Monitoring > Integration
B2B > Tasks page in My webMethods. The batchProcess service updates the status of the
delivery tasks to one of the following as it sorts the transactions:
fail If the batchProcess service cannot extract and sort the transactions
from an EDI document, the batchProcess service sets the delivery
task status to fail. This can occur, for example, if the document in
the queue is not a properly formed EDI document. The transactions
webMethods Module for EDI Installation and User’s Guide Version 9.12 320
M
Odd Header
Batching EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 321
M
Even Header
Batching EDI Documents
Creates one or more output batch EDI documents. The batchProcess service
determines how many batch EDI documents to create based on the oneBatchQueue
input parameter. That is, if oneBatchQueue is SINGLEOUTPUT, the batchProcess service
creates a single output batch EDI document. If oneBatchQueue is MULTIPLEOUTPUTS,
the batchProcess service creates multiple output batch EDI documents, each
containing a single interchange or transmission. For more information, see
"Indicating How Many Batch EDI Documents to Create" on page 312.
After creating the final output batch EDI document(s), the batchProcess service creates
a BizDocEnvelope for each batch EDI document that it created and sends each
BizDocEnvelope to Trading Networks processing rules. You create a processing rule
that specifies the action to deliver the batch EDI document. For more information, see
"Delivering the Batch EDI Document" on page 331.
webMethods Module for EDI Installation and User’s Guide Version 9.12 322
M
Odd Header
Batching EDI Documents
Step Description
1 For each collection area, the batchProcess service combines the transactions
in the collection area. Each collection becomes an interchange in the
final EDI batch document, with each subcollection a group within the
interchange.
2 The batchProcess service obtains the EDITPA information for the sender/
receiver associated with the collection area. It uses information associated
webMethods Module for EDI Installation and User’s Guide Version 9.12 323
M
Even Header
Batching EDI Documents
Step Description
with the collection area, the subcollections, and the EDITPA to create the
interchange and group headers as follows:
Uses the sender/receiver, EDI standard, production mode, and delimiters
associated with the collection area for the interchange headers.
Obtains fields for the interchange header from the EDITPA ICHeaderInfo
variables. If an ICHeaderInfo EDITPA variable does not have a value, the
batchProcess service uses the corresponding value from the interchange
header of the original document. For more information about the
ICheaderInfo variables, see "ICheaderInfo Variables" on page 77.
Uses the sender/receiver, group type, version of the EDI standard
associated with a subcollection for a group header.
Obtains the value of the GS07 field (for ANSI X12) from the EDITPA
ICHeaderInfo/GS/GS07 variable. If this variable does not have a value, it
uses the GS07 from the original EDI document. For more information, see
"ICheaderInfo Variables" on page 77.
3 After recombining the information for all collection areas, the batchProcess
service creates a BizDocEnvelope for the final batch EDI document. The
batchProcess service sets the sender and receiver for the BizDocEnvelope
to the sender/receiver identified in its senderIDQualifier , senderID ,
receiverIDQualifier , and receiverID input parameters. It then sends the
BizDocEnvelope to Trading Networks processing rules for routing.
Note: If you use Sender or Receiver criteria in the processing rule to route
the final batch EDI document, identify the final batch EDI document
using the sender/receiver of the BizDocEnvelope.
webMethods Module for EDI Installation and User’s Guide Version 9.12 324
M
Odd Header
Batching EDI Documents
Step Description
1 For each collection area, the batchProcess service combines the transactions
in the collection area. Each collection becomes a single batch EDI document
that contains a single interchange with each subcollection a group within
the interchange.
webMethods Module for EDI Installation and User’s Guide Version 9.12 325
M
Even Header
Batching EDI Documents
Step Description
area. It uses information associated with the collection area, the
subcollections, and the EDITPA to create the interchange and group
headers. For more information, see step 2 in "Creating the Batch EDI
Document when Using SINGLEOUTPUT" on page 322.
3 For each collection area, after recombining the transactions in the collection
area, the batchProcess service creates a BizDocEnvelope for the final batch
EDI document. The batchProcess service sets the sender and receiver for the
BizDocEnvelope to the sender/receiver associated with the collection area.
Then it sends the BizDocEnvelope to Trading Networks processing rules
for routing.
Note: If you use Sender or Receiver criteria in the processing rule to route
the final batch EDI document, identify the final batch EDI document
using the sender/receiver of the BizDocEnvelope.
webMethods Module for EDI Installation and User’s Guide Version 9.12 326
M
Odd Header
Batching EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 327
M
Even Header
Batching EDI Documents
Note: These variables are applicable only to ANSI X12 and UN/EDIFACT
documents.
webMethods Module for EDI Installation and User’s Guide Version 9.12 328
M
Odd Header
Batching EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 329
M
Even Header
Batching EDI Documents
Queue name The name you want to give the scheduled delivery queue.
For example, if you are defining a queue for EDI documents
for which the receiver is CYG Company, you might set the
Queue Name to "CYG Queue."
Delivery service The delivery service you want to associate with the queue.
Select EDI Batch.
State The state of the queue. Select Enable, Disable, Drain, or Suspend
Delivery. For more information about these states, see the
webMethods Trading Networks Administrator’s Guide for your
release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 330
M
Odd Header
Batching EDI Documents
Note: It is recommended that you do not set up private queues for EDI batching
because of the limitations that private queues pose. EDI batching with private
queues results in EDI documents always going to a specific receiver's queue
because you define private queues in a trading partner profile.
webMethods Module for EDI Installation and User’s Guide Version 9.12 331
M
Even Header
Batching EDI Documents
Interchange. You can use the EDI Batch custom aribute in the extended criteria of the
processing rule so the processing rule is only used for a batch EDI document.
To deliver a batch EDI document, the processing rule can use one of the following
actions:
Execute a Service processing action to invoke a service that you create to deliver the
final batch EDI document
Deliver Document By processing action to send the document to a VAN
In My webMethods, use the Administration > Integration > B2B > Processing Rules page
to define a processing rule in Trading Networks. The following table provides details
about how to define the processing rules.
On this Specify...
Processing
Rules tab...
Criteria The standard criteria you want to use to select the processing
rule. Specify criteria that describes the final batch EDI
document that the batchProcess service creates.
Action How you want Trading Networks to deliver the final batch
EDI document.
Select Execute a Service processing action to invoke a service
that you create to deliver the final batch EDI document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 332
M
Odd Header
Batching EDI Documents
On this Specify...
Processing
Rules tab...
For more information about creating processing rules, see the webMethods Trading
Networks Administrator’s Guide for your release.
To view the relationship between EDI batched documents and individual documents
1. In My webMethods: Monitoring > Integration > B2B > Transactions
2. Search for the EDI batch document for which you want to view the related
documents. For information about searching documents, see the webMethods Trading
Networks User’s Guide for your release.
3. In the search results, locate the EDI batch document for which you want to view
related documents and then click or View Related Documents.
Trading Networks displays the Related Document page.
webMethods Module for EDI Installation and User’s Guide Version 9.12 333
M
Even Header
webMethods Module for EDI Installation and User’s Guide Version 9.12 334
M
Odd Header
Retrieving and Delivering EDI Documents from and to VANs
webMethods Module for EDI Installation and User’s Guide Version 9.12 335
M
Even Header
Retrieving and Delivering EDI Documents from and to VANs
Overview
When using webMethods Module for EDI (Module for EDI) with webMethods Trading
Networks (Trading Networks), you can connect to Value Added Networks (VANs) to
retrieve inbound EDI documents and to deliver outbound EDI documents.
Software AG has tested and certified Module for EDI to connect with the GXS and MCI
VANs. If you need to connect to another VAN, you might need to customize the services
that Module for EDI provides to suit the specific VAN connectivity.
To learn more about VANs and how Module for EDI works with VANS, see the
webMethods Trading Networks Administrator’s Guide for your release.
Use this input To have the getFromVAN service perform this optional action...
parameter...
In addition to, or instead of, invoking the getFromVAN service, you can have the
VAN.VANConnectivity.putToVAN service retrieve waiting inbound EDI documents when it
delivers outbound EDI documents to the VAN. For more information about the putToVAN
service, see "Preparing to Deliver Documents to VANs" on page 337.
webMethods Module for EDI Installation and User’s Guide Version 9.12 336
M
Odd Header
Retrieving and Delivering EDI Documents from and to VANs
webMethods Module for EDI Installation and User’s Guide Version 9.12 337
M
Even Header
Retrieving and Delivering EDI Documents from and to VANs
The following table describes information that you need to supply when defining the
public queue in My webMethods.
Queue name The name you want to give the scheduled delivery queue. For
example, if you are defining a queue to hold EDI documents
to be sent to the MCI VAN, you might name the queue "MCI
Queue".
Delivery service The delivery service you want to associate with the queue.
Select VANFTP.
Inputs The inputs for the VANFTP service. When Trading Networks
invokes the VANFTP service, Trading Networks passes the
inputs that you specify in the input parameters.
The input parameters that you specify for the VANFTP service
identify the VAN to which you want to connect to deliver
the EDI documents in the queue. The following describes
other input parameters to the VANFTP service that you can
use to specify optional actions that you might want the
VANFTP service to perform in addition to delivering the
outbound EDI documents. To learn about all the input
parameters to the VANFTP service, see the description of the
VAN.VANConnectivity:putToVAN service in webMethods Module for
EDI Built-In Services Reference.
State The state of the queue. Select Enable, Disable, Drain, or Suspend
Delivery. For more information about these states, see the
webMethods Trading Networks Administrator’s Guide for your
release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 338
M
Odd Header
Retrieving and Delivering EDI Documents from and to VANs
Note: You should not set private queues for delivering EDI documents to VANs.
You can only use a private queue for a specific trading partner while public
queues can be used by multiple trading partners.
webMethods Module for EDI Installation and User’s Guide Version 9.12 339
M
Even Header
Retrieving and Delivering EDI Documents from and to VANs
webMethods Module for EDI Installation and User’s Guide Version 9.12 340
M
Odd Header
Reconciling Functional Acknowledgments
webMethods Module for EDI Installation and User’s Guide Version 9.12 341
M
Even Header
Reconciling Functional Acknowledgments
Overview
When you use Module for EDI with Trading Networks, Module for EDI can reconcile
Functional Acknowledgments (FAs) to their related EDI documents.
FA Reconciliation
To perform FA reconciliation, Module for EDI records each Group/Interchange EDI
document that it sends and receives through Trading Networks. Whether it records a
Group or an Interchange document depends on the EDI standard of the document.
For ANSI X12, Module for EDI records each Group document that it sends or
receives through Trading Networks.
For UN/EDIFACT, Module for EDI records each Interchange-level document.
Module for EDI records information about these documents in the EDITRACKING
table, which is a module-specific table in the Trading Networks database.
When Module for EDI receives the FA that corresponds to a Group/Interchange EDI
document, the module updates the FA status for the Group/Interchange document in the
EDITRACKING table.
For ANSI X12, the FA is the 997 document, which acknowledges the group envelope
and all of its contents.
For UN/EDIFACT, the FA is the CONTRL message, which acknowledges an
interchange envelope and all of its contents.
Important: For Module for EDI to be able to record information for Group/Interchange
EDI documents and to update the FA status when the FA is sent or received,
you must exchange the Group/Interchange EDI document and the FAs
through Trading Networks. In addition, for the document to appear in the
EDITRACKING table, the document must be persisted to Trading Networks,
and the document must have both a sender ID and a receiver ID.
webMethods Module for EDI Installation and User’s Guide Version 9.12 342
M
Odd Header
Reconciling Functional Acknowledgments
For more information about EDITPA variables, see "FAReconciliation Variable" on page
72 and "FAGeneration Variables" on page 80. For more information about default and
partner-specific EDITPAs, see "Defining EDI Trading Partner Agreements" on page 61.
webMethods Module for EDI Installation and User’s Guide Version 9.12 343
M
Even Header
Reconciling Functional Acknowledgments
the module records as the FA status for the Group/Interchange EDI documents in the
EDITRACKING table is different based on whether FA reconciliation is on or off.
When an FA is sent or received through Trading Networks, Module for EDI aempts
to locate an entry in the EDITRACKING table for the corresponding Group/
Interchange EDI document. The module uses the document IDs to match the FA to
the corresponding Group/Interchange EDI document. The document ID of a Group
document is the group control number. The document ID of an Interchange document is
the IC control number. For more information, see "DocumentID" on page 241.
Note: For Module for EDI to reconcile FAs with Group/Interchange EDI documents,
the FAs and the Group/Interchange EDI documents must be exchanged on the
same Integration Server.
The following table describes the information that Module for EDI records in the
EDITRACKING table.
webMethods Module for EDI Installation and User’s Guide Version 9.12 344
M
Odd Header
Reconciling Functional Acknowledgments
FA Statuses
The following table lists the values of the FA status recorded for an ANSI X12 Group or
UN/EDIFACT Interchange document in the EDITRACKING table.
FA Status Description
Duplicate Module for EDI has one or more other documents recorded
in the EDITRACKING table that match the FA for this
document. For more information, see "Controlling FA Status
for Documents Submied Multiple Times" on page 346.
Error Module for EDI received an FA for which it could not locate a
matching document in the EDITRACKING table. The module
adds an entry to the EDITRACKING table for the FA and
assigns it this status.
Duplicate FA/ Module for EDI received more than one FA that matches this
Errors document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 345
M
Even Header
Reconciling Functional Acknowledgments
FA Status Description
Accept with Module for EDI received a single FA that matches this
Errors document and the FA has an “E” (Errors) status on the
confirmed level.
Partially Accept Module for EDI received a single FA that matches this
document and the FA has a “P” (Partially Accept) status on
the confirmed level.
To control what happens when a document is sent multiple times before receiving an FA
1. In My webMethods: Administration > Integration > B2B Settings > Configure Properties.
2. In the Module for EDI Configuration Properties section, add or update the
EDIResolveDuplicates property as follows:
Value Description
webMethods Module for EDI Installation and User’s Guide Version 9.12 346
M
Odd Header
Reconciling Functional Acknowledgments
Value Description
(“120”). This indicates that multiple documents exist in the
EDITRACKING table that match the FA for this document.
This is the default.
true When you send a document the first time, its status is set to
None (“100”) in the EDITRACKING table. This indicates that
Module for EDI has not yet received an FA to acknowledge
the document.
If the same document is sent again before the receiver returns
an FA, the status of the first document changes to Duplicate
(“120”). This indicates that multiple documents exist in the
EDITRACKING table that match the FA for this document.
The status of the second document is set to None. This
behavior occurs for each subsequent document sent before
an FA is returned.
When the receiver returns an FA, the FA will acknowledge
only the document that was sent last. The status of the
document that was sent last will be set according to the FA
status reported in the FA document. The status of all prior
documents remains Duplicate.
3. Click Save. Module for EDI updates the configuration in memory so the changes take
effect immediately and in the WmEDI/config/properties.cnf file.
webMethods Module for EDI Installation and User’s Guide Version 9.12 347
M
Even Header
Reconciling Functional Acknowledgments
Search for the transaction of interest, and then click the Details icon.
In the Transaction Details section of the Transactions page, click the Attributes tab.
From the EDI FA Status list, select the desired FA status.
Click Save.
webMethods Module for EDI Installation and User’s Guide Version 9.12 348
M
Odd Header
Viewing Log Information for EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 349
M
Even Header
Viewing Log Information for EDI Documents
Overview
During processing, webMethods Module for EDI (Module for EDI) logs information to
the server log. Additionally, if you are using Module for EDI with webMethods Trading
Networks (Trading Networks), Module for EDI also logs information to the Trading
Networks activity log.
The key is part of the identification of a message. For example, the following is a
message that is issued from the WmEDI package of Module for EDI and uses the key,
EDICOR:
[EDICOR.000020.000404] No transaction set defined for SEF
To view the server log, use Integration Server Administrator. For more information, see
the webMethods Integration Server Administrator’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 350
M
Odd Header
Viewing Log Information for EDI Documents
agreement ID. For more information about the tn.tpa.EnableLogTPA property, see the
webMethods Trading Networks Administrator’s Guide for your release.
Note: Whenever you reset the value of tn.tpa.EnableLogTPA , you must reload the
WmTN package to reflect the changes.
For more information on searching the activity log entries based on the activity class
associated with the entries you want to view, see the webMethods Trading Networks User’s
Guide for your release.
You can view the activity log from My webMethods. For instructions, see the webMethods
Trading Networks User’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 351
M
Even Header
webMethods Module for EDI Installation and User’s Guide Version 9.12 352
M
Odd Header
Viewing Information about EDI Documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 353
M
Even Header
Viewing Information about EDI Documents
Overview
When you use webMethods Module for EDI (Module for EDI) with webMethods
Trading Networks (Trading Networks), you can view the EDI documents that have
passed through your system if they have been saved to the Trading Networks database.
You view documents (transactions) from My webMethods.
To learn more about viewing documents, see the webMethods Trading Networks User’s
Guide for your release.
ANSI X12 How Module for EDI uses the webMethods Module for EDI
and UN/ EDITPA variable splitOption Concepts Guide and "splitOption
EDIFACT to split documents into Variable" on page 71
Interchange, Group, and
Transaction documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 354
M
Odd Header
Viewing Information about EDI Documents
Note: You can override this default to display related documents identified by their
relationship labels instead of by their control numbers. For example, if you
view an ANSI X12 envelope, the screen displays that envelope's related group
webMethods Module for EDI Installation and User’s Guide Version 9.12 355
M
Even Header
Viewing Information about EDI Documents
with the relationship label Envelope - Group. To set the flag that controls this,
see "Viewing Related Documents with Relationship Labels" on page 358.
For more information about viewing documents, see the webMethods Trading Networks
User’s Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 356
M
Odd Header
Viewing Information about EDI Documents
How to set up to deliver EDI "Retrieving and Delivering EDI Documents from
documents to VANs and to VANs" on page 335
webMethods Module for EDI Installation and User’s Guide Version 9.12 357
M
Even Header
Viewing Information about EDI Documents
Note: All documents that were submied to Trading Networks before you set this
property to true will continue to be identified by their control numbers, not by
relationship labels.
webMethods Module for EDI Installation and User’s Guide Version 9.12 358
M
Odd Header
Viewing Information about EDI Documents
Transaction
Related envelopes are shown labeled Envelope -
Transaction
Related groups are shown labeled Group - Transaction
Group
Related groups are shown labeled Envelope - Group
Related transactions are shown labeled Group -
Transaction
TRADACOMS Transmission
Related files are shown labeled Transmission - File
Related batches are shown labeled Transmission - Batch
Batch
Related files are shown labeled Batch - File
Related batches are shown labeled Transmission - Batch
File
Related transmissions are shown labeled Transmission
- File
Related batches are shown labeled Batch - File
webMethods Module for EDI Installation and User’s Guide Version 9.12 359
M
Even Header
webMethods Module for EDI Installation and User’s Guide Version 9.12 360
M
Odd Header
Including Documents in a Business Process
webMethods Module for EDI Installation and User’s Guide Version 9.12 361
M
Even Header
Including Documents in a Business Process
Overview
Using Software AG Designer (Designer), you design a process model that describes
your business process (also called a conversation) that involves EDI documents. For an
EDI document to be involved in a business process, it must have a conversation ID.
A conversation ID is a identifier that is unique to an instance of a business process.
All documents involved in the same instance of a business process contain the same
conversation ID.
When webMethods Module for EDI (Module for EDI) receives an EDI document, it
splits the original inbound EDI document based on the EDITPA splitOption variable.
Module for EDI can split the original EDI document into Interchange, Group, and/or
Transaction documents. The Interchange, Group, and/or Transaction documents are
passed to a business process when they contain a conversation ID.
Module for EDI always assigns the Interchange and Group documents conversation
IDs. Consequently, the Interchange and Group documents are always passed to Process
Engine, which is the facility of Integration Server that executes and manages business
processes in Integration Server.
Module for EDI only assigns a conversation ID to a Transaction document if you have
created an instance ID query that identifies the value to set for the conversation ID. You
define instance ID query for specific transaction sets (for example, X12 4010 850) using
the WmEDIforTN home page.
For more information about processing EDI documents in business processes, including
an illustration of how EDI documents are passed to a business process, see webMethods
Module for EDI Concepts Guide.
For more information about using process models in Designer, see the
webMethods BPM Process Development Help for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 362
M
Odd Header
Including Documents in a Business Process
When you define the process model, the first step always involves waiting for a
document. You assign an input subscription to that step to specify the type of document
for which to wait. You identify the document by its TN document type. You can set
criteria for the start document so that the process begins only if the document contains
specific information. For example, you can set criteria so that the process starts only if
the sender of the start document is a specific partner. You set the criteria by assigning a
subscribe filter to the start step.
At run time, when the document arrives, the business process begins.
Note: The steps for sender and receiver are shown in single process models to
illustrate how they interact. To establish these business processes, you create a
separate process model for each sender and receiver.
The following diagram illustrates the processing of an ANSI X12 Group document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 363
M
Even Header
Including Documents in a Business Process
Step Description
1 The business process starts when a document (for example, SAP R/3
IDOC) is received from the sender's back-end system.
4 The receiver business process begins when the ANSI X12 Group document
is received.
5 In response to the ANSI X12 Group document, the receiver sends the 997
(Functional Acknowledgment) back to the sender.
Following any send or wait step, partners can choose to perform optional business logic.
The following diagram illustrates the processing of an ANSI X12 850 Transaction
document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 364
M
Odd Header
Including Documents in a Business Process
Step Description
1 The business process starts when a document (for example, SAP R/3 IDOC)
is received from the sender's back-end system.
3 The sender waits for the response document (for example, 855 PO
Acknowledgment).
4 The receiver business process begins when the ANSI X12 850 Transaction
document is received.
5 In response to the ANSI X12 850 Transaction document, the receiver sends
the response document (for example, 855 PO Acknowledgment) back to
the sender.
Following any send or wait step, partners can choose to perform optional business logic.
Note: The steps for sender and receiver are shown in single process models to
illustrate how they interact. To establish these business processes, you create a
separate process model for each sender and receiver.
webMethods Module for EDI Installation and User’s Guide Version 9.12 365
M
Even Header
Including Documents in a Business Process
Step Description
1 The business process starts when a document (for example, SAP R/3 IDOC)
is received from the sender's back-end system.
Following any send or wait step, partners can choose to perform optional business logic.
The following diagram illustrates processing for the UN/EDIFACT Transaction
document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 366
M
Odd Header
Including Documents in a Business Process
Step Description
1 The business process starts when a document (for example, SAP R/3 IDOC)
is received from the sender's back-end system.
3 The sender waits for the response message (for example, ORDERSP
receipt).
Following any send or wait step, partners can choose to perform optional business logic.
webMethods Module for EDI Installation and User’s Guide Version 9.12 367
M
Even Header
Including Documents in a Business Process
senderID-receiverID-instanceID
When assigning the conversation ID, Module for EDI first aempts to assign the
conversation ID as receiverID-senderID-instanceID. It checks to see if this
conversation ID already exists and if it does, uses it, so that the document rejoins a
running business process.
If the first conversation ID does not exist, Module for EDI flips the receiverID and
senderID and uses the conversation ID senderID-receiverID-instanceID, which
should be a new conversation ID and therefore start a new business process.
The value of instanceID varies based on whether the document is an Interchange
document, Group document, or Transaction document.
senderID-receiverID-controlNum
senderID-receiverID-controlNum
webMethods Module for EDI Installation and User’s Guide Version 9.12 368
M
Odd Header
Including Documents in a Business Process
Note: If you intend to also run the sample provided for Module for EDIINT (which
is also included in the WmEDIsamples package), set up the Module for
EDIINT sample before seing up this sample business process.
webMethods Module for EDI Installation and User’s Guide Version 9.12 369
M
Even Header
Including Documents in a Business Process
3. In the Solutions menu of the navigation panel, click EDI. Integration Server
Administrator opens a new browser window to display the Module for EDI home
page.
4. From the Module for EDI home page, in the EDI Processes menu of the navigation
panel, click Run a Demo.
To continue, follow the instructions on the home page.
webMethods Module for EDI Installation and User’s Guide Version 9.12 370
M
Odd Header
Non-Standard Processing
A Non-Standard Processing
■ Overview ..................................................................................................................................... 372
■ Defining Partner Information When Using Non-Standard Processing ....................................... 372
■ Defining Control Number Information for Partners When Using Non-Standard Processing ....... 392
■ Processing Inbound EDI Documents using Trading Networks and Non-Standard
Processing ........................................................................................................................................ 395
■ Forming EDI Documents to Send Outbound When Using Trading Networks and Non-Standard
Processing ........................................................................................................................................ 397
webMethods Module for EDI Installation and User’s Guide Version 9.12 371
M
Even Header
Non-Standard Processing
Overview
Module for EDI can process the interchange, groups, and transaction sets of an ANSI
X12 or UN/EDIFACT EDI document using either standard or non-standard processing.
For standard processing, Module for EDI processes the interchange, all its groups, and
all its transactions sets using seings that you define for the interchange sender/
receiver pair.
For non-standard processing, you can specify different processing seings for each
group within the interchange. Module for EDI processes the groups and the
transactions sets within each group using the seings you define for the group
sender/receiver pairs.
For more information about standard versus non-standard processing, see webMethods
Module for EDI Concepts Guide.
This appendix contains only information for when non-standard processing differs from
standard processing.
The following table lists the information you must define for interchange and group
sender/receiver pairs that will be in the EDI documents you expect to process.
For... Define...
Group sender/ Trading Networks profiles for each group sender and
receiver pairs receiver. For more information, see "Defining Trading
Networks Profiles When Using Non-Standard Processing"
on page 373.
webMethods Module for EDI Installation and User’s Guide Version 9.12 372
M
Odd Header
Non-Standard Processing
For... Define...
Tailoring Default EDITPA that defines the seings that you want to
howModule for use for most partner pairs.
EDIprocesses
Partner-specific EDITPAs for group sender/receiver pairs if
documents
you want to override the seings in the default EDITPA.
For more information, see "Defining EDI Trading
Partner Agreements" on page 61. For information related
specifically to non-standard processing, see "Defining
a Partner-Specific EDITPA When Using Non-Standard
Processing" on page 374.
webMethods Module for EDI Installation and User’s Guide Version 9.12 373
M
Even Header
Non-Standard Processing
Note: You can disable partner-specific EDITPAs. When you disable a partner-
specific EDITPA, Module for EDI functions as if the partner-specific EDITPA
does not exist. That is, Module for EDI uses the values in the default EDITPA.
webMethods Module for EDI Installation and User’s Guide Version 9.12 374
M
Odd Header
Non-Standard Processing
ProcessNormally
Reject
For more information, see “ControlNumberManagement/duplicateControlNumberAction
EDITPA Variable” in "ControlNumberManagement Variables" on page 88.
ControlNumberManagement/outOfSequenceControlNumberAction EDITPA Variable Default: Error &
Continue
The ControlNumberManagement/outOfSequenceControlNumberAction variable indicates the
action you want Module for EDI to take when it encounters an out-of-sequence control
number in an inbound document.
When you are using non-standard processing, this EDITPA is only used for out-of-
sequence group control numbers. To set the action for out-of-sequence interchange
control numbers, use the Out of sequence control number action seing that you set from
the Interchange Information Detail screen of the Module for EDI home page. For more
information about accessing and using this screen, see "Defining Interchange-Level
Sender/Receiver Pair Information" on page 376.
You can specify one of the following for ControlNumberManagement/
outOfSequenceControlNumberAction :
Error & Continue
ProcessNormally
Reject
For more information, see “useReverseRoute EDITPA Variable” in "useReverseRoute
Variable" on page 92.
FAGeneration EDITPA Variables
When you are using non-standard processing, Module for EDI does not use any of the
FAGeneration EDITPA variables. Instead, Module for EDI uses the corresponding values
that you specify on the Interchange Information Detail screen of the Module for EDI
webMethods Module for EDI Installation and User’s Guide Version 9.12 375
M
Even Header
Non-Standard Processing
home page. For more information about accessing and using this screen, see "Defining
Interchange-Level Sender/Receiver Pair Information" on page 376.
The group envelope header in a EDI document contains only the value for the sender
and receiver without the corresponding EDI ID qualifier code. For example, it might
contain the D-U-N-S number for the sender (186704136), but not the EDI ID qualifier
(01) that indicates that the value is a D-U-N-S number. Both the EDI ID qualifier and
the value for the partner are required for Module for EDI and for Trading Networks to
obtain the correct profiles and EDITPA to process the document.
You define interchange-level sender/receiver pair information to provide the EDI ID
qualifiers for the group level senders and receivers. Using the WmEDIforTN home page
you define the EDI ID qualifier to use for the group sender and group receiver based
on the interchange sender/receiver pair. In other words, when an EDI document has a
specific interchange sender/receiver pair, you specify the group EDI ID qualifiers that
you want Module for EDI and Trading Networks to use for the group header sender and
receiver.
Additionally, when you define the interchange-level sender/receiver pair information,
you can specify information that services you create to form outbound EDI documents
can use. Specifically, you can define the information to form the interchange headers for
outbound EDI documents.
Module for EDI stores the interchange-level sender/receiver pair information that you
define in the EDIEnvelope table, which is a Module for EDI-specific table in the Trading
Networks database.
To define interchange-level sender/receiver pair information, perform the following
procedure for each interchange-level sender/receiver pair that you expect in the EDI
documents that you want Module for EDI to process.
Tip: If you want to define information for an interchange sender/receiver pair that
is similar to a pair you have already defined, you can copy the information
for the existing pair and modify it. For instructions, see "Editing and Deleting
Interchange-Level Sender/Receiver Pair Information" on page 387.
webMethods Module for EDI Installation and User’s Guide Version 9.12 376
M
Odd Header
Non-Standard Processing
Sender Qualifier The EDI ID qualifier that corresponds to the sender ID. For
example, 01 for a D-U-N-S number.
Receiver Qualifier The EDI ID qualifier that corresponds to the receiver ID.
6. In the Envelope Information section of the screen, specify the production mode of the
documents being exchanged between the trading partners. Select Production, Testing,
or Custom.
7. In the Inbound Information section of the screen, specify the following information that
the Module for EDI uses when processing an inbound EDI document:
Create Doc Whether you want Module for EDI to save the interchange
document to the Trading Networks database when
processing a document from the interchange sender/
receiver pair defined in the ID Qualifiers section of the
screen. Specify either Yes or No.
webMethods Module for EDI Installation and User’s Guide Version 9.12 377
M
Even Header
Non-Standard Processing
8. In the Inbound Information - Control Number Validation section of the screen, specify the
following seings that Module for EDI uses when validating interchange control
numbers in an inbound EDI document. For more information about how these
seings are used, see " Trading Networks Aributes and EDI Documents" on page
211.
Note: To set up control number validation for group control numbers, use the
ControlNumberManagement EDITPA variables, which are described starting
with "wm.b2b.editn.TPA:EDITPA IS Document Type When Using Non-
Standard Processing" on page 374.
Validate inbound Whether you want Module for EDI to verify the control
envelope control numbers in the interchange header when processing
numbers a document from the interchange sender/receiver pair
defined in the ID Qualifiers section of the screen. Specify
either Yes or No.
webMethods Module for EDI Installation and User’s Guide Version 9.12 378
M
Odd Header
Non-Standard Processing
Duplicate control The action you want Module for EDI to take when it
number action encounters a duplicate control number in an interchange
header.
webMethods Module for EDI Installation and User’s Guide Version 9.12 379
M
Even Header
Non-Standard Processing
Out of sequence The action you want Module for EDI to take when it
control number encounters an out-of-sequence control number in an
action interchange header. Select Error & Continue, Process
Normally, or Reject. For a description of these seings, see
the descriptions of the seings above for Duplicate control
number action.
You can later force processing of the out-of-sequence
document if you want. For more information, see
"Reprocessing Documents with Out-of-Sequence Control
Numbers" on page 269.
9. In the Inbound Information - FA Generation section of the screen, specify the following
information that Module for EDI uses to determine whether it should automatically
generate functional acknowledgments (FAs) for inbound EDI document and seings
for generating the FAs. For more information about automatic FA generation, see
"Automatically Generating Functional Acknowledgments" on page 275.
a. In the Auto Generate FA field, specify whether you want to turn automatic FA
generation on as follows:
b. In the FA Level field, specify the level of detail that you want Module for EDI to
acknowledge in the FAs that it generates as follows:
webMethods Module for EDI Installation and User’s Guide Version 9.12 380
M
Odd Header
Non-Standard Processing
Default Envelope level (group for ANSI X12 and interchange for
UN/EDIFACT)
c. In the Process Document field, specify how you want Module for EDI to process a
transaction, group, or UN/EDIFACT interchange based on its FA status. Use this
field to define the FA statuses that are acceptable and unacceptable.
For acceptable FA statuses, Module for EDI processes a transaction, group, or
UN/EDIFACT interchange using its normal processing. For unacceptable FA
statuses, Module for EDI performs different processing.
webMethods Module for EDI Installation and User’s Guide Version 9.12 381
M
Even Header
Non-Standard Processing
Accepted
Unacceptable FA statuses: Rejected
For more information, see "Defining Actions Module for EDI Takes Based on FA
Status" on page 279.
d. In the Generate Control Number field, specify how Module for EDI is to generate the
control numbers that are used in the interchange and group headers of the FAs
that are automatically generated. Select one of the following:
From Inbound Use the control numbers from the corresponding headers
Document of the inbound EDI document that the FA acknowledges.
e. In the Syntax Error Status field, specify how you want Module for EDI to report the
syntax error status for a transaction, group, or UN/EDIFACT interchange. The
Module for EDI uses the syntax error status along with the logical error status
and child transaction rejected status (if applicable) to determine the FA status for
a transaction, group, or UN/EDIFACT interchange.
webMethods Module for EDI Installation and User’s Guide Version 9.12 382
M
Odd Header
Non-Standard Processing
f. In the Logical Error Status field, specify how you want Module for EDI to report
the logical error status for a transaction, group, or UN/EDIFACT interchange.
Module for EDI uses the logical error status along with the syntax error status
and child transaction rejected status (if applicable) to determine the FA status for
a transaction, group, or UN/EDIFACT interchange.
Set the status as follows:
Specify... To have Module for EDI report the logical errors as...
g. In the Child Transaction Rejected Status field, specify how you want Module for
EDI to report the child transaction rejected status for a group or UN/EDIFACT
interchange.
The child transaction rejected status indicates whether child elements of a group
or UN/EDIFACT interchange have an FA status of "Rejected".
Specify one of the following:
webMethods Module for EDI Installation and User’s Guide Version 9.12 383
M
Even Header
Non-Standard Processing
10. In the Outbound Information - FA Generation section of the screen, specify the following
information that Module for EDI uses to for the sender and receiver in the
BizDocEnvelope that it creates for the FA. When defining a Trading Networks
processing rule to deliver the FA, you use the BizDocEnvelope information when
defining the processing rule criteria.
webMethods Module for EDI Installation and User’s Guide Version 9.12 384
M
Odd Header
Non-Standard Processing
11. In the Outbound Information - Delimiters section of the screen, specify the following
information that a service you create to form outbound EDI documents can use:
Field The field separator for each EDI segment (for example, !).
The default is the "*" character.
SubField The separator for composite elements (e.g, *). The default
is the ":" character.
Release The release character for the outbound EDI document (for
example, "?").
12. In the Outbound Information - Envelope Information section of the screen, specify the
following information that a service you create to form outbound EDI documents
can use to form the interchange headers:
webMethods Module for EDI Installation and User’s Guide Version 9.12 385
M
Even Header
Non-Standard Processing
ISA01 The value to use for the ISA01 element of an ANSI X12
interchange header in the outbound EDI document.
ISA02 The value to use for the ISA02 element of an ANSI X12
interchange header in the outbound EDI document.
ISA03 The value to use for the ISA03 element of an ANSI X12
interchange header in the outbound EDI document.
ISA04 The value to use for the ISA04 element of an ANSI X12
interchange header in the outbound EDI document.
ISA011 The value to use for the ISA11 element of an ANSI X12
interchange header in the outbound EDI document.
ISA012 The value to use for the ISA12 element of an ANSI X12
interchange header in the outbound EDI document.
ISA014 The value to use for the ISA14 element of an ANSI X12
interchange header in the outbound EDI document.
webMethods Module for EDI Installation and User’s Guide Version 9.12 386
M
Odd Header
Non-Standard Processing
13. Click Save Changes. Module for EDI adds the information you defined for the
interchange sender/receiver pair identified in the ID Qualifiers section of the screen to
the EDIEnvelope table in the Trading Networks database.
webMethods Module for EDI Installation and User’s Guide Version 9.12 387
M
Even Header
Non-Standard Processing
Production Mode The production mode specified in the information for the
interchange-level sender/receiver pairs that you want to
display.
Sort By How you want Module for EDI to sort the returned list of
interchange-level sender/receiver pairs.
5. Click Search. Module for EDI displays the list of interchange-level sender/receiver
pairs that match your criteria at the boom of the screen.
6. You can edit, delete, or copy information for any of the listed interchange sender/
receiver pairs.
To edit information for an interchange sender/receiver pair, click in the Edit
column. Module for EDI displays the information for the interchange sender/
receiver pair. You can edit fields as necessary.
To delete information for an interchange sender/receiver pair, click in the
Delete column.
To copy information for an interchange sender/receiver pair, click in the
Copy column. This enables you to define information for a new interchange
sender/receiver pair that uses most of the same information as the original
interchange sender/receiver pair. Module for EDI displays the information for
the new interchange sender/receiver pair. You can edit fields as necessary.
7. If you edited or made a copy of information for an interchange sender/receiver pair,
click Save Changes to complete the procedure.
A B X Y
When you define group-level sender/receiver pair associations, you must define all the
group-level sender/receiver pairs that are associated with a single interchange-level
webMethods Module for EDI Installation and User’s Guide Version 9.12 388
M
Odd Header
Non-Standard Processing
sender/receiver pair. A group-level sender/receiver pair can be associated with only one
Interchange-level sender/receiver pair.
A B X Y
C B
D B
A C
D E X Z
D F
These associations are for use by services that you create to form outbound EDI
documents. Because you are using non-standard processing, your service will have the
group-level senders and receivers. However, to create an interchange header for the
outbound EDI document, your service requires the interchange-level sender/receiver
pair. To make a correlation between group-level sender/receiver to interchange-level
sender/receiver, your service uses the group-level sender/receiver pair associations
that you define. For example, if your service has group-level sender A and receiver B,
using the group-level sender/receiver pair associations, the service can determine that
the associated interchange-level sender/receiver pair is interchange-level sender X and
receiver Y.
After your service retrieves the interchange-level sender/receiver pair information, your
service can create the interchange headers by using the information you defined for the
interchange sender/receiver pair.
Module for EDI saves the group-level sender/pair associations in the EDIGroup
table, which is a Module for EDI-specific table in the Trading Networks database.
The EDIGroup table works together with the EDIEnvelope table, which contains
the interchange-level sender/receiver pair information that is described in "Defining
Interchange-Level Sender/Receiver Pair Information" on page 376. The following
graphic illustrates how the EDIEnvelope and EDIGroup tables work together.
webMethods Module for EDI Installation and User’s Guide Version 9.12 389
M
Even Header
Non-Standard Processing
webMethods Module for EDI Installation and User’s Guide Version 9.12 390
M
Odd Header
Non-Standard Processing
Production Mode The production mode specified in the information for the
interchange-level sender/receiver pairs that you want to
display.
Sort By How you want Module for EDI to sort the returned list of
interchange-level sender/receiver pairs.
5. Click Search. Module for EDI displays the list of interchange-level sender/receiver
pairs that match your criteria at the boom of the screen.
6. In the row for the interchange-level sender/receiver pair to which you want to
associate group-level sender/receiver pairs, click in the GS column. Module for
EDI displays the Cross Reference > GS Pairs screen that lists the interchange-level
sender/receiver pair and any existing group-level sender/receiver pairs.
7. For each group-level sender/receiver pair that you want to associate with the
interchange-level sender/receiver pair, perform the following:
a. Click Add GS Pair. Module for EDI displays the Add GS Pairs screen.
b. Specify the following about the group-level sender/receiver pair:
webMethods Module for EDI Installation and User’s Guide Version 9.12 391
M
Even Header
Non-Standard Processing
Sort By How you want Module for EDI to sort the returned list of
group sender/receiver pairs.
5. Click Search. Module for EDI displays the list of group-level sender/receiver pairs
that match your criteria at the boom of the screen.
webMethods Module for EDI Installation and User’s Guide Version 9.12 392
M
Odd Header
Non-Standard Processing
Interchange Use the Validate inbound envelope control numbers seing on the
Module for EDI home page. For more information about how
to define this seing, see "Defining Interchange-Level Sender/
Receiver Pair Information" on page 376.
webMethods Module for EDI Installation and User’s Guide Version 9.12 393
M
Even Header
Non-Standard Processing
webMethods Module for EDI Installation and User’s Guide Version 9.12 394
M
Odd Header
Non-Standard Processing
When defining the seings and you are using non-standard processing, you must
supply different values for the sender/receiver pair that you define in the ID Pair
Information section of the Add Control Number screen. For non-standard processing,
supply the following for the ID Pair Information fields listed below:
Sender Qualifier The EDI ID qualifier associated with the sender ID, for
example, 01 to identify a D-U-N-S number.
Receiver Qualifier The EDI ID qualifier associated with the receiver ID, for
example, 01 to identify a D-U-N-S number.
webMethods Module for EDI Installation and User’s Guide Version 9.12 395
M
Even Header
Non-Standard Processing
Create Doc Whether you want the Module for EDI to save the
Interchange document to the Trading Networks database.
GS Sender The EDI ID qualifier to use with the sender IDs on the group
Qualifier headers.
GS Receiver The EDI ID qualifier to use with the receiver IDs on the
Qualifier group headers.
Validate inbound Whether you want Module for EDI to verify the control
envelope control numbers in the interchange header of the interchange
numbers segment that it is processing.
Duplicate control The action that you want Module for EDI to take when it
number action encounters a duplicate control number in the interchange
header of the interchange segment that it is processing.
Out of sequence The action that you want Module for EDI to take when
control number it encounters an out-of-sequence control number in the
action interchange header of the interchange segment that it is
processing.
Auto Generate FA Whether you want Module for EDI to automatically generate
FAs for an inbound EDI document. If you specify On or Per
Document for Auto Generate FA, specify the other variables in
the Inbound Information - FA Generation section.
webMethods Module for EDI Installation and User’s Guide Version 9.12 396
M
Odd Header
Non-Standard Processing
webMethods Module for EDI Installation and User’s Guide Version 9.12 397
M
Even Header
webMethods Module for EDI Installation and User’s Guide Version 9.12 398
M
Odd Header
Using Module for EDI Decoupled from Trading Networks
webMethods Module for EDI Installation and User’s Guide Version 9.12 399
M
Even Header
Using Module for EDI Decoupled from Trading Networks
Overview
webMethods Module for EDI offers built-in services in WmEDI and WmEDIforTN
packages. The WmEDI package contains the core EDI document processing built-in
services. The WmEDIforTN package contains additional built-in services for processing
EDI documents using webMethods Trading Networks (Trading Networks).
In a distributed environment, to handle heavy EDI document processing loads, you can
configure some of your servers to do the job of just translating the EDI documents by
decoupling Module for EDI from Trading Networks. You can have a centralized Trading
Networks server for storing the transactions in your EDI network and routing the EDI
documents to your partners.
This appendix describes how to configure your EDI network nodes to use only the basic
EDI document parsing and validating services available in the WmEDI package.
Note: When you use Module for EDI decoupled from Trading Networks, you must
install Module for EDI on each Integration Server in the cluster, and each
installation must be identical. For information on running Integration Server
in a clustered environment, see the webMethods Integration Server Clustering
Guide for your release.
webMethods Module for EDI Installation and User’s Guide Version 9.12 400
M
Odd Header
Using Module for EDI Decoupled from Trading Networks
2 Create flat file schemas for EDI "Creating Flat File Schemas for EDI
documents. Documents" on page 403
3 If you want to use EDI built- "Creating Flat File Schemas for
in services to convert internal- Internal-Format Documents" on
format documents (for example, page 36
documents from a back-end
system) from IData objects to
Strings and vice versa, create a
flat file schema that defines the
structure of the internal-format
documents.
webMethods Module for EDI Installation and User’s Guide Version 9.12 401
M
Even Header
Using Module for EDI Decoupled from Trading Networks
6 Create clients to send the EDI "Creating Clients that Send EDI
documents to Integration Server. Documents to Integration Server "
on page 143
webMethods Module for EDI Installation and User’s Guide Version 9.12 402
M
Odd Header
Using Module for EDI Decoupled from Trading Networks
3 Define the Module for EDI properties "Defining Module for EDI
in the properties.cnf configuration Properties" on page 26
file. For handling large documents,
set an appropriate value for the
EDIBigDocThreshold property.
Important: If you are processing documents of the TRADACOMS EDI standard, you
must use Module for EDI in conjunction with Trading Networks.
webMethods Module for EDI Installation and User’s Guide Version 9.12 403
M
Even Header
Using Module for EDI Decoupled from Trading Networks
Note: If you are using Module for EDI in conjunction with Trading Networks, you
do not need to use the wm.b2b.edi:SEFParse service to create the flat file schema.
The flat file schemas are created automatically for you when you use the
procedure described in "Defining TN EDI Document Types" on page 37.
To create a flat file schema from a SEF file, you must perform these high-level steps:
Step Description
1 Determine where the SEF file you want to use is located, either on your
local file system or on the Web.
Many SEF files are provided with Module for EDI. When you install
Module for EDI, the installer stores each SEF file as:
WmEDI/pub/SEFs/standard /version .sef
where
standard represents the EDI standard (for example, X12) and version
represents the EDI standard version (for example, 4010).
For example:
WmEDI/pub/SEFs/X12/4010.sef
2 Create the flat file dictionary for the EDI standard and version that you are
using.
webMethods Module for EDI Installation and User’s Guide Version 9.12 404
M
Odd Header
Using Module for EDI Decoupled from Trading Networks
Step Description
For all supported EDI standards except TRADACOMS, use the following
naming convention for targetSchema if you plan to use Trading Networks:
EDIFFSchema.standard .Vversion :Tname
where:
standard represents the EDI standard (for example, X12), version
represents the EDI standard version (for example, 4010), and name
represents the EDI transaction (for example, 850).
For example: EDIFFSchema.X12.V4010:T850
For the TRADACOMS EDI standard, the wm.b2b.edi:SEFParse service
creates a temporary flat file schema. Use the following naming convention
for targetSchema :
EDIFFSchema.TRADACOMS.Vversion :Tname :TEMP_SCHEMA
where:
version represents the version of the TRADACOMS File document type
(for example, v2) and name represents the name of the TRADACOMS File
document type (for example, ORDHDR)
This temporary flat file schema contains all the messages
contained in the TRADACOMS file. You should then execute the
wm.b2b.edi.tradacoms.ui:modifyTradacomsSchema service to split the flat file
schema into one flat file schema per MHD segment in the TRADACOMS
file.
This temporary flat file schema will be deleted upon successful execution of
the wm.b2b.edi.tradacoms.ui:modifyTradacomsSchema service.
5 From Designer, make changes to the flat file schema to meet your site's
needs. For example, you might want to change some of the format services
that are associated with fields or if you do not want a format service
executed for a field, remove the format service for that field.
webMethods Module for EDI Installation and User’s Guide Version 9.12 405
M
Even Header
Using Module for EDI Decoupled from Trading Networks
To create a flat file schema from an SAP IDOC, you must perform the following high-
level steps.
Step Description
2 From Designer, make changes to the flat file schema to meet your site's
needs. For example, you might want to assign format services to fields in
the flat file schema.
webMethods Module for EDI Installation and User’s Guide Version 9.12 406
M
Odd Header
Using Module for EDI Decoupled from Trading Networks
When you use the pub.schema:validate service, you must have an IS document type that
defines the structure of the internal-format document. For more information about the
pub.schema:validate service, see the webMethods Integration Server Built-In Services Reference
for your release.
Example
The Tutorial.XMLtoEDI:processXMLSource service in the WmEDIsamples package converts
an XML document into an outbound EDI (ANSI X12) document. The WmEDIsamples
webMethods Module for EDI Installation and User’s Guide Version 9.12 407
M
Even Header
Using Module for EDI Decoupled from Trading Networks
package is located in the Knowledge Center Samples area on the Empower Product
Support website at hps://empower.softwareag.com. The samples in this folder have
been certified, meaning that they have been tested by Software AG.
webMethods Module for EDI Installation and User’s Guide Version 9.12 408
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 409
M
Index
-wmedisemiwrap80 content type 157 collection areas for interchanges in batch EDI
-wmediwrap132 content type 157 data 314
-wmediwrap80 content type 157 combining EDI documents in queue 313
application/X12 creating
and data type for edidata variable 192 multiple documents each with one interchange
content type 144, 157 312
applyFormat, fo rmat service 35 single document with multiple interchanges
As sig n EDI Module Specific Permiss ions in My 312
webMethods 25 delimiters
assigning conversation IDs to EDI documents 367 for collection areas 315
associating replacing to match output EDI batch data 315
custom attribute with EDI document 243 to use for batch EDI document 319
EDI format services with EDI data types 36 used when no interchange header 318
group-level sender/receiver pair 388 Deliver Document By processing action 331,
queue with scheduled delivery service 337 333
attributes delivering batch EDI document 331
system 212, 241 erro r, IS document published 321
Trading Networks 211 example of sorting documents to be batched 315
Attributes variable in pipeline 228, 250 Execute a Service processing action 332, 332,
Auto Generate FA field 380 332
automatic generation of FAs 276 extracting and sorting transactions from
documents
B so they can be batched 313
back-end systems 290 steps for 313, 316
batch and transmission headers failure notification, setting publishBatchFailEvent
control numbers for outbound EDI documents variable 321
291 headers
batch control number group in batch EDI document 321
validating 114 interchange in batch EDI document 321
batch criter ia EDITPA variable 93 when no interchange header in documents to
batch criteria E DI TPA variable 95 be batched 316
batch criteria EDITPA variable 93, 93, 97 prerequisites to batching when using Trading
Batch documents, TRADA COMS Networks 326
system attribute 241 private queues, why not to use 331
Batch documents, TRADACOMS processing rule to deliver batch EDI document
DocumentID system attribute 241 331
GroupID system attribute 241 recombining transactions to form batch EDI
viewing 354 document 321
batch headers setting up how to batch 329
control numbers, validating 114 subcollection areas for groups in batch EDI data
validating batch control numbers 114 314
batchcriteria EDITPA variable 96 task status, updating for document included in
batching batch 313, 317
and FA reconciliation 322 viewing progress of 357
and UNAmode EDITPA variable 74 wm.b2b.editn.batch
BizDocEnvelope for final batch EDI document batchProcess service 312, 327
322 Before you Begin 401
bi zdoc variable
in pipeline 250
webMethods Module for EDI Installation and User’s Guide Version 9.12 410
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 411
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 412
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 413
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 414
M
Index
control numbers in ANSI X12 ISA, GS, and ST digital signature, Verify Digital Signature pre-
headers 212 processing action 225, 248
del ivering outbound EDI document 305 Disable FA status, FA reconciliation 73, 345
delivering outbound EDI document disabling FA reconciliation 73
delivering from the service that forms it 298 disadvantages of
drop variables after invoking wm.tn.doc.xml processing document segment by segment 194
304 processing entire document at one time 193
setting scope to prepare to execute routeXml do cTypeName variable 252
service 303 docID variable 229, 229, 229, 251, 251, 252
submitting back to Trading Networks 302 DocResxxxxx.dat, large file naming 165
form ing outbound EDI document docTypeID variable 229, 229, 230, 251, 252, 252
service to create a Biz DocEnvelope 307 docTypeN ame variable 229
forming outbound EDI docume nt docTypeName variable 229, 230, 251, 252
limiting pipeline elements to execute the docum ents
routeXml service 303 in ternal-format 36
forming outbound EDI document document IDs
drop variables after invoking wm.tn.doc.xml FA reconciliation 344
304 Document T ype 223
pipeline after setting scope for the INVOKE Document Type
routeXml flow operation 303 processing rule critiera 223, 246
saving output from the addICenvelope service documentation
302 using effectively 13
setting scope to prepare to execute routeXml DocumentID
service 303 system attribute 212, 212, 241, 241, 306
when using non-standard processing 397 variable in pipel ine 250
when using standard processing 293 variable in pipeline 228
generating FAs documents
invoking generateFA before invoking EDI 401
envelopeProcess 181 DONE processing status on Transaction Analysis
inbo und EDIdo cument screen 356
process ing Transact ion document 230 DONE W/ ERRORS processing status on
inbound EDI document Transaction Analysis screen 356
processing entire document at one time 195, DUNS external ID type, Trading Networks 60
406 Duplicate control number action field 379, 393, 396
processing iteratively, segment by segment duplicate control numbers
203 defining action for 137, 137, 138
processing Transaction document 253 reprocessing documents with 268
processing transactions in a Group document user status 264
232 Duplicate FA status, FA reconciliation 345
Process Model Illustrati ng Proc essing of Duplicate FA/Errors status, FA reconciliation 345
UN/EDIFACT Transa ction document 365,
366 E
Process Model Illustrating Processing of EANCOM variables
ANSI X12 850 Transaction document 364 autoGenerateAUTACK 101
ANSI X12 Group document 363 EANCOMAUTACK/configuration
UN/EDIFACT Interchange document 365 characterSetEncoding 103
reprocessing documents with out-of-sequence digestAlgorithm 102
control numbers 270 paddingAlgorithm 103
webMethods Module for EDI Installation and User’s Guide Version 9.12 415
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 416
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 417
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 418
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 419
M
Index
Extended Criteria for processing rules 224, 247, use during outbound processing 300
331, 332 FALevel ED ITPA variable 80
external ID types generateControlNumber EDITPA variable 82
and GSRouting variables 67 processDocument EDITPA variable 81
defined 60 rejectionRules/childTransactionRejectedStatus
DUNS (Trading Networks) 60 EDITPA variable 85
for EDI ID qualifiers 60 rejectionRules/logicalError Status EDITPA
Mutually-Defined (Trading Networks) 60 variable 85
external IDs rejectionRules/syntaxErrorStatus EDITPA
and GSRouting variables 67 variable 84
when defining profiles 59 fail delivery task status 320
external IDs, TRADACOMS false, setting
when defining profiles 107 FAReconciliation EDITPA variable 344
externalFormatString, format service 34 isEnabled format service 34
FAReconciliation EDIT PA variable
F and splitOption value 71
FA Er rors, FA reconciliation 346 FAReconciliation EDITPA variable 72, 343
FA Level field 380 and batching 322
FA reconciliation 343 and EDI recognizer 299
and batching 322 FAs
disabled 73 997 documents 170, 342
enabled 343 autom a tic generation of FAs
statuses in report 345 steps to generate 284
FA s tatus es automatic generation of FAs
FA reconciliation report generated FA description 183
FA Errors 346 how EDI Module processes documents based
FA statuses on FA status 279
acceptable 277 setting up 276
FA reco nciliation report turning on or off 277
Reject 346 automatically generating 275
FA reconciliation report child tran saction rejected status, determining
Accept 345 176
Accept with Errors 346 child transaction
Disable 73, 345 whether allowed in group 174
Duplicate 345 whether any rejected 176
Duplicate FA/Errors 345 configuring maximum number of transaction
Error 345 errors 172
Interchange Received 346 CONTRL message 170, 342
None 345 errors, configuring maximum number to report
Partially Allowed 346 172
how generateFA service determines 173 FA statuses, acceptable 277
processing rule to handle documents with un FA statuses, unacceptable 277
acceptable 282 FAReconciliation 344
unacceptable 277 gene rating
values of, in EDITRACKING Table 345 FAs when processing documents iteratively
FAGeneration segment by segment 182
addGroup EDITPA variable 83 generated FA description 183
autoGenerateFA EDITPA variable 80 generating
FAs automatically 275
webMethods Module for EDI Installation and User’s Guide Version 9.12 420
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 421
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 422
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 423
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 424
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 425
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 426
M
Index
BizDocEnvelope 305
built-in services to form 291 P
control numbers 296 packages
control numbers, TRADACOMS 136, 297 WmEDI 192, 402
delimi t ers/record variable 75 WmEDIsamples 196
delimiters/record variable 88, 95, 99 WmFlatFile 34
delivering Partial ly Accepted setting
delivery methods 297 Child Transaction Rejected Status field 383
directly from service that forms it 298 Partially Accept FA status, FA reconciliation 346
to VANs 336 partner information
field separator 75 non-standard processing 372
flow service examples 145, 407 standard processing 58, 106
receiver ID and envelopeIdentifier/sender/ID Partner Set Up menu of EDI Mo dule home page
variable 77 392
routing through Trading Networks 304 Partner Set Up menu of EDI Module h ome page
segment terminator 75 377
sender ID and envelopeIdentifier/sender/ID Partner Set Up menu of EDI Module home page
variable 76 387, 390
sending to Trading Networks from internal partner-specific EDITPA 62, 62, 62, 65, 109
applications 290 defining 63, 374
submitting back to Trading Networks 298 defining when using TRADACOMS 110
variables for processing 299 Per Document setting
variables for processing TRADACOMS Auto Generate FA field 380
documents 300 PERL scripts 149
wm.b2b.editn persistMultipleDocEnvelope EDITPA variable 69,
trackEDIdocs service to record in 117
EDITRACKING table 72 persistOriginalEnvelope EDITPA Variable 96, 97
Outbound Information pipeline
Deli miters field 385 after setting scope for the INVOKE routeXml flow
Envelope Information fie ld 386 operation 303
FA Generation fields 384 Attributes variable 228, 250
OutboundEDIDoc input variable 306 bizdoc var iable 250
out-of-sequence control numbers bizdoc variable 228
defining action for 137, 137, 138 BizDocEnvelope 228, 250
definition 260 diag ram of, after setting scope for INVOKE
reprocessing documents with 268 routeXML flow operation 303
service to reprocess documents with 270 diagram of, after setting scope for INVOKE
user status 264 routeXML flow operation 303
outputs DocumentID variable 228, 250
bizdoc variable 307 edidata variable 144
from wm.b2b.edi.util Errors variable 228, 250
generateFA service 183 information in that your service can access 250
overriding pr e-processing settings with processing information inthatyour service can access 228
rule settings 225 using scope to temporarily limit pipeline variables
overriding pre-processing settings with processing 303
rule settings 247 port
Overview 16, 16, 21 8021 for FTP 151
File Polling listener 161
webMethods Module for EDI Installation and User’s Guide Version 9.12 427
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 428
M
Index
TRADACOMS File documents, sample code setting values of attributes at run time 221, 244
252, 254 Trading Networks 208, 238
Transaction document, sample code 230 use custom attribute as criteria 222, 245
processing actions 225, 248 Processing Service field 154
documents with unacceptable FA statuses 284 processingM ode EDI TPA variable 70
outbound FA 282 ProcessNormally setting of
when invalid control number 267 ControlNumberManagement
processing EDI documents duplicateControlNu mberAction EDITPA variable
entire docum e nt at one time 375
advanta ges of 193 outOfSequenceControlNumberAction EDITPA
entire document at one time 181, 193, 194 variable 375
disadvantages of 193 Production Mode
sample code 194 and IMB11 field of UN/EDIFACT document 71
inbound document iteratively 202 and ISA015 field of ANSI X12 document 71
iteratively, segment by segment 182, 193, 199 control number information 140
prerequisites 21 custom attribute 232, 235
with Trading Networks 24 envelope information 377
segment by segment 182, 193, 199 group-level sender/receiver pairs 391
advantages of 194 interchange-level sender/receiver pairs 388
disadvantages of 194 processingMode variable 70
using Trading Networks, prerequisites 209, 239 profiles
ways to 193 creating 107
processing rules 208, 238 defining 59, 107, 373
and GSRoutin g var iables 67 properti es.cnf file, EDI Module
and Trading Networks attributes 211, 240 EDIResolveDuplicates property 346
batching properties.cnf file, EDI Module
EDI documents 331 EDIMaxFATransactionErrors property 172
criteria 223, 246 properties.cnf file, Trading Networks
outbou nd FA 281 tn.tspace.location property 165, 165
when invalid control number 266 tn.tspace.max property 165, 165
deliver EDI documents to VANs 339 tn.tspace.timeToLive property 165, 165
delivering batch EDI document 331 Proposed, EDITPA Agreement Status 62, 110
documents with unacceptable FA statuses 282 pub.client
Ex ecute a Service action ftp service 152, 159
inbound EDI documents 238 http service 149
Execute a Service action 221, 244 example of, with wm.tn 158
inbound EDI documents 209 pub.io
overriding pre-processing settings 225, 247 streamToBytes service
pre-processing actions when invalid control processing File documents 255
number 267 pub.list
process document with invalid control number appendToD ocumentList service
265, 282 processing File documents 254
process inbound EDI documents 245 pub.schema
process outbound FAs 281 validate service 148, 406
processi ng actions pub.string
when invalid control number 267 bytesToString service
processing actions 225, 248 processing File documents 255
documents with unacceptable FA statuses 284 stringToBytes service 307
outbound FA 282 public queue
webMethods Module for EDI Installation and User’s Guide Version 9.12 429
M
Index
associated with scheduled deliver service 337 receiverIDQua lifier input variable 320
public scheduled delivery queue 312 receiverIDQualifier input variable 316, 317, 324
settings 330, 338 receiverQualifier input variable 306
VANs 337 Recognition Errors processing rules critieria 224,
publishBatchFailEvent EDITPA variable 74, 118, 247
321, 328 Reject FA status, FA reconciliation 346
Reject setting
Q action when invalid control number 263
Qualifier for group-level sender/receiver pairs 392 Cont r olNumberManag ement
querying for existing group-level sender/receiver outOfSequenceControlNumberActi on EDITPA
pair associations 392 variable 375
Queue Name 330, 338 ControlNumberManagement
QUEUED processing status on Transaction duplicateControlNumberAction EDITPA
Analysis screen 356 variable 375
queues Duplicate control number action field 379
private 331 Out of sequence control number action field 379
scheduled 312 Rejected setting
Child Transaction Rejected Status field 383
R Logical Error Status field 383
Random setting logicalErrorStatus input variable of generateFA
Generate Control Number field 382 176
Re ceiver ID Syntax Error Status field 382
adding control numb er information 140 syntaxErrorStatus input variable of generateFA
rec eiverID input variable 317 175
rece iver related documents flag, setting 358
Interchange, Group, T ransac tion documents 67 release character 76
receiver Release field 385
and GSRouting/routingM ode variable 67 requirements for
input variable for createEDIBizDoc Service 306 HTTP client 149
interchange-level 376 submitting EDI documents to Trading Networks
Receiver via HTTP 158
EDIT PA 63 trading pa rtner relationships, met in EDITPA 62
EDITPA 64, 110, 111 trading partner relationships, met in EDITPA 110
processing rule critieria 223, 246 retrieving inbound EDI documents from a VAN 336
Receiver field, Outbound Information - FA routing outbound EDI documents through Trading
Generation 384 Networks 304
Receiver ID routingMode variable 67
adding control number information 130, 140, run time, setting values of custom attributes 221,
395 244
group-level sender/receiver pairs 390, 391
interchange-level sender/receiver pairs 377, 387 S
Receiver Qualifier sample
adding control number informat ion 130 business process 369
adding control number information 141, 395 code 194
group-level sender/receiver pairs 391, 391 process models 369
interchange-level sender/receiver pairs 377, 387 sample code
receiverID inp ut variable 320 creating service when using non-stand ard
receiverID input variable 316, 318, 324 processing 397
webMethods Module for EDI Installation and User’s Guide Version 9.12 430
M
Index
delivering outbound EDI document from service creating flat file schema from 403
that forms it 298 flat file schema a nd wm.b2b .edi
forming EDI document using standard SEFParse service 35
processing 293 segment
processing converting to IData object 203
entire document at one time 194 counts, complia nce che ck 199
inbound EDI document iteratively 202 processing document by 182, 193, 199
Transaction document 230 Segment field 385
processing Group document 232 Segment setting
routi ng EDI document through Trading Networks FA Level field 381
305 segment terminator in outbound EDI document 75
routing EDI document through Trading Networks selecting
305 EDI documents to view on the Transaction
submitting outbound EDI document back to Tr Analysis screen 356
ading Ne two rks 302 processing rule, criteria 331, 332
sample process models sender
ANSI X12 documents 363 and GSRouting/routingMode v ariable 67
UN/EDIFACT Interchange documents 365 input variable for createEDIBizDoc service
sampleServices service 306
Iterator810 service 206 interchange-level 376
UNEDIFACTToValues 196 Sender
UNEDIFACTtoValues service 205 EDITPA 63, 64, 110, 111
X12toValues service 205 processing rule criteria 223, 246
SAP IDOC 403, 405 Sender field, Outbound Information - FA Generation
files 405 384
Save Document to Database pre-pr ocessing action Sender ID
225 adding control number information 129, 141,
Save Document to Database pre-processing action 395
247 group-level sender/receiver pairs 390, 391
EDI documents 354 interchange-level sender/receiver pairs 377, 387
setting when invalid control number 267 Sender Qualifi er
saveInboundToTN, input variable to getFromVAN adding control number information 129
service 336 Sender Qualifier
Schedule, scheduled delivery queue 330 adding control number information 142, 395
scheduled delivery queues group-level sender/receiver pairs 390, 391
batching 312 interchange-level sender/receiver pairs 377, 387
defining 330 senderID input variable 316, 318, 320, 324
delivery task 357 senderID input variables 317
number to define 329 senderIDQualifier input variable 316, 317, 320, 324
VANs 337 senderQualifier input variable 306
viewing information about EDI documents in sending
queue 357 EDI documents to Integration Server 144
scheduled delivery service associated with public using File Polling 153
queue 337 outbound document to Trading Networks from
se nder internal applications 290
Interchange, Group, Transaction documents 67 separator
searching for control numbers 138 composite elements 75
security header information 291 field 75
SEF file ser vic es
webMethods Module for EDI Installation and User’s Guide Version 9.12 431
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 432
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 433
M
Index
that EDI Module sets 212, 241 Trading Networks 208, 238
User Status 224, 247 ac tivity log 350
and EDI recognizer 208, 238, 298, 298
T database 354, 354
targetSchema 404 delivering EDI document
Tasks page 357 Group splitOption variable 301
Testing Mode Interchange splitOption variable 300
and IMB11 field of UN/EDIFACT document 71 delivery tasks and batching EDI documents 313,
and ISA015 field of ANSI X12 document 71 317, 320
custom attribute 232, 235 DocumentID system attribute 212, 241
envelope information 377 DUNS external ID type 60
processingMode variable 70 EDIFFSchema folder 37, 44
TN document types EDITPA variables 210, 240
assigning custom document attributes to 243 FAs 342
flat file schema 44 flat file schemas 32
Trading Networks processing 208, 238 GroupID system attribute 212, 241
tn.tspace.location configuration property 165 large document handling 164
tn.tspace.max configuration property 165 Mutually-Defined external ID type 60
tn.tspace.timeToLive configuration property 165 processing EDI documents 156
TPA 61, 109 processing inbound EDI documents 208, 238
tr ansmission headers providing EDI ID qualifiers 60
control num bers, validating 113 public queue 337
TRADACOMS EDI documents routing outbound EDI documents through 304
adding outbound envelopes and obtaining submitting documents to via File Polilng 160
control numbers 297 TN document types 208, 238
and storageOption variable 113 Trading Networks attributes 211
TRADACOMS/ControlNumberManagement and EDI documents 211, 240
duplicateControlNumberAction EDITPA variable custom attributes 211, 240
114 system attributes 211, 240
outOfSequenceControlNumberAction EDITPA Trading Networks Console
variable 115 creating default EDITPA 63
validateInboundBatchControlNumbers EDITPA creating EDITPA 63
variable 114, 116, 116, 117, 117 profiles, creating 107
validateInboundFileControlNumbers EDITPA trading partners
variable 114 creating profiles 107
validateInboundTransmissionControlNumbers defining profiles 59, 373
EDITPA variable 113 transact ionDocument variable 252
TRADACOMS/enforceApplicationReference transaction
EDITPA variable 116 control numbers, compliance check 199
TRADACOMS/splitOption EDITPA variable 112 counts, compliance check 199
and Trading Networks 238 FA status of FA 175
documents saved to Trading Networks database FA status, determining 178
354 Not Allowed FA status 174
Execute a Service processing action 248 Transaction CntrlNum Status custom attribute 242
processing rule for inbound EDI documents 245 Transaction docume nts
TRADACOMS/storageOption EDITPA variable 113 processing, sample code 230
tradi ng partners Transaction documen ts
defining profiles 107 DocumentID system attribute 212
Transaction documents
webMethods Module for EDI Installation and User’s Guide Version 9.12 434
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 435
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 436
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 437
M
Index
webMethods Module for EDI Installation and User’s Guide Version 9.12 438
M
Index
steps to extract and sort transactions to be view service, determining Trading Networks
batched 313, 316 internal ID 308
wm.b2b.editn.TPA wm.tn.rec
EDITPA IS document type 63, 64, 65, 110, 111, BizDocEnvelope IS document type 228, 250
112 wm.tn.route
getEDITPAData service 294 routeBizdoc service, routing document through
initService 64, 65, 111, 112 Trading Networks 305
wm.b2b.editn.util WmEDI package
getContentPartDataAsInputStream service EDI Module 192, 402
processing File documents 254 EDICOR server log key 350
wm.b2b.editn.util.repro cess large document handling 164
listInSequence service, reprocessing out-of- large document processing 164
sequence documents 270 wm.b2b.edi.tradacoms.compose 297
wm.b2b.editn.util.reprocess WmEDIconfig directory 214
listUnprocessedDocuments service, locating WmEDIforTN package
documents with duplicate control numbers 268 EDIFFSchema folder 37, 44
nextInSequenceDoc service, reprocessing out-o EDIFTN server log key 350
f-sequence documents 274 EDITPA 62, 110
reprocessDocument service WmEDIsamples package
reprocessing duplicate documents 268 downloading 196
reprocessing out-of -sequence documents 273 outbound flow services 145, 407
wm.b2b.util.documentList sampleServices
addDocToDocu mentList service UNEDIFACTToValues 196
processing File documents 254 Tutorial.XMLtoEDI
wm.pub.flow processX MLSource service 145
debugLog service, processing Transaction processXMLSource service 407
documents 232, 235 WmFlatFile package configuration 34
wm.tn
receive service X
and pub.client 158, 159 XML documents
client invokes 157 converting into outbound EDI (ANSI X12),
example of 159 example of 145, 407
File Polling 161 XML-to-EDI fl ow service example 145
port number 5555 for HTTP 158 XML-to-EDI flow service example 407
POST EDI document to 158
sending 157, 158, 159, 161 Symbols
URL of for HTTP 158 _RID_ element 166
wm.tn.doc
addContentPart service, adding outbound EDI
doc ument to BizDocEnv elo pe 310
createNewEnvelope service, creating
BizDocEnvelope for outbound EDI document 309
wm.tn.doc.xml
routeXml service
preparing pipeline to invoke 302, 304
sending multiple EDI documents 161
submitting document to Trading Networks for
document recognition 302
wm.tn.doctype
webMethods Module for EDI Installation and User’s Guide Version 9.12 439