cancel
Showing results for 
Search instead for 
Did you mean: 

MDM WD ItemDetails Component and Java WebDynpro: how to retrieve fields names

former_member203185
Participant
0 Kudos

Dear experts,

I hope you will help me to find appropriate solution to subject's issue.

So, I have configured MDM WD Item Details component with set of necessary fields. I communicate with that component from Java code using ItemDetailsInterface.

I have that task to export Item Details fileds values in an external file and columns names must be the same as Item Details fileds names.

I wonna read fields names fro Item details Componet, if it is possible. Or from MDM repository.

What's the simplest way to do that?

Best Regards,

Anton

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Anton,

You can get field names with the code below

RepositorySchema schema = null;

FieldProperties[] fieldProps = schema.getFields(tableid);

Former Member
0 Kudos

Hi Anton,

            " FieldProperties[] fieldProps = schema.getFields(tableid);"  will return the Field ID's to get the field names i hope you can use the get DisplayFields() method, for more info you can check the following

http://help.sap.com/javadocs/mdm/sp06/com/sap/mdm/schema/TableSchema.html#getDisplayFields%28%29

Ram.

Answers (0)