ALE Programming Guide
Distribution Using BAPIs
Distribution Using BAPIs
Implementing Your Own BAPIs
Filtering Data
Reducing Interfaces
Defining and Assigning Filter Object Types
Filtering BAPI Parameters
Defining Hierarchies Between BAPI Parameters
Maintaining BAPI-ALE Interfaces
Determining the Receiver of a BAPI
Determining Filter Objects of a BAPIs
Determining Receivers of Asynchronous BAPIs
Determining Filter Objects Using Business Add-Ins
Example Programs with Asynchronous BAPI Calls
Determining Receivers of Synchronous BAPIs
Example Programs with Synchronous BAPI Calls
Determining Unique Receivers of Synchronous BAPIs
Developing BAPIs for Interactive Processing
Enhancing IDocs of BAPI-ALE Interfaces
Distribution Using Message Types
Distribution Using Message Types
Implementing Outbound Processing
Developing a Function Module for ALE Outbound Processing
Basics
Interrogating the Distribution Model
Structure of Control Records
Structure of the Data Records
Converting Currency Amounts
Replacing SAP Codes With ISO Codes
Left-justified Filling of IDoc Fields
Call of MASTER_IDOC_DISTRIBUTE
Exceptions and Export Parameters of MASTER_IDOC_DI
Example of Generating an IDoc
Example Program to Generate an IDoc
Using the Example Coding
Customizing ALE Outbound Processing
Defining ALE Object Types
Assigning the Object Type for the Outbound Link to the Message T
Assigning the Application Object Type for the Outbound Link to t
Outbound Processing Using Message Control
Implementing Inbound Processing
Inbound Function Module
Embedding a Function Module in ALE Inbound Processing
Data Consistency
Ensuring Data Consistency
Serialization
Processing IDocs Individually
Naming Convention
The Function Module’s Interface
Import Parameters
IDoc Processing
Export Parameters
The Inbound Function Module’s Export Parameters
Export Parameters When IDoc was Successfully Proce
Export Parameters When an Error Occurred in IDoc P
Example of Processing an IDoc
Example Program to Process an IDoc
Serialization Using Message Types
Example Program for Serialization
Customer Exits
Example Program for a Customer Exit
Mass Processing
Import Parameters
Export Parameters
All Inbound IDocs Processed Successfully
Error in One Inbound IDoc
Example Program for Mass Processing IDocs
Using Call Transaction
ALE-Enabled Transactions
Call Transaction Succeeds
Call Transaction Fails
Import Parameters in CALL TRANSACTION
Export Parameters in CALL TRANSACTION
Inbound Processing Successful
Error During Inbound Processing
ALE Settings
Declaring the Function Module’s Attributes
Registering the Function Modules in Inbound Proces
Creating an Inbound Process Code
Inbound Processing Using SAP Workflow
Work Items
Workflow
IDOCXAMPLE as a Reference for IDOC_PACKET
IDPKXAMPLE as a Reference for IDOC_PACKET
Advanced Workflow Programming
Setting the Parameter RESULT in the Event Container
Event inputErrorOccurred
Event inputFinished
Triggering an Application Event After Successful I
Using the Parameter NO_OF_RETRIES
Generating ALE Interfaces from Complex Data Types
Generating the ALE Interface: Procedure and Programming Model
Master Data Distribution
Defining the Message
Processing Outbound Master Data
Distributing Master Data Using the SMD Tool
Sending Master Data Directly
Processing Inbound Master Data
Connections to Non-SAP Systems
Translator Programs for Communication
Technical Implementation
TCP/IP Settings
Sending IDocs to an External System
Sending IDocs from an External System to SAP
Transaction Identification Management (TID)
Integrating Dialog Interfaces
Calls With References to the Logical System
Calls Without References to the Logical System
Serialization of Messages
Serialization by Object Type
Serialization Using Object Types: Procedure
Serialization by Message Type
Serialization at IDoc Level
Error Handling
Objects, Events and Tasks to be Created
Object Types and Events
Creating IDoc Object Type: IDOCXAMPLE
Creating IDoc Packet Object Type: IDPKXAMPLE
Creating a Standard Task
Maintaining Inbound Methods
Checking Consistency of Inbound Error Handling