Skip to Content

PCo: Call custom function in agent from MII

Hi everybody,

I am trying to figure out how to call my own custom function in an PCo 2.2 agent (programmed via SDK) from MII 12.2. The function is defined in the TagQuery part of the agent class using the TagCall and TagCallParameter attribute, as described in this document: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10c5ed65-bcf9-2f10-a995-dce2cad6406e?overridelayout=true

I assume calling the function from MII should work using a PCo Query, but I can't find out how to do this and there seems to be no documentation explaning which query mode to use (TagStore?) and which tags to write to PCo to trigger the function.

Any help would be greatly appreciated.

Best regards,

Ines Dahmann

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 19, 2013 at 01:15 PM

    Hi Ines,

    Currently, it is not possible to access PCo Agent Custom Functions from within MII TagQuery or PCoQuery objects.

    What are you trying to accomplish with the Custom Function? There may be another way to do this with MII/PCo.

    Regards, Steve

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Ines,

      I agree that your use of Custom Functions is the correct approach for the result you are trying to accomplish. Using a special condition of a Tag/Value that can be detected in the DoStore method would be an alternative way of accomplishing this as well.

      We are investigating the requirements to expose Custom Functions to MII PCoQuery and hope to have a solution for this at some point in the future.

      Regards, Steve