How do I  get Parent Level entreis on ABAP to XML?

I have a program that is doing ABAP to XML.
It is creating the file but some of the entries are not formatted correctly and i do not know how to correct this.
It relates to 1) the Data line is not formatted the way I want; and 2) I do not know how to get rid of the "item" level is is creating (although I do not have "item" anywhere in my code).
I have listed below: 1) the way the file should look;  2) how my output looks (with notes on lines not the way I want them) and 3) my source code.
The file should look like this format:
<?xml version="1.0" encoding="UTF-8" ?>
- <Data xmlns="ServiceNet">
  <BatchDateTime>2009-10-23T17:37:16</BatchDateTime>
- <Sale>
  <StreamNumber>11000000</StreamNumber>
  <UpdateActionCode>001</UpdateActionCode>
  <CancelRequestDate />
  <ClientContractNumber>2000781011</ClientContractNumber>
  <ContractPurchaseDate>20090911</ContractPurchaseDate>
  <ContractQuantity>1</ContractQuantity>
  <ClientDealerID />
  <ClientSkuNumber>9781400599950</ClientSkuNumber>
- <Products>
- <Product>
  <EquipmentPurchaseDate>20090911</EquipmentPurchaseDate>
  <ClientProductCode>9781400599998</ClientProductCode>
  <ClientBrandCode>Barnes&Noble</ClientBrandCode>
  <ModelNo>9781400599998</ModelNo>
  <SerialNo>9102009123456789</SerialNo>
  <EquipmentQuantity>1</EquipmentQuantity>
  <PartsWarrantyExpiration>12</PartsWarrantyExpiration>
  <LaborWarrantyExpiration>12</LaborWarrantyExpiration>
  </Product>
  </Products>
  </Sale>
  </Data>
Here is my code:
Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code. Don't try to circumvent this by posting multiple posts in one thread.
Thanks.
Scott
Edited by: Rob Burbank on Nov 12, 2009 10:48 AM

iTunes prefs -> Playback.
Tick Enable Soundcheck.
On the iPod, settings -> Soundcheck - On.
Sync the iPod.

