on 04-20-2009 2:44 PM
Hi all,
I try to find a simple and quick way to fill some fields of a destination message getting values from an input message by tag name.
More exactly:
Input message.
S1.
f1
f2
f3
S2
f4
f5
f5
Output message,
D1.
d1
d2
d3
D3
d4
I need to copy S1 to D1 to have all field dx... filled and to fill d4 with f5, for exaple.
I can use idocument->get_elements_by_tag_name( 'BookingCode' ). to get a value of 'BookingCode' from
the input message. Is it the possibility to modify a specific field in a "odocument" after a copy of a structure from the idocument?
Is it possible?
Thanks in advance.
Regards,
Giovanni
correct
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
set_value
This method sets a node's value. This operation is not supported or defined on all node types.
interface
if_ixml_pi
parameters
value
The value to set for this node.
return value
Returns one of the following return codes:
ixml_mr_dom_ok = 0
The value has been set successfully.
ixml_mr_dom_invalid_arg = 0x00020003L
The given argument is invalid.
ixml_mr_dom_not_allowed = 0x00020008L
This node doesn't allow to set its value.
abap signature
method set_value
importing
value type string
returning
value(rval) type I.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it is possible to set the value of a node
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.