02-13-2006 3:54 AM
Hi,
Can u plzz.. Let me know how a receiving system of an idoc can send success response instantly to the sending system?
I need to develop something like: a report which will send thousands of idocs to a receiving system and will response a success or delivery message immediately to the sending system.
thanks n regards
piyali
02-13-2006 4:18 AM
Hi Pyali,
What SAP library says?.
Prerequisite
Confirmations 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 R/3 Implementation Guide:
Basis ® Application Link Enabling (ALE) ® System Monitoring ® IDoc Confirmation in Receiver System (ALE Audit) ® Distribution Model for ALE Audit.
To improve performance, confirmations are dispatched periodically for packets of IDocs rather than for individual IDocs. Confirmations have a special ALEAUD01 IDoc with 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. If the MESTYP filter object type is not used all IDocs are confirmed by ALEAUD in the receiver system.
Activities
In the receiver system you have to make the settings for periodic confirmations. You can also send confirmations directly.
When confirmations are sent (program RBDSTATE), IDocs of message type ALEAUD are generated containing information about the processing state of inbound IDocs. An audit IDoc contains confirmations for up to 500 IDocs. If there are more IDocs to be confirmed, several audit IDocs are generated. A list of the generated IDocs is displayed. If an IDoc cannot be generated or an error occurs, a message is displayed.
IDocs whose statuses have recently changed are selected. Because almost every IDoc activity (e.g. creation, successful posting/ unsuccessful posting in an application) alters the status of the IDoc, it is precisely these IDocs which have in some way or other been processed.
Setting Periodic Confirmations
So that audit data can be confirmed periodically back to the sending system, you have to use the program RBDSTATE to schedule a background job in the receiving system.
To do this choose the following activity in the R/3 Implementation Guide:
Basis ® Application Link Enabling (ALE) ® System Monitoring ® IDoc Confirmation in Receiv ing System (ALE Audit) ® Audit Confirmations.
You can schedule confirmations at hourly or daily intervals.
To display an aggregated overview of all periodic confirmations you can Evaluate the Audit Database in the sending system.
Sending Confirmations Directly
To send confirmations directly to the sending system, in the status monitor choose Goto ® ALE Audit ® Send confirmations.
The selection parameters allow you to regulate in which systems and for which message types, confirmations should be generated.
You have to enter a start and end date for the change period.
I hope this should help you to resolve the issue.
Thank you.
Regards,
Karun M
02-13-2006 4:18 AM
Hi Pyali,
What SAP library says?.
Prerequisite
Confirmations 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 R/3 Implementation Guide:
Basis ® Application Link Enabling (ALE) ® System Monitoring ® IDoc Confirmation in Receiver System (ALE Audit) ® Distribution Model for ALE Audit.
To improve performance, confirmations are dispatched periodically for packets of IDocs rather than for individual IDocs. Confirmations have a special ALEAUD01 IDoc with 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. If the MESTYP filter object type is not used all IDocs are confirmed by ALEAUD in the receiver system.
Activities
In the receiver system you have to make the settings for periodic confirmations. You can also send confirmations directly.
When confirmations are sent (program RBDSTATE), IDocs of message type ALEAUD are generated containing information about the processing state of inbound IDocs. An audit IDoc contains confirmations for up to 500 IDocs. If there are more IDocs to be confirmed, several audit IDocs are generated. A list of the generated IDocs is displayed. If an IDoc cannot be generated or an error occurs, a message is displayed.
IDocs whose statuses have recently changed are selected. Because almost every IDoc activity (e.g. creation, successful posting/ unsuccessful posting in an application) alters the status of the IDoc, it is precisely these IDocs which have in some way or other been processed.
Setting Periodic Confirmations
So that audit data can be confirmed periodically back to the sending system, you have to use the program RBDSTATE to schedule a background job in the receiving system.
To do this choose the following activity in the R/3 Implementation Guide:
Basis ® Application Link Enabling (ALE) ® System Monitoring ® IDoc Confirmation in Receiv ing System (ALE Audit) ® Audit Confirmations.
You can schedule confirmations at hourly or daily intervals.
To display an aggregated overview of all periodic confirmations you can Evaluate the Audit Database in the sending system.
Sending Confirmations Directly
To send confirmations directly to the sending system, in the status monitor choose Goto ® ALE Audit ® Send confirmations.
The selection parameters allow you to regulate in which systems and for which message types, confirmations should be generated.
You have to enter a start and end date for the change period.
I hope this should help you to resolve the issue.
Thank you.
Regards,
Karun M
02-13-2006 5:47 AM
hi
can u plz let me know if we can retrieve the receiving systems database or not?
regards
piyali
02-13-2006 6:06 AM
Hi Piyali,
Use FM RFC_GET_TABLE_ENTRIES or RFC_READ_TABLE to retrieve table entries.
Thanks
Lakshman