Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

help in abap object

Former Member
0 Kudos

HALLOW

i have this metod and when i set just CARRID its work o.k. but when i wont to set

also CONNID i have eroor i new with this topic (oo)

regards

METHOD wddoinit .

DATA:

node_flightinfo TYPE REF TO if_wd_context_node,

elem_flightinfo TYPE REF TO if_wd_context_element,

stru_flightinfo TYPE if_componentcontroller=>element_flightinfo .

  • navigate from <CONTEXT> to <FLIGHTINFO> via lead selection

node_flightinfo = wd_context->get_child_node( name = if_componentcontroller=>wdctx_flightinfo ).

  • get element via lead selection

elem_flightinfo = node_flightinfo->get_element( ).

  • get all declared attributes

elem_flightinfo->set_static_attribute(

EXPORTING

name = 'CARRID'

value = 'AA'

<b> name = 'CONNID'

value = '1231').</b>

ENDMETOD.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can not set two valuse at one node, set valuse separatly, one by one.

It will work

7 REPLIES 7

Former Member
0 Kudos

You can not set two valuse at one node, set valuse separatly, one by one.

It will work

0 Kudos

OK

but how i do that?

regards

Former Member
0 Kudos

node wrong.

Former Member
0 Kudos

Hi,

The Method 'set_static_attribute' is to set the Values for only one Attribute.

So give it as,

<b>elem_flightinfo->set_static_attributes(

EXPORTING

name = 'CARRID'

value = 'AA').

elem_flightinfo->set_static_attributes(

EXPORTING

name = 'CONNID'

value = '1231').</b>

Regards,

Padmam.

0 Kudos

hi Padmam

there is no metod that i can do that in one metod?

regards

0 Kudos

Hi,

Upto my Knowledge,there is no Method to do that.

Regards,

Padmam.

Former Member
0 Kudos

hi shyna...........

if your attribute is inside a node then you can apeend the necessary values into an internal table and then bind that table to your node.

---regards,

alex b justin