cancel
Showing results for 
Search instead for 
Did you mean: 

Selective logging for sync messages

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello Gokhan,

Maybe you could setting the Log Level in LPCONFIG would help e.g from Errors Only to Full Log. I have also searched the IF_WSPROTOCOL_XI_HEADER, but could only find the GET_HEADER_FIELD method. Aside from that, calling your proxy using LPCONFIG would require you to adjust your code.

There is a sample code provided by William in this blog

http://scn.sap.com/docs/DOC-3797

Regards,,

Mark

Former Member
0 Kudos

Hi Mark,

Thanks for your reply. Creating a logical port and settings its log level seems promising, but I couldn't get it to work. If I choose type "Exchange Infrastructure" for the port, there're no logging settings since it uses the config in SXMB_ADM. And when I choose "Web Service Infrastructure", set the PI integration engine pipeline URL as the endpoint URL, and set logging to full, I get a CX_AI_SYSTEM_EXCEPTION with message PART UNKNOWN (NULL). I'm not sure how I can get this to work.

Regarding William's document, I have to use XI-HTTP adapters for my scenario and it's intended for newer systems with WS adapter. I'm stuck on PI 7.0 and SAP NW 7.0 SP14.

Kindly let me know if you have an idea about how to get the LPCONFIG configuration to work, many thanks.

Regards,

Gökhan

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Maybe this document can help

http://scn.sap.com/people/markquincy.anderson/blog/2012/01/19/using-an-abap-web-service-client-proxy...

You can try using an HTTP Destination (G) and point that to your XI SOAP Sender e.g

http://host:port/XISOAPAdapter/MessageServlet?channel=p:s:c

the newer one is /MessageServlet?ximessage=true sends the message to the Adapter Engine, but this is not applicable in your case.

Hope this helps,

Mark

Answers (0)