cancel
Showing results for 
Search instead for 
Did you mean: 

Structure MetaData

Former Member
0 Kudos

Hi,

Another question, I am using SAP JCO, I can retrieve all the meta data about a BAPI.

Using something like:

functionTemplate.getImportParameterList()

For export parameters, some of them are structures and I wish to know the type and name of each part of the structure.

I tried:

aRepository.getStructureDefinition("structure name")

And iterate over this, but it is returning null, is there another way to get the structure definition in Java?

Thanks in advance for any help that can be given.

Alan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I have figured it out in the mean time.

The simplest solution to the problem is:

MetaData structureMetaData = (MetaData) md.getMetaData("Structure Name") ;

Can then iterate over the structure meta data to get the required meta data from the structure.

Just incase anyone is interested in doing it.

Alan

Former Member
0 Kudos

hi,

i think u can get the mata data of structures .

	JCO.Structure objStru=
			objFunction.getExportParameterList().getStructure("Structure Name");
			IMetaData objIMataMata=objStru.getMetaData();

give points if it is useful

regards

Guru