Skip to Content
avatar image
Former Member

Add new static attribute

Hi All,

I'm having an issue about adding static attributes to a newly defined context node.

how is this possible ? (adding them with add_attribute will make them dynamic, which gives me problems later on)

As it is now i having some sucess with defining the node as follows:

rootnode_info->add_new_child_node( name = tablename is_static = abap_true STATIC_ELEMENT_TYPE = iobj_tab_name ).

where the element type is a structure in the DDIC.

The problem is that if I add adition attributes to this node they become dynamic, and since I don't have a DDIC type containing all my desired attributes, I can't use this approach.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 04, 2009 at 12:04 PM

    Hi,

    For the static node or root node do you want to add attributes dynamically or statitcally...

    rootnode_info->add_new_child_node( name = tablename is_static = abap_true STATIC_ELEMENT_TYPE = iobj_tab_name ).

    The above statement is for adding a node under the root node....

    Regards,

    Lekha.

    Edited by: Lekha on Nov 4, 2009 5:34 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      yes - and if you set the STATIC_ELEMENT_TYPE to a structure in the DDIC the node it creates has static attributes matching the fields of that strcuture.

      My problem is though, that I want to add more (since no DDIC structure exists to meet my requirements) attributes... but these cannot (it seems) become static.