cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tracking jco called rfc message

Former Member
0 Likes
256

Hi,

is it possible tracking when it called rfc (with jco) if it succesfull or not using with message monitor?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Product and Topic Expert
Product and Topic Expert
0 Likes

You could, but you would be adding a bunch of unnecessary layers. Why not just use the logs or create you own logging mechanism?

Jamie

Former Member
0 Likes

jamie,

I ask this subject because we are on doing some workshop for a customer.

They asked me this question. I told them to study.

How can it be done? Thanks.

Former Member
0 Likes

It is possible but its a fire and forget scenario. You can submit a message via http post and map the message with a rule to run a blt to call your bapi. If the bapi fails you can use the terminate action to set the message status to failed.

jamie_cawley
Product and Topic Expert
Product and Topic Expert
0 Likes

The message monitor is only used for the listeners, idoc or rfc, not jco calls. The listeners are connected to an rfc destintation within ecc and the monitor will display any message sent via this connection to MII. To answer your question, you could setup a wrapper bapi that would send the success/failed message back to mii using an rfc destination, but this would be pointless and a waste of effort. As the others have mentioned, when you call a function with jco you should check the success and then the return table for errors. Go to the downloads section and download the modules libraries for examples.

Jamie

Answers (1)

Answers (1)

Former Member
0 Likes

There is a sucess flag when u call RFC using jCO from a transaction...i guess you can use that.

agentry_src
Active Contributor
0 Likes

Remember that the success flag can mean the RFC performed its function correctly or it can simply mean that a good connection was made to the ERP system. You need to characterize the behavior of each BAPI, or if you know ABAP read the code to determine which case applies.

Mike