Call transformation for ABAP to XML
guys I know say a guide to create a xml from a table.
Hi,
try searching in SDN. There are a lot of threads.
regards, Dieter
Similar Messages
-
Problem with "CALL Transformation" in ABAP
Hello All,
I am creating XML from ABAP program and using CALL TRANSFORMATION. Everything works fine but when my XML is created sometimes in some "element" values it is truncating space between the texts. For example, I have a field "description" with value "Bon Apetite" it changes to "BonApetite" (space truncated) after transformation! I did research everywhere but could not find why this would happen! Please give me any feedback if you have any information.
Thanks.
MithunHello Mithun,
when you use the call transformation statement you have to specifiy the xslt transformation used. As a first step you usually use the transformation with the name ID. This is a special transformation for making the asXML representation of abap data. Unfortunately if you look into this transformation you find the following:
<xsl:transform version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:transform>
If I remember correctly when you use another transformation this will first call the ID transformation and after this the specified one. So it should not be possible to just copy ID transformation and remove the line. I'll have to think again how to avoid the behaviour.
Best Regards
Roman -
Simple Transformation from ABAP to XML and back
Hi experts,
Can anyone provide me a simple example of a 'simple transformation' that will convert and internal table with more than one column into XML via a simple transformation.
I've spend days now reading SAP help and e-learning examples, but this just won't work and I am getting short dumps saying 'The goal was to access variable "ROOT". However, this access was notv possible.'
Here is my ABAP:
data: begin of struc,
counter type i,
aname type string,
aname2 type string,
end of struc.
data: cnt_c type c.
data: itab like table of struc with HEADER LINE,
xml_string type xstring.
do 3 times.
move sy-index to: itab-counter, cnt_c.
concatenate 'nameA' cnt_c into itab-aname.
concatenate 'nameB' cnt_c into itab-aname2.
append itab.
enddo.
CALL TRANSFORMATION Z_ST_TEST5
SOURCE ROOT = itab
RESULT XML xml_string.
CALL FUNCTION 'DISPLAY_XML_STRING'
EXPORTING
XML_STRING = xml_string.
skip 1.
and here is my ST:
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="ROOT"/>
<tt:template>
<TABLE>
<tt:loop ref=".ROOT" name="line">
<ITEM>
<counter>
<tt:value ref="$line.aname" />
</counter>
<name>
<tt:value ref="$line.aname" />
</name>
<name2>
<tt:value ref="$line.aname2" />
</name2>
</ITEM>
</tt:loop>
</TABLE>
</tt:template>
</tt:transform>Figured it out. The interla tables used in teh call transformation statement can never have a header line.
-
XSLT for ABAP to XML: how can I get a variable in a literal field
Hi,
I have the requirement to provide an xml format (for Intrastat reporting) which contains some dynamic data within "".
Example (I'll put the variables between && for clarity):
<?xml version='1.0' encoding='UTF-8'?>
<DeclarationReport xmlns="http://www.onegate.eu/2010-01-01">
<Administration>
<From declarerType="KBO">0000000097</From>
<To>NBB</To>
<Domain>SXX</Domain>
</Administration>
<Report action="&ACTION&" date="&DATE&" code="&CODE&">
<Data close="&CLOSE&" form="&FORM&">
<Item>
<Dim prop="EXTRF">19</Dim>
<Dim prop="EXCNT">NL</Dim>
<Dim prop="EXTTA">3</Dim>
<Dim prop="EXREG">1</Dim>
<Dim prop="EXTGO">73202089</Dim>
<Dim prop="EXWEIGHT">101</Dim>
<Dim prop="EXUNITS">0</Dim>
<Dim prop="EXTXVAL">1098</Dim>
<Dim prop="EXTPC">3</Dim>
<Dim prop="EXDELTRM">CPT</Dim>
</Item>
<Item>
<Dim prop="EXTRF">19</Dim>
<Dim prop="EXCNT">DK</Dim>
<Dim prop="EXTTA">3</Dim>
<Dim prop="EXREG">1</Dim>
<Dim prop="EXTGO">83012000</Dim>
<Dim prop="EXWEIGHT">88</Dim>
<Dim prop="EXUNITS">0</Dim>
<Dim prop="EXTXVAL">73456</Dim>
<Dim prop="EXTPC">3</Dim>
<Dim prop="EXDELTRM">CPT</Dim>
</Item>
</Data>
</Report>
</DeclarationReport>
All the other variables I've solved by using this technique: <xsl:value-of select="EXTRF"/> but apparently it's not allowed to do this within "".
I have an idea that params or variables could be used to fill in those fields but I don't find the right syntax.
For your info, here's my current transformation program; it works except for those fields
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
<xsl:output encoding="UTF-8" indent="yes" method="xml" version="1.0"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<DeclarationReport xmlns="http://www.onegate.eu/2010-01-01">
<Administration>
<From declarerType="KBO">&KBO&</From>
<To>NBB</To>
<Domain>SXX</Domain>
</Administration>
<Report Code="&CODE&" Date="&DATE&" action="&ACTION&">
<Data close="&CLOSE&" form="&FORM&">
<xsl:apply-templates select="//INTRASTAT/item"/>
</Data>
</Report>
</DeclarationReport>
</xsl:template>
<xsl:template match="INTRASTAT/item">
<Item>
<Dim prop="EXTRF">
<xsl:value-of select="EXTRF"/>
</Dim>
<Dim prop="EXCNT">
<xsl:value-of select="EXCNT"/>
</Dim>
<Dim prop="EXTTA">
<xsl:value-of select="EXTTA"/>
</Dim>
<Dim prop="EXREG">
<xsl:value-of select="EXREG"/>
</Dim>
<Dim prop="EXTGO">
<xsl:value-of select="EXTGO"/>
</Dim>
<Dim prop="EXWEIGHT">
<xsl:value-of select="EXWEIGHT"/>
</Dim>
<Dim prop="EXUNITS">
<xsl:value-of select="EXUNITS"/>
</Dim>
<Dim prop="EXTXVAL">
<xsl:value-of select="EXTXVAL"/>
</Dim>
<Dim prop="EXTPC">
<xsl:value-of select="EXTPC"/>
</Dim>
<Dim prop="EXDELTRM">
<xsl:value-of select="EXDELTRM"/>
</Dim>
</Item>
</xsl:template>
</xsl:transform>
Can anyone help me out here? How can I fill up these variables?
ThanksIf you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
'''browser.search.openintab''' = double-click to toggle to '''true''' -
Dynamic XSLT Transformation for ABAP
Hi Team,
I have a simple requirement, but could not get it to work. Tried different posts but need some help.
I have an input XML file as follows:
<ITEM>
<ITEMQUALF>
<MATERIAL>
<UPC>
<VENDORMATERIAL>
<ITEM>
I created my internal table with the exact fields as above and created a transformation which works fine. The problem is, there are scenario's where only one tag "MATERIAL", "UPC", OR "VENDORMATERIAL" is passed in the input XML. Empty tags are not passed. For E.G.
<ITEM>
<ITEMQUALF>
<UPC>
<ITEM>
My transformation fails in this scenario because it does not finds the MATERIAL and VENDORMATERIAL tags. I tried using the <tt:cond/> tag, but no luck. I have some specific questions:
1) How to take care of this scenario where empty tags are not passed? (I have the Superset of all the Tags available in an XSD). A quick Sample would help me a lot because I have spent weeks breaking my head with this.
2) Is there any other method or Option to parse a very larger input file (~40 MB) as above? I have seen the iXML ABAP methods but don't know if we should use XSLT or iXML or is there any other method. We don't have XI in our landscape. Our system is ECC 6.0, ABAP 7.0 - SP 17, Enhancement Pack 3.
Any pointers would help a lot. Thanks for your time.
Regards
SanjayHello Sanjay
In such a scenario I usually make pre-transformation filling the missing elements before the main mapping.
Input:
<?xml version="1.0" encoding="utf-8"?>
<List>
<ITEM>
<ITEMQUALF/>
<MATERIAL/>
<UPC/>
<VENDORMATERIAL/>
</ITEM>
<ITEM>
<ITEMQUALF/>
<UPC/>
</ITEM>
<ITEM>
<MATERIAL/>
</ITEM>
</List>
XSLT Mapping (XML to XML):
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="*">
<List>
<xsl:for-each select="ITEM">
<xsl:element name="ITEM">
<xsl:element name="ITEMQUALF">
<xsl:value-of select="ITEMQUALF"/>
</xsl:element>
<xsl:element name="MATERIAL">
<xsl:value-of select="MATERIAL"/>
</xsl:element>
<xsl:element name="UPC">
<xsl:value-of select="UPC"/>
</xsl:element>
<xsl:element name="VENDORMATERIAL">
<xsl:value-of select="VENDORMATERIAL"/>
</xsl:element>
</xsl:element>
</xsl:for-each>
</List>
</xsl:template>
</xsl:stylesheet>
Resulting XML:
<?xml version="1.0" encoding="UTF-8"?>
<List>
<ITEM>
<ITEMQUALF/>
<MATERIAL/>
<UPC/>
<VENDORMATERIAL/>
</ITEM>
<ITEM>
<ITEMQUALF/>
<MATERIAL/>
<UPC/>
<VENDORMATERIAL/>
</ITEM>
<ITEM>
<ITEMQUALF/>
<MATERIAL/>
<UPC/>
<VENDORMATERIAL/>
</ITEM>
</List>
Regards
Uwe -
Problem with CALL TRANSFORMATION xml - abap
Hello!
I got the following problems using call transformation to read a xml-file to local abap datatype!
Simple xml file for testing:
<BMECAT>
<HEADER>
asdf
</HEADER>
</BMECAT>
XSLT file:
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
<xsl:template match="/">
<xsl:value-of select="./BMECAT/HEADER"/>
</xsl:template>
</xsl:transform>
The xslt transformation works with xslt-tester!
My Source:
DATA: xmlupl TYPE string,
outputx TYPE XSTRING,
lv_string TYPE string.
* in xmlupl my xml import is stored
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = xmlupl " variable type string
IMPORTING
buffer = outputx. " variable type xstring
TRY .
CALL TRANSFORMATION path_to_xslt_file
SOURCE XML outputx
RESULT HEADER = lv_string.
CATCH cx_xslt_exception INTO xslt_error.
data: xslt_message type string .
xslt_message = xslt_error->get_text( ).
ENDTRY.
After debugging in xslt_message is stored the following text:
"The element abap was expected for the XML-ABAP transformation"
Can anyone help me with this problem?
Regards,
Danielhi
good
try this code
Just look at this piece of code, I think it should help you.
DATA : ITAB TYPE TABLE OF SPFLI,
L_XML TYPE REF TO CL_XML_DOCUMENT.
SELECT * FROM SPFLI INTO TABLE ITAB.
CREATE THE XML OBJECT
CREATE OBJECT L_XML.
CONVERT THE DATA TO XML
CALL METHOD L_XML->CREATE_WITH_DATA( DATAOBJECT = ITAB[] ).
DATA IS CONVERTED TO XML; DISPLAY THE XML-DOCUMENT
CALL METHOD L_XML->DISPLAY.
thanks
mrutyun^ -
ABAP Simple Transformation - How to save XML to file with CL_FX_WRITER?
Hello!
When calling a Simple Transformation program for transformation from ABAP to XML, it is possible to specify RESULT XML rxml as a class reference variable of type CL_FX_WRITER, which points to an XML writer.
How to handle CL_FX_WRITER in order to save XML to a file?
Thanks and regards,
AndreyHallo Rainer!
Many thanks. I have checked the profile parameter ztta/max_memreq_MB and it is set to 2048 MB in the development system. I hope, that won't be less on the client's machine. The only thing I did not clearly explained, is that I need to write XML data to the server. I am so sorry. Downloading to the local PC is very helpful for me also, but only for the test purposes.
Regards,
Andrey -
Hi
i have created a RFC and thru that i am submitting a report and calling that RFC in my EP.
i make use of the FM "WWW_HTML_TO_LISTOBJECT" so that data mirror image of my report is also displayed in my portal.
But the problem is i can't control it, For eg: if i click on "download to excel" it isnt working properly.
how should i overcome this problem.
Once Mr.Raja (one of the sdn member) suggested to use
"call transformation" method, can you be specific to that, how should i use that in ALV report. where should i write "call transoformation" method. A sample code would be helpful.
Thank you<b>Call Transformation</b>
is for transforming XML using XSLT into a xml/html/abap itab, etc formats.
of transforming abap itab to xml format.
you cannot convert the html returned by your program into your required format using this mechanism.
if you want to use this feature , then your report should be returning XML output.
possible tranformation scenarios
from XML to XML (only for XSLT),
from XML to ABAP (for XSLT and simple transformations),
from ABAP to XML (for XSLT and simple transformations),
from ABAP to ABAP (only for XSLT),
Regards
Raja -
EXCEL UPLOAD - CALL TRANSFORMATION
Hi,
I am uploading the data from .xml file using Fileupload UI element into the string sucessfully. But now i need to convert that string data into my internal table using the Call Transformation statement.
I have the XSLT file for this but i don't know where to place this XSLT file and how to use it inthe Call transformation statement while uploading the data.
CALL TRANSFORMATION 'XSLT File' SOURCE XML filecontent
RESULT itemlist = lt_employees.
the bold XSLT file where we need to place in SAP to retrive the data into internal table.
Please help me, it is urgest issue.
Thanks in Advance
Best Regards,
VijayHello Vijay,
call se80 and choose a package, then right-click on the package name and choose "Create" -> "Other(1)" -> "Transformation".
Choose a name for this transformation (e.g. MY_TRANSF) and enter the code for the transformation in th editor. In your application you can use
CALL TRANSFORMATION MY_TRANSF
source XML ...
result ....
Regards,
Rainer -
Upload XSD and CALL TRANSFORMATION
Hi expert,
i have need help for to call the transformation into the custom program.
I have the XSD file.
How do i upload in SAP the XSD file and, after, call the transformation for generate a XML file?
thanks in advance,
AIhi Jan,
Check out the link
http://www.topxml.com/code/default.asp?p=3&id=v20031025170911&ms=20&l=xsl&sw=categ
This link contains a file that contains an importable xslt stylesheet with two templates. The first is a text wrap template that breaks texts at carriage returns. You need to modify the xslt.
[code]<xsl:template name="text.wrap">
<xsl:param name="texttowrap"/>
<xsl:variable name="textlength" select="string-length($texttowrap)"/>
<!-- don't waste time if no text supplied or remaining from recursion-->
<xsl:if test="$textlength > 0">
<xsl:choose>
<xsl:when test="contains($texttowrap,$CR)">
<!-- get the text before the first instance of a carriage return character-->
<xsl:variable name="<span style="background-color:yellow;color:red;font-weight:bold;">line</span>beforefirst<span style="background-color:yellow;color:red;font-weight:bold;">break</span>" select="substring-before($texttowrap,$CR)"/>
.................[/code]
Hope this helps.
Regards,
Richa -
Pass URL parameters from BSP to WDA for ABAP (via Post )
Dear Gurus,/ Joerge,
I am unable to post my Code here, but with the guidance provided by Joerge i am able to solve this
i Have been through the Below thread
Pass URL parameters from WD to BSP via Post
Dear Gurus,
"Since I am unable to Post new thread i am Continuing this thread, though this Issue has been
" resolved,i need some more info on the following issue, Kindly guide me,
I have gone through the below thread but left with no clue
Pass URL parameters from WD to BSP via Post
Here i have 2 Issues
First one is --->
" After pressing the Button I am calling this URL which is WDA for ABAP
action="http://company/sap/bc/webdynpro/sap/zuser"> " I am calling WDA for ABAP URL here
" Kindly guide me how to pass the Value
Second one is -->
" This value need to be passed to the URL above and
" How to capture the Same in WINDOWINIT method of WDA for ABAP
" And how to Capture this Value in Webdynpro INIT method
"Here am using Form and method = post , I am removing this as it is causing some problem while posting
action= my WDA For ABAP URL here " I am calling WDA for ABAP URL here
" Kindly guide me how to pass the Value
" This value need to be passed to the URL above and
" How to capture the Same in WINDOWINIT method of WDA for ABAP
Thanks and Regards
Ramchander Rao.KHi,
let me see if I understand you well.
BSP -
You wrote the code for catching the user name in the event OnCreate, which means that you know who´s working with the BSP application when it starts.
Somewhere you must have a button or something with text like "Call WDA application". When user presses the button, it triggers events OnInputProcessing. Here you must write the code for the cookie that "sends" the parameter(s), something like:
CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
EXPORTING
name = 'MY_COOKIE'
application_name = 'ZUSER_NAME_GET'
application_namespace = 'ZUSER_NAME_GET'
username = sy-uname
session_id = 'SAME_FOR_ALL'
data_value = PAGE_DATA
data_name = 'PAGE_DATA'
EXPIRY_TIME_REL = 3600.
you call then the URL for the WDA application.
WDA -
probably in method WDDOINIT of the component controller you´ll write the code for reading the "content" of the cookie:
CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
EXPORTING
name = 'MY_COOKIE'
application_name = 'ZUSER_NAME_GET'
application_namespace = 'ZUSER_NAME_GET'
username = sy-uname
session_id = 'SAME_FOR_ALL'
data_name = 'PAGE_DATA'
CHANGING
data_value = PAGE_DATA.
read more about the cookies in SDN, because I am not sure if this is the correct example for transmiting values. I´ve used it in conjunction of instructions IMPORT and EXPORT for transmiting an internal table.
if this is not working properly, then try with IMPORT TO MEMORY and EXPORT FROM MEMORY. -
XSLT transformation for XML to ABAP internal table
Hi, can anyone please tell me how it should be the xslt tranformation to conver this xml
<Embargos_ARBA_DOC>
<ns:Embargos_ARBA_MT
xmlns:ns="un:swissmedical:sap:proxy:embargos_arba:file">
<Embargos_ARBA_MT>
<FECHA>20081101</FECHA>
<CUIT>50000002124</CUIT>
<MONTO>0000013794090</MONTO>
<RAZON_SOCIAL>RAUL ARMANDO CUNQUEIRO S.A.C.I.</RAZON_SOCIAL>
</Embargos_ARBA_MT>
<Embargos_ARBA_MT>
<FECHA>20081101</FECHA>
<CUIT>55000001456</CUIT>
<MONTO>0000001144410</MONTO>
<RAZON_SOCIAL>PARODI ESTEBAN ARMANDO</RAZON_SOCIAL>
</Embargos_ARBA_MT>
</ns:Embargos_ARBA_MT>
</Embargos_ARBA_DOC>
to this abap Table....
DATA: BEGIN OF i_embargos_arba_doc occurs 0,
fecha TYPE d,
cuit TYPE char11,
monto TYPE char13,
razon_social(120),
END OF i_embargos_arba_mt.
so i can transform it with this sentence
CALL TRANSFORMATION ('embargos_transformation')
SOURCE XML source
RESULT Embargos_ARBA_DOC = embargos.
pls i need help because i am unable to create this xslt transformation...
I will give the highest rewards points to the one who can help me.
thanks!
marianoHi Mariano
Why you need to use XSLT for transforming XML file into ABAP table
Code is a part of some ABAP report. Looks like it is reading a file from file system and updating table after transformation
If you have requirement like you need to read XML file and then insert the data into a SAP table
You can use
File to RFC
File to Proxy scenario using SAP PI.
Please provide more inputs on requirement to help
Thanks
Gaurav -
ABAP-XML conversion via call transformation
Hi folks!
I'm using a deep structure for returning the reply from a function module. To save my test data I wanted to generate an XML from this ABAP structure.
I had in mind that I could use CALL TRANSFORMATION to get the asXML representation of the ABAP structure but I could not figure out how this works.
Can somebody give me a hint how I could convert my deep ABAP structure into XML without much coding?
Thanks!
BirgitHi stonefish,
1. internal table -
> Xml
xml -
> internal table
2. this program will show both.
3. It will do this for
T001 table.
4. Just copy paste in new program.
REPORT abc.
DATA
DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
DATA : BEGIN OF itab OCCURS 0,
a(100) TYPE c,
END OF itab.
DATA: xml_out TYPE string .
DATA : BEGIN OF upl OCCURS 0,
f(255) TYPE c,
END OF upl.
DATA: xmlupl TYPE string .
FIRST PHASE
FIRST PHASE
FIRST PHASE
Fetch Data
SELECT * FROM t001 INTO TABLE t001.
XML
CALL TRANSFORMATION ('ID')
SOURCE tab = t001[]
RESULT XML xml_out.
Convert to TABLE
CALL FUNCTION 'HR_EFI_CONVERT_STRING_TO_TABLE'
EXPORTING
i_string = xml_out
i_tabline_length = 100
TABLES
et_table = itab.
Download
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filetype = 'BIN'
filename = 'd:\xx.xml'
TABLES
data_tab = itab.
SECOND PHASE
SECOND PHASE
SECOND PHASE
BREAK-POINT.
REFRESH t001.
CLEAR t001.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'D:\XX.XML'
filetype = 'BIN'
TABLES
data_tab = upl.
LOOP AT upl.
CONCATENATE xmlupl upl-f INTO xmlupl.
ENDLOOP.
XML
CALL TRANSFORMATION ('ID')
SOURCE XML xmlupl
RESULT tab = t001[]
BREAK-POINT.
regards,
amit m. -
XML to ABAP internal table with CALL TRANSFORMATION
I can't create a transformation that allow passing next XML file to an internal table:
Please, I need someone could help me, because I don t have XML knowledge
<< Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
Kind regards,
Edited by: Rob Burbank on Jul 21, 2011 4:02 PMHi Gastón Juarez,
sorry, didn't see your post, you should have linked the previous to this one
If we create a ZZZ transformation of type ST, it would be something like this (I didn't test). Note that I concatenated the date and time, because field operations in ST are not possible (we should use XSLT instead, but it's counter performant):
... (here the usual header)
<tt:root name="ABAP_X"/>
<tt:template>
<corailExport xmlns= " http://www.abc.com/corailExport_Transcou201D
xmlns: xsi= " http://www.w3.org/2001/XMLSchema-instanceu201D
xsi: schemaLocation= " http://www.abc.com/corailExport_Transco corailExport_Transco.xsd u201C>
<exportDate><tt:skip></tt:skip></exportDate>
<tt:loop ref=".ABAP_X" name="line">
<transcodification>
<tt:attribute name="applyingDate" value-ref="$line.APPLYING_DATE"></tt:attribute>
<previousCofor><tt:value ref="$line.OLD_COFOR"></tt:value></previousCofor>
<newCofor><tt:value ref="$line.NEW_COFOR"></tt:value></newCofor>
</transcodification>
</tt:loop>
</corailExport>
</tt:template>
The program:
TYPES : BEGIN OF ty_x,
applying_date TYPE string,
old_cofor TYPE lifnr,
new_cofor TYPE lifnr,
END OF ty_x.
DATA l_xml TYPE string.
DATA lt_x TYPE TABLE OF ty_x.
l_xml = 'your xml'.
CALL TRANSFORMATION zzz
SOURCE XML l_xml
RESULT abap_x = lt_x.
BR
Sandra -
Problem with Call Transformation (ABAP to XML)
Hello
I call the tranformation function to serialize. I want to convert a ABAP internal table into XML.One of the column type is of time(t). On transformation, the values are changed.
Ex : If I have a value of 000009 (time format), on calling transformation it gets converted to 00:00:09. I dont want this conversion. I want to have the value as it is. I cant change the column data type from time to string.
Regards
Raghavendrahi
good
try this code
Just look at this piece of code, I think it should help you.
DATA : ITAB TYPE TABLE OF SPFLI,
L_XML TYPE REF TO CL_XML_DOCUMENT.
SELECT * FROM SPFLI INTO TABLE ITAB.
CREATE THE XML OBJECT
CREATE OBJECT L_XML.
CONVERT THE DATA TO XML
CALL METHOD L_XML->CREATE_WITH_DATA( DATAOBJECT = ITAB[] ).
DATA IS CONVERTED TO XML; DISPLAY THE XML-DOCUMENT
CALL METHOD L_XML->DISPLAY.
thanks
mrutyun^
Maybe you are looking for
-
When I plug my phone into the computer nothing happens. The phone doesn't respond the computer doesn't show anything and ITunes doesn't show anything!
-
Port forwarding between two servers from Same subnet
Hi, We have a Cisco ASA 5520 Version 8.4(3). There exists a site to site VPN tunnel between us and a client and the client sends us the data to our local host/server 10.x.x.20 on port 52944. So 10.x.x.20 gets data on port 52944. We want to forward t
-
Reading html files with File class
The methods of the class File does not identify html files. for example the method list() does not return names of html files in a givven directory? does anyone know what is the way to get the html files names and use them for file proccesing? Thanks
-
Avoiding Logical Loop Error while defaulting values
Hi Experts, We have a requirement where lets say Attribute A and Attribute B are displayed on the screen, we need to default value for Attribute B to NA if value of Attribute A is set by the user to "XYZ", else whatever value user enters in Attribute
-
Hai all, I am new to the Dynpro. i have to create 'n' number of drop down at dynamically. The values of 'n' only known at runtime, that is fetch from database. Basically each dropdown must have one node and one attribute. So i ha