Attribute Links and LOVs Processing Instructions in Generic XML

Using the following Generic XML template and mapping allows the export of System Setup information along with Product information. In this scenario, the following is exported:

  • the ID and Name of the Product
  • the ID and Name of the linked attributes on the Product
  • the ID, Name, and Values of the LOV on any of the linked attributes

Units for linked attributes can also be mapped and exported as discussed in Attribute Links and Units Processing Instructions in Generic XML here.

The data path data source is also available using the IDoc MATMAS 05 format.

Objects

Choose Product as object type to export in Export Manager:

or in an OIEP:

Use the Add Objects link to select the data to export.

Template

Choose Generic XML for format and provide the following template text in the Sample field.

Copy
<products>
   <product>
      <?Product?>
      <id><?Target?></id>
      <name><?Target?></name>
   <attribute>
      <?MultiTarget?>
      <id><?Target attribute-id?></id>
      <name><?Target attribute-name?></name>
   <lov>
      <?MultiTarget?>
      <id><?Target lov-id?></id>
      <name><?Target lov-name?></name>
   <lov-idandvalue>
      <?MultiTarget?>
      <value><?Target lov-value?></value>
      <id><?Target lov-id?></id>
   </lov-idandvalue>
   </lov>
   </attribute>
   </product>
</products>    

Mapping

The Data Path aspect enables the complete set of mapping rules displayed below:

For details on mapping, refer to Mapping Attribute Links, LOVs, and LOV Values in Generic XML here.

Results

The Product, its linked Attributes, and any LOVs (and the values) used by the linked attributes are exported.

Note: Only local attribute links are exported.