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

XSD Schema

Former Member
0 Likes
917

Hi Experts,

I have a requirement to convert a table data to XSD format.

I have used CALL TRANSFORMATION' statement, but its returning XML output, but I need XSD format.

Could you experts pls hlep me out in achieving this.

Moderator---> if this thread is not related to this forum, pls re-direct it to appropriate forum.

Regards,

SR

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
867

But what do u need to do?

U can create a new XML Schema Definition by a new transformation, but if you'll use it the result will be a XML file of course.

Max

5 REPLIES 5
Read only

Former Member
0 Likes
868

But what do u need to do?

U can create a new XML Schema Definition by a new transformation, but if you'll use it the result will be a XML file of course.

Max

Read only

0 Likes
867

Hi Max,

Thanks for the response,

the below code I am using for making my table data into XML format

CALL TRANSFORMATION ('ID')

SOURCE tab = zrmg_tab[]

RESULT XML xml_out .

CALL FUNCTION 'SCMS_STRING_TO_FTEXT'

EXPORTING

TEXT = xml_out

  • IMPORTING

  • LENGTH =

TABLES

FTEXT_TAB = itab.

But I need the same data in XSD format.

- Sujatha

Read only

0 Likes
867

Sorry but I still don't understand

XSD is the schema of a XML file, so it hasn't data.

U can define a new schema by a new transformation: transaction SE80: Edit Object->More->Transformation

Max

Read only

0 Likes
867

Max,

DATA : BEGIN OF z_tab occurs 0,

GROUPNAME type z_tab-GROUPNAME,

FIELD type z_tab-FIELD,

DESCR type z_tab-DESCR,

end of z_tab.

I extract the data from ztable z_table into the above table.

data in z_table:

groupname field description

                          • ****** ************

ADDRESS LAND1 Country Key

ADDRESS NAME2 C/O name

ADDRESS ORT01 City

ADDRESS ORT02 District

ADDRESS PSTLZ Postal Code

ADDRESS STRAS Street and House Number

this data I am getting in XML format (in an XML file) , but I need it in XSD format. I hope I am clear with my point now.

- Sujatha

HI............. can anybody throw some light on this pls

Edited by: SR on Jan 11, 2010 5:58 AM

Read only

Former Member
0 Likes
867

Answered, thanks for the support