cancel
Showing results for 
Search instead for 
Did you mean: 

How to use API to get DataType and Data Field configuration

Former Member
0 Kudos

I will be using the API to assemble components. I found the discussion describing exactly how I need to make the call to do the assemble, including the Component Data Fields to be collected. However, I can't find out how to get the configuration of the Data Fields to be collected. I can find the DataTypeRef in the Material (component) and the BOM Component line items, but I can't find the Package/Classes/Interface/APIs to use that Reference to get the list of Data Fields that are configured for collection at assemble time. any directipon would be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

alexander_teslyuk
Product and Topic Expert
Product and Topic Expert
0 Kudos

As far as I understood your question, you should look for AssyDataValue tag in the AssembleComponents request.

Br, Alex.

Former Member
0 Kudos

Sorry, I guess I didn't phrase my question clearly

I understand how to send the Component Data Values to the Assembly Transaction. What I can't find is how to tell what Data Values to send.For example, The Vendor Id might be required for some components and not allowed for others. This is configured in the Data Type that is referenced in the Component or BOM. I can't find the API calls to retrieve the list of Data Fields that need to be sent with the Assembly Transaction.

0 Kudos

I guess you should use ItemConfigurationServiceWS (if BOM does not explicitly assign Assy datatype to its components but rather inherits Assy datatype from Material Maintenance) or BOMConfigurationServiceWS to read the actual Assembly datatype assigned to the component and then use DataTypeConfigurationServiceWS to find out the list of data fields.

Former Member
0 Kudos

Sergiy,

I am starting to have the suspicion that my API guide is incomplete. I had already found the ItemConfigurationService and BOMConfigurationService interfaces, but not the DataTypeConfigurationService interface. The absence of any classes or Interfaces having the words Data Type or Data Field is what has been so frustrating. Do you know what package DataTypeConfiguration is in? ItemConfigurationService is in com.sap.me.productdefinition. I'm thinking perhap the entire package may be missing fromthe javadoc.

0 Kudos

Javadocs might be incomplete. I'm used to checking SOA in NWA for the list of available WS.

Relying on analogy between package names and namespaces, I would expect it to be in something like "com.sap.me.datatype".

Former Member
0 Kudos

Thanks Sergiy, that's almost certainly it then.

We're a new site, so I'm doing early design to the documentation to the documentation while the environments and dev systems are being set up. Apparently, the docs have gaping holes, as this is not the first gap, but certainly the largest. Once we get set up, I'll be using NWA also. Thanks!

Answers (0)