cancel
Showing results for 
Search instead for 
Did you mean: 

how to log only error messages

Former Member
0 Kudos

Hi Folks

my scneario is

d/b --> rfc --> file (I am using BPM )

currently i am logging all the messages that i get from rfc

if i have to log only the errors , wht changes need to be done

Thanks

Amit

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi amit,

If you want to log only the errors, just create the coreresponding mapping program where only the error messages are sent to the destination file data type.

Regards,

Bhavesh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

One of the ways to log only error messages returned by RFC could be as follows:

Most of the standard SAP RFCs and BAPIs return messages (Success as well as error) in the form of an internal table ( of type BAPIRET2).

You can use this internal table in the XPATH of the receiver determination to log the error messages with or without using mapping depending on the requirement.

Hope this helps.

Thx n Rgds

Amulya