2007 Aug 02 10:21 AM
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.
2007 Aug 02 10:25 AM
You can not set two valuse at one node, set valuse separatly, one by one.
It will work
You can not set two valuse at one node, set valuse separatly, one by one.
It will work
2007 Aug 02 10:25 AM
You can not set two valuse at one node, set valuse separatly, one by one.
It will work
2007 Aug 02 10:29 AM
2007 Aug 02 10:28 AM
2007 Aug 02 10:29 AM
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.
2007 Aug 02 10:32 AM
hi Padmam
there is no metod that i can do that in one metod?
regards
2007 Aug 02 10:40 AM
Hi,
Upto my Knowledge,there is no Method to do that.
Regards,
Padmam.
2007 Aug 02 12:34 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |