Skip to Content
0
Former Member
Jan 27, 2013 at 03:25 PM

Selective logging for sync messages

60 Views

Hi all,

I have a sync Proxy-> SOAP scenario on our PI 7.0 which needs to be logged. I know about the parameter LOGGING_SYNC, but I would like to log only this particular scenario.

In the SAP documentation, it mentions that we can enable logging by adding a header node:

http://help.sap.com/saphelp_nw04/helpdata/en/d6/49543b1e49bc1fe10000000a114084/frameset.htm

  • Set logging in the message header. This means that this message is logged even if logging is deactivated explicitly in the configuration. The logging information is part of the message header:
  • <SAP:Logging>1</SAP:Logging>

Activates logging explicitly.

  • <SAP:Logging>0</SAP:Logging>

Deactivates logging explicitly.

But I can't see how I can add this to the SOAP header in my proxy code. I've also checked this blog and the interface methods and there's no add field method to use. And I can't think of any other way to add it, kindly let me know if there is.

Is there any way to achieve selective logging for a particular sync interface?

Thank you for your input.

Kind Regards,

S. Gökhan Topçu