on 01-12-2007 9:04 AM
Hi guys,
Im doing my first ABAP mapping to create a structure for a JDBC request. My request message is something like this:
<root>
<statement>
<tableName>
action attribute
<access>
<field1>
<field2>
</access>
</tableName>
</statement>
</root>
My doubt is how can I define the attribute action with name= action and value=INSERT during the build up of output document? This method only have the name as input parameter, how can I fill up the value= INSERT?
Thanks in advance,
Ricardo.
Message was edited by:
Ricardo Quintino
Hi Ricardo,
1. create a yourelement in the mapping
data: yourelement type ref to if_ixml_element.
yourelement = odocument->create_simple_element(
name = 'whatever'
parent = something ).
2. then use method as shown:
yourelement->set_attribute( name = 'name' value = 'insert' ).
this will set the attribute
is this what you need?
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Which library are u using to handle xml parsing and building?
If there is a option to create an attribute, there should be a function to set the value. Check your library and get the function to do it.
Regards,
P.Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.