Application Development and Automation 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: 
Read only

XSLT/ABAP

rainer_hbenthal
Active Contributor
0 Likes
732

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...

4 REPLIES 4
Read only

Former Member
0 Likes
685

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

Read only

rainer_hbenthal
Active Contributor
0 Likes
685

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.

Read only

rainer_hbenthal
Active Contributor
0 Likes
685

answered by myself - so why cant i give 10 points to myself?

Read only

0 Likes
685

perhaps if you put the answer also online one of the mods will be so kind to grant you points

kind regards

arthur