cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling on XI

former_member568822
Active Participant
0 Kudos

Hi,

I am beginner for XI. I am require to do a task for the FILE TO RFC between external system and sap r3 using XI. My question is lets said the file was converted to rfc and suddenly the connection between r3 to XI hit error when the rfc try to send back the return msg to external system via xi. Is the session hold until the connection fix and is the job for rfc committed? If yes with the return msg send again after the connection fix?

Best regards,

Gan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If the connection will be failed then it will errored out in XI. And you may re-start the transaction after the connection will be fixed.

You can configure the ALERT Notification for these failures.

If a synchronous RFC is executed during a transaction, the system executes database commits (DB_COMMIT). A DB_COMMIT executes a final save for all data that was temporarily written to the database (as with COMMIT WORK). This data can no longer be reset by a ROLLBACK WORK later on.

Please refer above passage from the given link

http://help.sap.com/saphelp_nw04/helpdata/en/fa/814d3ccd6fba74e10000000a114084/frameset.htm

Also The below discussion will help you

Thanks

Swarup

former_member568822
Active Participant
0 Kudos

Hi,

Thanks for you reply. Its very useful for me. Did the commit only apply for database? Lets said my rfc is to post the good return then would it commit if the return msg fail to reach to the sender due the the connection problem?

thanks.

Former Member
0 Kudos

Hi,

The Commit statement is to engage the Database tables.

For e.g. if you call RFC to update or insert the data in SAP tables then it will be comitted.

But if will be trying to trigger some select queries and send the output as data and connection failed then it will not be commited.

In XI, SXMB_Moni it will be error. You can re-start that message in XI.

Thanks

Swarup

former_member568822
Active Participant
0 Kudos

Hi,

Thanks for fast reply. Another question is can i respond back to external system about the error is my rfc adapter is type sync? Can you point me any document about this.

Thanks

Former Member
0 Kudos

Hey,

As yours is File to RFC you must be have created a BPM.

What you can do is for the send step of RFC create a sytem error exception and in the exception branch you need to have a send step. This send step will send a file back to the ftp in which you can hard-code the message.

regards,

Milan

Answers (0)