ESISAPInstallConfigGuide Ja PDF
ESISAPInstallConfigGuide Ja PDF
ESISAPInstallConfigGuide Ja PDF
Systems Integration
Installation and
Configuration Guide - SAP®
Windchill 10.2
September 2013
Copyright
Copyright © 2013 PTC Inc. and/or Its Subsidiary Companies. All
Rights Reserved.
User and training guides and related documentation from PTC Inc. and its
subsidiary companies (collectively "PTC") are subject to the copyright laws of the
United States and other countries and are provided under a license agreement that
restricts copying, disclosure, and use of such documentation. PTC hereby grants to
the licensed software user the right to make copies in printed form of this
documentation if provided on software media, but only for internal/personal use
and in accordance with the license agreement under which the applicable software
is licensed. Any copy made shall include the PTC copyright notice and any other
proprietary notice provided by PTC. Training materials may not be copied without
the express written consent of PTC. This documentation may not be disclosed,
transferred, modified, or reduced to any form, including electronic media, or
transmitted or made publicly available by any means without the prior written
consent of PTC and no authorization is granted to make copies for such purposes.
Information described herein is furnished for general information only, is subject
to change without notice, and should not be construed as a warranty or
commitment by PTC. PTC assumes no responsibility or liability for any errors or
inaccuracies that may appear in this document.
The software described in this document is provided under written license
agreement, contains valuable trade secrets and proprietary information, and is
protected by the copyright laws of the United States and other countries. It may
not be copied or distributed in any form or medium, disclosed to third parties, or
used in any manner not provided for in the software licenses agreement except
with written prior approval from PTC.
UNAUTHORIZED USE OF SOFTWARE OR ITS DOCUMENTATION CAN
RESULT IN CIVIL DAMAGES AND CRIMINAL PROSECUTION. PTC
regards software piracy as the crime it is, and we view offenders accordingly. We
do not tolerate the piracy of PTC software products, and we pursue (both civilly
and criminally) those who do so using all legal means available, including public
and private surveillance resources. As part of these efforts, PTC uses data
monitoring and scouring technologies to obtain and transmit data on users of
illegal copies of our software. This data collection is not performed on users of
legally licensed software from PTC and its authorized distributors. If you are
using an illegal copy of our software and do not consent to the collection and
transmission of such data (including to the United States), cease using the illegal
version, and contact PTC to obtain a legally licensed copy.
I m p o r t a n t C o p y r i g h t , Tr a d e m a r k , P a t e n t , a n d L i c e n s i n g I n f o r m a t i o n : See
the About Box, or copyright notice, of your PTC software.
2
U N I T E D S TAT E S G O V E R N M E N T R E S T R I C T E D R I G H T S L E G E N D
This document and the software described herein are Commercial Computer
Documentation and Software, pursuant to FAR 12.212(a)-(b) (OCT’95) or
DFARS 227.7202-1(a) and 227.7202-3(a) (JUN’95), and are provided to the US
Government under a limited commercial license only. For procurements predating
the above clauses, use, duplication, or disclosure by the Government is subject to
the restrictions set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data
and Computer Software Clause at DFARS 252.227-7013 (OCT’88) or
Commercial Computer Software-Restricted Rights at FAR 52.227-19(c)(1)-(2)
(JUN’87), as applicable. 01282013
PTC Inc., 140 Kendrick Street, Needham, MA 02494 USA
3
Contents
5
About This Guide
This guide provides installers and administrators with the information required to
install and configure Windchill ESI components.
In general, this guide is intended for technical staff members who are experienced
in Windchill PDMLink and other application installations. It assumes you have
the following:
• Knowledge of the existing system data structures at your site.
• Knowledge of the web architecture used at your site.
• Knowledge of Java Server Page (JSP) capabilities.
• Knowledge of World Wide Web browser operation.
• UNIX system administration skills (if you are using UNIX systems).
• Windows system administration skills (if you are using Windows systems)
Since Windchill ESI and ERP Connector are supported with Windchill PDMLink,
this guide assumes that you have installed this product and have read and are
acquainted with its features.
Using Windchill ESI also involves using software components of TIBCO
BusinessWorks and assumes you are familiar with the features of this product
suite.
Windchill ESI and ERP Connector can also be used to publish manufacturing
objects. To publish manufacturing objects you must have Windchill MPMLink
installed.
7
Related Documentation
The following documentation makes up the Windchill ESI and ERP Connector
documentation set:
• PTC Windchill Enterprise Systems Integration Administration Guide - Oracle
Applications
• PTC Windchill Enterprise Systems Integration Administration Guide - SAP
• PTC Windchill Enterprise Systems Integration Customizer's Guide - Oracle
Applications
• PTC Windchill Enterprise Systems Integration Customizer's Guide - SAP
• PTC Windchill Enterprise Systems Integration Installation and Configuration
Guide - SAP
• PTC Windchill Enterprise Systems Integration Installation and Configuration
Guide - Oracle Applications
• PTC Windchill Enterprise Systems Integration Implementation Guide - Oracle
Applications
• PTC Windchill Enterprise Systems Integration Implementation Guide - SAP
• Windchill Enterprise Systems Integration Open Application Programming
Interface Guide
• ERP Connector Administration Guide
Te c h n i c a l S u p p o r t
Contact PTC Technical Support through the PTC website, or by phone, email, or
fax if you encounter problems using this product or the product documentation.
For complete details, see the PTC Customer Service Guide. You can find this
guide under C o n t a c t i n g Te c h n i c a l S u p p o r t on the PTC Technical Support page:
http://www.ptc.com/support/index.htm
You must have a Service Contract Number (SCN) before you can receive
technical support. If you do not have an SCN, contact the PTC Maintenance
Department using the instructions found in the PTC Customer Service Guide or on
the PTC Technical Support page.
Comments
PTC welcomes your suggestions and comments on its documentation. To submit
your feedback, you can:
• Send an email to [email protected]. Include the name of the
application and its release number with your comments. If your comments are
about a specific help topic or book, include the title.
• Click the PTC help center feedback icon in the upper right of a Windchill
Help Center topic and complete the feedback form. The help topic title is
automatically included with your feedback.
11
• Resources, including process materials, skills and tooling
• Documents associated with manufacturing objects, such as operations and
resources
Note
Some ERP systems do not support all of these functions. Check with your
administrator to verify the capabilities of your ERP system. For example:
• While a document, a CAD document or its structure that is released from
Windchill may be sent with the ESI response, none of these would be
published to Oracle Applications. Also, control characteristics associated
to parts (or to manufacturing objects) may be sent with the ESI response,
but are not published to Oracle Applications either.
• A CAD document structure that is released from Windchill PDMLink may
be sent with the ESI response, but only the documents that make up the
structure (and not their interrelationships) would be published to SAP.
Te c h n i c a l O v e r v i e w o f W i n d c h i l l E S I a n d
ERP Connector
The following outlines the functions of the key components of a Windchill ESI or
ERP Connector system.
Info*Engine provides the standard interface to Windchill PDMLink, creating a
single channel to multiple external environments, including the Windchill ESI
business logic.
Windchill ESI services produce output from Windchill PDMLink in a format that
can be easily accepted by the EAI software components of Windchill ESI. This
output can then be processed and mapped to a distribution target such as an ERP
system. The output from Windchill PDMLink is in XML format; it is transported
to the EAI software through XML messages that are delivered using a JMS
provider such as TIBCO Enterprise Message Service (EMS).
While the response message (that represents the data being published) is in plain
XML, the result response message (that holds information on whether or not the
overall and subtransaction statuses could be updated in Windchill successfully) is
an XML message that is SOAP encoded
This messaging architecture supports bidirectional communication, guarantees
message delivery, and provides a common interface to different EAI applications.
JMS enables Windchill PDMLink to send messages that contain data in a
predefined format, communicate information about the publishing of this data to
the EAI software components of Windchill ESI, and receive the status of the
success or failure of attempts to publish. Since JMS communication is between
two systems: Windchill PDMLink and EAI components, Windchill ESI uses JMS
point-to-point communication via JMS queues. JMS guarantees message delivery;
therefore, messages published to the queue remain in the queue until the EAI or
Windchill ESI services retrieve them. Messages are not dropped if there is no
response.
The Windchill ESI business logic in the EAI software accepts the product
structure data from Windchill ESI services and parses it to appropriate business
objects so that it can be transferred to the distribution targets. Since each
distribution target may differ from others in many ways, such as the format in
which data is accepted, how updates are performed, or with the type of business-
Note
While ERP Connector does not make use of TIBCO it does make use of the
Windchill capabilities available in Windchill ESI.
19
Installation and Configuration Checklist
Use the following checklist as a guide to install and configureWindchill ESI on
Windows and UNIX platforms:
1. Reviewing Requirements on page 20
2. Determining How to Handle Attribute Length Differences on page 21
3. Creating ESI User Accounts and Configuring SAP for Windchill ESI on page
22
4. Configuring ERP Part Information on page 45
5. Uninstalling TIBCO Software (optional) on page 46
6. Installing and Configuring Windchill ESI on page 53
7. Configuring Windchill PDMLink and Info*Engine on page 67
Reviewing Requirements
Before beginning review the following Windchill ESI requirements.
Note
To minimize the occurrence of known issues, you should obtain the latest
Windchill Enterprise Systems Integration software and patches from the PTC
software update website. Contact PTC Technical Support if you require
assistance.
Note
Each TIBCO product might require you to apply certain patches to your
operating system. Refer to the readme files accompanying each TIBCO
product for details on required patches.
SAP Notes
The following SAP Notes must be applied if standalone parts need to be revised
using parameter-effective change numbers:
• SAP ECC5.0 : SAP note #500117
• SAP ECC6.0 : SAP note #500117
The following SAP Notes must be applied. These notes are required to resolve
Routing alternate dates and date shift related issues, when using Change Notice.
• SAP ECC5.0 : SAP note #987084
Note
This note is bundled with support pack "SAPKA64020". If you have
already applied support pack SAPKA64020 you do not have to apply this
note.
Note
This note is bundled with support pack "SAPKA70011". If you have
already applied support pack SAPKA70011 you do not have to apply this
note.
Assumptions
The instructions in the following sections make the following assumptions:
• You are acquainted with SAP interfaces and are familiar with their navigation
and selection processes.
• You have applied the support packs and OSS notes listed in the PTC Windchill
Note
Since distribution targets can be customized some of the options and screens
presented in the following steps may not match what you have on your
systems. Refer to the documentation provided with your systems for more
specific and detailed information.
3. Navigate through this file to find all the necessary configuration screens in the
following steps. Alternately, you can use the search function, CRTL+F, to
search the node titles for key words.
3. Deselect all indicators forWindchill ESI document types: DES, DOC, DRW,
SPE, TST.
Note
Make sure the 1 : n r a t i o field is deselected.
Caution
These are not the default values. You must change them.
17. Verify that the document status for each document type is listed. If they are
not, click N e w E n t r i e s to add them.
18. Repeat for each document type: DOC, DRW, SPE and TST.
19. Click S a v e and create a Transport Request.
Configuring BOMs
To configure BOMs, perform the following procedure:
1. From the I m p l e m e n t a t i o n G u i d e window, select P r o d u c t i o n ▶ B a s i c D a t a ▶ B i l l
of Material ▶ Control Data for Bills of Material ▶ Define modification
p a r a m e t e r s , as shown in the following window:
Note
In the following sections, installation and configuration instructions apply to
both Windows and UNIX installations. Where Windows and UNIX differ,
additional documentation is provided to show the differences.
Note
You must have the required privileges to customize the SAP instance.
3. Select D e f i n e C h e c k i n g G r o u p s D e f a u l t Va l u e .
This will display the default values for Av a i l a b i l i t y C h e c k for a given material
for a specific plant.
4. In order to set the default value for a given plant and specific material type,
select the N e w e n t r i e s option.
Note
There is no standard BAPI available to associate and disassociate MIC from a
Material and from an Operation. The following custom RFC have been
developed to achieve these functionalities:
• ZRFC_MAINTAIN_MAT_SPEC
• ZRFC_MAINTAIN_MAT_SPEC
To import these zRFCs, take the appropriate files from <TIBCO_HOME>/esi/
RFC/<SAP Version>/TransportRequest_MIC.zip
Note
If you already have these RFCs deployed from a previous Windchill release
and these RFCs have been modified or customized, then importing these RFCs
again will overwrite all customizations that you have done. Verify that your
customizations are in the newly imported code. If not then your
customizations will need to be redone.
It is recommended that before importing the latest code, your existing customized
code be saved to the transport request and these requests should be released. On
releasing the transport request the cofiles and data files are generated. Backup
these files.
Use the following procedure to begin creating custom RFCs, by creating transport
requests:
1. Navigate to the Transport.zip file (or if the CP_BD_DIRECT_INPUT_PLAN
approach is being used, TransportRequest_OPR_LABEL.zip), found in the
following directory:
<TIBCO_HOME>/esi/RFC/<<SAP version 5.0/6.0>>
2. Copy the following files to the following SAP application directory path
locations:
On Windows systems:
• K9000XX.SID to <<drive>>:\usr\sap\trans\cofiles
• R9000XX.SID to <<drive>>:\usr\sap\trans\data
Note
To logon, use T-Code STMS
Caution
Do not click the I m p o r t A l l R e q u e s t s icon.
7. In the I m p o r t Tr a n s p o r t R e q u e s t window:
• On the D a t e tab change the Ta r g e t C l i e n t field to 800.
• On the E x e c u t i o n tab, select the S y n c h r o n o u s option.
• On the O p t i o n s tab set the import options as shown.
C h a n g i n g t h e D e f i n e W o r k c e n t e r A p p l i c a t i o n ( T-
CODE: DC30)
For ECC5.0, or if you are using any other SAP instance on which SAP Note
948177 has been implemented, use the following procedure to change the D e f i n e
Wo r k c e n t e r A p p l i c a t i o n :
Note
To verify the configuration open the URL specified in the browser; the
URL should display the WSDL for the web service hosted by the
Windchill ESI Solution.
6. Click F i n i s h .
Ti p
Before removing your existing TIBCO software document any configuration
changes you have made so that they can be redeployed with the new
installation.
Note
If you are using EMS 5.x, or TRA 5.5, you must have Java 1.5 installed.
Note
The above commands require Java 6.
To uninstall earlier TIBCO software from a Windows system use the following
procedure:
1. Stop all TIBCO services.
2. Select S t a r t ▶ P r o g r a m s ▶ T I B C O ▶ T I B C O I n s t a l l a t i o n M a n a g e r .
3. From the main menu, select A c t i o n .
4. Select U n i n s t a l l A l t + U .
5. Click Ye s .
Note
Each command must be run separately.
3. To uninstall SAP Adapter 6.1, Oracle Adapter 5.4.1 and SDK 5.7 use the
following procedure:
a. Launch the uninstaller from one of the following locations:
• <TIBCO_Installation_Home>/adapter/adr3/6.1/_uninst/Tibuninstall.
exe
• <TIBCO_Installation_Home>/adapter/adorapps/5.4/_uninst/
Tibuninstall.exe
• <TIBCO_Installation_Home>/adapter/sdk/5.7/_uninst/Tibuninstall.exe
4. To uninstall TRA 5.7.1 suite, EMS 6.0.1, Business works 5.9.0, Rendezvous
8.3.1, Administrator 5.7.1 launch the universal uninstaller from <TIBCO_
Installation_Home>/_uninstall/uninstall.bin.
Note
The above commands require Java 6.
From a Windows System with EMS 4.4.3, Rendezvous 8.1 and Hawk
4.7 installed:
Note
TIBCO EMS 4.4.3 is removed when using the procedure outlined in
Uninstalling TIBCO Software (optional) on page 46.
Note
You may have to restart your system.
Note
These commands assume that the environment variable PATH is set to point to
the java executable.
From a UNIX System with TIBCO Rendezvous 8.1 and Hawk 4.7
Installed
Execute the following commands:
• <TIBCO_Installation_Home>/hawk/_uninst/Tibuninstall.bin
• <TIBCO_Installation_Home>/tibrv/8.1/_uninst/Tibuninstall.bin
From a UNIX System with TIBCO Rendezvous 7.2 and Hawk 4.7
Installed
Execute the following commands:
• <TIBCO_Installation_Home>/hawk/_uninst/Tibuninstall.bin
• <TIBCO_Installation_Home>/tibrv/7.2/_uninst/Tibuninstall.bin
Ti p
Before removing these directories back up your log files.
Pre-installation Notes
Before beginning installation of Windchill ESI note the following:
• You may be asked to replace the <version>.xml file that already exists in the
folder. There is no danger in doing so and you can continue with the
installation.
• If you are installing both a TIBCO Adapter for an SAP system, and a TIBCO
Adapter for an Oracle system, then you must install both adapters in the same
location. If you have an adapter installed already, and you would like to install
the other adapter in a different location you must first uninstall the first adapter
and the TIBCO Runtime Agent.
• You must download SAP JCO and RFC library from the SAP website. TIBCO
adapters are compatible with SAP JCO version 2.1.6 or higher 2.1.x and RFC
SDK version 6.40 for Windows and RFC SDK version 7.x for other supported
platforms. Refer to the TIBCO adapter for SAP’s readme file for details and
updated information.
• On Windows, if you already have an older librfc32.dll in the %WINDir%
\system32 directory, replace it with the one that comes with JCO.
Ty p i c a l
This option enables you to install and configure theWindchill ESI middleware in
its entirety. During this process you configure the ESI Business Logic and install
the following components:
• TIBCO Enterprise Messaging Service
• TIBCO BusinessWorks
• TIBCO Administrator
• TIBCO Adapter for SAP or Oracle
Note
• If not already on your system the TIBCO Runtime Agent is also installed.
The TIBCO Runtime Agent is a prerequisite required for installing TIBCO
BusinessWorks, TIBCO Administrator and TIBCO Adapter for SAP or
Oracle.
Note
Windchill ESI can be configured and deployed on multiple SAP or Oracle
instances.
Note
This installer includes a virtual machine and does not require a Java
Runtime Environment.
Note
Any previously installed TIBCO products will be detected by the MICU.
These products are not re-installed or upgraded by the MICU.
Note
If you have selected a C u s t o m installation method, and are installing
specific components, or if you plan to deploy the EAR on multiple SAP
instances, take note of the directory you have selected to install in. Any
components that you choose to install at a later date must be installed in
this same directory.
Note
If you have selected a C u s t o m installation method, and are installing
specific components, or if you plan to deploy the EAR on multiple SAP
instances, take note of the directory you have selected to install in. Any
components that you choose to install at a later date must be installed in
this same directory.
Note
Ensure that these port numbers are not the same as those of the Windchill
Tomcat server or any other servers running on this machine. To verify this
run the following command:
• On Windows:
netstat | find /I "<portnumber>"
• On UNIX:
netstat | grep <portnumber>
Click N e x t .
15. In the S A P E R P P r o p e r t i e s window set the following properties:
• S A P A p p l i c a t i o n S e r v e r : The host name where the SAP application server
is installed and setup.
• S A P S y s t e m N u m b e r : The system number of the SAP application server.
• S A P S y s t e m I D : The system ID of the SAP application server.
• S A P C l i e n t : The client of the SAP application server.
Note
Contact your SAP Administrator if you do not have this information.
Click N e x t .
16. In the E M S S e r v e r P r o p e r t i e s window set the following properties:
• E M S S e r v e r H o s t N a m e : The name of the machine where the EMS Server
is installed. The default is the host name.
• A d m i n i s t r a t o r U s e r n a m e : The EMS server administrator’s user name. The
default is admin.
• A d m i n i s t r a t o r P a s s w o r d : The EMS server administrator’s password. The
default is admin.
Click N e x t .
17. In the E S I E M S U s e r n a m e a n d P a s s w o r d window set the following properties:
Ti p
To find the domain name in Windchill open the following file:
• <Windchill_Home>\\installer\\WNC-installer.properties
Then look for the domain name specified in the following variable:
• WC_PROMPTED.wt.inf.container.SiteOrganization.internetDomain
Click N e x t .
Additionally, you must resolve the library dependency of the tibhawkma file. To
do this on:
• HPUX v3: Update the /etc/dld.sl.conf file and add <<Tibco_Home>>/tibrv/
<version>/lib to the list. Then run the following command:
chmod 744 /etc/dld.sl.conf
H o w to C h e ck i f th e We b Se rvi c e f o r ER P P a r t I n f o r ma t i o n
i s Wo r k i n g
If exceptions are being thrown when you try to access ERP cost details for a part,
it could mean one of the following; Either the web service hasn't been configured
properly, or the service is not running in the background. The following procedure
describes how to check for these issues:
Go to the preferences section and click on the pencil icon to see if the web service
can be accessed. You should see a WSDL being used for fetching part costs. In
case you face problems with the web service, verify the following:
1. Verify that the port on which the web service is running is not blocked. For
example, a firewall, intruder detection software, or virus scan software could
be blocking the web service. If it is being blocked, change the appropriate
settings to permit data traffic on this port or use an open port for the web
service.
2. Verify that the port is not being used by another application. If it is being used
by another application, use another open port.
P u b l i s h i n g D o c u m e n t s w i t h C r o s s - R e f e r e n c i n g Va l u e s
In order to publish documents successfully with cross-referencing values, you
must update the file <TIBCO_HOME>\esi\bin\ESILookups.properties with the
D o m a i n N a m e Va l u e for each Windchill document type. The default value for the
domain is PTCNET. For more information refer to the following comment in the
ESILookups.properties file:
Note
Cross-referencing refers to the use of ERP equivalents for the data that comes
from Windchill.
Bu s i n e s sWo r k s C o n f i g u ra t i o n S e t t i n g s
To configure BusinessWorks use the following procedure:
1. Backup the following file:
<<TibcoHome>>/designer/<<version>>/bin/designer.tra
2. In a text editor, open the following file:
<<TibcoHome>>/designer/<<version>>/bin/designer.tra
3. Search for the following string:
tibco.env.CUSTOM_CP_EXT
4. Replace that string with the following:
tibco.env.CUSTOM_CP_EXT %RV_HOME%/lib/tibrvj.jar:%RV_HOME%/lib:%RV_HOME%/lib/64:
Note
There may be additional folders on the path. Keep these entries when
replacing the string.
Note
There may be additional folders on the path. Keep these entries when
replacing the string.
Note
Ensure that
• "/" is used as a path separator and that the ESIDirectory path is
terminated by "/" .
• <ESISAPAdapter/SystemID>/.<ESISAPAdapterClient> is appended to
the value of the global variable ESIJMS/DataResponseQueue.
• The JMS URL in ESIJMS/JNDIContextURL and ESISAPAdapter/
JMSProviderURL, has the relevant hostname instead of “localhost”.
11. Click S a v e .
12. Click < $ H o s t n a m e $ > ▶ P r o c e s s A r c h i v e u n d e r P r o c e s s A r c h i v e . p a r .
13. Increase the H e a p S i z e , S e t M a x i m u m H e a p S i z e ( M B ) and J a v a T h r e a d S t a c k
S i z e ( K B ) to 512 or higher.
14. Click S a v e .
15. Click T I B C O A d m i n i s t r a t o r G U I ▶ A p p l i c a t i o n M a n a g e m e n t ▶
< A p p l i c a t i o n N a m e > ▶ C o n f i g u r a t i o n ▶ E S I S A PA d a p t e r C o n f i g u r a t i o n . a a r ▶
A d v a n c e d ▶ a d r 3 . m a x c o n n e c t i o n s and set the existing value to a higher value
(for example, 6), then add adr3.locale to UTF8.
16. Click S a v e .
17. Click D e p l o y and then O K .
Note
You can also use ERP Connector to associate distribution targets with an
object.
Note
These procedures apply to systems with Windchill I-deas TDM Gateway
installed and configured before Windchill ESI is installed, and are based on
the assumption thatWindchill ESI is to use a Gateway configured SUNMQ
JMS.
Configure TIBCO
To configure TIBCO use the following procedure:
1. Open the existing ESI TIBCO project in the designer.
2. Navigate to the following project:
• SharedConfigurations ▶ JMS ▶ ESIMaster_JMSConnection ▶
Configuration
3. Modify the following parameters, using the appropriate JNDI properties:
• JNDI Context Factory
• JNDI Context URL
• JNDI User Name
• JNDI Password
Configuring SUNMQ
To configure SUNMQ use the following procedures:
• Create queues on SUNMQ
You must create the following queues on the SUNMQ destination:
○ SAP Default: com.ptc.windchill.esi. DataResponse.<systemID>.<client>
Where <systemID> is the system name for the SAP distribution target. and
<client> is the client for the SAP system. For example, 800 .<system> and
<client> must match the values specified for the attributes System ID and
Client respectively of the distribution target in Windchill.
○ Oracle Applications Default: com.ptc.windchill.esi. DataResponse.<DSN>
Where <DSN> is the ODBC datasource name for Oracle Applications
underlying database connection. This is the same value that is provided for
ESIOMAdapter/Datasource global variable.
To create these queues use the following procedure:
Configuring Windchill
Use the following procedure to configure Windchill with SUNMQ:
1. Open the I n f o * E n g i n e A d m i n i s t r a t o r window, located at S i t e ▶ U t i l i t i e s .
2. Click on the Windchill adapter (com.ptc.ptcnet.<machine_name>.Windchill),
and change the following values:
• J M S B a s e U R I : <value_of_JMS_Base_URI> For example: ldap://
i2467.ptcnet.ptc.com:389/dc=SunMQ,dc=I4242
• Q u e u e C o n n e c t i o n F a c t o r y : <Name_of_Queue_Connection_
Factory> For example: ieQCF
3. Delete the value for the following property
• J M S C o n t e x t P r o v i d e r F a c t o r y : <blank>
73
Windchill ESI Preferences
Windchill ESI preferences are stored and maintained the same way as other
Windchill PDMLink preferences, in the P r e f e r e n c e M a n a g e m e n t utility.
Authorized users can configure the generation of Windchill ESI response
messages by modifying one or more of theseWindchill ESI preferences.
To open the P r e f e r e n c e M a n a g e m e n t utility, use one of the following links:
• Site ▶ Utilities ▶ Preference Management
• Site ▶ Organization ▶ Preference Management
Caution
Windchill ESI preferences are stored in XML files. These XML files should
not be manually edited.
D i s t r i b u t i o n Ta r g e t A t t r i b u t e s
A distribution target has several attributes whose values determine what data
constitutes the ESI response message. For example, the attribute Publish
Alternates When Publishing a Part when set to Ye s ensures that when generating
the response message for the distribution target the alternate parts that have been
associated with the part being published are also processed.
For a list of distribution target attributes that are relevant for a given business
object type and their descriptions, see the following sections. These sections are
applicable to SAP distribution targets only.
• Attributes Pertaining to a Change Notice on page 75
• Attributes Pertaining to a BOM on page 78
• Attributes Pertaining to a Part on page 79
• Attributes Pertaining to a Process Plan on page 79
• Attributes Pertaining to a Manufacturing Resource on page 83
• Attributes Pertaining to a CAD Document Structure on page 83
• Other Configurable Attributes on page 84
Note
With this attribute set
to Yes, a control
characteristic that is
associated to an
operation will be
published upon
publishing the holding
process plan; this
happens regardless of
the value of the
attribute Publish
Control
Characteristics when
Publishing a Part,
even if the control
characteristic is also
associated to a part.
Publish only Incremental Defines whether or not Yes
Changes when Publishing only incremental changes
a Process Plan should be sent with the
ESI response when
publishing a process plan.
Publish Related Defines whether or not Yes
Documents when related documents should
Publishing a Process Plan be sent with the ESI
response when publishing
a process plan.
Publish Line Numbers for Defines whether or not No
Components in an line number information
Assembly should be sent with the
ESI response when
publishing a process plan.
Number of Levels in an Defines the number of 1
Assembly to Publish levels in an assembly to
when Publishing a be sent with the ESI
Process Plan response when publishing
a process plan.
Note
If you modify any global variables you must redeploy the application for any
changes to take effect. The description for any global variable can be viewed
as a tool-tip from the TIBCO Administrator GUI, by placing the mouse
pointer over the respective global variable.
P r o c e s s E n g i n e G l o b a l Va r i a b l e G r o u p s
The following global variable groups contain variables that are used in the
business logic.
G l o b a l Va r i a b l e G r o u p Description
ESIClassName This group contains the global variables that
represent the class names of various objects like
parts, BOMs, CNs, and process plans. If class
names are changed in Windchill then these
values also need to be changed accordingly.
These variables are used to compare and
identify a type of object. Based on the
identified type, a message is written to the
Process Archive log.
ESIConstants This group contains global variables for
constant values; For example actions like
Create, Change, Unchange, Delete and for
boolean values like true, false.
ESIFlags This group contains global variables that define
actions based on the boolean value they are set
to.
ESIJMS This group contains global variables for JMS
connection and related activities.
ESILog This group contains global variables used to
configure and identify the information that
needs to written to the Process Archive log.
ESIClassNames
The following table describes the global variables that make up this Process
Engine Global Variable Group.
Caution
These global variables should not be modified until they have been first
modified in Windchill.
ESIConstants
The following table describes the global variables that make up this Process
Engine Global Variable Group.
ESIFlags
The following table describes the global variables that make up this Process
Engine Global Variable Group.
Global variable name Description P o s s i b l e Va l u e s a n d
Windchill ESI
Defaults
RevisionsEnabled Defines whether or not a true, false
revision should be created Default: true
in SAP for the following
object types - Part,
Process Material or
Tooling of type Tool.
EnableSortString Specifies that a valid Sort true, false
Identification String attribute defined in Default: false
SAP be used as a unique
identifier for items on a
Bill of Materials.
Note
This feature is
designed for those
who do not use line
numbers and wish to
support the scenario
where the same part
may appear on the
Bill of Materials
multiple times- as a
substitute, component,
or combination of
both. If enabled, all
Bills of Materials that
exist in SAP and
Windchill PDMLink
must have a valid Sort
String value defined
in SAP. If the value
for the Sort String in
SAP is not correctly
defined, data
corruption will occur.
If enabled, the Sort
String value for
components will be
defaulted with the out
of- the-box value of
"000", and the
substitute Sort String
will be populated with
the Alt Item group
sent from Windchill.
ESIJMS
The following table describes the global variables that make up this Process
Engine Global Variable Group.
The following JMS queue names may be changed to a valid JMS queue name,
with the following restrictions:
• New queues would need to be created on the EMS Server.
• The new queues must follow JMS queue configuration and security
guidelines.
Note
Windchill JMS configurations may also need to be modified to support the
new queue.
ESILog
The following table describes the global variables that make up this Process
Engine Global Variable Group.
Global variable Description P o s s i b l e Va l u e s a n d
name Windchill ESI Defaults
ERPPrimary The flag to enable Integer value 1 = on; 0 = off;
logging of ERP Default: 1
Primary messages.
ERPSecondary The flag to enable Integer value: 1 = on; 0 = off;
logging of ERP Default: 1
Secondary messages.
Functional_Debug The flag to enable Integer value: 1 = on; 0 = off;
logging of Type Default: 0
functional (1) and
Severity debug (9)
messages
Functional_Error The flag to enable Integer value: 1 = on; 0 = off;
logging of Type Default: 1
functional (1) and
Severity error (1)
messages
Functional_ The flag to enable Integer value: 1 = on; 0 = off;
Informational logging of Type Default: 0
functional (1) and
Severity informational
(4) messages.
Functional_Success The flag to enable Integer value: 1 = on; 0 = off;
logging of Type Default: 1
functional (1) and
Severity success (3)
messages.
Functional_Warning The flag to enable Integer value: 1 = on; 0 = off;
logging of Type Default: 1
functional (1) and
Severity warning (2)
messages.
Note
To log Asian character sets
(for locales ja, zh_CN, zh_
TW, ko) you must change your
system encoding to the desired
language: Japanese, Korean,
Chinese. Or use the operating
system for that language.
On Windows:
To set your system encoding to,
for example, Japanese, on an
English operating system:
1. Click S t a r t >S
Se t t i n g s >C
Co n t r o l
Panel.
2. Click R e g i o n a l O p t i o n s .
Note
Failure to set a proper
value for this variable
can result in
incomplete error
handling. The process
will suspend without a
proper message. In
order to remedy the
error, the engine will
need to be restarted
after the variables
have been set.
Note
Failure to set a proper
value for this variable
can result in
incomplete error
handling. The process
will suspend without a
proper message. In
order to remedy the
error, the engine will
need to be restarted
after the variables
have been set.
ESIMessaging
The following table describes the global variables that make up this Process
Engine Global Variable Group.
Global variable name Description P o s s i b l e Va l u e s a n d
Windchill ESI
Defaults
EAISecondary The flag to enable Integer value: 1 = on; 0 =
sending functional off; Default: 1
decision and warning
messages back to
Windchill PDMLink
ERPPrimary The flag to enable Integer value: 1 = on; 0 =
sending ERP Primary off; Default: 1
information back to
Windchill PDMLink
ERPSecondary The flag to enable Integer value: 1 = on; 0 =
sending ERP Secondary off; Default: 1
information back to
Windchill PDMLink
RootCause The flag to enable Integer value: 1 = on; 0 =
sending Root Cause off; Default: 1
messages back to
Windchill PDMLink
E S I P a d d i n g Tr u n c a t e
The following table describes global variables that are used either for padding or
truncating the numbers of objects (such as documents, CNs, parts and resources)
in order to make their lengths equal to those defined by default in SAP versions
ECC5.0 and ECC6.0
Note
The default value of each global variable is also the length of the relevant
attribute, as defined in SAP. Also, padding will occur provided the value of the
attribute is all numeric. Truncation will occur if the global variable ESIFlags/
TruncateNameDescription_Enable is set to true
ESIOthers
The following table describes the global variables that make up this Process
Engine Global Variable Group.
Global variable Description P o s s i b l e Va l u e s a n d
name Windchill ESI
Defaults
WSHost The host name for the ERP This can be a machine
part information web service. name or a WebServer
domain name.
Default: localhost
WSPort The port number for the ERP Any port number
part information web service. ranging from 1024 to the
maximum value
supported on the
machine.
Default :6666
WCDateFormat The date format expected from Default: yyyy-MM-dd
Windchill PDMLink. HH:mm:ss
The format must use valid
This value must match
TIBCO notation. the date format used in
messages sent from
Windchill PDMLink.
ResponseFileName Filename for the Response data ESIResponseFromWC_.
sent by Windchill for a xml
transaction.
WSRequestResponse Filename for the Request data ESISOAP_.xml
FileName sent by Windchill to the ERP
Part Information web service.
ReplaceZero If quantity is set to “0” in Possible value: Integer >
QuantityWith Windchill then the value 0
defined for this global variable Default value:
will be used for quantity 9999999999
PartBatchSize The number of part that should Possible value: any
be processed via a single call integer > 0.
to SAP BAPI. Default value: 100
G l o b a l Va r i a b l e s f o r A d a p t e r I n s t a n c e s
Adapter instance global variables belong to the global variable group named
ESISAPAdapter. These can be further categorized by their usage parameters, as
described below.
Note
This value is case
sensitive as is the
value that
Windchill
PDMLink sends.
Client The client number of Value is the three-digit client
the distribution target. number of the distribution target.
This variable is used in the TIBCO
Rendezvous subject name when
publishing messages to the TIBCO
Adapter for ECC instances. The
ESI distribution target client value
sent in the ESIResponse message
by Windchill PDMLink must
match the Client value set in the
corresponding TIBCO Adapter for
ECC instances to ensure successful
publishing of messages to the
adapter instances and ultimately to
SAP.
CommitExpiry Session Timeout in 360000
milli seconds for SAP
“Commit Required”
BAPIs.
SystemNumber The system number of This is a two-digit integer value.
the distribution target.
Username The username used to This value could be any string.
log onto the Default user name is: ESISYS.
distribution target.
Password The password used to Value could be any string.
log onto the
distribution target.
Locale The locale of the The following are the ISO standard
distribution target. locale values. Default is en_US
Determines the subject Following are valid locale values :
name the adapter is Language / Country / Locale
listening on. Encoding Value
119
Object Numbering and Attribute Field
Len gt h D i ffe r enc es
The minimum and maximum lengths, as well as the character makeup of object
numbers in Windchill versus SAP, differ. These differences may cause failures or
erroneous results when publishing objects from Windchill PDMLink to SAP. The
differences can be characterized for each object type (Parts, BOMs, Documents,
Process Plans, Sequences, Operations, Process Materials, Equipment, CNs)
handled by Windchill ESI.
W i n d c h i l l O b j e c t Ty p e G U I a n d D a t a b a s e GUI and Database
Out of the Box O u t o f t h e B o x Ty p i c a l
Maximum Field Field Length
Length
Parts 40 characters 10 characters - all
numeric
Documents 32 characters 10 characters - all
numeric
Change Notices 32 characters 5 characters - all numeric
Process Plans 40 characters 8 characters
Sequences 40 characters 6 characters
Tooling 40 characters 18 characters
Process Materials 40 characters 18 characters
Operations No limit 4 characters
Control Characteristics 40 characters 10 characters
Note
For object types other than Operations, the applicable field in the above table
is Number. For Operations however, it is Label.
Fi e l d L e n g t h D i ff e re n c e s - D e t e r m i n i n g H o w t o
Compensate
The discrepancies between Windchill and SAP for these field length differences
can be compensated in Windchill, in the Windchill EAI components, or in a
combination of both systems. For default Windchill and SAP, the following lists
where the information is located:
This section describes certain aspects of how SAP handles object number length.
O b j e c t Ty p e SAP Database Field Lengths
Parts (Materials) 18 characters
Documents 25 characters
Change Notices (Change Masters) 12 characters
Sequences 6 characters
Equipment 18 characters
123
Note
For object types other than Operations, the applicable field in the above table
is Number. For Operations however, it is Label.
Use the following procedure to create a numeric number range for control
characteristics:
1. Navigate to the QS29 transaction.
2. Enter the plant where the numeric number range needs to be created click
Change Intervals.
3. Click I n s e r t I n t e r v a l s .
4. Enter the number range details. Clear the E x t box to ensure that the number
range is internal.
Note
Number ranges for the Master Inspection Characteristics should follow the
SAP format. The SAP format is as follows:
SL NO Name of the Ty p e o f N u m b e r
Number Range Range
1 01 Should be internal
2 02 Should be internal