--- title: "SAP ALE (Input agent)" slug: "profiles--entry-tab-2-sap-ale" updated: 2026-09-22T11:27:47Z published: 2026-09-22T11:27:47Z canonical: "docs.lobstersoftware.com/profiles--entry-tab-2-sap-ale" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # SAP ALE (Input agent) ## General process The Input agent "SAP ALE" implements the incoming connection of an SAP system via the SAP ALE interface. A Profile that uses the input agent "SAP ALE" does not process data itself but instead assumes the role of a dispatcher. That is, the received data is distributed to subsequent profiles for processing. ![images/download/attachments/201676023/SAP_ALE_1-version-1-modificationdate-1747300283511-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/SAP_ALE_1-version-1-modificationdate-1747300283511-api-v2.png) **(1)** The SAP system transfers data that contains one or more IDocs. **(2)** The SAP interface checks whether the maximum number of IDocs (9) per transmission from the SAP system is exceeded. If this is the case, the processing of the IDocs is rejected (with a Response to the SAP system). **NOTE:** There is one *TID* per SAP transmission. **(3)** The IDocs are divided into groups. Each group contains a configurable maximum number (8) of IDocs. The individual groups are transferred as a whole to the dispatcher profile (4). **NOTE:** The system variable `VAR_SYS_MESSAGE_ID` (if defined) contains `<DOCNUM>@<TID>`. The *DOCNUM* is always that of the last IDoc in the group. The *TID* comes from (2). **(4)** The dispatcher profile receives the groups of IDocs and starts a separate job for each group. For each group of IDocs as a whole, an IDoc control record (*EDI_DC40*) is used to determine the subsequent Processing profile, see items (11) - (16). **(5)** The assigned processing profile receives the entire group of IDocs via *Message*. > [!WARNING] > **IMPORTANT:** > > Received [IDocs](/v1/docs/en/profiles--tab-3-format-idoc) are converted into the encoding of the processing profile selected by the dispatcher. Therefore, before receiving the first IDocs, the encoding in the respective processing profiles should be set so that all characters in it can be properly represented. Our recommendation is *UTF8* because this encoding can represent practically all relevant characters and also because the SAP service delivers UTF8-encoded files. ## Settings ![images/download/attachments/201676023/sap_ale-version-1-modificationdate-1747300283501-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/sap_ale-version-1-modificationdate-1747300283501-api-v2.png) (6) **Start on IS only:** Only relevant for the module "Load balancing", to start the profile on a specific node. (7) **SAP alias:** Alias (from `./etc/sap.xml`) for the SAP system. **IMPORTANT:** If there are multiple dispatcher profiles with the same SAP alias, each dispatcher receives the IDocs regardless of the settings of the other. We recommend to avoid this. (8) **Group IDocs per conversion:** Maximum number of IDocs grouped together. (9) **Max. allowed IDocs per transmission:** Transfers with more than the specified number of IDocs are rejected with a response to the SAP system. (10) **Persistent:** If the checkbox is set, the processing profile is called asynchronously with a persistent message. The processing order will then be undetermined. **NOTE:** The processing profile must not have option "Profile may only run in one instance" set (see [General (Main settings)](/v1/docs/en/profiles--tab-1-1)). ### Dispatch rules (11) **Associate conditions for same profiles with AND:** This option is only relevant if several entries refer to the same processing profile (16). In this case, the rules for the profile are combined internally by OR-ing the values of the columns with the same name. **Example:** Assume the following two rules. | IDoc | CIM | DC40 field | Value | Profile | | --- | --- | --- | --- | --- | | ORDERS05 | | RCVPRN | 0815 | Profile_1 | | ORDERS05 | | RCVPRN | 0816 | Profile_1 | The internally combined rule for *Profile_1* will then be *(IDOC=ORDERS05) AND (RCVPRN=0815 OR RCVPRN=0816)*. (12) **IDoc:** Value for field *IDOCTYP* (basic type) of the IDoc control record (*EDI_DC40*). You have to enter the complete name of an IDoc type. Upper and lower case are not considered. **NOTE:** Any existing SAP namespace or SAP domain name must be prefixed. (13) **CIM:** Value for field *CIMTYP* (extension type) of the IDoc control record (*EDI_DC40*). In this column, you can enter the full name of an extension type. Upper and lower case are not considered. **NOTE:** Any existing SAP namespace or SAP domain name must be prefixed. (14) **DC40 field:** Selection of a field of the IDoc control record (*EDI_DC40*). See also (11). (15) **Value:** Here you can enter a value for the field selected in (14). If no value is entered here, the field set in (9) will be ignored. (16) **Profile:** The processing profile that, depending on columns (11), (12), (13), (14) and (15), is to receive the data. A profile entered here must have an input agent of the "Message" type. ### Default rule IDocs that cannot be assigned to a processing profile, are ignored (these IDocs can be found in area “Unresolved”). Please use a dispatch rule with the IDoc type *, see (12), to pass these IDocs to a processing profile, which can then decide what to do with them. The following columns (except column *Profile*) should be empty. The asterisk * can only be used as a non-specific IDoc type, but not as a wildcard for arbitrary characters. > [!NOTE] > **NOTE:** > > If a profile uses this input agent and exactly one (that is, no other) dispatch rule with a *** in field *IDOC*, see (12), and also exactly one (that is, no other) response of the "Custom class" type with one of the classes *ContentInspectionResponse*, *ContentInspectionResponseAsync*, *ContentInspectionResponseUTF8* or *ContentInspectionResponseUTF8Async*, the data will be sent to the Content inspection, but not to the processing profile, see (16), of the dispatch rule. This saves one job (backup file and logs) for the processing profile that would otherwise send to the Content Inspection module. It is also recommended to set the property "Keep backup for" (see [Backup and limits](/v1/docs/en/profiles--tab-1-5)) to *0* to save further disk space. ### Rule scoring If several suitable rules, i.e. potential processing profiles can be determined, a scoring decides which rule and thus which processing profile is used. The score is higher the more matching fields (12), (13) and (14)/(15) a rule has, whereby (12) and (13) are given higher priority than (14)/(15). In addition, the score is also higher if more fields are ORed in (14)/(15), see (11). More illustrative in the following examples. The top row has the highest score, then descending. | IDOC | CIM | DC40 field | | --- | --- | --- | | match | match | match, 5 fields ORed | | match | match | match, 3 fields ORed | | match | match | match, 1 field | | match | empty | match, 3 fields ORed | | match | empty | match, 1 field | ## Manual upload and restart During a manual upload, SAP dispatcher profiles behave exactly as if the data were coming through SAP. If a SAP dispatcher profile is restarted, the rules are not executed again, since they already have been executed and the backup files are available in the jobs of the respective processing profiles. Only existing responses of the SAP dispatcher profile are executed. The input agent receives data in Phase 1 and starts a job for further processing. It works either as event based (passively waits for data) or scheduled (actively fetches data). **Application Link Enabling**. SAP technology for the asynchronous exchange of IDocs between SAP systems or with third-party systems. Available in the Lobster Data Platform as an inbound agent and response. A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required. The response determines how a profile sends processed data. In Phase 6, a response determines how and where the output data is sent or stored, e.g., via FTP, HTTP or e-mail. A profile can use several responses in parallel. Intermediate Document. SAP proprietary data format for the electronic exchange of business documents. IDocs transport structured data (e.g., orders, delivery notes) between SAP systems or between SAP and third-party systems, e.g., via ALE or EDI. A profile to which files are routed by the Content Inspector (merger/file pool) for regular and serial processing. It receives custom and system variables. Files can alternatively be transferred via e-mail, X.400, ASM or, in the case of RFCs, via a **message queue** . Also relevant in distribution rules for incoming mail agents. The Lobster Data Platform's operating mode ensures high availability and scalability. A node controller accepts input data and distributes processing tasks to any number of working nodes using a round-robin or load-balancing algorithm. If the node controller fails, a working node takes over its role. Module for collecting, splitting and merging files. Profile response paths pass files to the Content Inspector Manager. It assigns it to content inspectors, who release it for further processing in a bundled manner according to the number of files or waiting time.