2008 Nov 07 9:58 AM
i'm using "call transformation id" to serialize abap data objects to xml. But i would like to have that without the asx: elements, using an own namespace ns0:. How can i do that? Of course i can add a second step with a template xslt changing the asx namespace to the ns0 namepsace, but isnt it possible in one step?
Is there a better forum to ask this? Its not really an abap question but i couldnt find a better place...
i'm using "call transformation id" to serialize abap data objects to xml. But i would like to have that without the asx: elements, using an own namespace ns0:. How can i do that? Of course i can add a second step with a template xslt changing the asx namespace to the ns0 namepsace, but isnt it possible in one step?
Is there a better forum to ask this? Its not really an abap question but i couldnt find a better place...
2008 Nov 07 10:04 AM
have you defined in call transformations which objects you want to translate ??
DATA:
st_sdhd1 LIKE bapisdhd1,
ta_sdtext TYPE TABLE OF bapisdtext,
wa_sdtext TYPE bapisdtext,
ta_schdl TYPE TABLE OF bapischdl,
wa_schdl TYPE bapischdl,
ta_cond TYPE TABLE OF bapicond,
wa_cond TYPE bapicond,
ta_parnr TYPE TABLE OF bapiparnr,
wa_parnr TYPE bapiparnr,
ta_sditm TYPE TABLE OF bapisditm,
ta_ret2 TYPE TABLE OF bapiret2.
CALL TRANSFORMATION ('ID')
SOURCE XML it_xml_import
RESULT order_header_in = st_sdhd1 order_conditions_in = ta_cond order_partners = ta_parnr order_text = ta_sdtext order_items_in = ta_sditm
.
I get now my whole import xml directly in the appropiate tables
perhaps this can also work the other way around, you have to check that.
kind regards
arthur
Edited by: A. de Smidt on Nov 7, 2008 11:05 AM
2008 Nov 07 10:23 AM
I have the other way round: i'm using transformation ID getting xml from my internal structures/table. But this xml conatins two asx: namespave nodes. I would like to have my own namepsac tag there.
2008 Nov 25 8:07 AM
2008 Nov 25 11:25 AM
perhaps if you put the answer also online one of the mods will be so kind to grant you points
kind regards
arthur
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |