Skip to Content

How to access a local dictionary structure during runtime?

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2005 at 02:19 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.