cancel
Showing results for 
Search instead for 
Did you mean: 

How to access a local dictionary structure during runtime?

achim_hauck2
Active Contributor
0 Kudos

Hi,

I want to access a pre-defined local dictionary structure during runtime. my program should use the number of defined fields & their properties to do some calculations.

So, my question is: how can I access the structure, for example like:

Structure = com.sap.local.dictionary.structures.getStructure("NameOfMyStructure")

kr, achim

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Achim,

one possibility is to create a context value node at design time bound to the the desired structure and to examine the properties of possible child nodes and/or attributes using the well known getNodeInfo() and getAttributeInfo() API methods. It's not necessary, that the node contains elements, since you just wan't to examine the meta data. The node inherits all child nodes and attributes from the structure.

Hope that helps.

Regards

Stefan

Answers (0)