tag:blogger.com,1999:blog-2969448813572355764.post396130281465826055..comments2024-03-22T05:09:06.268+00:00Comments on Archived : Passionate about SAP - A Blog: Discovering a Hidden Gem :Generate Simple Transformation for XML in ABAPRamhttp://www.blogger.com/profile/07793995838001318320noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-2969448813572355764.post-48085511013457733492014-01-12T00:02:54.549+00:002014-01-12T00:02:54.549+00:00See this post as an example for generating simple ...See this post as an example for generating simple transformation from a very complex structure : <a href="http://sapblog.rmtiwari.com/2014/01/prototyping-abap-odata-entity-data.html" rel="nofollow">Prototyping an ABAP OData Entity Data Model Generator </a>. <br /><br />You can remove the additional name of the table-type ( that is not required ), by dragging table icon ( just below the table-type-name ) on the table-type-name and then delete the table-type-name node. <br /><br /> - also it should be easy to just remove not-required table-type/structure-names manually from the generated code.Ramhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-4515559386740160672013-09-11T11:11:38.179+01:002013-09-11T11:11:38.179+01:00Hi Ram,
I am working on internal table with deep s...Hi Ram,<br />I am working on internal table with deep strucure to XML requirement. i.e. my XML document i expect repeating elemnts within top element. I created table types but in the the STRANS, i get the line type of table type as an additional element which i don't want.<br />for Ex. if ZTAB is table type with line type as ZLINETYPE having 4 fields as elements, it appears as <br /><br /> <br /> <br /> <br /> .<br /> .<br /> <br /><br /> <br />Where as I wanted ... and so on.<br />How do i get rid of this additonal element of linetype/strucutre ?<br />Am I missing any step ?<br />Appreciate your advice.<br />BR<br />Nilesh Anonymoushttps://www.blogger.com/profile/04737128811356937816noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-56755929209634395562012-08-29T20:41:48.037+01:002012-08-29T20:41:48.037+01:00Hi, i had a simple requeriment for transform a two...Hi, i had a simple requeriment for transform a two field XML into an abap structure. Your blog guided me succesfully trougth absolute obscurity...<br />Really preciated..<br />Ramirohttps://www.blogger.com/profile/01449048253945745502noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-77683759959969374662012-07-24T06:19:01.481+01:002012-07-24T06:19:01.481+01:00Hi
I have a requirement to work with 2 internal ...Hi <br /><br />I have a requirement to work with 2 internal tables, one is header table and second one is item table. Once after processing the header line I need to loop the item table to fill the item details. I have tried with several combinations with , but not able to get the expected results. Kindly help me to loop the item table with header reference.<br /><br />Thanks<br />PraveenPraveenhttps://www.blogger.com/profile/09675639016948249754noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-58642937168163729022012-06-18T20:35:38.397+01:002012-06-18T20:35:38.397+01:00thnks for this explanation. i need to know how we ...thnks for this explanation. i need to know how we can generate a st to have xml file with a header and n items.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-9976369749832685372012-06-05T17:50:51.219+01:002012-06-05T17:50:51.219+01:00Thanks for your blog, really helped. I tried it on...Thanks for your blog, really helped. I tried it on nested table and had to removed the extra attribute reference inserted before loop by the wizard.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-69133907004874762022012-01-06T13:38:52.248+00:002012-01-06T13:38:52.248+00:00Hi there,
I am not able to check SRTUTIL_CONVERT_...Hi there,<br /><br />I am not able to check SRTUTIL_CONVERT_XML_TO_TABLE but if you've the data/structure in ABAP then you can create the XML using iXML lib as well.<br /><br />see a simple example here :<br /><br />for upload and parsing:<br />http://passionateaboutsap.com/rmtiwari/Resources/MySolutions/Dev/UtilityCode.html#7<br /><br />for creating xml :<br />or any iXML related standard function as ref e.g. /ASU/MAP_TAB_TO_XML<br /><br />you can also ask for help on SDN : http://sdn.sap.com for quick answers.<br /><br />Thanks,<br />RamRamhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-3569517540468835712012-01-05T19:06:12.416+00:002012-01-05T19:06:12.416+00:00I have a little tricky requirement. I have many XM...I have a little tricky requirement. I have many XML documents, which I want to merge into 1 XML document with one root that I will define and then download. I found a function module SRTUTIL_CONVERT_XML_TO_TABLE which can convert an XML info to Tag data. I plan to manipulate this tag data and then convert it back to XML. But not able to find how to do that? Any help is appreciated.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-68269568540000587442011-02-22T17:03:42.719+00:002011-02-22T17:03:42.719+00:00Hello Ram,
I am finding your blog on this subject ...Hello Ram,<br />I am finding your blog on this subject very easy to use. However i am getting the following error message when I attempt your technique " System expected element 'MaterialSchema' ". <br />This is a layout sample of the XML we are using for import: <br /><br />000000000131201600, Other adhesives and sealantsSEALANT:ADHES,H2,RUBBER,4000000000244122003,BindersBINDER:WITH LABEL HOLDER,11 X 8-2IN<br /><br />and this is the generated ST stylesheet code of the transformation: <br /><br /><br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /><br /><br />your help is greatly appriciated.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-45494976300343646372010-03-16T05:17:23.725+00:002010-03-16T05:17:23.725+00:00hi,
in the xslt_tool i could not find the magic ...hi,<br /><br />in the xslt_tool i could not find the magic stick. I am getting a dump ST_MATCH_FAIL. I have written ST program similar to the one that you mentioned here. I am getting connected to 'http://209.162.186.60/globalweather.asmx /GetCitiesByCountry?CountryName='<br /><br />how to proceedAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-18315373516924880062009-02-25T17:05:00.000+00:002009-02-25T17:05:00.000+00:00I think class cl_abap_browser is available in ABA...I think class cl_abap_browser is available in ABAP Release 7.1 and not in ABAP 7.0Ramhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-85698224819545016302009-02-25T17:02:00.000+00:002009-02-25T17:02:00.000+00:00you can use function SCOL_TRACE_SHOW_XML to show t...you can use function SCOL_TRACE_SHOW_XML to show the xml on screen as an alternative. Also, displaying the xml on the screen is generally for test purpose only.Ramhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-87949313233279986132009-02-25T16:44:00.000+00:002009-02-25T16:44:00.000+00:00Hello,I am studying a couple of blogs, documentati...Hello,<BR/>I am studying a couple of blogs, documentations in this topic. All the examples mention this cl_abap_browser class, which doesn't exist in our ECC 6.0 system. Please tell us more information about this class. Thank you.<BR/>Best regards,<BR/>Laszlo.Anonymousnoreply@blogger.com