tag:blogger.com,1999:blog-2969448813572355764.comments2023-12-07T16:22:19.851+00:00Archived : Passionate about SAP - A BlogRamhttp://www.blogger.com/profile/07793995838001318320noreply@blogger.comBlogger151125tag:blogger.com,1999:blog-2969448813572355764.post-34763829070627792702017-09-27T13:52:08.966+01:002017-09-27T13:52:08.966+01:00First link needs authentification user/pw (for wha...First link needs authentification user/pw (for what?)<br />Second link is broken (as so often with sap.com)Clemenshttps://www.blogger.com/profile/14282458898188590486noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-49787735528062308372017-09-20T21:51:58.386+01:002017-09-20T21:51:58.386+01:00Hello Ram,
Thanks for these helpful blog for simp...Hello Ram,<br /><br />Thanks for these helpful blog for simple transformations. because of this i am able to generate xml file successfully. But i am having problem and i am unable to find solution.<br />Let's say i am having deep structure created in SE11 (and that is also being used in call transformation) having one field 'Header' - deep structure and second field is 'Info' type table .<br /><br />Now if my xml is generated for multiple line items records in 'Info' table then all line items are showing under one main 'Info' node .<br /><br />i want to generate 'Info' node for my each line item.<br /><br />Do you have any idea how we can achieve this using simple transformation ?<br /><br />ThanksShttps://www.blogger.com/profile/05028901061847951075noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-79583126752996748262016-08-26T10:20:38.263+01:002016-08-26T10:20:38.263+01:00Hi,
I am trying to generate a ST for converting X...Hi,<br /><br />I am trying to generate a ST for converting XML data into ABAP. For simple data, we are able to create the ST and use it for XML to ABAP and vice versa. But in case the XML has 1000 tags and we need just 300 tags out of it, is it possible to create an ST for this transformation. <br />Currently when we try to create an ST for a smaller XML and if we miss out any fields in it, the transformation gives an error during processing with the message expecting 'xxxxx' field. <br />Is there a way to avoid having to create a complex hierarchical ABAP Structure with 1000 fields when we need only 300 fields out of the xml?VKhttps://www.blogger.com/profile/01315511632734484461noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-79434574974892778132016-07-25T14:41:09.633+01:002016-07-25T14:41:09.633+01:00Thanks, it's really helpful!
But now I have so...Thanks, it's really helpful!<br />But now I have some problem.<br />I need to have comma "," instead of dot "." in numerical values in my output XML file.<br />I don't want to replace it in result XML, I prefer to do it in XSL transformation.<br />So I changed ABAP data type for generated proxy elements from DEC 18.2 to STRING and I'm filling my "numbers" with "123,45" string.<br />But now CALL TRANSFORMATION results in error message: "An error occurred during serialization in the simple transformation program /1SAI/SAS29EB1DE03BB3874AA2B2".<br />Anyone knows what is the solution to this problem?Anonymoushttps://www.blogger.com/profile/09599024819279813444noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-68943393585337561872015-07-28T17:46:12.449+01:002015-07-28T17:46:12.449+01:00FQDN setup can be bypassed by adding period behind...FQDN setup can be bypassed by adding period behind the server name. Nice post!!!World Peacehttps://www.blogger.com/profile/03506113709306204677noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-16339654393876941952015-07-06T16:29:41.853+01:002015-07-06T16:29:41.853+01:00..glad to see you are adapting for new use-cases a.....glad to see you are adapting for new use-cases and extending it further :)<br /><br />Cheers,<br />Ram Ramhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-16482235467468210822015-07-06T15:48:26.069+01:002015-07-06T15:48:26.069+01:00I was reviewing a recent post of mine in SCN and j...I was reviewing a recent post of mine in SCN and just found out that the SAP Note Enhancer extension was not the first time I referenced your work:<br />http://scn.sap.com/community/abap/blog/2015/05/26/xml-schema-xsd-validation-in-abap-with-limitationsGuihttps://www.blogger.com/profile/08586079216767569508noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-66989365323027130742015-06-27T12:25:08.700+01:002015-06-27T12:25:08.700+01:00wow that's nice!
..don't have access to OS...wow that's nice!<br />..don't have access to OSS but will check when possible.<br /><br />Cheers,<br />Ram Ramhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-20217987522980388142015-06-27T11:31:39.180+01:002015-06-27T11:31:39.180+01:00As promised:
https://chrome.google.com/webstore/de...As promised:<br />https://chrome.google.com/webstore/detail/sap-note-enhancer/keibkcomemkcceddcddjdlncidohgedk<br />https://github.com/dellagustin/SAP_Note_Enhancer<br /><br />Thanks, it was possible because of your highlighter.<br />Guihttps://www.blogger.com/profile/08586079216767569508noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-32985609072403253132015-06-24T15:29:30.351+01:002015-06-24T15:29:30.351+01:00Thanks! I have some plans for it.Thanks! I have some plans for it.Guihttps://www.blogger.com/profile/08586079216767569508noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-60213385648799306972015-06-24T14:05:38.837+01:002015-06-24T14:05:38.837+01:00Hi Guilherme,
The source code is open source and ...Hi Guilherme,<br /><br />The source code is open source and is available on https://github.com/rmtiwari/ABAPSyntaxHighlighter<br /><br />Thanks,<br />RamRamhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-4075704479143565302015-06-24T12:56:51.191+01:002015-06-24T12:56:51.191+01:00Hello, Can you please check the link for the prism...Hello, Can you please check the link for the prismABAP.js file? it is currently not working.<br /><br />Best Regards,<br />Guilherme.Guihttps://www.blogger.com/profile/08586079216767569508noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-90015583801392329882014-05-07T09:07:38.315+01:002014-05-07T09:07:38.315+01:00Thanks Jun for your comment...so unless a language...Thanks Jun for your comment...so unless a language was born Functional, there is no other way to apply functional *thinking* with it?Ramhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-29691646337450603242014-05-07T08:13:26.555+01:002014-05-07T08:13:26.555+01:00ABAP is a born imperative language, and added with...ABAP is a born imperative language, and added with some object - oriented features. So I think there's no way to take benefit of functional programming thinking in ABAP at all.Anonymoushttps://www.blogger.com/profile/12097403270697369486noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-61244100433305785542014-03-21T11:41:44.240+00:002014-03-21T11:41:44.240+00:00Thanks! It works smooth.Thanks! It works smooth.jack knighthttps://www.blogger.com/profile/14341668931140347103noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-81712122020951318422014-03-20T18:44:45.592+00:002014-03-20T18:44:45.592+00:00..basically you need to export the XML file rather.....basically you need to export the XML file rather than show it on screen - please check other blogs on the topic <a href="http://sapblog.rmtiwari.com/search/label/XML" rel="nofollow"> http://sapblog.rmtiwari.com/search/label/XML </a> and you'll find several methods to export the XML as file on your local workstation . e.g. <br /> cl_proxy_service=> download_payload(<br /> file_x = gv_file_name<br /> payload = gv_xml_xstring<br /> ).<br /><br />However, if you want to export as a file on SAP application server then you may need to use OPEN DATASET to transfer the content in a file on app server.<br /><br />Thanks,<br />RamRamhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-80414931892999298092014-03-20T17:33:15.876+00:002014-03-20T17:33:15.876+00:00Hi, I've found your post very useful for my pu...Hi, I've found your post very useful for my purposes, but I need to save the generated XML and the save button apears to be inactive. How can I save the data?<br /><br />Thanks!jack knighthttps://www.blogger.com/profile/14341668931140347103noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-84101357967766608472014-03-07T09:16:48.951+00:002014-03-07T09:16:48.951+00:00Thanks for your comment Guillaume.
NW Gateway cl...Thanks for your comment Guillaume. <br /><br />NW Gateway class/methods or not really necessary for the purpose - I just used it in the prototype to convert the data-types to OData types - but that can be done without /iwbep/if_mgw_med_odata_types.<br /><br />Custom transformation/related structures (ZRAM*) are required and details are given in : <a href="http://sapblog.rmtiwari.com/2014/01/prototyping-abap-odata-entity-data.html" rel="nofollow">Prototyping an ABAP OData Entity Data Model Generator : Simple Transformation </a> <br /><br />Also, I am working on SAP integrated version of : <a href="http://pragmatiqa.com/EDMXGraph/" rel="nofollow"> XOData : Online OData Visualizer and Explorer </a> . I guess you are looking for a SAP table explorer? - which is also part of SAP Integrated XOData : <a href="https://twitter.com/rmtiwari/status/438599048887402496" rel="nofollow"> see a screenshot from my twitter update </a><br /><br />I'll be providing some further details later on this Blog. <br /><br />About open source/licensing, I'm still in development phase and have not really thought about it yet. But as soon as I've SAP integrated version packaged and ready for sharing, I will let you know on twitter/this blog.<br /><br />Thanks,<br />RamRamhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-77937545405844439702014-03-07T08:41:09.993+00:002014-03-07T08:41:09.993+00:00Hi,
This is really interesting!
I tried to run yo...Hi,<br /><br />This is really interesting!<br />I tried to run your program but stumbled into issues with few elements missing:<br /> - class /iwbep/if_mgw_med_odata_types is missing in my system (NW 7.01), it this a must-have since I only want to model SAP tables?<br /> - DDIC : zram_edmx_namespace, zram_edmx_csdl_schema, zram_edmx_property_t, ...<br /> - transformation z_ram_edmx_generate_st (which looks like the cornerstone to me)<br /><br />Do you plan to make it opensource or not?<br />Thanks in advance for your answer.<br /><br />Best regards,<br />GuillaumeGuillaume Garciahttps://www.blogger.com/profile/11750980151859672293noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-53728596863161618232014-02-26T14:22:57.528+00:002014-02-26T14:22:57.528+00:00XML code did not come through in the comment so n...XML code did not come through in the comment so not really sure but ..as mentioned in my previous comment :<br />-------------------<br />See this post as an example for generating simple transformation for a 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> . Basically you'll need to create the ABAP deep-structure as per the XML hierarchy that you want to generate.<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. 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-47940006782531008602014-02-26T14:05:22.994+00:002014-02-26T14:05:22.994+00:00Hello,
Thanks for this blog; very useful and hand...Hello,<br /><br />Thanks for this blog; very useful and handy<br /><br />I need to produce an XML for a vendor that has many invoices with many items. The xml should be like this:<br /><br /><br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /><br />How should I proceed. I have been able to get the following. I am unable to group the items under the same invoice. Thanks for your helps.<br /><br />- <br />- <br /> 10001 <br />- <br /> 001 <br /> 000010 <br /> <br /> <br /> <br />- <br />- <br /> 10001 <br />- <br /> 001 <br /> 000020 <br /> <br /> <br /> Anonymoushttps://www.blogger.com/profile/11085372088395674895noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-26936534193133635002014-02-06T14:45:22.455+00:002014-02-06T14:45:22.455+00:00....I guess you need a target namespace in your sc.......I guess you need a target namespace in your schema . Regarding content of AccessRequest.xsd - it's already their in the post : look for XML code having targetNamespace="http://www.example.com/XMLSchema highlighted in Red.<br /><br />Just to clarify that this is an experimental way for parsing XML and I've not done much exploration any further on this. So please see if it provides you the desired results...otherwise you can go for creating simple transformation program using graphical editor as explained in <a href="http://sapblog.rmtiwari.com/2009/04/generate-simple-transformation-for-xml.html" rel="nofollow"> Generate Simple Transformation for XML in ABAP - Part II </a> and other related posts.<br /><br />Thanks,<br />RamRamhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.comtag:blogger.com,1999:blog-2969448813572355764.post-14705035568476226292014-02-06T14:29:34.983+00:002014-02-06T14:29:34.983+00:00Hello.
Thank you for your detailed instructions!
B...Hello.<br />Thank you for your detailed instructions!<br />But I tried to follow them and get the error during Service Consumer creation:<br />"Incorrect value: Schema w/o target namespace must not contain any subelements, except xsd:import/xsd:include/xsd:annotation"<br /><br />Can you publish content of AccessRequest.xsd file?Anonymoushttps://www.blogger.com/profile/13779401522327999821noreply@blogger.comtag: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-14591892710749505842014-01-11T23:45:16.737+00:002014-01-11T23:45:16.737+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>Ramhttps://www.blogger.com/profile/07793995838001318320noreply@blogger.com