‎2009 Dec 29 9:12 AM
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
‎2009 Dec 29 9:27 AM
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
‎2009 Dec 29 9:27 AM
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
‎2009 Dec 29 9:35 AM
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
‎2009 Dec 29 9:50 AM
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
‎2009 Dec 29 9:58 AM
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
‎2011 Sep 09 7:51 AM