Interface SAP WCS EN
Interface SAP WCS EN
Version: 2.6
Date: 10.04.2020
COPYRIGHT
This document and its contents (text, photos and drawings) are protected by copyright.
The copyright owner is Jungheinrich AG, headquartered in Hamburg, Germany. Re-
production in any form (photocopying, scanning, etc.), editing, distribution, translation
or any other type of commercial exploitation is prohibited.
Jungheinrich Aktiengesellschaft
Friedrich-Ebert-Damm 129
22047 Hamburg
Germany
3 WCS .......................................................................................................... 8
The described interface is only a template. You need to adapt it for each customer.
This has to be done in a separate interface specification which has to be created to-
gether with the customer.
2.1 RFC
IDOCs which are transmitted via tRFC serve to implement the interface to SAP.
The exchange of data between the WMS/WCS and SAP is done by transmitting IDOCs
(Intermediate Documents). The IDOCs are transmitted via the transactional Remote
Function Call (tRFC) interface by SAP. SAP developed the Remote Function Call
Application Programming Interface (RFC-API) to enable external systems to access
SAP functionalities, which are usually only accessible in the local SAP system.
2.1.1 tRFC
Errors can occuring during the conventional data transmission via RFC. This means
that the data transmission is not secure. That is why the data exchange between the
WMS/WCS and SAP is carried out via tRFC.
The aim of tRFC is to ensure a secure data transmission so that each transaction can
only be processed once. tRFC stands for transactional Remote Function Call. This
means that every transaction is provided with a unique prefix for identification. The
prefix is responsible for a clear data transmission and prevents data redundancy during
transmission.
The following mechanism can ensure clear data definition. When a remote function
is called up, the SAP host system assigns a globally recognised prefix to a transaction.
This prefix is also transmitted to the client (principal). If an error occurs during data
transmission, the transmission can be repeated with the same prefix. The SAP server
checks whether the dataset with this prefix has yet been processed. If not, the data is
processed. After that, the prefix is marked as processed. This prevents the data from
being processed twice if it is resent during a later transmission. Finally, the client (prin-
cipal) is informed that the transaction with a specific prefix has been processed. Server
and client (principal) can remove the prefix. The transaction is finished.
The receipt process registers as server at a SAP gateway and waits for the transmis-
sion triggered by SAP.
The transmit process registers as client at a SAP application server and transmits
IDOCs to SAP. The WMS/WCS is responsible for creating the IDOCs.
For the communication both processes register with a SAP user at the SAP system.
The customer must provide the user.
2.2 SAP PI
Data exchange between WMS/WCS and SAP is realised by means of XML files. The
XML files are processed by the WMS/WCS via Windows file operations.
There is one directory, which is used for the exchange. Both systems (WMS/WCS,
SAP) put the XML files which should be transmitted into this directory.
Initially, the sender provides data in a temporary file. Only after the write or copy pro-
cess has been completed, the file is renamed to the actually agreed extension
(xxxxxxx.TMP xxxxxxx.XML). Thanks to this procedure, simultaneous access to the
same file can be prevented. The data of the respective reception system is received
and processed at cyclic intervals. After the files have been received, the reception sys-
tem deletes and stores them, if necessary.
The WMS/WCS stores the sent and received files in a backup directory. The same
transmission procedure is simultaneously applied for a test system (two additional di-
rectories).
Name scheme:
WMS/WCS SAP: WMS/WCS_nnnn.xml
SAP WMS/WCS: SAP_nnnn.xml
Each file contains one IDOC. For performance reasons SAP can be configured in a
way that the file only contains segments and fields which are needed for the project.
In the course of the project, the customer provides the needed IDOC specification
which can be generated in SAP.
In the following chapters, only the fields that relevant for the WCS are described. The
specific, exchanged IDOCs include the full set of data (all segments containing all data
fields) according to the definition of the used SAP system.
A truck delivers new goods which are registered by means of SAP. This means that stocks and LCs are captured and that a transport
order (TRART = E) is sent to the WCS. Next, the LC is put on the conveyor system and moved towards the I-point. The WCS receives
a signal from the I-point and determines the transport destination. The destination is possibly determined by means of an existing
contour control which is used for identifying the LC type. As the WCS is responsible for coordinating the forklift trucks, it determines
the destination in order to ideally use the truck capacity. Next, the LC is put away. After the arrival at the destination, the transport
order is acknowledged and reported to SAP.
TANUM (Transport order CHAR (10) M Order number Needed to identify order in WCS Hostkopf.Auftr
number)
Hostin.Auftr
TAPOS (Transport order CHAR (3) M Entry within order Entry within order Hostin.Pos
item)
NLENR (Destination stor- CHAR (20) (M) LC-number Has to be set if TRART = E Hostin.LhmNr
age unit number)
Hostin.P1
VLENR (Source storage CHAR (20) (M) LC-number Has to be set if TRART = 'A' Hostin.LhmNr
unit number)
Hostin.P1
CHARG (Batch) CHAR (10) O Batch number only if MATNR is set Hostin.Charge
TANUM (Transport order CHAR (10) M Order number Needed to identify order in WCS Hostkopf.Auftr
number)
Hostin.Auftr
TAPOS (Transport order CHAR (3) M Entry within order Entry within order Hostin.Pos
item)
TANUM (Transport order CHAR (10) M Order number Needed to identify order in WCS Hostkopf.Auftr
number)
Hostin.Auftr
TAPOS (Transport order CHAR (3) M Entry within order Entry within order Hostin.Pos
item)
TANUM (Transport order CHAR (10) M Order number Needed to identify order in WCS Hostkopf.Auftr
number)
Hostin.Auftr
TAPOS (Transport order CHAR (4) M Entry within order Entry within order Hostin.Pos
item)
SFTXT (Error text for can- CHAR (80) O Error text if an error occurred
cellation)