cancel
Showing results for 
Search instead for 
Did you mean: 

Error Document creation

Former Member
0 Kudos

Hi Experts,

I want to create an Error document with a standard format whenever error occurs. Among other things, this will give the ability to create a service that can handle all errors. The error handling service will be responsible for processing the generic error document. The following is a list of fields that will be a part of the error document:-

TimeStamp

Hostname

OriginatingService

PublishingService

SessionID

ReceiverID

User

InterfaceId

InterfaceName

BriefErrorMessage

DetailedErrorMessage

ErrorDump

ErrorType

ErrorSeverity

ErrorCode

CustomFields

SourceApplication

TargetApplication

SystemType

TestIndicator

Direction

DocumentType

CDMName

UserStatus

MessageId

XIExceptionInfo

AdapterType

EventId

EMailAttachement

These are some of the type of fields which are required evrytime error is there fields in this will populate.

Can you suggest how to go bout this requirement.

Regards

Saras

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Saras,

Messages which can not be sent to SAP XI or which can not be processed internally, will be re-processed until the counter as specified in the Global Variable MessagingRetryMaxCount is reached. At this point, as already mentioned, messages receive an error flag, which is indicated by

• A lock document ending with .lck

• An error text document containing the last error message ending with .err

This marking happens in transaction SAP/XI/framework/StoreMessageAsError, which is called by transaction SAP/XI/framework/ProcessPersistedGeneralMessage. If you want to enhance error handling by e.g sending e-mail alerts, you should do this in SAP/XI/framework/StoreMessageAsError, . Messages marked as error will not be processed during subsequent scheduled runs. It is up to the user to correct the problem, delete the message or simply reschedule the message for execution.

The error handling ranges from 'drill down' into the message, to manual delivery retry, and deletion of individual messages. For larger amounts of messages bulk operations like rescheduling of messages or queues is provided.

also have a look upon links:

http://help.sap.com/saphelp_nw04/helpdata/en/25/a45c3cff8ca92be10000000a114084/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm

I hope it will help you to how to go about this requirment.

*Pls: Reward points if helpful*

Regards,

Jyoti

Message was edited by:

Jyoti Acharya