on 01-20-2016 3:47 AM
Hi expert,
I've defined property "CAIZHI" in Solidworks file properties as below.
Now I want the property value of "CAIZHI" is assigned to one characterisic "Z_CAIZHI" of DIR_CLS automatically by "attributes-to-sap.xml" in ECTR as below.
Question:
Below is my definition on "attributes-to-sap.xml" , is it right?
Example:
In "attributes-to-sap.xml"
<?xml version="1.0" encoding="ISO-8859-1"?>
<mapping>
<section name="SWPRT" description="Model mapping from SOLIDWORKS 3D to SAP">
<DIR_CLS class="CAD_SLW" CLASSTYPE="017" CHARACTERISTIC="Z_CAIZHI">
<XFORMAT STRING="{0,char,#####################.##}">
<APPL_ATTRIBUTE NAME="CAIZHI" />
</XFORMAT>
</DIR_CLS>
</section>
</mapping>
Hello Martin,
please try another definition in your xml file:
<DIR_CLS class="CAD_SLW" CLASSTYPE="017" CHARACTERISTIC="Z_CAIZHI">
<APPL_ATTRIBUTE NAME="CAIZHI" />
</DIR_CLS>
Regards,
Gerhard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gerhard,
Thanks for your guidence.
Follow your suggestion I defined the XMLfile. But it didn't work.
Below is my definition:
<section name="SWPRT" description="Model mapping from SOLIDWORKS 3D to SAP">
<DIR_CLS class="CAD_SLW" CLASSTYPE="017" CHARACTERISTIC="Z_CAIZHI">
<APPL_ATTRIBUTE NAME="CAIZHI" />
</DIR_CLS>
<DIR field="DOCUMENTDESCRIPTION">
<APPL_ATTRIBUTE name="Name"/>
</DIR>
</section>
Same issue in "attributes-from-sap.xml"
<section name="SLWMDL" description="Additional attribute mapping for CAD models">
<APPL_ATTRIBUTE name="DrawNo" hidden="false">
<DIR field="Documentnumber"/>
</APPL_ATTRIBUTE>
</section>
Best Regards,
Martin
User | Count |
---|---|
101 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.