2010 Oct 11 11:56 AM
Hi All,
I went throught many of the threads n sdn... i have one doubt... i have to generate an Hierarchical XML from ABAP..
which has more than one node.
in this case., should i create more than one data type/structure????
XML will look something like this:
<!//First UN>
<!//3rd UN>
Hi All,
I went throught many of the threads n sdn... i have one doubt... i have to generate an Hierarchical XML from ABAP..
which has more than one node.
in this case., should i create more than one data type/structure????
XML will look something like this:
<!//First UN>
<!//3rd UN>
2010 Oct 12 8:49 AM
Hi,
check the programs BCCIIXMLT1-BCCIIXMLT4. you will get some idea on the ABAP-XML and XML-ABAP conversion.
2010 Oct 12 2:26 PM
Hi Poonam Naik,
creation of XML from ABAP can be done through the call transformation method.
types: begin of str,
mystr type string,
end of str.
data: it_data type standard table of str,
wa type str.
"" write the
call transformation id
source root = wa_convert_data "having a single row of data.
result xml wa-mystr "output in the format .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'C:\test_xml' "file location
FILETYPE = 'ASC
tables
data_tab = it_data " xml format data.KR,
Lalitkumar.
2010 Oct 13 5:57 AM
"call transformation id
source root = wa_convert_data "having a single row of data.
result xml wa-mystr "output in the format ."
ID => transformation created ??
waht is wa_convert_data???
wa_mystr of what type?
right now i have created a transformation..... and also a class..... which does this saving in aplication server ....
but its not able to access the node... some problem in call transforamtion.
call transformation ZEWM_DEV_I_004_TRANSFORMATION
source root = it_final => this internal table is having all the abap data whihc i want to convert to XML....
result xml lif_doc.
2010 Oct 13 10:44 AM
types: begin of str,
mystr type string,
end of str.
data: it_data type standard table of str,
wa type str.
"" write the
call transformation id
source root = wa_convert_data "having a single row of data.
result xml wa-mystr "output in the format .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'C: est_xml' "file location
FILETYPE = 'ASC
tables
data_tab = it_data " xml format data.
well i got all this...
now my prblm is .. i have to get the ouput like this:
can anyone help on this nodes... how to set these in XSLT_TOOL transaction??
2010 Oct 15 6:37 AM
Hi all,
I am gettin an error while writing this transformation:
The moment i called
call transformation ztest
source root = it_final
xml sml_string.
Nothing is happening at this point... its just coming out of the statment
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="ROOT"/>
<tt:template>
<tt:loop ref=".ROOT" >
<ORDERNR>
<tt:value ref="ordernr"/>
<CUSTOMER>
<tt:value ref="customer"/>
</CUSTOMER>
<DESTINATION>
<tt:value ref="destination"/>
</DESTINATION>
<SUPPLIER>
<tt:value ref="supplier"/>
</SUPPLIER>
<BRUKARE>
<tt:value ref="brukare"/>
</BRUKARE>
<SOURCE>
<tt:value ref="source"/>
</SOURCE>
<ID>
<tt:value ref="id"/>
<TYPE>
<tt:value ref="type"/>
</TYPE>
<SORTIMENT>
<tt:value ref="sortiment"/>
</SORTIMENT>
<WEIGHT>
<tt:value ref="weight"/>
</WEIGHT>
<VOLUME>
<tt:value ref="volume"/>
</VOLUME>
<FLOORSPACE>
<tt:value ref="floorspace"/>
</FLOORSPACE>
<STATUS>
<tt:value ref="status"/>
</STATUS>
<WORKUNITID>
<tt:value ref="workunitid"/>
</WORKUNITID>
</ID>
<HAZMAT>
<tt:value ref="hazmat"/>
<UNNUM>
<tt:value ref="unnum"/>
</UNNUM>
<PACKAGECODETYPE>
<tt:value ref="packagecodetype"/>
</PACKAGECODETYPE>
<UNWEIGHT>
<tt:value ref="unweight"/>
</UNWEIGHT>
<UNVOLUME>
<tt:value ref="unvolue"/>
</UNVOLUME>
<UNQTY>
<tt:value ref="unqty"/>
</UNQTY>
</HAZMAT>
</ORDERNR>
</tt:loop>
</tt:template>
</tt:transform>
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |