cancel
Showing results for 
Search instead for 
Did you mean: 

Custom XSLT for Integration Workflow "Equipment Download"

daried
Explorer
472

Dear SAP-Community,

is it possible to

  1. change logging method from "Non-Tracked" to e.g. "Automatic", and
  2. fill Custom Data fields

via Custom XSLT in Integration Workflow "Equipment Download".

Accepted Solutions (1)

Accepted Solutions (1)

daried
Explorer
0 Kudos

in DM 2402 use public Tool APIs to fulfill this request

Answers (3)

Answers (3)

Mahalakshmi1
Participant
0 Kudos

Hi Daniel,

Approach of custom data is right and it should work. if not, need to check with SAP only unless SAP has a case where in equipment custom data is not supported. unfortunately, i am unable to do this quick check in my system.

Thanks

Mahalakshmi.S

Mahalakshmi1
Participant
0 Kudos

Hi Daniel,

There is no option in the workflow to set the logging value.

Use the below structure for the custom data.


<customFieldDTOList>

<customFieldDTO>

<attribute>XYZ</attribute>

<value>value_1</value>

</customFieldDTO>

<customFieldDTO>

<attribute>ABC</attribute>

<value>value_1</value>

</customFieldDTO>

</customFieldDTOList>

Thanks

Mahalakshmi.S

daried
Explorer
0 Kudos

Adjusted request payload (see below) same result: The custom data field "TOOL_ITEM_ID" on Tool "11439156" has not been filled with "Test".

Mange Tools APP:

Payload:

tns:Tool_Out xmlns:tns="http://sap.com/xi/APPL/Global2" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <MessageHeader>
    ...
    </MessageHeader>
    <equipment>
        <plant>0001</plant>
        ...
        <equipmentNumber>11439156</equipmentNumber>
        <toolNumber>11439156</toolNumber>
        ...
        <customFieldDTOList>
            <customFieldDTO>
                <attribute>TOOL_ITEM_ID</attribute>
                <value>Test</value>
            </customFieldDTO>
        </customFieldDTOList>
    </equipment>
</tns:Tool_Out>
daried
Explorer
0 Kudos

Hi Mahalakshmi,

any update on the issue regarding custom data fields on equipment or do you confirm that there is currently no possibility to write custom data fields via XSLT?

Best wishes,
Daniel

Mahalakshmi1
Participant
0 Kudos

Hi Daniel,

You can use Log tool usage within a production process design to set the automatic logging. for custom data you can try by adding custom data segment in the xslt

Thanks

Mahalakshmi.S

daried
Explorer
0 Kudos

Hi Mahalakshmi,

thank you for your immediate reply.

Regarding the first topic: "You can use Log tool usage within a production process design to set the automatic logging"

Yes, we are aware that via toolUsageLogs API you can increase counter for usage. However, to make use of this functionality, the respective tool/equipment in advance must be set to Logging Method "Automatic" in Mange Tools APP according to our tests. My question therefore was, if I can set this option automatically when tool/equipment is generated via Intergration Workflow.

Regarding the second topic: "for custom data you can try by adding custom data segment in the xslt"

I already tried this (see request payload below) but the respective custom data field in SAP DM has not been filled. I am not sure if the right XML tags (CustomFieldList, CustomField) are used as there is no template in standard XML and they differ between other Integration Worksflows (Order Download, Material Download). Further, I don't know if I'm in the right XML section (equipment).

<tns:Tool_Out xmlns:tns="http://sap.com/xi/APPL/Global2" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<MessageHeader>
...
</MessageHeader>
<equipment>
...
<CustomFieldList>
<CustomField>
<Attribute>TOOL_ITEM_ID</Attribute>
<Value>Test</Value>
</CustomField>
</CustomFieldList>
</equipment>
</tns:Tool_Out>

BW,

Daniel