Similar Messages

  • How can i get access code to create ABAP Program ?

    hi guys ,
    How can i get access code for creating ABAP Program in my System.
    I am using SAP IDES 4.6 Version
    Please Help me out .
    Regards
    Raghu

    Hi Raghu,
    - license your system (http://service.sap.com/licensekey)
    - create a developer key (http://service.sap.com/sscr)
    - create a key for your ABAP program (httP://service.sap.com/sscr)
    Markus

  • How do I get Item Level text from PO ME21N Prior To Saving The PO?

    I saw this asked a few times but no solution so I will ask again.
    Imagine that you are creating a PO in ME21N. You have some Header Level Text and then imagine you have 2 items in this PO. Each of these two items has Item Level Text.
    Once a PO is saved, I know how to use Read_Text to get the texts for the header and items. You simply pass which text you want (ex. F01) the PO number and the language and it returns the texts for the header. For item level you combine PO number and Item number you want in the Name parameter of Read Text (example 112233445500010) then tell it which text you want (ex F01) and that is how it knows which item you want the text for.
    However: When the user is first creating the PO, they want to see how it will look in printing but prior to actually saving the PO. They dont want to save the PO until they know how it will print with Print Preview.
    I was very surprised that the print preview actually worked for the Header Texts prior to saving. I debugged Read_Text and see that when it sees no PO number passed, it simply supplies the text (F01) and the language and pulls it out of an FM READ_CATALOG which I am assuming is memory. In theory, you will only have one F01 text at the header level and it makes sense to me that it is able to retrieve that.
    BUT: My Item Level Texts are not returning anything. It makes sense to me as well because you cannot simply tell it give me the F01 texts you see because if you have multiple items, you will have multiple F01 texts, one for each item number if you put text to each item.
    How can I get the item level texts out before saving the PO? Since the PO is not saved yet, there is no PO number and nothing is stored in STXH and STXL. Where are the texts stored and how can I retrieve them? I tried passing just the item number but as expected it still returned nothing.
    Any ideas?

    Ok I figured it out. I will add this for anyone else that may have this issue.
    The short version is that just like header level texts, item level texts that have not yet been officially saved to the PO are stored in a catalog. If you were to debug READ_TEXT you will see that it will look in the catalog to see if there is an entry there for the corresponding texts (ex F01, F02 etc).
    For header texts, you simply pass the language and which text you want without the PO number and it will return header texts.
    Item level however you have to specify which line item you want plus which text and then the language.
    During debugging if you debug Read_text and go to the FM READ_CATALOG you will see the following:
    READ TABLE CATALOG WITH KEY CATALOG_KEY.
    Load the table Catalog into the debugger and see how it stores them.
    In one solution I read on this forum it said to use 10 zeros and then your item number.
    Mine was stored with 10 spaces, not zeros. Loaded 10 spaces plus the item number and it returned my text with READ_TEXT.
    Hope this helps someone else one day!!

  • Problem with Jtree to xml tranform..how to set/get parent of a node?

    Hi,
    I am trying to develop xml import/export module.In import wizard, I am parsing the xml file and the display it in Jtree view using xml tree model which implements TreeModel and xml tree node.I am using jaxp api..
    It is workin fine.
    I got stuck with removal of selected node and save it as a new xml.
    I am not able to get parent node of selected node in remove process,itz throwing null.I think i missed to define parent when i load treemodel.Plz help me out..give some ideas to do it..
    thanks
    -bala
    Edited by: r_bala on May 9, 2008 4:44 AM

    there's no way anyone can help you without seeing your code.

  • ERPI: how to load only parent level metadata to Planning from EBS

    Hi, experts.
    Can we load only parent level metadata of EBS R12 to Planning using ERPI 11.1.2.2 ?
    And can we make selections on which members to load its metadata to Planning ?
    Thanks a lot.
    Eddy

    Hi,
         I m going with forecast in Step 5. But have to cross a pair of radio button in Step 3 as 'All Items' or 'Selected Items'.
         I m explaining my requirement again. I ll use the 'All Items' radio button and in the last step the recommendations are displayed for the expected child items along with the materials which are not in that specific BOM but has the demand.
         Though the other materials may have demand, it is not to be displayed in my order recommendation because I have not created the forecast for that items which I used in my MRP WIzard.
    Hope you got my problem.
    Thanks
    Karthik

  • How can I get the Attribute Value in the existing XML Elements-Reg.

    Dear All,<br /><br />  I have the InDesign Document with xml Based, now I want to get the XML Elements name and XML Attributes for each Elements, using SDK Concepts. <br /><br />Example:<br /><br /> <chapter>  chapter1 </chapter> id = "ch001"<br /> <sec> Section ....</sec> id ="se001"<br /> <para> para ....</para> id="pa001"<br /><br />How can I get the XMLElements & XML Attributes in the InDesign-XML Structure.<br /><br />Please  any one can suggest me....<br /><br />Thanks & Regards<br />T.R.Harihara SudhaN

    Dear Dirk
    Many Thanks for the Suggestions, Now I search and study the XML concepts. Meanwhile, I need your suggestions for further Development in SDK -XML concepts.
    I am using the SnippetRunner -SDK file, their given some XML based programmes. [Create XML Elements, Elements + Attributes, XML Comments] and etc...
    Hope U will help me to Develop the SDK- XML Concepts.
    Thanks & Regards
    T.R.Harihara SuduhaN

  • How can I get the context-parm from a web.xml file using struts?

    Hello:
    I need get the context-param from the web.xml file of my web project using struts. I want configurate the jdbc datasource connection pooling here. For example:
    <context-param>
    <param-name>datasource</param-name>
    <param-value>jdbc/formacion</param-value>
    <description>Jdbc datasource</description>
    </context-param>
    and then from any Action class get this parameter.
    Similar using a simple server can be:
    /** Initiates new XServlet */
    public void init(ServletConfig config) throws ServletException {
              for (Enumeration e = config.getInitParameterNames(); e.hasMoreElements();) {
                   System.out.println(e.nextElement());
              super.init(config);
              String str = config.getInitParameter("datasource");
              System.out.println(str);
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
              // res.setContentType( );
              System.out.println("Got post request in XServlet");
              PrintWriter out = res.getWriter();
              out.println("nada");
              out.flush();
              out.close();
    but only this works for init-params, if I use
    <servlet>
         <servlet-name>MyServlet</servlet-name>
         <display-name>MyServlet</display-name>
         <servlet-class>myExamples.servlet.MyServlet</servlet-class>
         <init-param>
         <param-name>datasource</param-name>
         <param-value>jdbc/formacion</param-value>
    </init-param>
    </servlet>
    inside my web.xml. I need something similar, but using struts inside the action class for that I can get the context-params and call my database.
    Thank you

    To get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
    ServletContext context = getServlet().getServletContext();
    String tempContextVar =
    context.getInitParameter("<your context param >");

  • HOW DO I GET ALL LEVEL 0 MEMBER AND ITS PARENT IN A REPORT SCRIPT

    I want to create a report script that generate a list of all level 0 members and its parent for a particular dimension. I created the following report script that generate a list of level 0 members.
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    //The purpose of this script is to list
    //the Lvl0 descendants of the Account dimension
    { DECIMAL 2
    WIDTH 31 0
    SUPBRACKET
    SUPCOMMA
    SUPHEADING
    NOINDENTGEN
    SUPFEED
    ROWREPEAT }
    <SUPSHARE
    <ROW (Account)
    Lev0,Account
    !

    Hi Kris,
    I want to produce a report like this for all level 0 member
    For example --> database name; parent member; child member
    if it is not possible, can I produce a report for members at various level but with the level idenntifier.
    For example --> Account
    Level 3 100
    Level 2 100-10
    Level 1 100-10-20
    Level 0 100-10-20-1
    Level 0 100-10-20-2
    actual report row --> Level 1 100-10; 100-10-20
    Level 0 100-10-20; 100-10-20-1
    Level 0 100-10-20; 100-10-20-2

  • How can I get low level access to netstream using OSMF?

    Hi
    I'm trying to gain access to the low level netstream underneath the hood of OSMF so that I can access its netstream.info property for reading metrics.
    I find that I am able to do this for MP4 videos but not for F4M dynamic streaming videos.
    For MP4, I was successfully able to create a VideoElement that used a CustomNetLoader class which overrided the createNetStream method to return a netstream object.
    However, for F4M, I have to use either the MediaFactory.createMediaElement(element) method or the F4MElement. The F4MElement does not allow a CustomNetLoader to be used and it seems to only accept a F4MLoader class.
    Any advice on how I can access either the netstream object or the metrics of F4M videos?
    Thanks

    ok, I finally got access to the direct netstream object - someone from Akamai gave me the answer.
    Seeing how I wasn't able to find this answer anywhere on Google, I'm going to post the solution here as there's no way I would have known this solution without someone who knew how to get direct access to the netsteam object in OSMF.
    There's a hidden class that won't show up in the code hint called org.osmf.net.NetStreamLoadTrait that you have to import.
    1) First, your media player playing controlling your MediaElement has to listen for a LoadEvent.LOAD_STATE_CHANGE event after you load the MediaElement into the media player
    mediaPlayer.addEventListener(LoadEvent.LOAD_STATE_CHANGE, onLoadStateChange);
    2) Upon LoadEvent.LOAD_STATE_CHANGE, check for a org.osmf.traits.LoadState.READY - you can only access the NetStream object when it is LoadState.READY or the netstream object will return as null.
    private function onLoadStateChange(e:LoadEvent)
                                  if(e.loadState == LoadState.READY)
    3) Once the LoadState.READY is true, you can create a datatype of NetStreamLoadTrait and type cast it from a Load trait:
    private function onLoadStateChange(e:LoadEvent)
      if(e.loadState == LoadState.READY)
         var nsLoadTrait:NetStreamLoadTrait = mediaPlayer.media.getTrait(MediaTraitType.LOAD) as NetStreamLoadTrait;
    4) Once you successfully type cast the Media Load Trait from your media into NetStreamLoadTrait, you can access the property netstream from the NetStreamLoadTrait object.
    private function onLoadStateChange(e:LoadEvent)
      if(e.loadState == LoadState.READY)
         var nsLoadTrait:NetStreamLoadTrait = mediaPlayer.media.getTrait(MediaTraitType.LOAD) as NetStreamLoadTrait;
         var ns:NetStream = nsLoadTrait.netStream;
    Hope this helps someone out there.

  • Had iPad stolen how do I get my level 29 smurf game back?

    I had my iPad stolen. on it my smurf game was up to level 29. My children and I play it together and love it? I have also spent a fair amount on
    Items from the store. I have a new iPad now but don't know how to get back my level 29. I really don't want to have to start from level 1 again.
    When I set up this iPad to my MacBook Pro I set it up as a new iPad and did not do the old restore? Would doing this help?
    Thanks for any help.

    ... When I set up this iPad to my MacBook Pro I set it up as a new iPad and did not do the old restore? Would doing this help?
    Yes. Restore it from the most recent backup prior to having it stolen.
    Connect your iPad, open iTunes, and select your iPad under "Devices".
    Control - click and select "Restore from Backup…"
    Choose the most recent backup, hopefully one you created after Level 29.

  • How do i get same level of game on both iphone and ipad

    How do I sync both iphone and ipad2 to have the same level on a game I am playing?

    Click here and follow the instructions.
    (103756)

  • How can I get up levels in the support communities quicker?

    Just started today.

    Welcome Petercsauer!
    Among all the Terms of Use conditions the following is probably the most beneficial for actually helping people solve problems:
    Test your answer. When possible, make sure your Submission works on your own computer before you post it.
    Bear in mind its other conditions, particularly
    Interference with the Site
    Apple may provide a system whereby users acquire points for various activities.
    Do not 'game' the system. You agree to not create multiple IDs or otherwise manipulate the points system.
    Do not ask for points. If you feel the system is not clear to users, please provide feedback to Apple; do not instruct other users unless they ask.
    Only about 10% of people seem to care or know enough to avoid points anyway. Many thoughtful and comprehensive solutions don't even elicit a response, which often happens if all someone wants to do is fix a problem.

  • How can I get an Infoprovider list via the BI XML/A SOAP interface?

    I have a followup question for this as well. Currently with xMII we are using the XML/A SOAP interface to query against remote enabled queries in BI. Is it possible through this interface to request a list of InfoProviders? I know that through MDXTEST in SAP GUI there is a list of providers there but is that available through the XMLA interface?  The BAPI that I found that will do this is BAPI_MDPROVIDER_GET_CUBES with the CAT_NAME value set to $INFOCUBE.  This name/description value set is what I am looking for.

    Sorry about that. I had the link ready to paste but neglected to do so: http://acrobatusers.com/tutorials/getting-external-data-into-acrobat-x-javascript
    The idea is that you can read in data from an external or attached file, but it will need to be a different format such as XML, tab-delimited text, or CSV, which can all be exported from a spreadsheet.

  • How can I get the Windows User using ABAP ?

    I need to get thru ABAP the Windows user.

    Hi Carlos,
    You can use the following FM to read the currently logged in windows user id:
    DATA: w_userid TYPE char20.
    CALL FUNCTION 'GUI_GET_DESKTOP_INFO'
         EXPORTING
              type   = '5'
         CHANGING
              return = w_userid.
    WRITE: 'Windows User ID:', w_userid.
    Hope this is what you need.
    Sumant.

  • How do I get the flash site to load an XML without security

    I made a music mp3 player but now the XML wont load and the
    music player says undefined. I changed security settings in Adobe
    Flash Player. But I dont want to have everybody who views it have
    to change settings. Is there some type of ActionScript code that
    will allow the XML to load without security problems. I have the
    XML on the same server folder as the .SWF file. The site url is :
    www.eternityfocus.com/test_flash.html

    you should use a crossdomain.xml policy file.

Maybe you are looking for