Application Development 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: 

abap to xml - call transformation

KaushalShah
Active Contributor
0 Kudos

Hi,

I am trying to create an xml file from ABAP internal table. My xml file is a multi-level structure, so my internal table is a bit complex, having multiple parent child tags defined.

Once my internal table is ready, I use call transformation ('ID') or call transformation ('ID_INDENT'), to convert my internal table into an xml stream.

The issue:

The third party program which is going to use this xml file, expects case-sensitive tags. Since I am converting my internal table into xml, all tags of generated xml file are in caps.

Any idea how can I have case sensitive xml tags?

I thought of using type abap_trans_srcbind_tab for defining my internal table. But that will not allow me to have multi-level parent-child tags.

Any help?

This is CRM 4.0 - SAP_ABA 620.

Regards,

Kaushal

7 REPLIES 7

Former Member
0 Kudos

Hi,

In my opinion you will always get name of tags in upper case.

/wg

0 Kudos

Hello all,

knows anybody how to change in transformation 'ID' encoding from 'utf-16' to 'utf-8' and how can I see this transformation code in general?

Thanks a lot.

Irina

0 Kudos

Maybe it depends on how your table structure is defined in data dictionary. Data element domain can be specified as lowercase. That way you can store your data in case sensitive format.

Former Member

Hey,

It is possible to insert an structure abap inside a structure abap for example:

I have two structures:


TYPES: BEGIN OF costumer_account,
        KTOKD  type Ktokd,
      END OF costumer_account.

TYPES: BEGIN OF client,
      kunnr  TYPE kunnr,
      name1  TYPE ad_name1,
      END OF client.

And i want to insert this two structures in xml like that:


  <?xml version="1.0" encoding="utf-8" ?> 
- <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
- <asx:values>
- <FIELDS_CLIENT>
- <COSTUMER_ACCOUNT>
  <KTOKD /> 
  </COSTUMER_ACCOUNT>
  <KUNNR>11231</KUNNR> 
  <NAME1>MIGUEL</NAME1> 
  <SORT1 /> 
  </FIELDS_CLIENT>
  </asx:values>
  </asx:abap>

aisi3
Member

Hi kaushal.shah,

You can create a simple transformation for your structure(tcode STRANS). There you can define the expected XML layout, by editing it.

Best regards.

0 Kudos

Thanks for coming to SAP Community for answers. Please post your question as a new question here:

Since you're new in asking questions here, check out our tutorial about asking and answering questions (if you haven't already), as it provides tips for preparing questions more effectively, that draw responses from our members.

Please note, that your post here won't be answered.

horst_keller
Product and Topic Expert
Product and Topic Expert