Professional Documents
Culture Documents
2004 SAP AG
ALE/EDI Interface Management 3
Introduction
In this paper ALE monitoring will be explained and you are given examples as to how to configure the
monitoring landscape.
The first section covers the basics of ALE/EDI. We address the basic concepts in ALE/EDI,
what sort of data flows exist, etc
The next section talks about the monitoring process and tools. Also included are the basic
error procedures for ALE/EDI.
2004 SAP AG
ALE/EDI Interface Management 4
The structure of an IDoc is always the same and follows the pattern below.
Record Contents Stored in Table
Control Record Technical information about the IDoc as a container EDIDC
IDoc number, IDoc type, Partner, Port, )
Status Records Information about the IDoc processing flow (IDoc status, date, EDIDS
time, error message, etc)
Data Records IDoc contents: application data (business information) EDID4
EDID3
EDID2
tRFC
The advantage of transactional Remote Function Calls (tRFC) over synchronous and asynchronous
RFCs is that the calls are buffered, even if the recipient partner is not active. When the partner is
available again, a new attempt can be made to transfer the data. If an SAP ERP System receives the
data, the requests are handled as transactions. This means that all functions called in one tRFC are
either processed together or not at all.
Each tRFC is sent exactly once, so that there are no accidental double postings of application data. All
erroneous attempts to post data are displayed in the tRFC monitor.
2004 SAP AG
ALE/EDI Interface Management 5
Data flow
Figure 1
2004 SAP AG
ALE/EDI Interface Management 6
Outbound Flow
SAP applications create IDocs using the message control or of their own accord.
An IDoc flows from the application through the Message Control into the IDoc interface.
The IDoc interface is invoked by either form-routine EDI_PROCESSING or ALE_PROCESSING in
program RSNASTED. In the IDoc interface the IDoc is passed to the ALE services (conditional) and
later on transferred to the target system according to its port definition.
Applications that do not use Message Control will create IDocs directly. They invoke function module
MASTERIDOC_DISTRIBUTE and pass the IDocs to the ALE services, where the IDocs will be
preprocessed according to ALE customizing. The star with the number denotes where the status of
the IDoc is set. More information on this is available later in this document
Change pointers can also be created directly out of the application. They are stored in the tables
RBDMIDOC and RBDMIDOCS
2004 SAP AG
ALE/EDI Interface Management 7
The status values 41 in ALE scenarios (only if ALE Audit is enabled), 12 in EDI scenarios
are considered as the final status in most implementations. For the sending systems 03 is
considered by most to be a final status.
Status by the SAP system:
Code Meaning
01 IDoc created
03 Data passed to port OK ()
12 Dispatch OK
18 Triggering port OK
25 Processing despite syntax error (outbound)
26 Error during syntax check of IDoc (outbound)
29 Error in ALE services
30 IDoc ready for dispatch (ALE service)
31 Error - no further processing
37 IDoc created with errors
39 IDoc received in target system
40 Error - application document not created in target system
41 Application document created in target system
42 IDoc created by test transaction
2004 SAP AG
ALE/EDI Interface Management 8
Inbound Flow
Various function modules or reports can process received IDocs, depending on the inbound
partnerprofile. For example the function IDOC_INBOUND_ASYNCHRONOUS is called for SAP ERP
to SAP ERP ALE scenarios. This in turn triggers a number of other function calls, depending on the
sending system, receiving system, and information transferred.
The status value 53 in all scenarios is considered as the final status in any implementation.
2004 SAP AG
ALE/EDI Interface Management 9
Code Meaning
50 IDoc added
56 IDoc with errors added
60 Error during syntax check of IDoc (inbound)
61 Processing despite syntax error (inbound)
62 IDoc passed to application
63 Error passing IDoc to application
64 IDoc ready to be passed to application
65 Error in ALE service
66 IDoc waits for predecessor (Serialization)
68 Error - no further processing
74 IDoc added by test transaction
2004 SAP AG
ALE/EDI Interface Management 10
Monitoring Agents
The Agents are persons in your organization, whose task it is to monitor and repair the IDocs that
have problems in the ALE/EDI.
Agents are users (accounts) or organizational units defined in the organizational plan. By using
organizational units, you address a group of people instead of just one person. This assures
distribution list functionality and error messages are not lost due to vacation or other activities.
The agents are usually triggered via the workflow functionality in SAP ERP.
We have three kinds of agents:
Possible agents are assigned to tasks, defined in the SAP Business Workflow. The
assignment is defined in the organizational plan of the enterprise.
Permitted agents are assigned in the IDoc interface to partner profiles. They know the
partner and how he/she does business and what procedures there are for the communication
between both parties.
Selected agents are defined as the intersection of the group of permitted agents with the
group of possible agents. The agents see tasks (as work items) in their workflow inbox. Using
the intersection to determine selected agents guarantees that they are selected dynamically.
2004 SAP AG
ALE/EDI Interface Management 11
This means, whenever a position is changed in the organization, work items (from the
previous organization) may disappear and be replaced automatically by new ones .
General Procedure
Follow these steps to set up the monitoring of the ALE/EDI interfaces:
1. Create one or more organizational unit(s) for error processing.
2. Create one or more position(s) for the organizational unit(s).
3. Assign a user or distribution group to the position
4. After the positions are defined, they must be linked to the standard tasks. The following
standard tasks must be considered:
2004 SAP AG
ALE/EDI Interface Management 12
IDoc Monitoring
Task Responsible Transactions
Check IDoc processing System administration, WE02, WE05, WE07 or BD87
Functional department
Process IDocs with errors Functional department BD87
Process IDocs with application errors Functional department BD87 Display erroneous
IDoc Status long text
Proceed to view application log
Check performance of IDoc processing System administration SM37 / ST03N / STAD
Free Dialogs processes in server System administration SM50, SM51, SM66
Performance of IDocs System administration STAD, ST03N
Recorded tRFCs in error status System administration SM58
Workprocess usage and RFC capable System administration SMQS goto qRFC
processes resources
Monitor the resource usage for aRFC System administration SARFC
Resource management for aRFC System administration RZ12
Create and Monitor Background job for System administration SM36 / SM37
reprocessable errors
When reading this text you may wonder why there are four different transactions (WE02, WE05,
WE07 and BD87) to display IDoc lists. These transactions grew with time and have slightly different
ways to display the information and what you can do with it.
Here is a small list of the transactions and what basic functions they provide:
WE02 The initial output is sorted by IDoc type.
WE05 The initial output is sorted by Status.
WE07 The IDoc statistics are displayed independent of the type and partner..
BD87 The output is sorted by status with the possibility to (re)proceess failed IDocs.
2004 SAP AG
ALE/EDI Interface Management 13
2004 SAP AG
ALE/EDI Interface Management 14
Automatic monitoring
SAP Solution Manager
In comparison to the CCMS, the information in the Solution Manager is easier to read, especially when
monitoring a complex solution landscape. In the figure above you can see two systems and that two
interfaces have an error. You can now take a closer look at those particular interfaces.
If a problem has been detected in a specific component, then the more detailed analysis methods the
next step. The CCMS can give you more information (like history values) for all monitored
components.
The ALE monitoring tools are more helpful for a more in-depth analysis. They will help you to
determine the specific problem and evaluate its importance. These tools are component dependent
and support you in finding the problem.
In order to make use of the Solution Manager, one needs to configure it appropriately. This is beyond
the scope of the current document to outline these steps in detail.
We refer you to the document Interface Monitoring in SAP Solution Manager: Customizing in the
Media Library.
In the figure above you can see that two if the interfaces PO APO X48 and RQ X48 AP have some sort
of a problem, this is indicated by the red rating. You then can use the other monitoring tools to
analyze the issue further.
2004 SAP AG
ALE/EDI Interface Management 15
For ALE/EDI you need to use the transaction BDMO to configure the monitoring. The following section
describes this in detail. Also SAPNote 441269 will give you more information.
Figure 8 CCMS
If the SAP Solution Manager reports a problem in one of the components, the corresponding
component should be checked in the Alert Monitor. When you click on the respective item you get the
monitoring window to appear. At this stage you can decide what to inspect more closely.
After that step a list of monitoring elements (e.g. ALE, database , ) and the corresponding alerts are
displayed. Alerts in the CCMS Alert Monitor are the central elements that report problems. To give a
better overview, alerts are assigned certain colors:
Green: Everything is ok according to you threshold configuration.
Yellow: A warning has been issued.
2004 SAP AG
ALE/EDI Interface Management 16
For the ALE monitor, the data collection runs in batch mode. Prerequisite for this is that the CCMS
alert monitor batch tool dispatcher (SAP_CCMS_MONI_BATCH_DP) is activated. Otherwise all
monitoring elements of the ALE monitor are grey (inactive/deactivated). You can activate batch tool
dispatching starting transaction RZ21. Choose Technical infrastructure Method execution
Activate background dispatching.
2004 SAP AG
ALE/EDI Interface Management 17
Transaction BDMO
Initially there are no ALE monitoring objects except the basic set and no objects are active in the
monitoring tree.
The first step is to start transaction BDMO or SPRO (Basis Components Distribution (ALE)
Monitoring Systems Central Monitoring of All Systems). This will open following window.
Then choose Create/Activate Monitoring Objects. This will lead into the following screen.
Here you can choose from four monitors. They represent a basic level of monitoring for the ALE/EDI
interfaces. The first three entries give you a view into your general ALE/EDI flow. The last one is the
test/example monitor for you to see what you can do in ALE monitoring.
The three predefined monitors give you the same information; only their time range is varied. The top
one is for the last seven days, the next one covers the last hour. The third is an example of a
monitoring of a specific object Material Master. Figure 14 shows you what they look like, just in more
detail.
If you like to monitor individual IDoc types, you can create your own ALE monitoring objects.
Enter transaction BDMO and click at Create/active monitoring objects. Click New entries.
You can enter the monitoring object name. Check the Active item and save your settings.
Make sure to activate your new object.
2004 SAP AG
ALE/EDI Interface Management 18
The next step is to define which IDoc type is monitored. We make the example by defining a new
object for the EBP IDoc monitoring, in this case the IDocs of the outbound type BBPCO.
You can also specify the partner system and the wait time for status changes. The wait time is the
time setting between updates for a message.
The item Period defines how many days worth of information is displayed. We suggest a value 180
days. You should not delete the entry here (i.e. leave a blank space) as this will never return any
information!
When you have made your choice, save your settings.
Figure 13
On the entrance screen of BDMO, choose Monitoring object Start all (or press F9). A new
monitoring object is created that can be used in rule based monitors.
If you do not have the CCMS alert monitor batch tool dispatcher (SAP_CCMS_MONI_BATCH_DP)
activated by now, do so.
You can activate batch tool dispatching starting transaction RZ21. Choose Technical infrastructure
Method execution Activate background dispatching.
Otherwise all MTEs of the ALE monitor are inactive. Keep in mind that it might take some time for the
monitoring tree to appear, as there is a delay until the batch job runs and data is displayed.
To set up a rule based monitor for your ALE monitoring object. Select the rule
CCMS_GET_MTE_BY_CLASS with parameter ALEPfGr: <object name> for the MTEClass. As a
result only information concerning your IDoc selection is displayed.
In our example we created the ALE object EBP and this served as the parameter ALEPf.
Figure 14
You should monitor all systems that are involved in ALE process. Afterwards you can create a central
ALE monitor in your monitoring system displaying all ALE information in one screen using the rule
2004 SAP AG
ALE/EDI Interface Management 19
In the figure below we are showing you what possibilities you have to set up the monitoring.
In a complex landscape with many systems and interfaces it can be helpful to activate as much
information as you can into the CCMS.
This way you can get the big picture of the whole landscape.
Figure 15
As a rule, try to do as much as you can with the active monitoring. This has the advantage that you
can be active in reducing the impact of errors before they happen. Otherwise you are always trying to
fix problems after the fact and have more work than necessary.
2004 SAP AG
ALE/EDI Interface Management 20
0815
Figure 16
A confirmation can only be dispatched, if you have defined a message flow for message type ALEAUD
in the distribution model. To do this choose the following activity in the SAP ERP Implementation
Guide:
SPRO: Basis Application Link Enabling (ALE) System Monitoring IDoc Confirmation in
Receiver System (ALE Audit) Distribution Model for ALE Audit.
To improve performance, consider dispatching the confirmation in an IDocs packet (rather than
individual IDocs ) periodically and schedule the sending of the packets in lowload times. A
confirmation has a special ALEAUD01 IDoc type with the message type ALEAUD.
The filter object message type (MESTYP) provides a more detailed specification. You can use this
filter object type to set the message types for generating audit confirmations. As a rule, you do not
have to send confirmations for all message types. For example, it is quite likely that confirmations will
not be necessary for master data initial transfers. If the MESTYP filter object type is not used all IDocs
are confirmed by ALEAUD in the receiver system.
2004 SAP AG
ALE/EDI Interface Management 21
Manual monitoring
Status Monitor for ALE Messages (BD87)
Depending on your monitoring procedures, you start of by choosing a timeframe, IDoc number, ()
you wish to analyze closer.
You can limit the display according to your needs, e.g. display only certain message types or partners.
Figure 17
Figure 18
2004 SAP AG
ALE/EDI Interface Management 22
Tips:
For the switching of the IDoc-status from 03 to 12 a batch job is needed. It should be scheduled
regularly (SAP Report RBDMOIND).
2004 SAP AG
ALE/EDI Interface Management 23
Figure 19
From this central transaction you can do most admin work for the ALE. For example, you can jump to
BD87 Status Monitor. This way you can check to see if the IDoc processing is working well. By
checking the IDoc status reports you can see if the application and processing is working.
2004 SAP AG
ALE/EDI Interface Management 24
Figure 20
The output is below. On the left hand side you see the tree view of the IDocs statuses. Sorted by IDoc
type then status.
Figure 21
When you click on an IDoc line on the right hand side you can get the details. And if there are errors
you can find out what the problem is. You can then for example use the BD87 to repair the IDoc.
2004 SAP AG
ALE/EDI Interface Management 25
Transaction BD22 (Tools -> Business framework -> ALE -> Administration -> Period. work ->
Reorganization -> Change pointers) can also be used to do this manually.
It deletes change pointer entries from the database. If you run it in test mode, only a list of the selected
entries is generated. You can select either obsolete or processed change pointers or both.
Additionally, you can search according to date and time.
Obsolete change pointers have been created up to the specified date and time. If this
checkbox is marked, obsolete change pointers will be reorganized regardless of whether they
have yet been processed. You should then deactivate the change pointers for these IDocs.
You can do this with transaction SALE
Processed change pointers have been processed in the specified period (date and time). If
this checkbox is marked, the processed change pointers are reorganized.
2004 SAP AG
ALE/EDI Interface Management 26
SAPNote 513454 covers the topic of change pointers, administration and performance.
2004 SAP AG
ALE/EDI Interface Management 27
Error Handling
In this section we will cover the basics of error handling in regards to ALE/EDI. How you are alerted to
an error arising depends on what tools you wish to use. You need to implement a monitoring
procedure for in- and outbound processing.
The following procedure assumes that you have been alerted. For the monitoring purposes you are
either using the CCMS concept, or dedicated ALE/IDOC monitoring transactions BD87 and specific
WE02/WE05.
2004 SAP AG
ALE/EDI Interface Management 28
2004 SAP AG
ALE/EDI Interface Management 29
Figure 26
In the status monitor you can choose a particular IDoc to try to reprocess it.
By using the right mouse button, you have the choice between Process or Restrict and process.
With process you restart the processing of the IDoc(s).
Restrict and process you have to make a few more choices, as we see in the following window
Figure 27
You can further restrict the IDocs you wish to process in this screen. The execute button on top will
then start the processing.
If Bkgd processing is unchecked, you can see the window below. This choice gives you more options
to process the IDoc.
Process starts the processing of the chosen IDoc(s).
Delete fag sets the IDoc status to 68. Meaning the IDoc has a error and does not need to be
processed again, but can be archived/deleted.
IDoc display shows you the payload of the IDoc.
2004 SAP AG
ALE/EDI Interface Management 30
Figure 28
Pressing IDoc display shows you the current information on the IDoc. To display the errors in the
IDoc you press the Segments with errors button. The next figure shows you a sample error.
Figure 29
Figure 30
2004 SAP AG
ALE/EDI Interface Management 31
Manually process the IDoc by entering the corrected IDoc data directly into the appropriate
SAP application transaction, then mark the IDoc for deletion.
Please keep in mind that this is an either or activity, you cant do both!
Also the appropriate agent probably needs to decide what steps need to be taken.
Figure 31
By pushing the Delete flag button you mark the IDoc for archiving/deletion. The status for this is 68,
this denotes the fact that the document had an error, was deleted and does not need any further
processing.
The other option is to modify the IDoc.
Figure 32
If the IDoc does not contain data that is legally binding, i.e. must not be changed according to the local
countries law; you have the option to change the data so that it will be processed the next time.
You can edit the IDoc content manually by clicking on the notepad icon in front of the segment. Then
you switch to change mode by hitting in the menu Data record Display Change.
Once the changes have been made you can reprocess the IDoc again.
To give you a little more understanding on the procedure we would like to shed a little light on what
happens in SAP ERP. When you reprocess a IDoc following things happen in the system:
A copy is created of the org. IDoc. (this is done for documentation purposes). This copy has either
status 33 (sender) or 70 (receiver). In addition to this the copy can not be processed!
The original copy gets status 32 (sender) or 69 (receiver).
In addition a status record is created with 32 (sender) or 69 (receiver) and its long text contains the
IDoc number of the IDoc copy..
2004 SAP AG
ALE/EDI Interface Management 32
Workflow
The workflow interface looks like the following figure.
Figure 33
Once you have chosen an item to look into further you will notice that the next steps are very much
like the steps/methods described in the BD87. So then we would like to refer you to that part of the
document.
Figure 34
2004 SAP AG
ALE/EDI Interface Management 33
Then you need to choose System --> Services for Object. This opens a popup window. And here you
choose the button display relationships.
In the figure above the red box is the tID of the sent IDoc.
In the inbound IDoc you get the tID from the sending system and the IDoc number.
2004 SAP AG
ALE/EDI Interface Management 34
If you wish to find out if an IDoc was created via tRFC following steps are necessary:
1. You have the tID (from the sending system). With this information you go to the target system
into SE16 ad look up table SRRELROLES.
2. In SRRELROLES there is the entry OBJKEY and ROLEID, the OBJKEY is the tID and the
resulting role-id-a is to be found under ROLEID.
3. With that role-id-a you need to go to table IDOCREL enter the role id as a search value for
RoleA. The result is in RoleB (well call it role-id-b)
Finally we need to go back to SRRELROLES, copy the role-id-b into the filed for ROLEID the result
is then the inbound IDoc number.
2004 SAP AG
ALE/EDI Interface Management 35
Performance Monitoring
This chapter shall give you some suggestions how to monitor your systems performance for ALE/EDI.
The first step is to understand that we actually need to look at at least two systems, depending on the
landscape and solution. So optimization steps may need to be done in two systems.
The performance of ALE depends on many factors (type of business process, number of messages,
activities running on the distributed systems, hardware, and so on). So we are not able to give you
exact statements about performance indicators.
It is advisable that the persons who do the performance monitoring of the ALE/EDI have attended the
SAP course: BC315 Workload Analysis. As the technical knowledge for the monitoring is much
more complex we can only give an overview of the performance monitoring in this paper.
Figure 39
An important note is the fact that incoming RFC from a remote system is handled by the SAP ERP
system similarly to an online user. This implies that both normal SAP users and RFCs concur for the
same resources within the system. So it is possible that these RFCs can use all the resources of an
2004 SAP AG
ALE/EDI Interface Management 36
We are not going to list actual parameter suggestions, as the Notes are kept up-to-date. Following
SAP Notes are going to help you in finding your individual settings.
74141 Resource Management for tRFC and aRFC
527481 tRFC or qRFC calls are not processed
384971 Gateway parameters for a high interface load
555229 IDocs hang in status 64 for tRFC
2004 SAP AG
ALE/EDI Interface Management 37
Figure 40
Figure 41
In this screen SAP suggests that you activate all the check boxes and options. At least the "Cumulate
RFC profiles"-entry under "Statistical data to be cumulate & Controls for the collector" has to active.
Then save the choices.
2004 SAP AG
ALE/EDI Interface Management 38
There you need to modify all the settings which are divided amongst 3 different sub screens. From top
to bottom
Performance Database Reorganisation
2004 SAP AG
ALE/EDI Interface Management 39
In the Workload Collector pick the Control Data branch. In the following screen you can choose how
much data is stored on the local file system. Be aware that there is no exact information on how large
the files can get, so please make sure that you have enough disk space available for these logs.
Figure 44
In the next selection screen you can choose what data is stored in the system. SAP suggests
activating all the checks, but the RFC statistics is the minimum which should be activated.
Figure 45
2004 SAP AG
ALE/EDI Interface Management 40
Figure 46
Figure 47
2004 SAP AG
ALE/EDI Interface Management 41
You can now sort the information according to function modules. They are called in a specific
sequence which is:
1) RFC_PING (from sender to receiver)
2) RFC_RUN_NOWAIT (sender internally)
3) RFC_DEST_SHIP (from sender to receiver)
4) RFC_DEST_CONFIRM (from receiver to sender)
The system function module ARFC_DEST_SHIP transports the data to the target system. If a LUW
runs successfully in the target system, the function module ARFC_DEST_CONFIRM is triggered and
confirms the successful execution in the target system.
When you click on a specific entry, another window opens displaying more detailed information. This
way you can see whether certain tRFCs have problems or if there is a general issue to deal with.
Figure 48
Figure 49
ALE-Application monitoring
The ST03N has a special feature build in for ALE monitoring, to use it you need to activate it by going
to:
Collector and performance DB Statistics records and file Online parameters Application
statistics
The reason to use this particular tool is that you can detect if there are performance problems. If you
can find a high database time then you proceed with a SQL trace and a high CPU time proceed with
the ABAP runtime analysis SE30.
2004 SAP AG
ALE/EDI Interface Management 42
Then another window is opened where you can choose AL ALE/IDoc statistics. Then save the
setting. This actives the monitoring for the RFC functions: IDOC_INBOUND*, INBOUND_IDOC* and
EDI_DATA_INCOMING. When these particular calls are made their statistics are summed up.
Figure 50
Also you need to make sure that in the corresponding instance profile the profile parameter
stat/as_level is set to 1(meaning the application tracing is active, 0=not active). If there is ALE activity
you can see if application statistics are being measured by checking the file called astat. Goto AL11 ,
choose the directory data.
Figure 51
If the application statistics collection works properly, you will notice that the file called astat will grow. It
will grow according to how much data is processed. If there is no traffic then the file remains small.
What happens, is that the Kernel writes the statistics into a file called STAT. The application statistics
are written into the file called astat. In addition the Job RSSTAT87 is activated, and it writes the
application statistics in the table MONI. From which the ST03N can display the data.
To see the ALE application statistics, you need to go to the appropriate application server. When you
choose the sever another window will appear in the lower right hand side and then you choose the
application statistics. Then you see following figure.
2004 SAP AG
ALE/EDI Interface Management 43
Figure 52
Transaction STAD
The STAT (until 4.5) or STAD (as of 4.6D) show you statistical record information. When you call the
STAD you have to choose a time frame for the analysis. On the next screen you see a listing off all the
statistical records for the chosen timeframe. You can then choose a RFC to analyze it further.
Figure 53
For example we have found a long running RFC. We are going to examine it and see what details we
can find out. When you double-click the appropriate line you get the following figure. Click on the RFC
button, it will give more information on the RFC. As this was a server call, we can find out more
information in the server column.
For further information we would like to refer you to the SAP Course BC 315.
2004 SAP AG
ALE/EDI Interface Management 44
Figure 54
If you had problems with the tRFCs youll get a list, as seen below. You may decide to get more details
for each tRFC by double clicking on the particular one.
Figure 55
Figure 56
In the figure below you can see the ratio of Dialog work processes to Dia WPs for RFC. In this case all
the DIAs (except one) are useable by the RFCs.
Figure 57
2004 SAP AG
ALE/EDI Interface Management 45
Figure 58
When you press the Select Group button then you get to choose which Logon group you wish to use
for RFC connections. You maintain these groups in the RZ12.
Figure 59
When you click on a particular server you get its RFC settings. You have a option to change the
settings of the server. These settings are only used until you reset the server, at that time the profile
parameters are used again. So if you change any parameters make sure to also change the profiles
accordingly. Please refer to SAPNote: 74141 for this.
Figure 60
2004 SAP AG
ALE/EDI Interface Management 46
Bundle IDocs where possible This avoids problems with many little IDocs flooding the system
when sending and updating
Avoid peak User times. Make the It is always better to plan the IDocs at times when there are little or no users
IDocs run as Batch jobs at low on the system. This avoids system resource contention.
resource times. Schedule mass transfer/updates when there is low dialog activity. If that is
Avoid processing mode not possible spread out the work load evenly over a larger time frame and
immediately whenever possible limit the resources for IDoc processing.
(sender and receiver)
Archive/delete IDocs and work Reduced the overall database size.
items (error notifications and
container linkage items) on a
regular basis
Reorganize change pointers, audit
database, serialization data and
tRFC queue (if used)
Adjust the number of dialog work In systems with a high of IDocs processing, it has been shown to use
processes (sender and receiver). special RFC application serves avoids the problem of overloading a User-
Use RFC server groups for application server.
parallel update and post IDocs in This can be done via defining a limited resources for the IDoc processing
parallel during the users working hours.
Set RFC resource parameters to This avoids the issue of users and IDocs contending for the same work
avoid that all dialog work processes.
processes are occupied by tRFCs
or aRFCs
2004 SAP AG
ALE/EDI Interface Management 47
Archiving IDocs
Figure 61
IDocs, like most other SAP objects, need to be regularly archived. Otherwise they will unnecessarily
use up disk space. Setting up an archiving plan early in the implantation phase assures you of a well
running system. This will reduce the size of the database considerably once the archived objects are
removed. It is always advisable to archive the IDocs that are not needed anymore out of the system to
reduce the size of the database.
Archiving is managed in transaction SARA, for the archiving object "IDOC". All archiving has two
steps:
Archiving the objects (in this case the IDocs) into an archive file
Deleting the archived Objects out of the database
Up to SAP ERP version 4.5 links between an IDoc and the corresponding application document are
stored as work items of type "C, which have to be deleted manually.
Starting with 4.6 the links are stored in table IDOCREL and can be deleted using report RSRLDREL.
As of this release the links between IDoc and application log can be deleted with transaction SLG2.
Archiving has to be set up for all participating logical systems. Transaction SARA with object IDOC is
used for archiving of tables:
EDI30C Intermediate document cluster (data records) from 3.0C
EDIDC Control record (EDI Intermediate Document)
EDIDOC EDIDOC EDI intermediate document cluster
EDIDS Status record (EDI IDoc)
The archiving program is called RSEXARCA. Program RSEXARCR can retrieve the archived IDocs
out of the archive files.
For SAP ERP release <=3.1G see note 75756, for 3.1G note 104160 and for <=3.1H note 80485. In
general see SAP Note 40088 (How to delete without archiving).
The archiving frequency depends on the number of IDocs sent/received, usually once per month is
reasonable.
Even if you are not explicitly using workflow for the IDocs, ALE/EDI can create work items. Therefore
you have to archive or reorganize the work items. The archiving object is WORKITEM. As there is no
2004 SAP AG
ALE/EDI Interface Management 48
direct link to the IDocs in the archiving program for the Work items, you need to limit the range by
using the creation date.
If you are sure that you do not need the work items any more you can delete them from the database
with the reports RSWWWIDE and RSWWHIDE (see SAP Note 49545).
Archiving of work items is only supported since SAP ERP release 3.0D.
You should reorganize the workflow tables and indices on the database level from time to time
especially when workflow is used. This depends on the database used. Please refer to SAPnote
72873.
Change pointers in table BDCP have to be reorganized separately by program RBDCPCLR.
The TRFC queue should be reorganized from time to time as well using program RSARFC01.
2004 SAP AG