Professional Documents
Culture Documents
BC619
Print lists are the results of reports in R/3. They are taken from the R/3 database. The standard R/3 System contains a number of pre-defined reports, for example:
0.2
Copyright
SAP AG 2002
Trademarks:
Some software products marketed by SAP AG and its distributors contain proprietary software
components of other software vendors.
Microsoft, WINDOWS, NT, EXCEL, Word, PowerPoint and SQL Server are registered
trademarks of Microsoft Corporation.
IBM, DB2, OS/2, DB2/6000, Parallel Sysplex, MVS/ESA, RS/6000, AIX, S/390, AS/400,
OS/390, and OS/400 are registered trademarks of IBM Corporation.
ORACLE is a registered trademark of ORACLE Corporation.
INFORMIX-OnLine for SAP and INFORMIX Dynamic ServerTM are registered trademarks of
Informix Software Incorporated.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C , World Wide
Web Consortium, Massachusetts Institute of Technology.
JAVA is a registered trademark of Sun Microsystems, Inc.
JAVASCRIPT is a registered trademark of Sun Microsystems, Inc., used under license for
technology invented and implemented by Netscape.
SAP, SAP Logo, R/2, RIVA, R/3, ABAP, SAP ArchiveLink, SAP Business Workflow, WebFlow,
SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit, mySAP.com Logo and mySAP.com
are trademarks or registered trademarks of SAP AG in Germany and in several other countries all
over the world. All other products mentioned are trademarks or registered trademarks of their
respective companies.
0.3
Level 3
BC619
3 days
Application Link
Enabling (ALE)
BC620
2 days
SAP IDoc Interface
(Standard)
BC095
3 days
Integration
Technologies for
Business Solutions
CA150
2 days
Business Framework:
Overview
CA210
EDI Interface
BC420
5 days
Data Transfer
CA927
5 days
Programming with
BAPIs in C++
SAP AG 1999
Data exchange
4 days
CA925
5 days
Programming with
BAPIs in Visual Basic
BC621
1 day
SAP IDoc Interface
(Development)
BC415
2 days
Interface Programming
in ABAP
CA926
5 days
Programming with
BAPIs in JAVA
Interface
programming
0.4
Display
0.5
Warning: All document types are provided, even those which are not normally provided by this method, for example, outgoing PDF documents.
1
Course Overview
Contents:
Course Goal
Course Objectives
Overview of Contents
SAP AG 1999
(C) SAP AG
BC619
1.2
Course Overview
Tools
Business Processes
and Business Objects
Administration
Enhancements
Communication
and Networks
Performance
ALE Components
System Security
IDoc Services
Special Functions
Information Sources
SAP AG 1999
(C) SAP AG
BC619
(C) SAP AG
BC619
1.3
Inquiry
Quotation
Order
Shipping
Incoming cust. sched. agrmt/
Ammended cust. sched. agrmt
outgoing delivery note
Delivery
Billing
Debit
memo
Billing
document
Credit
memo
SAP AG 1999
(C) SAP AG
BC619
1.4
For Release 4.5A, the R/3 Business Process 'Sales' was completed by integrating the outgoing reminders (FI). All other named document types have been standard since Release 3.0.
(C) SAP AG
BC619
2
Business Processes and Business Objects
Contents:
Business Processes in Companies
Distributed Business Processes
SAP R/3 Business Objects
IDocs and Message Types
BAPIs
ALE Integration Technology
ALE Business Processes
SAP AG 1999
(C) SAP AG
BC619
2.2
SAP AG 1999
(C) SAP AG
BC619
2.3
SAP AG 1999
(C) SAP AG
BC619
2.4
SAP AG 1999
(C) SAP AG
BC619
2.5
Regional installation
Country-wide installation
local system
business objects
SAP AG 1999
(C) SAP AG
BC619
2.6
Customizing: Overview
- Definition of communication
- Definition of content repositories
- Assignment of business objects to
content repositories
FI
SD
MM
Entry-program ?
QM
Basic Customizing
Scenario Customizing
PM
PP
HR
DMS ADK
Display program?
Application Customizing
SAP AG 1999
The increasing globalization of markets has led to the increasing separation of organizational units.
Work steps need to be carried out locally but also be part of a distributed business process.
When enterprises are bought or sold business fields must be quickly integrated or deleted.
Business processes are not restricted to one enterprise only. More and more customers and suppliers
are being included in business processes. In the Internet age business processes are taking place
between companies. A process confined to company boundaries is therefore now unusual.
Autonomous units (e.g. local production plants, sales units) in an enterprise do not want to be
dependent on a centrally administered system. There may be several reasons for this:
When structuring a process, flexibility and individuality is very important.
The technical infrastructure for communicating with a central system is not sufficiently developed
in all regions for enterprises that operate globally.
Release strategies can be independent and individual.
(C) SAP AG
BC619
2.7
Business Object
Business objects are defined by object types in the BOR (Business Object Repository). Methods (functions executed on objects), attributes, and key fields are defined for a business object here. A business object is a concrete form of an object type. For e
xample, the incoming R/3 invoice with document number 4711, company code 0001, fiscal year 2000 is a concrete form of the object type BKPF (accounting documents). Communication between SAP application components and SAP ArchiveLink is by business objects,
which means if a concrete business object calls an SAP ArchiveLink function, it transfers the object type, and the data keys of the business object to SAP ArchiveLink. The call for the function "Display document" for the business object above is: "Displa
y document BKPF 0001 4711 2000".
Systems that map core processes in logistics (production, plant maintenance, warehouse management
system, shipping) have to be available 24 hours every day. The costs of such a high level of system
availability should be kept limited to systems providing this core functionality.
(C) SAP AG
BC619
2.8
SAP AG 1999
Limited system resources (in particular the DB server) make it necessary to distribute the workload
across several systems. Keep in mind that the primary function of ALE is not in handling
performance bottle necks. With efficient distribution ALE scenarios can reduce the system load in
operative systems (e.g. consolidating nested application data for reporting).
mySAP.com components (New Dimension applications) are to be used.
(C) SAP AG
BC619
2.9
SAP AG 1999
Control of the external content server is determined in the content repository definition. Because
HTTP is used for control, the SAP system has to register on the HTTP content server with a
certificate. This process takes place in the content server administration (transaction CSADMIN) of
the SAP Knowledge Provider (Kpro).
(C) SAP AG
BC619
2.10
Additional employees
Training costs
SAP AG 1999
(C) SAP AG
BC619
10
2.11
Organizational Prerequisites
SAP AG 1999
(C) SAP AG
BC619
11
2.12
A business object
BusinessObjekt
SAP AG 1999
Definition:
(C) SAP AG
BC619
12
2.13
Implementation Guide (IMG): Basis Components --> Basis Services-->SAP ArchiveLink -->Basic Settings -->Maintain Links (Transaction OAC3)
(C) SAP AG
BC619
13
2.14
Accounting
Accounts
Sales organization
Charts of
accounts
Customer enquiry
...
Sales order
Controlling
Materials Management
Purchasing organization
Cost type
Purchase requisition
Reconciliation ledger
Purchase order
...
Framework order
...
SAP AG 1999
Each business object belongs to a specific object class depending on its characteristics and its type.
These object classes are called object types. For example, all the employees of a company belong to
the object type employee.
(C) SAP AG
BC619
14
2.15
BO
BO
BO
BO
BO
BO
BOR
ArchiveLink
BO
BO
Business
Workflow
BO
BO
BO
BO
BO
BO
BAPI
BAPI
BO
BAPI
BAPI BO
BAPI
BAPI
BO
BAPI
BO BAPI
Access &
interfaces
BO
BO
BAPI
BAPI
Modeling
SAP AG 1999
All business objects are defined in the Business Object Repository (BOR) within SAP.
The BOR contains two categories of object types:
Business object types
Interface types
BOR objects are processed by the Business Object Builder. The path in the SAP menu is Tools
ABAP Workbench Development Business Object Builder.
(C) SAP AG
BC619
15
2.16
SAP AG 1999
The BOR Browser is called from the Business Object Builder. Choose the pushbutton Business
Object Repository and then display all the object types.
(C) SAP AG
BC619
16
2.17
SAP AG 1999
(C) SAP AG
BC619
17
2.18
SAP AG 1999
(C) SAP AG
BC619
18
2.19
IDocs
SAP AG 1999
Technical R/3 objects for IDocs with a message type exist, for example, audit data (ALEAUD) and
distribution group (CONDA2)
An IDoc has different characteristics: database table, text, HTML file, XML datastream, RFC call
parameters.
(C) SAP AG
BC619
19
2.20
Structure of an IDoc
Components of an IDoc
Control record
IDoc type information: basic type, extension,
IDoc type, message type, sender and reciver
information. Technical information: release,
serialization information, creation date and time
Hierarchy level 3
Segment
Segment 11
Data records
E1HDR
E1SEG1
E1SEG2
E1SEG3
E1SUB1
E1SUB2
E1SEGM4
E1SEGM5
E1SUB3
mandatory
mandatory Curr.
Curr. No.
No. 11 Transfer
Transfer No.
No. 00
xxxxxxxx
xxxxxxxxxxxxxxx
xxxx
xxxx
xxxxxxx
xxxxxxxxxxxxxxx
xxxx
xxxx
xxxxxxxx
Segment
Segment 33
optional
optional
Curr.
Curr. No.
No. 33 Transfer
Transfer No.
No. 11
Hierarchy level 4
Subsegment
Subsegment 11
Curr.
Curr. No.
No. 44 Transfer
Transfer No.
No. 33
Subsegment
Subsegment 22
Curr.
Curr. No.
No. 55 Transfer
Transfer No.
No. 33
Hierarchy level 3
16:22:34
Successfully processed"
16:22:42
mandatory
mandatory Curr.
Curr. No.
No. 22 Transfer
Transfer No.
No. 11
Segment
Segment 44
Curr.
Curr. No.
No. 66 Transfer
Transfer No.
No. 11
Segment
Segment 55
Curr.
Curr. No.
No. 77 Transfer
Transfer No.
No. 11
SAP AG 1999
Status records are data records assigned locally to an IDoc - they not part of an IDoc . They are not
sent together with the IDoc.
(C) SAP AG
BC619
20
2.21
Storing with bar codes consists of two independent steps that are linked together by SAP ArchiveLink.
(C) SAP AG
BC619
21
2.22
Using this scenario, it is possible to link several incoming documents with the same SAP business object within one linkage run. This means that the same bar code number must be attached to all those incoming documents. It is normally only used in this pa
rticular case.
Message types specify the semantics of application data. The message type is usually based on an
EDIFACT message type.
The syntax (structure information) of the data is described in the IDoc type.
(C) SAP AG
BC619
22
2.23
BAPIs
Are methods of business objects
Are managed in the Business Object Repository
Are stable and release-independent
Have an open interface
Applications support maintenance and further development
through change management
SAP AG 1999
Change Management
Compatible changes are parameter extensions
With incompatible changes new BAPIs must be created: Object.Create -> Object.Create1
(C) SAP AG
BC619
23
2.24
BAPIs:
Are used to separate R/3 components and their responsibilities
Are the basis of distributed ALE business processes that use both
synchronous and asynchronous communication
Open up the R/3 System to desktop applications in C, Visual Basic and
Java
Have a link to the object model COM/DCOM
Support the R/3 Internet connection using the SAP Business Connector
Provide a simple programming model for customers' and partners' own
developments
SAP AG 1999
(C) SAP AG
BC619
24
2.25
Typical Methods
GetList
Gets a list of key fields of objects that meet specific selection criteria (search function)
GetDetail, GetStatus
Gets details (attributes) of an object with a fully specified key
Create, CreateMultiple
Generates instances of R/3 business objects
Change, ChangeMultiple
Changes instances of R/3 business objects
Delete, ExistenceCheck
Deletes instances and checks for the existence of instances in R/3
Check, Post
Used in accounting for checking and posting
SAP AG 1999
(C) SAP AG
BC619
25
2.26
BAPIs are defined as methods of SAP business objects in the Business Object Repository (BOR) and
implemented as function modules in R/3.
Object-oriented access:
Object-oriented access to BAPIs in the BOR can be implemented using various programming
platforms, e.g. Windows NT, Win9x, DCOM/COM
RFC access:
You can execute direct RFC calls to the function module that forms the basis of the BAPI, either
using ABAP or from external development platforms, e.g. by using RFC Class Libraries of C/C++.
(C) SAP AG
BC619
26
2.27
SAP AG 1999
(C) SAP AG
BC619
27
2.28
BAPI Explorer
SAP AG 1999
(C) SAP AG
BC619
28
2.29
Accounting
Controlling (central)
SOP (central)
Information systems:
Inventory
Purchasing
Sales
Purchasing (central)
Reference system for
master and control
data
PP (prod. planning)
Inventory
management
Sales, shipping and
billing (internal)
Purchasing (local)
PM (Plant
Maintenance)
SOP (local)
Semantic
Synchronization
SAP AG 1999
ALE was originally used to distribute business processes by forwarding the required data and
triggering a workflow in the external system.
The focus was on a company's internal distribution scenarios: department-to-department
Using the stable IDoc interface ALE enables business processes that go beyond company boundaries:
business-to-business.
ALE is independent of the communication layer and can implement business processes over the
Internet.
(C) SAP AG
BC619
29
2.30
Purpose of ALE
SAP AG 1999
(C) SAP AG
BC619
30
2.31
SAP AG 1999
(C) SAP AG
BC619
31
2.32
Manual Storing
SAP AG 1999
MASTER_IDOC_DISTRIBUTE
ALE_<BO>_<METHOD>
IDOC_INPUT_MSGTYPE
(C) SAP AG
BC619
32
2.33
The application object type should provide a correctly implemented business object method, EXISTENCECHECK. If not, then you cannot check the existence of the entered business object key.
Messaging systems are used increasingly, especially in heterogeneous integrated system networks
(R/3 Systems, R/2 Systems, and non-SAP Systems) with a number of permanent interfaces between
systems running on different platforms. Data containers (messages) can be consistently exchanged
between the systems in near real-time, using a service that can be maintained centrally. Certified
products can be found under:
http://www.sap.com/csp -> Complementary Products -> ALE Message Handling.
Interfaces for EDI messages are built into the R/3 application components. It is important to note that
SAP does not supply or sell EDI conversion/communication software (EDI subsystem), but provides
an open, common interface to such systems (CA-EDI). EDI subsystems assume responsibility for all
EDI-oriented tasks, such as data convertion, communication, partner profile administration and
monitoring of processing. Certified products can be found under:
http://www.sap.com/csp -> Complementary Products -> EDI Subsystems.
The ALE concept involves using external converters to connect non-SAP Systems to the R/3 System.
External converters are generic format conversion programs. The ALE converter enhances the
interface concept in EDI subsystems by offering customer-defined assignments. They recognize the
format of any interface structure of a non-SAP System and not just standard EDIFACT or ANSI-X12
formats.
Certified products can be found under:
http://www.sap.com/csp -> Complementary Products -> ALE Converters.
(C) SAP AG
BC619
33
2.34
ALE Converter
EDI Subsystem
IDoc
EDI Subsystem
IDoc
ALE Converter
EDI
Converter
?
?
ERP System
ERP System
SAP AG 1999
If both partners use SAP R/3 Systems and trust each other, the pure use of SAP IDocs for
communication is possible without conversion.
ALE converters can be used for internal communication and for communication between enterprises.
An assignment step is all that is required. ALE converters are used in external enterprise
communication if there is a high level of trust between the partners or if one partner is very
dependent on the other.
(C) SAP AG
BC619
34
2.35
SAP AG 1999
(C) SAP AG
BC619
35
1-1
Log on to SAPNet with the user data (ID and password) given to you by your
instructor:
http://sapnet.sap.com/int-adviser
1-1-1 Work through the section Introduction.
1-2
1-3
(C) SAP AG
Which basis technology requirements are mentioned for communication with the
R/3-System 3.11 via RFC for external platforms?
BC619
36
Exercises
Unit: Business Processes and Business Objects
Topic: Business Object Repository
You want to know where you can find business objects in the R/3 System,
and where you can call up information about your attributes, interfaces,
and so on.
1-1
Open the Business Object Repository Browser for all object types in order to
display existing objects in the R/3 System.
1-1-1 Expand the hierarchy node of any hierarchy.
1-1-2 What do the colors of the objects and the STOP indicator signify?
1-1-3 Display details for the business object sales order (BUS2032).
1-2
Use the Business Object Builder in order to identify the object with the technical
name BUS1001.
1-2-1 What is the key field for this object ?
(C) SAP AG
BC619
37
You want to know where you can find the external interfaces for business
objects in the R/3 System, and where you can call up further details about
their parameters.
2-1
2-2
2-3
Use the alphabetical display to display further information about the business object
Applicant.
2-3-1 Which instance-independent method is defined for this business object?
(C) SAP AG
BC619
38
You want to know how to make a start in developing external access, and
how SAP supports you in this.
3-1
Visit the Open BAPI Network in SAPNet. Log on using either your own user data
or the user data given to you by your instructor.
3-1-1 Open the BAPI section.
3-1-2 Open the COM section.
3-1-3 Open the Java section.
(C) SAP AG
BC619
39
1.1
1-2
1-3
(C) SAP AG
Return to the homepage of the Interface Adviser and choose technology. In the
section Interfaces there is a link to the availability checklist of the basic
technologies.
Field name
Values
R/3 Release
3.1I
Select
BC619
40
Solutions
Unit: Business Processes and Business Objects
Topic: Business Object Repository
1-1
1.1
1.2
(C) SAP AG
BC619
41
2-1
2-2
Select the node Network in the left-hand section of the screen and choose the tab
Documentation in the right-hand section of the screen.
2-2-1 Repeat this step for the BAPI Getlist. Select the node Getlist in the lefthand section of the screen and choose the tab Documentation in the righthand section of the screen.
2-2-2 Select the node Getlist in the left-hand section of the screen and choose the
tab Detail in the right-hand section of the screen. This BAPI is
implemented via the function module BAPI_NETWORK_GETLIST.
2-3
(C) SAP AG
BC619
42
3-1
http://service.sap.com/bapi
3-1-1 Become familiar with the BAPI concept; check which BAPIs are available,
or become a member. You can also find up-to-date BAPI information in the
BAPI section.
3-1-2 The COM section contains information and software relating to COM-based
technologies, utilities, documentation, and links to SAP partner sites. On
these sites you can find more information and software relating to COM.
3-1-3 You can find SAP products and partner products for both Java and BAPIs in
the Java section.
(C) SAP AG
BC619
43
(C) SAP AG
BC619
2.38
SAP AG 1999
(C) SAP AG
BC619
2.39
Course Overview
Tools
Business Processes
and Business Objects
Administration
Enhancements
Communication and
Networks
Performance
ALE Components
System Security
IDoc Services
Special Functions
Information Sources
SAP AG 1999
(C) SAP AG
BC619
2.40
Technical Reasons:
Resource sharing
SAP AG 1999
(C) SAP AG
BC619
2.41
TCP/IP
SAP AG 1999
A 1978 protocol from the US Defence Ministry established this as the communications standard
TCP/IP communicates data using data packets. As data packets can reach the receiver via any route,
this protocol is relatively insensitive to a route failure, provided there are alternative routes.
(C) SAP AG
BC619
2.42
SAP AG 1999
(C) SAP AG
BC619
2.43
IP Addresses
Address format
32 bit length
Special addresses
SAP AG 1999
IP Address
All network layer protocols have a specific address format. The 32 bit IP addresses of the TCP/IP
protocol have the form "199.12.1.1". This format is also called dotted decimal. Each of its four parts
corresponds to a decimal number between 0-255 and represents 8 bits.
Part of the IP address identifies the network, the remaining part the individual computer or host
within the network.
The part of the address that identifies the host can be defined by a subnetwork mask.
(C) SAP AG
BC619
2.44
IP Address Classes
Address classes
SAP AG 1999
IP Address Classes
As the whole IP address is only 32 bits long and networks have different numbers of computers,
several address classes are created. Address classes assign different numbers of bits to the network
component and the host component of the IP address.
(C) SAP AG
BC619
2.45
SAP AG 1999
Protocol of the communication-oriented transport layer (layer 4). Part of the packet-oriented Internet
Protokoll (IP)
(C) SAP AG
BC619
2.46
TCP Ports
Service
Port
Protocol
Ping echo
TCP
FTP data
20
TCP
FTP control
21
TCP
telnet
23
TCP
SMTP
25
TCP
http
80
TCP
pop-3
110
TCP
SAP AG 1999
TCP Ports
TCP uses a 16 bit port number to identify the process on the receiving computer that will process the
data packet. Port numbers below 512 are assigned to specified services in Request for Comments
(RFCs) and are called "well known ports". Ports under 1024 should only be used by system
processes (root user under UNIX).
(C) SAP AG
BC619
10
2.47
R/3 Interfaces
RFC
SMTP
IDoc dispatch
SAP AG 1999
Default settings contain document types and concrete employee assignments for these document
types (to be customized).
SAP provides a range of programming interfaces to integrate external applications into the SAP System. With these interfaces
you can write client/server applications that communicate with SAP Systems. Your external application can function either as
the client or as the server to the SAP System (sometimes even as both).
DIAG
With the GUI interface to R/3 you can write a client program that accesses the datastream exchanged between the R/3
application server and its SAPgui.
With the GUI interface your external client program can provide an alternative interface to the standard SAPgui. This can
either be a graphical or non graphical interface (e.g. language controlled or Web-based).
Programming using the GUI interface also enables your client program to monitor or record a user dialog with SAPgui
images.
RFC
The protocol of the SAP Remote Function Call (RFC) enables you to call ABAP function modules from external
applications. An external application that uses the RFC interface, can function as a server or as a client to an SAP System.
Calling an RFC function in an SAP System from an external program is the same in principle as calling an RFC function
from another SAP System (from ABAP).
BAPI
SAP business objects provide an object-oriented view of SAP data structures and functions. The Business API (BAPI) is an
interface through which you can call the methods of these SAP business objects.
IDoc
The interface Intermediate Document (IDoc) is an SAP standard format for exchanging data between SAP Systems or
between an SAP-System and an external application. An IDoc defines an SAP standard data container (template) for sending
or receiving data from an SAP System.
EDI (IDoc)
Batch Input
The batch input interface enables you to input data into R/3 using R/3 transactions.
Menu path: Office--> Business Documents--> Documents--> Move (TA OAWD)
(C) SAP AG
BC619
11
2.48
IDoc Communication
SAP AG 1999
(C) SAP AG
BC619
12
2.49
Partner Profiles
SAP AG 1999
(C) SAP AG
BC619
13
2.50
SAP AG 1999
(C) SAP AG
BC619
14
2.51
R/3 Ports
R/3 ports define the device interface and its technical parameters
for IDoc outbound processing
The port type defines the output medium
File
SAP AG 1999
(C) SAP AG
BC619
15
2.52
SAP AG 1999
(C) SAP AG
BC619
16
2.53
RFC Destinations
The RFC destination contains the access settings for the target
system of a Remote Function Call
Connection types for RFC destinations
R/2 connections
Internal connections
Logical destinations
SAP AG 1999
R/2 connectionsType 2 entries connect to R/2 Systems. If you create an entry of type 2, you only
have to specify the host name; all communication information is already saved in the background
information table of the SAP gateway host. If you want you can specify logon details.
R/3 connectionsType 3 entries connect to R/3 Systems. If you create an entry of type 3, you have to
specify the host name and the communication service. If you want you can specify logon details. As
of R/3 Release 3.0 you can choose to specify a load adjustment.
Internal connectionsType 1 entries connect to R/3 Systems that are connected to the same database as
the current system. These entries are predefined and cannot be changed. The entry names correspond
to the names in the SAP message server (transaction SM51).
(C) SAP AG
BC619
17
2.54
SAP AG 1999
Logical destinations
Instead of specifying a system connection, entries of type L refer to a physical destination. A type
L destination can refer to further type L destinations. A type L entry uses information from the
reference entry and adds its own information to this. The reference entry usually contains host
information while the type L entry contains the logon information. You can also enter a specific
user name, password, logon language or client.
A type L entry can refer to other entries of type L.
TCP/IP connections
Destinations of type T are connections to external programs which the RFC Library uses to receive
RFCs. The activation type can either be start or registration.
If you choose start you have to enter the host name and the path name of the program you want to
start.
If you choose registration, you have to enter a registered RFC program. With an SAP gateway you
can register an RFC server program under this ID and then wait for RFC calls from other SAP
Systems.
ABAP drivers
Entries of type X specify systems in which device drivers have been especially installed in ABAP.
If you create an entry of type X, you have to specify the host name and the ABAP device driver.
(C) SAP AG
BC619
18
2.55
SAP AG 1999
With automatic generation you can change default settings for parameters of partner profiles and R/3
ports. These settings include:
(C) SAP AG
BC619
19
2.56
(C) SAP AG
BC619
20
1. Check the assignment of clients 810 and 811 to the logical system names SALES and
PRODUCTION.
Client 810:_______________
Client 811:_______________
2. RFC destination
On the system SALES:
Use the implementation guide (IMG) to view the RFC destination for the system SALES.
Target computer: _______________
User:
_______________
3. Ports
On the system SALES:
Use the implementation guide (IMG) to view the port for the system SALES.
Port:
(C) SAP AG
_______________
BC619
21
4. Partner Profiles
On the SALES system:
Set the following outbound partner profile for the partner SUBSYS_##:
Message type:
Output mode:
Receiver port:
MATMAS
Transfer IDOC immediately
CONVERTER
Recipient of notifications:
Type:
US
ID:
<Your user name>
Set the following inbound partner profile for the partner SUBSYS_##:
Message type:
Processing:
Process code:
MATFET
Trigger immediately
MATF
Recipient of notifications:
Type:
US
ID:
<Your user name>
(C) SAP AG
BC619
22
Exercise 3: Ports
Start the maintenance of ports in the IMG:
Basis Components Distribution (ALE) Sending and Receiving Systems Systems
in Network Asynchronous Processing Assigning Ports Define Port
Choose Transactional RFC.
The number of the port Sales system is displayed.
(C) SAP AG
BC619
23
SUBSYS_##
Partner type:
LS
MATMAS
(C) SAP AG
Output mode:
IDOC type:
MATMAS01
BC619
24
MATFET
Processing:
Trigger immediately
Process code
MATF
(C) SAP AG
BC619
25
Implementation Guide (IMG): Basis -> Basis Services -> SAP ArchiveLink -> Business Workflow Settings -> Call Workflow Wizard
(C) SAP AG
BC619
3.2
SAP AG 1999
(C) SAP AG
BC619
3.3
Course Overview
Tools
Business Processes
and Business Objects
Administration
Enhancements
Communication and
Networks
Performance
ALE Components
System Security
IDoc Services
Special Functions
Information Sources
SAP AG 1999
(C) SAP AG
BC619
3.4
Principles of ALE
SAP AG 1999
(C) SAP AG
BC619
3.5
ALE
Shared
Shared Master
Master Data
Data
Tool
Tool
Application
Application Interface
Interface for
for IDocs
IDocs
Tools
Tools
Distribution
Distribution Model
Model
Application
Application interface
interface for
for
asynchronous
asynchronous BAPI
BAPI calls
calls
SAP AG 1999
(C) SAP AG
BC619
3.6
Distribution Model
ALE
Shared
Shared Master
Master Data
Data
Tool
Tool
Application
Application Interface
Interface for
for IDocs
IDocs
Distribution
Distribution Model
Model
Tools
Tools
Message
Message flow
flow
Receiver
Receiver determination
determination
Data
Data filters
filters
Application
Application interface
interface for
for
asynchronous
asynchronous BAPI
BAPI calls
calls
SAP AG 1999
The distribution model describes the flow of business objects between logical systems. SAP, nonSAP or other input/output functions can be hidden behind the logical systems.
In the distribution model conditions can be defined for a data flow. These "filter" conditions are used
for:
Receiver determination
(C) SAP AG
BC619
3.7
SAP AG 1999
The distribution model is client-dependent and may contain one or more views.
The individual views of the distribution model have their own maintenance system that may be
different from the logical system of the client.
(C) SAP AG
BC619
3.8
SAP AG 1999
Maintenance of the distribution model Application Link Enabling Modeling and implementing
business processes Maintain distribution model
(C) SAP AG
BC619
3.9
Logical Systems
SAP AG 1999
(C) SAP AG
BC619
3.10
Partner Profiles
SAP AG 1999
(C) SAP AG
BC619
10
3.11
Filters can be defined in the distribution model to set conditions for the
dispatch and processing of outbound messages
IDocs and BAPIs have different filter functions
IDocs use conditions for:
Filtering segments
Receiver determination
Data filtering of table parameters for BAPIs that were called asynchronously
SAP AG 1999
(C) SAP AG
BC619
11
3.12
Data Filtering
If the message type allows, the IDoc segments of message types can
be filtered.
All the segments are suppressed that do not contain the value
specified in the distribution model
Dependencies
Classification
SAP AG 1999
Data filters are defined as part of modeling the distribution model You define the data filters for a
connection in one or more filter groups.
The user or process assigns the document number directly. Internal assignment is done by the
SAP System. The document number is based on the the document type. The number range has
20 characters. An important advantage of DMS is the ability to use mixed number assignments.
In this case the user or processor assigns an external number that is later changed or updated to
an internal number by the system.
The document type is the most central controlling element for the Document Management
System. For example, the status network can be setup or object links can be created based on
the document type.
Document parts serve to split a document up.
If the filter condition for a mandatory segment is not met, it is either:
The higher-level optional segment is removed and the IDoc is sent
All the higher-level mandatory segments and any existing optional segments are removed in
sequence If the header segment is also removed in this process, the IDoc is not sent.
(C) SAP AG
BC619
12
3.13
SAP AG 1999
The document type is the central control element for the Document Management System. It
subdivides documents according to characteristics and the organizational processes that follow
because of these characteristics. Examples include status network or object links.
Please note the following:
(C) SAP AG
BC619
13
3.14
Classification
SAP AG 1999
Selection by classification means that an IDoc is only sent, if the application object belongs to a class
defined in Customizing.
The selection by classification setting is part of modeling the distribution model. Maintain the
attribute Dependent on class membership in the data filters of a connection.
In ALE Customizing you should set the classes that are to be included in the selection. Assign the
classes to be used for distributing the master data to the message type and logical receiving system.
The function can be found under Modelling and Implementing Business Processes -> Master Data
Distribution -> Distribution Using Object Classes -> Assign Classes to Receiving Logical System.
(C) SAP AG
BC619
14
3.15
Dependencies
SAP AG 1999
If dependencies between message types and/or BAPIs have been defined in the distribution model,
message dispatch is dependent on the dispatch of the other messages.
Dependencies are defined as part of modeling the distribution model. You define the dependencies in
the data filters of a connection.
(C) SAP AG
BC619
15
3.16
Value filters
SAP AG 1999
(C) SAP AG
BC619
16
3.17
BAPI table parameters can be filtered provided that the BAPI has
provided for this
All the lines are suppressed that do not contain the value
specified in the distribution model
SAP AG 1999
(C) SAP AG
BC619
17
3.18
Filter Groups
SAP AG 1999
(C) SAP AG
BC619
18
3.19
Demo
SAP AG 1999
(C) SAP AG
BC619
19
3.20
ALE
Shared
Shared Master
Master
Data
Data Tool
Tool
Application
Application Interface
Interface for
for IDocs
IDocs
Outbound
Outbound
processing
processing
Inbound
Inbound
processing
processing
Receiver
Receiver
Determination
Determination Data
Data
filtering
filtering
Explicit
Explicit segment
segment
filtering
filtering
Conversion
Conversion of
of global
global
organizational
organizational units
units
Data
Data conversion
conversion
Version
Version change
change
Version
Version change
change
Segment
Segment filtering
filtering data
data
Conversion
Conversion of
of global
global
organizational
organizational units
units
Tools
Tools
Application
Application interface
interface for
for
asynchronous
BAPI
calls
asynchronous BAPI calls
Distribution
Distribution Model
Model
SAP AG 1999
The task of the IDoc application interfaces is to process outbound and inbound IDocs based on
message types. There is a close relationship between outbound processing and the distribution
model. The application interfaces for IDocs provide special services for processing messages:
Data filtering
Segment filtering
Conversion of global organizational units
(C) SAP AG
BC619
20
3.21
SAP AG 1999
(C) SAP AG
BC619
21
3.22
Flow Diagram
IDoc Outbound Processing
Application
ALE
Determine receivers,
if required
Receiver Determination
Communication
IDoc Services
Data filtering
Explicit segment filtering
Conversion of global org.units
Data conversion
Version change
Creating IDocs
Writing links to
application objects
SAP AG 1999
(C) SAP AG
BC619
22
3.23
Flow Diagram
IDoc Inbound Processing
Application
ALE
Communication
IDocs received
via tRFC
Write IDoc to database
IDoc Services
Explicit segment filtering
Conversion of global org.units
Data conversion
Version change
Function module
SAP AG 1999
(C) SAP AG
BC619
23
3.24
ALE
Shared
Shared Master
Master
Data
Tool
Data Tool
Application
Application Interface
Interface for
for IDocs
IDocs
Application
Application interface
interface for
for
asynchronous
BAPI
calls
asynchronous BAPI calls
BAPI/IDoc
BAPI/IDoc
outbound
outbound
processing
processing
Parameter
Parameter mapping
mapping
BAPI/IDoc
BAPI/IDoc
inbound
inbound
processing
processing
Parameter
Parameter mapping
mapping
Distribution
Distribution Model
Model
Data
Data filtering
filtering
Segment
Segment filtering
filtering
Field
Field conversion
conversion
Dependencies
Dependencies
Serialization
Serialization using
using BO
BO
Tools
Tools
SAP AG 1999
(C) SAP AG
BC619
24
3.25
SAP AG 1999
(C) SAP AG
BC619
25
3.26
ALE
Determine receivers,
if required
Forward BAPI
parameters to ALE
Communication
ALE services
Receiver determination
Data filtering
Data conversion
Version change
Serialization
Creating IDocs
Writing links to
application objects
IDoc processing by
partner profile
SAP AG 1999
(C) SAP AG
BC619
26
3.27
A link entry is written in SAP ArchiveLink containing the archive doc. ID and the R/3 key of the document info record. The document type DRW is entered in the SAP ArchiveLink link entry irrespective of which document type is actually used in the DMS.
(C) SAP AG
BC619
27
3.28
ALE
Shared
Shared Master
Master
Data
Tool
Data Tool
Application
Application Interface
Interface for
for IDocs
IDocs
Management
Management of
of
master
master data
data changes
changes
Tools
Tools
Distribution
Distribution Model
Model
Application
Application interface
interface for
for
asynchronous
asynchronous BAPI
BAPI calls
calls
SAP AG 1999
The stored document is copied from the archive to the administrators file system.
(C) SAP AG
BC619
28
3.29
SAP AG 1999
(C) SAP AG
BC619
29
3.30
Complete DMS Customizing can be found in the SAP Reference IMG under cross-application components document management.
(C) SAP AG
BC619
30
3.31
Tools
ALE
Shared
Shared Master
Master
Data
Tool
Data Tool
Application
Application Interface
Interface for
for IDocs
IDocs
Tools
Tools
Distribution
Distribution Model
Model
ALE
ALE Audit:
Audit:
Synchronization
Synchronization of
of
Customizing
Customizing data
data
Reduction
Reduction of
of
message
message types
types
Application
Application interface
interface for
for
asynchronous
asynchronous BAPI
BAPI calls
calls
IDoc
IDoc recovery
recovery
Conversion
Conversion of
of logical
logical
system
system names
names
SAP AG 1999
The ALE tool box contains separate programs for monitoring, modeling and error handling.
ALE Audit
Synchronization of Customizing data
Reduction of message types
IDoc recovery following database crash
Conversion of logical system names
(C) SAP AG
BC619
31
3.32
Application &
Master data
outbound FMs
Shared
Shared Master
Master
Data
Data Tool
Tool
Application
Application IDoc
IDoc
interface
interface -outbound
outbound
Asynchronous
IDoc
IDoc
Services
Services
and
and special
special
functions
functions
Synchronous
Interface
Interface for
for
asynchronous
asynchronous BAPI
BAPI
calls
calls -- outbound
outbound
Communication
Communication layer
layer
Application
Application IDoc
IDoc
interface
interface -inbound
inbound
IDoc
IDoc
Services
Services
and
and special
special
functions
functions
Inbound function
modules
Call BAPI
Interface
Interface for
for
asynchronous
asynchronous BAPI
BAPI
calls
calls -- inbound
inbound
Distribution Model
Model
Distribution
Engineering
Engineering change
change
management
management
IDoc data
Tools
Tools
BAPI
Application
SAP AG 1999
(C) SAP AG
BC619
32
3.33
SAP AG 1999
(C) SAP AG
BC619
33
1.
Set up the distribution customer model TRAINING## on the system 'SALES' in such a
way that the message MATMAS is sent to the subsystem SUBSYS_##.
(## corresponds to the last two digits of your group number.)
2.
3.
(C) SAP AG
BC619
34
Exercises
Unit: ALE Components
Topic: Distribution of master data
1.
2.
Use the material group 009 and maintain the gross weight, the net weight, the
weight unit and maintain a basic data text.
b)
Send the material with the message type MATMAS directly to the system
PRODUCTION.
c)
b)
(C) SAP AG
BC619
35
c)
(C) SAP AG
BC619
36
Switch: display/maintain
Button: create model view
Customer model: TRAINING##
Button: insert message type
Sender:
SALES
Recipient:
SUBSYST_##
MATMAS
(C) SAP AG
BC619
37
(C) SAP AG
BC619
38
Solutions
Unit: ALE Components
Topic: Distribution of master data
Exercise 1: Sending material
MATALE-##
Industry:
Mechanical engineering
Choose Next.
Update the values for your material.
Save the entries.
c)
Material:
MATALE-##
Message type:
MATMAS
Logical System:
PRODUCTION
BC619
39
Material:
MATALE-##
MATALE-##
Selected view:
Material:
MATALE-##
Message type:
MATMAS
Display material.
Display your material.
(C) SAP AG
BC619
40
4
Storing Outgoing Image Documents
(SAPscript or Smart Forms)
For example image document "order confirmation" is integrated with business object
"order" (VBAK)
SAP Basis
(Technology
development)
Printer,
Fax, EDI..
Content server
SAP AG 1999
(C) SAP AG
BC619
4.2
Invoices
(C) SAP AG
BC619
4.3
Course Overview
Tools
Business Processes
and Business Objects
Administration
Enhancements
Communication and
Networks
Performance
ALE Components
System Security
IDoc Services
Special Functions
Information Sources
SAP AG 1999
(C) SAP AG
BC619
4.4
SAP AG 1999
IDoc services tailor messages to the requirements of the receiving logical system. Business factors
and the organizational structure play an important role in these requirements: data filtering, global
organizational units, field conversion.
IDoc services distinguish between IDocs defined from message types (< 4.x) and IDocs of the
generated interface for asynchronous BAPI calls (> 4.x).
(C) SAP AG
BC619
4.5
Selection by classification
Selection by dependencies
SAP AG 1999
(C) SAP AG
BC619
4.6
Company code
Business area
SAP AG 1999
Local organizational units must be assigned to global organizational units in your systems to ensure
that organizational units are standardized in the distributed environment.
Make the settings for converting global organizational units in ALE Customizing under
Modelling and Implementing Business Processes. Cross-application Settings Set global
organizational units
(C) SAP AG
BC619
4.7
SAP AG 1999
(C) SAP AG
BC619
4.8
Version Change
SAP AG 1999
The settings for IDoc version change are made in partner profile maintenance in field Segment
release in IDoc type. Refer to the F1 help.
If the field is empty, the segment definition currently assigned to it is used. The current segment
definition does not need to have been released. Following an upgrade the segment definition can
change.
The definition used for each segment type from the current IDoc is the definition that was actually
released in the Release specified. Following an upgrade the same segment definition can still be
used,, if you specify the release.
The setting made here does not take into account that an earlier function module has to be called for
tRFC communication between 4.x and 3.x systems. This is specified in the port settings by the IDoc
record type version.
(C) SAP AG
BC619
4.9
The message type NEU stands for a new message and can be used for outgoing inquiries, purchase orders and outline agreements. Each instance of this message type must be customized separately.
(C) SAP AG
BC619
1.
Creating rules
In the SALES system:
Generate your own message type ZMA0XX:
Derived from:
Active segments:
(C) SAP AG
BC619
10
2.
Modelling:
Set your distribution model and the communications parameters in such a way that you
can send your message type from the system SALES to the system PRODUCTION.
Set the conversion on the outbound side for communication with the system
PRODUCTION.
Set up the conversion on the inbound side for communication with the system SALES.
Send an IDoc with your message type to the system PRODUCTION and use the IDoc list
to check the result of the conversion.
Set the filter material type = HAWA for your message type.
Send an IDoc with your message type to the system PRODUCTION and use the IDoc list
to check the result of the conversion.
What happens and why?
(C) SAP AG
BC619
11
ZMA0##
Choose Create.
Model:
MATMAS
Choose Next.
Enter a short text.
Choose Next.
CONV_##
E1MARAM
(C) SAP AG
BC619
12
CONV_##
Choose Maintain.
Choose the field BISMT (Old mat. number).
Specify the characteristic value of the constant.
Choose Enter.
Enter the sender value BRGEW in the receiving field NTGEW (net weight).
Save your entry.
ZMA0##
Choose Next.
Choose New entries.
Partner type (sender):
Sender
LS
:
SALES
LS
PRODUCTION
Segment type:
E1MARAM
Conversion rule:
CONV_##
Model:
(C) SAP AG
Training_xx
BC619
13
Sender:
SALES
Recipient:
PRODUCTION
Message type:
ZMA0##
ZMA0##
Receiving port:
Production system
Output mode:
IDOC type:
MATMAS01
US
ID
(C) SAP AG
BC619
14
ZMA0##
Processing:
Trigger immediately
Process code
MATM
US
ID
Send your material with your message type directly from the system SALES to the system
PRODUCTION.
Use the IDOC list in the system PRODUCTION to check the conversion.
Create filter:
Maintain your distribution model.
Choose display/change.
Open your message types for the system PRODUCTION.
Double-click on: no active filters.
Choose Create Filter Group.
Enter MatArt = HAWA.
Save the model.
(C) SAP AG
BC619
15
5
Special Functions
Contents:
Serialization
Distributing classes and classified master data
Links between objects in the R/3 Business Object
Repository
SAP AG 1999
(C) SAP AG
BC619
5.2
For more detailed information on activating storage of outgoing documents in specific applications, (for example FI, QM), see the online documentation:
Basis Components--> Basis Services--> SAP ArchiveLink - 'Application scenarios'
(C) SAP AG
BC619
5.3
Course Overview
Tools
Business Processes
and Business Objects
Administration
Enhancements
Communication and
Networks
Performance
ALE Components
System Security
IDoc Services
Special Functions
Information Sources
SAP AG 1999
(C) SAP AG
BC619
5.4
Serialization
SAP AG 1999
(C) SAP AG
BC619
5.5
SAP AG 1999
Delays in transferring IDocs may result in an IDoc containing data belonging to a specific
application object arriving at its destination before an "older" IDoc that contains different data
belonging to the same object. Applications can use the ALE Serialization API to specify the order
IDocs of the same message type are processed in and to prevent old data from being posted if
processing is repeated.
IDocs from interfaces generated for asynchronous BAPI calls cannot be serialized at IDoc level
because the function module for inbound processing does not use the ALE Serialization API.
ALE provides two function modules to serialize IDocs, which the posting function module has to
call:
IDOC_SERIALIZATION_CHECK: Checks the time stamps in the serialization field of the IDoc
header. IDocs are read and organized according to serialization criteria. The IDoc data, IDoc
control records, and IDoc serialization data are returned in the results. The control records and
serialization data are sorted according to serialization criteria.
IDOC_SERIAL_POST: Updates the serialization table. A record is written in table BDFL for each
serialization object.
(C) SAP AG
BC619
5.6
SAP AG 1999
With master data distribution, interdependent objects are often distributed together (purchasing info
record with vendor and material, for example). Serialized distribution is only used to transfer
changes to master data. IDoc message types are assigned to serialization groups according to the
order specified for their transfer. Master data is distributed in exactly the same order. If all the IDocs
belonging to the same serialization group are dispatched successfully, the sending system sends a
special control message to the receiving system. This control message contains the order IDocs are
to be processed in and starts inbound processing in the receiving systems.
An example is the purchasing info record with vendor and material. To avoid any processing errors,
the vendor and material must be created in the receiving system before the purchasing info record.
(C) SAP AG
BC619
5.7
SAP AG 1999
Serialized messages may be of different types (for example, create, change, cancel messages). All
messages here relate to one special application object
Transfer errors (IDoc sequence mixed up) and inbound posting errors (IDoc cannot be posted due to
Customizing errors) no longer affect the sequential order.
A unique serial number is assigned to each outbound message for the application object in question.
When processing inbound IDocs, the ALE layer determines whether a given IDoc can now be posted
or whether other IDocs have to be posted first. (In this case, the IDoc is assigned status 66 and must
be posted again with the program RBDAPP01.)
Objects are assigned to messages by the application.
To implement serialized distribution using objects, the following settings must be made in
Customizing:
Activate outbound object types
Activate inbound object types
To prevent posting coming to a standstill, the object types must be activated in both systems!
(C) SAP AG
BC619
5.8
SAP AG 1999
(C) SAP AG
BC619
5.9
SAP AG 1999
(C) SAP AG
BC619
5.10
Prerequisites:
SAP AG 1999
The selection by classification setting is part of modeling the distribution model. Maintain the
attribute Dependent on class membership in the data filters of a connection.
In ALE Customizing you should set the classes that are to be included in the selection. Assign the
classes to be used for distributing the master data to the message type and logical
receiving system. The function can be found under Modelling and Implementing Business
Processes -> Master Data Distribution -> Distribution Using Object Classes -> Assign
Classes to Receiving Logical System.
(C) SAP AG
BC619
10
5.11
A object type
An object ID
SAP AG 1999
(C) SAP AG
BC619
11
5.12
Controlled by the print request definition, the spool work process creates two files (data file and description file). These are written into the exchange directory with the content server.
(C) SAP AG
BC619
12
5.13
Indexing
SAP AG 1999
With ALE audit, the audit data is sent using message type ALEAUD.
(C) SAP AG
BC619
13
5.14
Status monitor
IDoc tracing:
To reconstruct the object history
To display the partner IDoc
IDoc display:
Display links and object keys
ALE audit:
To reconstruct the object history
SAP AG 1999
(C) SAP AG
BC619
14
5.15
SAP AG 1999
(C) SAP AG
BC619
15
You want to distribute master data among systems that are filtered
according to their class membership.
1.
Add the facility for distribution among classes in your distribution model to your message
type.
Send the material with your message type to the system PRODUCTION.
Send the material from your class with your message type to the system PRODUCTION.
(C) SAP AG
BC619
16
Generating a class
Basis Distribution (ALE) Modelling and Implementing Business Processes
Master Data Distribution Distribution Using Object Classes
Choose Maintain Classes.
Choose the class type:
ALM
Class:
CLASS_##
Choose Enter.
Enter a name.
Save your entry.
PRODUCTION
Choose Next.
Choose New Entries.
Type:
ZMA0##
Class:
CLASS_##
Push/Pull
(C) SAP AG
BC619
17
ZMA0##
Logical System:
PRODUCTION
MATALE-##
Class type:
ALM
Choose Enter.
Class:
(C) SAP AG
Class_##
BC619
18
ZMA0##
Logical System:
PRODUCTION
(C) SAP AG
BC619
19
6
Tools
Contents:
ALE audit
Synchronization of Customizing objects
Reduction of message types
Conversion of logical system names
IDoc recovery following database error
SAP AG 1999
(C) SAP AG
BC619
6.2
SAP AG 1999
(C) SAP AG
BC619
6.3
Course Overview
Tools
Business Processes
and Business Objects
Administration
Enhancements
Communication and
Networks
Performance
ALE Components
System Security
IDoc Services
Special Functions
Information Sources
SAP AG 1999
(C) SAP AG
BC619
6.4
ALE Audit
SAP AG 1999
(C) SAP AG
BC619
6.5
Within the complete print list file (for example 50 columns), individual output fields are defined as index fields (these can be used as search criteria). You can use these index fields to search in the index display (with the appropriate technical prereq
uisites).
(C) SAP AG
BC619
6.6
You must define a message flow for the message type ALEAUD in
the distribution model
As the data filter values, specify the message types for which the
audit confirmations are to be created
SAP AG 1999
The storage system searches for the search terms in the description file and if the search is
successful, indicates the relevant position in the data file
In the distribution model, maintain a link to message type ALEAUD in the opposite direction for
each link of a message type to be monitored.
Maintain the filter object type message type as the data filter for ALEAUD.
(C) SAP AG
BC619
6.7
SAP AG 1999
If audit information is available, the IDocs in the sending system have the status
39 IDoc in receiving system (ALE service)
(C) SAP AG
BC619
6.8
SAP AG 1999
(C) SAP AG
BC619
(C) SAP AG
BC619
6.9
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
(C) SAP AG
BC619
10
6.10
(C) SAP AG
BC619
11
6.11
SAP AG 1999
The tool can only process client-dependent Customizing objects of the category CUST. The
objects must be defined in transaction SOBJ. The following object types can be used:
The units can be divided as follows:
Units which describe how to configure the IDoc Interface
The unit "Test" describes an important step in the process of configuring the IDoc Interface. The
emphasis is placed on the implementation of the test programs in the data flow.
C View cluster
The Customizing objects to be distributed can be defined further using the object key. This
allows you to distinguish between central and local instances of a Customizing object.
(C) SAP AG
BC619
12
6.12
SAP AG 1999
Implementation Guide (IMG): Basis Components --> Basis Services-->SAP ArchiveLink -->Basic
Settings
-->Maintain number ranges
Create Queues
Queues are activated and the queue administrator is entered. This process should be a part of the
installation routine of the storage system. Absence of activated queues could lead to irreparable
errors (the print list then has to be generated and stored again).
Implementation Guide (IMG): Basis Components --> Basis Services-->SAP ArchiveLink -->Basic
Settings --> Create queues
Schedule a Job
The job periodically executes the individual queues. You should note that the job is only scheduled
during the daily online work when it does not hinder this.
For performance reasons it is not
recommended to schedule jobs more frequently than once every fifteen minutes.
Implementation Guide (IMG): Basis Components --> Basis Services-->SAP ArchiveLink -->Basic
Settings -->Schedule jobs
(C) SAP AG
BC619
13
6.13
ALE Transports
SAP AG 1999
(C) SAP AG
BC619
14
6.14
SAP AG 1999
(C) SAP AG
BC619
15
6.15
The storage system transfers the files to the content server. As long as this happens, an open asynchronous request remains in the administration, and if there is a transfer error then this is logged in the open asynchronous requests.
(C) SAP AG
BC619
16
6.16
Archive
Archive IDoc
IDoc ??
Generate IDoc
Partner
Partner Profiles
Profiles
Port
Port Definition
Definition
External System
EDI
EDI Subsystem
Subsystem ?
?
Transfer data,
process further
Documentation
Documentation
Tools
Tools
SAP AG 1999
When reducing a message type, a new message type is created in the customer namespace.
The reduced message type refers to an existing message type, which is classed as reducible, and its
associated IDoc basic type. The IDoc segments and fields to be distributed can be chosen on the
basis of an IDoc basic type.
The inbound function module of the IDoc basic type is assigned to the reduced message type.
For the IDoc to be posted correctly on the receiving side, the receiving system needs to know the
settings for the reduced message type.
The message type information can be entered in a transport request and then imported.
(C) SAP AG
BC619
17
6.17
Steps in Customizing
SAP AG 1999
In ALE Customizing, choose Modeling and Implementing Business Processes Master Data
Distribution Scope of Data for Distribution Message Reduction to call up the two points
Create Reduced Message Type and Generate Transport Request for Message Type.
(C) SAP AG
BC619
18
6.18
processing
SAP AG 1999
(C) SAP AG
BC619
19
6.19
SAP AG 1999
(C) SAP AG
BC619
20
6.20
SAP AG 1999
For information on converting the logical system name of a client, refer to ALE Customizing under
Sending and Receiving Systems Logical Systems Convert Logical System Names in Application
Tables and to the online library.
Authorizations
To run the report, you must be authorized to convert logical system names (authorization object
B_ALE_LSYS).
Test mode
You are advised to start the conversion in test mode. If you activate the test run selection field, all
relevant tables will be analyzed and the number of entries contained in the tables will be
determined. These will then be output in a list. If the new logical system name is already available
in the relevant tables, the system queries whether the conversion is to be continued or not. You
must check the table in which this logical system name was found and determine whether you
want to perform the conversion for these entries. If this is not the case, the conversion must be
terminated.
(C) SAP AG
BC619
21
6.21
SAP AG 1999
(C) SAP AG
BC619
22
6.22
The IDoc number of the IDoc to which the status record refers is an important part of the status record. This allows the IDoc relevant to a status conformation message to be identified in the system and the returned status records can therefore be appende
d.
(C) SAP AG
BC619
23
6.23
Database reorganization and database backups are independent of data archiving and SAP recommends that they be carried out at regular intervals.
Before the start of the transaction, the following message flows to the distribution model are
maintained. S1 is the system that has crashed.
S1 - RCYFET -> S2
S1 <- RCYRSP - S2
For SAP R/3 releases 3.1I and earlier, read Note #89324, 'Revised ADK Versions'.
For inbound processing, the external system must be assigned certain authorizations. Documents
(IDocs and application documents) are to be created in the R/3 System.
Different options are available for both inbound and outbound processing. These options are
explained in the following slides.
(C) SAP AG
BC619
24
6.24
SAP AG 1999
All participating systems are provided with information on the date and time of the reset system via
message type RCYFET.
(C) SAP AG
BC619
25
6.25
Change the (segment) version: if the recipient only recognizes an earlier version of the IDoc type, the version can be changed here. This means that less data is transported, as later versions of IDoc types can only contain more data than former versions
and never less.
(C) SAP AG
BC619
26
6.26
From Basis
Release 4.6C
onwards
ArchiveLink API
for applications
...
ArchiveLink/CMS
interface
ArchiveLink interface
ext.
Content
servers
toto
ext.
Content
servers
...
...
SAP AG 2001
(C) SAP AG
BC619
27
6.27Tools: Exercises
Unit: Tools
Topic: Reduction of Messages
2.
all fields
in E1MTXHM:
all fields
in E1MTXHM:
all fields
(C) SAP AG
BC619
28
3.
Segment reduction
Create a segment filter for your message type for the segment E1MTXLM.
Send your material with your message type.
Check the IDoc in the IDoc list.
Do you see the difference between message reduction and segment reduction?
(C) SAP AG
BC619
29
Exercises
Unit: Tools
Topic: ALE Auditing
1.
(C) SAP AG
BC619
30
6.28Tools: Solutions
Unit: Tools
Topic: Reduction of Messages
Exercise 1: Reduction
Start IDOC reduction in IMG:
Basis Components Distribution (ALE) Modelling and Implementing Business
Processes Master Data Distribution Scope of Data for Distribution Message
Reduction Create Reduced Message Type
View (NachrTyp):
ZMA0##
Choose Change.
Model:
MATMAS
Choose Next.
Enter a short text.
Choose Next.
Open the structure.
Select the segments E1MARAM, E1MAKTM and E1MTXHM.
Double-click the segment E1MARAM in order to call up the field lists.
Mark the fields that are to be activated.
Choose select.
Choose Next.
Double-click the segment E1MAKTM in order to call up the field lists.
Mark all fields.
Choose select.
Choose Next.
Double-click the segment E1MTXHM in order to call up the field lists.
Mark the fields that are to be activated.
Choose select.
(C) SAP AG
BC619
31
Choose Next.
Double-click the segment E1MTXLM in order to call up the field lists.
Mark the fields that are to be activated.
Choose select.
Choose Next.
Send your material with your message type directly from the system SALES to the system
PRODUCTION.
Use the IDOC list in the system PRODUCTION to check the conversion.
(C) SAP AG
BC619
32
ZMA0##
Choose Next.
Choose New entries.
Partner type (sender):
Sender
LS
:
SALES
LS
Recipient
PRODUCTION
Segment type:
E1MTXLM
Send your material with your message type directly from the system SALES to the system
PRODUCTION.
Use the IDOC list in the system PRODUCTION to check the conversion.
(C) SAP AG
BC619
33
Solutions
Unit: Tools
Topic: ALE Auditing
SALES
Sender:
PRODUCTION
Message:
ALEAUD
Filter:
ZMA0xx
SALES
Message type:
ZMA0xx
Date changed:
today
n the ALE audit of the system SALES, please check the confirmations:
Tools ALE ALE Administration Monitoring ALE Audit Reorganize audit
database
Message type:
(C) SAP AG
ZMA0xx
BC619
34
7
Administration of ALE Functions
Contents:
ALE in the R/3 System
Monitor functions
Special functions and tools
SAP AG 1999
(C) SAP AG
BC619
7.2
T-Code FILE
Logical file name
Archive_Data_File_With_Archive_Link
SAP AG 2002
(C) SAP AG
BC619
7.3
Course Overview
Tools
Business Processes
and Business Objects
Administration
Enhancements
Communication and
Networks
Performance
ALE Components
System Security
IDoc Services
Special Functions
Information Sources
SAP AG 1999
(C) SAP AG
BC619
7.4
(C) SAP AG
BC619
7.5
SAP AG 1999
(C) SAP AG
BC619
7.6
SAP AG 1999
(C) SAP AG
BC619
7.7
Archive
Archive IDoc
IDoc ??
Generate IDoc
External System
EDI
EDI Subsystem
Subsystem ??
Transfer data,
process further
Partner
Partner Profiles
Profiles
Port Definition
Documentation
Documentation
Tools
Tools
SAP AG 1999
(C) SAP AG
BC619
7.8
SAP AG 1999
(C) SAP AG
BC619
7.9
Ports are the channels via which the IDocs are exchanged. The IDoc Interface supports six different transmission methods. These are the port types:
In releases < 4.6 you can access DART using transaction FTW0. As of release 4.6 the path is
Tools > Administration > Administration > Data Retention Tool.
Data for technical linking is determined in the port definition for the IDoc Interface. So that a port
can be used, settings outside of the IDoc Interface must be made.
The port definition for the port type "file" includes
Instead of the outbound file, you can also store a function module, which dynamically generates
names and thus helps to prevent files from being over-written. You can also use logical file names:
You should also see the F1 Help for the field.
(C) SAP AG
BC619
7.10
IDoc Interface
Write
RFC
IDoc file
Status report
IDoc file
out.script
RFC
Read
rfcexec
Call
Read
in.script
status.script
startrfc
Write
Call
External System
SAP AG 1999
The status monitor offers extended selection possibilities for the display:
Business object
(C) SAP AG
BC619
10
7.11
SAP AG 1999
(C) SAP AG
BC619
11
7.12
SAP AG 1999
Since it is geared to application objects, manual IDoc processing is very suitable as a monitoring tool
for ALE application specialists. It allows
IDoc selection on the basis of a variety of criteria
Detailed display of the IDocs
Triggering of further processing
For Release 4.6A/B, only incorrect messages are displayed in "Manual IDoc processing".
(C) SAP AG
BC619
12
(C) SAP AG
BC619
13
7.13
Serialization functions
SAP AG 1999
(C) SAP AG
BC619
14
7.14
The R/2 System is always passive, the communication is always started from the R/3 System. The data bindings supported are:
(C) SAP AG
BC619
15
7.15Administration Exercises
Unit: Administration
Topic: ALE Monitoring
__________
__________
Use IDoc tracing to ensure that the number you obtain from this list is retained in the
PRODUCTION system.
IDOC number:
__________
__________
View the material obtained from IDoc tracing in the PRODUCTION system.
(C) SAP AG
BC619
16
(C) SAP AG
BC619
17
7.16Administration Solutions
Unit: Administration
Topic: ALE Monitoring
Exercise 2: Linking
View your material in the IDoc display by selecting System Links.
ZMAxx
LS
LS
LS
PRODUCTION
Examine your IDoc number in order to receive the number of the corresponding IDoc in
the receiving system.
View your material in the IDoc display by selecting System Links.
(C) SAP AG
BC619
18
8
Document Link Administration
Find
Display
Create
Stores an image document and creates a link between the image document and
business object
Assign subsequently
Creates a link between business object and an already stored image document. No
image document is stored (in contrast to the Create function)
Reassign
SAP AG 1999
(C) SAP AG
BC619
8.2
Outbound Processing
The IDoc Interface calls the function module and transfers the IDoc control records in table format. Further processing (reading data, processing data, writing status records) is programmed by the user.
(C) SAP AG
BC619
8.3
SAP AG 1999
(C) SAP AG
BC619
8.4
Find
Display
SAP AG 1999
(C) SAP AG
BC619
8.5
(C) SAP AG
BC619
8.6
General definitions
Combining segments
Enhancing basic (IDoc) types
Assigning a basic type and an enhancement to a message
type
SAP AG 1999
(C) SAP AG
BC619
8.7
SAP AG 1999
The FB EXIT_SAPLBD11_001 is called during IDoc outbound processing in the form routine
CHANGE_IDOC_VERSION and during IDoc inbound processing in the form routine
IDOC_CONVERT_VERSION_INBOUND. The call hierarchy is as follows
Outbound:
When distributing via message types, the user exit is called while the function module MASTER_IDOC_DISTRIBUTE is
being processed. If the distribution is performed by the asynchronous BAPI call, the user exit is executed in the sequence
ALE_IDOCS_CREATE.
FUNCTION MASTER_IDOC_DISTRIBUTE -> FORM IDOC_SELECTION_AND_SERVICES -> FUNCTION
ALE_IDOC_SERVICES_APPLY_OUT -> FORM IDOC_CONVERT_VERSION_OUTBOUND -> FORM
CHANGE_IDOC_VERSION -> FUNCTION EXIT_SAPLBD11_001
FUNCTION ALE_IDOCS_CREATE -> FUNCTION ALE_IDOC_SERVICES_APPLY_OUT -> FORM IDOCCONVERT_VERSION_OUTBOUND -> FORM CHANGE_IDOC_VERSION -> FUNCTION
EXIT_SAPLBD11_001
Inbound
FUNCTION INBOUND_IDOC_PROCESS -> FUNCTION ALE_IDOC_SERVICES_APPLY_IN -> FORM
IDOC_CONVERT_VERSION_INBOUND -> FUNCTION EXIT_SAPLBD11_001
(C) SAP AG
BC619
8.8
SAP AG 1999
(C) SAP AG
BC619
9
Performance Optimization
Contents:
Time schedule of outbound and inbound processing
Parallel processing of IDocs
Packet processing
SAP AG 1999
(C) SAP AG
BC619
9.2
SAP AG 1999
(C) SAP AG
BC619
9.3
Course Overview
Tools
Business Processes
and Business Objects
Administration
Enhancements
Communication and
Networks
Performance
ALE Components
System Security
IDoc Services
Special Functions
Information Sources
SAP AG 1999
(C) SAP AG
BC619
(C) SAP AG
BC619
9.4
There is an n:m relationship between process codes and message types. For new definitions of business processes or IDoc types you determine new process codes or messages in the assignment table (see BC621).
(C) SAP AG
BC619
9.5
The IDoc Interface programs use sequential numbers for outbound modes: field OUTMOD has values from 1 to 4 (read from top to bottom in the diagram).
Partner profiles can also be sent via the special IDoc type SYPART01. A partner profile for this IDoc
type with the "logical" message SYPART is therefore a prerequisite.
(C) SAP AG
BC619
9.6
SAP AG 1999
If the same master data is changed several times, only the last change pointer is used to create the
master data IDoc. This minimizes the number of IDocs dispatched.
To create change pointers, in ALE Customizing you have to activate change pointers generally as
well as for individual message types.
(C) SAP AG
BC619
9.7
12
9
SAP AG 1999
Creating and transferring the IDoc to the communication layer at separate times improves system
performance
The outbound processing mode Collect IDocs is set in the partner profiles
(C) SAP AG
BC619
9.8
You always create a new test-IDoc with the test tool. However, you can use one of the IDocs available in the database as a template and edit the copy.
The following options are available in the test tool for both inbound and outbound processing:
Mass testing: Several copies of the edited IDoc are sent for processing. If the relevant flag is not
set, only one copy is sent.
In addition, the following options are available for inbound processing:
ALE inbound processing splits the IDoc packets into individual IDocs.
(C) SAP AG
BC619
9.9
SAP AG 1999
(C) SAP AG
BC619
10
9.10
Business Scenario
SAP AG 1999
There are no benefits of creating IDocs in parallel for distributing transaction data in ALE, because
this mainly involves single events which cannot be accelerated by running dialog processes at the
same time.
The server group is a list of the application servers, whose available dialog processes are used to
create IDocs. Two dialog processes remain unused on every application server in a server group.
(C) SAP AG
BC619
11
9.11
SAP AG 1999
(C) SAP AG
BC619
12
9.12
SAP AG 1999
(C) SAP AG
BC619
13
(C) SAP AG
BC619
14
9.13
The condition component "Access sequence can be used to define whether only one message is to be found: If this is the case, you should set the "exclusive flag. If this flag is not set, the entire access sequence is processed, that is, several messages
have possibly been found.
"6"
EDI (Electronic Data Interchange), that is, without distribution model
The EDI program for message processing is started with these parameters: RSNASTED, with the
form routines EDI_PROCESSING or ALE_PROCESSING.
IDocs are transferred individually from program RSNASTED when using output modes "1" and "2"
(field OUTMOD in the control record).
(C) SAP AG
BC619
15
9.14
Background processing:
SAP AG 1999
You can process IDocs that are ready for transfer (status 64) manually in ALE administration (status
monitor BD87) or by scheduling the program RBDAPP01.
(C) SAP AG
BC619
16
9.15
Packet Processing
SAP AG 1999
(C) SAP AG
BC619
17
9.16
SAP AG 1999
(C) SAP AG
BC619
18
9.17
SAP AG 1999
You can specify the packet size of message types in Customizing for ALE:
Modeling and Implementing Business Processes Partner Profiles and Time of Processing
Maintain Partner Profile Manually
From Release 4.5B, the main relevant communication types for displaying and storing documents are
those mentioned in the slide.
The previous communication standard 'ICC', present in the first line of the SAP ArchiveLink viewer
using Archive DLL, is still available, but in the background.
(C) SAP AG
BC619
19
9.18
Number ranges are intervals of natural numbers which are assigned to objects centrally by the R/3 System. This is called "internal number assignment".
INPUTTYP contains the code for posting function modules. INPUTTYP can contain the following
values:
"0", for function modules which process IDocs in packets
When IDocs are received, they are first saved in the database. In a second and independent step, they
are processed further (for port types "file", "XML", "CPI-C"). This is made possible by the workflow
event concept: If IDocs are saved in the database, an event is created , which waits for the "receiver"
in the system. The "receiver" (a function module) finds the event and triggers inbound processing. As
a result of this step, the function module has used the event, which no longer exists in the system.
The Workflow Manager determines when the receiver starts to search for events: There is therefore
an interval between the data being saved and further processing being initiated (asynchronous
processing).
To display the function module INPUTTYP, on the ALE Development screen, choose IDoc
Inbound Function module attributes (BD51).
You must therefore activate the event-receiver linkage in the IMG for the IDoc Interface.
OLE communication is most frequently used in connection with the front end components of the
particular storage system provider. The storage system provider or executive business partner is
responsible for notifying the SAP System of the OLE classes of these components and for
maintaining the communication sequence for displaying and storing documents.
The OLE communication can also be used to integrate OLE automation 2.0 compatible standard PC
components in the scenarios.
OLE Automation 2.0 offers a wide range of possibilities for
controlling the front end components from the SAP System.
For the front end components named above there are generation functions in the protocol
maintenance which produce a simple local display of the document.
(C) SAP AG
BC619
20
9.19
SAP AG 1999
(C) SAP AG
BC619
21
9.20
(C) SAP AG
BC619
22
10
System Security
Contents:
Authorizations
Notes for avoiding security problems
SAP AG 1999
(C) SAP AG
BC619
10.2
Release 4.0
Release 3.X
Type
"LongNameXYZ01"
Type "Short01"
SAP AG 1999
(C) SAP AG
BC619
10.3
Course Overview
Tools
Business Processes
and Business Objects
Administration
Enhancements
Communication and
Networks
Performance
ALE Components
System Security
IDoc Services
Special Functions
Information Sources
SAP AG 1999
(C) SAP AG
BC619
(C) SAP AG
BC619
10.4
SAP AG 1999
S_IDOC_ALL
S_IDOCMONI
S_IDOCCTRL
S_IDOCDEFT
S_IDOCPORT
S_IDOCPART
S_TRANSPRT
(C) SAP AG
BC619
10.5
If many formats can be displayed at the same time using the supplier viewer, this increases the usability of the front end components.
(C) SAP AG
BC619
10.6
Application
MC
MC
WE15
IDoc Interface
WE14, WE19
External
System
SAP AG 1999
(C) SAP AG
BC619
10.7
SAP AG 1999
(C) SAP AG
BC619
10.8
Status records must refer to outbound IDocs in the system, otherwise an error occurs in status processing.
(C) SAP AG
BC619
11
Integration of External Clients: Technical Process
for Storage Using Supplier Scan Software (OLE)
SAPGUI
Scan software
supplier
3
2
Front end PC
Internal communication
for storing in
the storage system
Content server
storage system
SAP AG 1999
(C) SAP AG
BC619
11.2
SAP AG 1999
(C) SAP AG
BC619
11.3
Course Overview
Tools
Business Processes
and Business Objects
Administration
Enhancements
Communication and
Networks
Performance
ALE Components
System Security
IDoc Services
Special Functions
Information Sources
SAP AG 1999
(C) SAP AG
BC619
11.4
Protocols:
SAP Easy Access: Tools--> Business Documents--> Basic Settings--> Communication--> Protocols
(C) SAP AG
BC619
11.5
Problem
You want to exchange messages between the same logical
system because an internal interface is not available. In
the distribution model, however, it is impossible to enter
the same logical system for sender and receiver.
Solution
Define logical systems and RFC destinations with different
names for sender and receiver. Use the same system and
access settings in the RFC destinations.
Note! With different logical systems for the same clients,
the partner profiles must be maintained manually.
SAP AG 1999
(C) SAP AG
BC619
11.6
Problem
You would like to send messages of the same message type
to the same client and define various outbound partner
profiles on the basis of certain conditions.
Solution
For each partner profile, define a logical receiving system
and an RFC destination with the same name. In the
distribution model, generate the required connections and
generate and modify the partner profiles. You can use
various filter conditions to assign the messages to the
required connections.
SAP AG 1999
(C) SAP AG
BC619
11.7
(C) SAP AG
BC619
11.8
The SD master data must contain EDI-specific parameters which are compared with the data from the order IDoc:
(C) SAP AG
BC619
11.9
SAP AG 1999
(C) SAP AG
BC619
12
Information Sources
Contents:
SAP Library
SAPNet
Development news
Release information
Online Service System
ALE Users' Group
Books and magazines
SAP AG 1999
(C) SAP AG
BC619
12.2
SAP AG 1999
(C) SAP AG
BC619
12.3
Trademarks:
(C) SAP AG
BC619
12.4
What is Certification?
Partner
Interface
SAP Application
SAP ArchiveLink
/ Content Server
Interface
Object of certification
Partner
Application
SAP AG 1999
(C) SAP AG
BC619
12.5
Certification includes technical assessment of communication of a third party system to a SAP standard interface.
(C) SAP AG
BC619
12.6
SAPNet
SAP AG 1999
(C) SAP AG
BC619
(C) SAP AG
BC619
12.7
Page
6-5
6-9
6-16
6-19
6-24
6-26
6-27
6-31
6-34
6-38
6-40
6-41
6-48
SAP AG 2002
(C) SAP AG
BC619
12.8
Status values for active monitoring and statistics about status groups are combined to prevent the information becoming too complicated.
(C) SAP AG
BC619
12.9
Books on ALE
SAP AG 1999
(C) SAP AG
BC619
10
12.10
Magazines
SAP Insider
SAP AG 1999
(C) SAP AG
BC619
11
12.11
For SAP R/3 releases 3.1I and earlier, read Note #89324, 'Revised ADK Versions'.
(C) SAP AG
BC619
12
12.12
SAP AG 1999
(C) SAP AG
BC619
13