Data structure with double mapping?

I'm creating a simple class which is required to hold a hardware store's inventory. The inventory needs to hold the product name, the quantity on hand and the unit price. I realise I could created two HashMaps (or similar), with the product name as the key of each (can assume the product name is unique) a la a relational database, but is there a way to have all three connected in a single structure?
Thanks in advance for any help.

The way is to use OOP (Object Oriented Programming)
I would write a Product class with the name, quantity and price as its attributes + getters and setters to access those attributes.
With this, you can use the product name as the key (if its unique) and your Product objects as the value. So you can retrieve the Product object ysingt he product name
Product product = map.get("blah")
and from the product object you can get the quantity and price
double price = product.getPrice();
Hope this helps
Deepak@ 1your.com

Similar Messages

  • Data Lookup with XI mapping.

    Hi,
    I am trying to write a user define function to do a data
    lookup by calling an RFC function. I am trying this out as per the document available in SDN namely "How to Perform SAP Data Lookups Within XI Mappings". The user defined function does not compile and give me the following error. Can someone help me out with this problem.
    Compilation error
    D:/usr/sap/X3A/DVEBMGS31/j2ee/cluster/server0/./temp/classpath_resolver/Map370955f0cc2311d8959a00d0b77fc64c/source/com/sap/xi/tf/_gwMsgRFC_msg_.java:3: package com.sap.mw.jco does not exist
    import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.;import com.sap.mw.jco.;
                                                                                    ^
    D:/usr/sap/X3A/DVEBMGS31/j2ee/cluster/server0/./temp/classpath_resolver/Map370955f0cc2311d8959a00d0b77fc64c/source/com/sap/xi/tf/_gwMsgRFC_msg_.java:30: package JCO does not exist
    Regards
    Jayanthan

    Hallo Jayanthan,
    I guess you have XI3.0;
    please check OSS note # 753294:
    Symptom                                                                               
    A message mapping contains a user-defined function that uses a class                      
    from the "com.sap.mw.jco", "sapxmltoolkit" or "com.sap.tc.Logging"                        
    library. An error stating that the source code contains syntax errors                     
    occurs when you test or activate the message mapping. When you use a                      
    class from "com.sap.mw.jco", the system reports, for example, "package                    
    com.sap.mw.jco does not exist".                                                           
    This error only occurs in systems containing a Support Package lower                      
    than 5.                                                                               
    Other terms                                                                               
    Mapping, JCO, logging, XML tools, compilation                                             
    Reason and Prerequisites                                                                  
    You must specify the libraries in the class path of the compiler.                         
    Solution                                                                               
    Import Support Package 5 or higher.                                                       
    You can use the following workaround as a short-term solution: Upload                     
    the library that is referenced in the message mapping into the software                   
    component of the message mapping as an "imported archive". Do not                         
    activate the "imported archive" with the library since it is not needed                   
    for the runtime. The only purpose of the archive is to allow the message                  
    mapping to be compiled. To avoid version conflicts with newer libraries,                  
    you should delete the archive again after you import Support Package 5                    
    or higher.                                                                               
    In your case this does mean you have to import the jar jrfc.jar which you find in the path
    [j2ee engine instalation directory]\cluster\server0\bin\ext\com.sap.mw.jco.
    Regards Franz

  • Data sync with Ovi maps

    Having had to reset my N97 mini I no longer have the map sync profile for data connection. Does anyone know of a download link or could list the settings?
    Thanks in anticipation

    Did you try reinstalling Ovi Maps to get the profile back?
    Settings are as follows
    Sync profile name: Maps
    Server version: 1.1
    Data Bearer: Internet (this is the setting on mine)
    Network connection: my wlan
    Host address: https://mobile.syncshare.ovi.com/sync
    Port: 443
    User name: _token_g4XWMbqmDFHGr8nxk8EAoTN9TTQeNWKGVaVSREjFaQ6nGgOQ
    Password:
    Allow sync requests: Ask first
    Network user name: none
    Password:
    Sybchronisation type: both ways
    All other settings are blank.

  • Data structure to hold frequencies or counts

    i need to know if there is a data structure with a supporting algorithm that can query counts. for example, if i have two variables, eye color and hair color, where the values of eye color are brown, blue, green, hazel, and the values of hair color are black and blonde, i'd like to set the frequencies for the combination of these values and also be able to query very quickly the frequencies for the combination i.e. how many people had brown eyes and black hair?
    what i need could be accomplished easily using a database i.e. select count(*) as total from tbl where eye_color='brown' and hair_color='black'. however, i have tried using various databases (i.e. oracle, ms sql server, mysql), and the performance is poor when the number of variables or rows grow. also, a database approach introduces various complexities (i.e. trying to code database vendor agnostic coding, learning how to index the fields to optimize reads, figuring out field types or efficient storage, etc...).
    any help is appreciated. thanks.

    You should check apache-commons' MultiKey and MultiKeyMap:
    http://commons.apache.org/collections/api-release/org/apache/commons/collections/map/MultiKeyMap.html
    Also adding an index to a database column is quite straightforward, there are many optimization tips available, e.g.:
    http://www.databasejournal.com/features/mssql/article.php/1443581
    http://www.databasejournal.com/features/mysql/article.php/10897_1382791_1

  • Export userdata along with user mapping

    Hi,
        Can any body explain how to export user data along with user mapping.
    Thanks in advance.
    Regards,
    Ashok.

    hi,
        Any input  or suggestion of the above request.
        My request is,i want to export user data along with  user mapping and i am using EP 6.0.
        can any body give the details of  exporting data with user mapping.
        Thanks in Advance.
    Regards,
    Ravi.M

  • New Data Connection with incoming XSLT.  Should DataView show the structure?

    When I Create New Data Connection with an XML file and an incoming XSLT transformation, the Data View doesn't show the resulting structure..just the original XML file structure. This makes it hard to bind xml elements in the transformation to a PDF form. It the XSLT only applied at "runtime"? If so, how to map elements? Thanks.

    I would suggest to create a receive data connection(secondary) to get data from your checklist
    Use this data connection to connect to your checklist and get all the fields that are required.
    Create a button in your form and add rules to assign and submit data to the list, after user clicks the button
    Add a rule to set values to source list with fields from Receive Data connection
    Submit the data to the list
    Close the form
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/
    Yes!  This is fantastic, I'll try this.  Quick question, would it be possible to send the data to a different list rather than the source?  
    My reasoning is this:  The secondary data connection list is intended to be sort of a blank slate, where the actual project requirements are listed and can be modified or edited as needed.  I'd like to keep that as the constant starting point.
     So could I possibly have the form submit the actual data to a separate list to maintain that?

  • LightScribe SuperMulti DVD±R/RW with Double Layer Support is no longer able to read all lightscribe discs(Blank or Containing Data)

    Hi,
    The product Name of my computer is: HP Pavilion dv6-6093ex Entertainment
    Notebook PC support
    The number of my computer is : LM610EA#A2N.
    Could anyone please at this splendid forum take some of their precious time
    out to really reply my questions and solve my problems?
    FIRST OF ALL:
    My HP Pavilion Laptop is about 3 years old.
    My
    sister's Dell Inspiron laptop is 3 years old.
    My HP laptop is well-cared, as opposed to my sister's Inspiron Dell laptop, which is always thrown in dust without caring at all. Also, its battery is always inserted even when it is fully charged while the laptop is plugged in to the main power supply. 
    However, my laptop is either used on only battery, or on plugin. Also, it is kept from the dust. But, I really found that the battery of the Dell laptop still lasts about three and half hours, and there is no problem cooling fan is not properly properly.
    I only remember one thing differently done on my laptop battery which is I charged it fully, then I stored it without using it for about four months, then when I reused it, I found it got worse over time. I.e. first time of using it after storing,I found
    it empty, then I charged it again fully, however, then it lasted about 2 hours, then 1 and half hours, next an hour, now it is only lasting about 20 minutes without performance. If there is high performance, then
    the computer shuts down suddenly.
    My problem is follows:::
    First: Whenever I inserted any Containing Data OR  Data CD/DVD-RLightScribe discs, I found that HP optical driver was
    unable to read them. When clicking on the optical disc drive 'double-click' while disc was inserted, then I found that disc opened as this way(NOTE: With a CD/DVD player is grayed out)
    I  was told 'I suspect the culprit might be hardware and lightscribe dive might be
    corrupt. Please sent it to service center to check. In addition, this thread could be as a reference:
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-hardware/media-in-cddvd-drive-is-not-readable/794fe26a-7e47-45c4-a50b-0af2ed53f75b'
    Since no one replied to me at HP forums, although my HP laptop is one of their products, I had to post my problem here to know if my driver is corrupted and needs to be replaced or not.
    Blank Or Used(containg data) CD/ DVD ±R/RW lightscirbe is unable to be read by optical drive
    When clicking on drive 'duble-click', I found it opens  like a USB FlashDrive or With a CD,DVD player, however,
    : Bare in mind that 'with CD/DVD Player'
    is grayed out)
    Not Blank(containing data) CD/ DVD ±R/RW NON -Lightscirbe disc opens normal:
    Blank CD/ DVD ±R/RW NON-lightscirbe opens normal(Opens like
    a USB FlashDrive or With a CD,DVD)::
    My LightScribe System Software version is:
    I've tried installed the latest version of lightscribe software, then I run
    the diagnostic utility, however, the problem still persists.
    My HP CD/DVD DVDآ±R/RW specs are::
    Optical Drives
    hp CDDVDW TS-L633R
    Media Type DVD Writer
    Name hp
    CDDVDW TS-L633R
    Availability Running/Full Power
    Capabilities Random
    Access, Supports Writing, Supports Removable Media
    Read capabilities CD-R,
    CD-RW, CD-ROM, DVD-RAM, DVD-ROM, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD-R DL, DVD-RW
    DL, DVD+R DL
    Write capabilities CD-R, CD-RW, DVD-RAM, DVD-R, DVD-RW, DVD+R,
    DVD+RW, DVD-R DL, DVD+R DL
    Config Manager Error Code Device is working
    properly
    Config Manager User Config FALSE
    Drive E:
    Media Loaded
    FALSE
    SCSI Bus 0
    SCSI Logical Unit 0
    SCSI Port 0
    SCSI Target Id
    1
    Status OK
    Trying to solve the problem,
    I have done these steps in order::
    I tried checking with dignostic ulitiy:
    I have tried Advanced View , this is the file of output data ofdignostic utlity
    LightScribe System Software Settings:
    SOFTWARE\LightScribe\MessageDir C:\Program Files (x86)\Common Files\LightScribe\
    SOFTWARE\LightScribe\LSPrintDialog C:\Program Files (x86)\Common Files\LightScribe\LSPrintDialog.exe
    SOFTWARE\LightScribe\LSPrintingDialog C:\Program Files (x86)\Common Files\LightScribe\LSPrintingDialog.exe
    SOFTWARE\LightScribe\LsPrintLauncher C:\Program Files (x86)\Common Files\LightScribe\LSPrintLauncher.dll
    SOFTWARE\LightScribe\ResourceDir C:\Program Files (x86)\Common Files\LightScribe\res
    SOFTWARE\LightScribe\LSPrintAPI C:\Program Files (x86)\Common Files\LightScribe\LSPrintAPI.dll
    SOFTWARE\LightScribe\Update\UpdateShellCommand http://www.lightscribe.com/go/downloads/windows
    SOFTWARE\LightScribe\Update\PreviousVersion 1.18.20.1
    SOFTWARE\LightScribe\Update\CurrentVersion 1.18.27.10
    SOFTWARE\LightScribe\Update\TrailingVersion
    SYSTEM\CurrentControlSet\Services\LightScribeService\Type 16
    SYSTEM\CurrentControlSet\Services\LightScribeService\Start 2
    SYSTEM\CurrentControlSet\Services\LightScribeService\ErrorControl 0
    SYSTEM\CurrentControlSet\Services\LightScribeService\
    SYSTEM\CurrentControlSet\Services\LightScribeService\DisplayName LightScribeService Direct Disc Labeling Service
    SYSTEM\CurrentControlSet\Services\LightScribeService\ObjectName LocalSystem
    SYSTEM\CurrentControlSet\Services\LightScribeService\Description Used by the LightScribe software components to support 3rd party disc labeling applications using the LightScribe COM Application Programming Interface (LSCAPI). This service needs to run for LightScribe direct disc labeling to work.
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\TypesSupported 7
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\0 IDE\CdRomhp_CDDVDW_TS-L633R______________________0300____\4&334f7860&0&0.1.0
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\Count 2
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\NextInstance 2
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\1 SCSI\CdRom&Ven_ELBY&Prod_CLONEDRIVE&Rev_1.4\1&2afd7d61&0&000000
    SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\allocatecdroms 0
    SYSTEM\CurrentControlSet\Services\CDRom\autorun 1
    SOFTWARE\INTEL\Intel Application Accelerator Not detected
    Drives and Media:
    Drive 0 : hp CDDVDW TS-L633R 0300 219 (E:), Media Imaging Parameter : 114
    I tried running the below command line to fix potential disk issue 'Chkdsk/r /f'
    I cleaned the drive, discs, and so on.
    I have uninstalled the all third-party data recording software.
    I have uninstalled the Cyber DVD suite, lightscribe system software
    which came pre-installed with my HP pavilion Notebook.
    I have recovered my system from the HP Factory Recovery discs.
    I have tried opening all those LightScibe discs not opening on my HP optical drive, on a Dell optical drive, and all of them were opened well, although Dell optical drive did not have a lightscribe feature at all., nor  third party disc recording software.
    However, the problem is still with opening the discs LIGHT-SCRIBE.
    Thus, my questions are:
    How to determine if the drive is corrupted and needs to be replaced with another one.
    I think there something needed to be done on the BIOS Of my HP laptop[[[A similar problems happened on my Desktop computer's optical drive which is as follows (ALL discs are opened as empty by Optical Drive of My Desktop Computer) ---while
    my optical drive of my desktop was connected to the
    primary slave IDE, and the HDD was connected to the primary master IDE, the optical drive and hard disk are functioning well. However, I remember that while burning an image with Nero essential V: 5, something went wrong, and
    then the Optical Drive of My Desktop Computer (HL-DT-ST DVD-RAM GH22NP20) became NOTrecognised/Installed on
    BIOS, although it was still shown on the device manager as a recognised device. Also, it was listed on my computer, however, when entering a disc(blank or with data) into the drive, I found it was not recognised, and it opened empty(no files
    at it), although it contains data. Thus, I decided to boot to BIOS, and clicked on 'Autodetection for IDE', then I found that only HDD was still shown as installed on BIOS.  However, the optical drive was not. Th I tried clicking on it on BIOS and then
    clicking on 'enter' to try to let the device be re-recognized. However, that
    made no difference. I had to take part my computer ,and then reconnected the optical drive onto thesecondary slave IDE , and let HDD connected to the same
    primary master IDE. Then, I found that the problem solved and all discs were read normally. Aslo, optical drive became installed on BIOS.
    What is meant with with double Layer Support.
    How much does it cost?
    A man should convert his anger and sadness into strength to continue living in this life.

    Did you try unsinatalling LightScribe application then checking the status ? 
    This is probably related to the faulty hardware or the application ( LightScribe
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.
    Could you please really concentrate with me, and really reply to me to finish this problem pending.
    If you had had a look again at my first post, you would have seen that I said that I have done some things, among of which is: I have uninstalled the Cyber DVD suite, lightscribe system software
    which came pre-installed with my HP pavilion Notebook.
    Yes, you're right the two threads below are concerned about one issue.
    https://social.technet.microsoft.com/Forums/en-US/w7itpromedia/thread/5c1aa5e8-9728-492b-a5c3-387f29ee4b6e/#d6f63628-29a3-4adf-b33f-03b33c138910
    https://social.technet.microsoft.com/Forums/windows/en-US/683997ff-1004-4579-b69d-5e982746c917/lightscribe-supermulti-dvdrrw-with-double-layer-support-is-no-longer-able-to-read-all-lightscribe?forum=w7itpromedia
    However, this thread contains more precise details and screen shots about the problem. I was not able to understand whether all lightscribs were not unable to be read or not. However, I now recognized that, and I recognized that only all LightScribe(empty
    or used) discs are unable to be read. furthermore, that other thread got far too longer to be followed.
    Moreover, I would like you to take some time out to answer my problem about Lighstscribe discs since I am going to purchase 'A battery, Cooling Fan' From the HP agent in Yemen, which is far away from me about 1000 Km. Thus, If my optical disc drive was corrupted
    as well, then I would be requesting the 'optical disc  drive' as well from the HP along with 'Battery, Cooling Fan' .
    A man should convert his anger and sadness into strength to continue living in this life.

  • Strange error in mapping test: Structure with min!=max without mapping

    Hi,
    a very simple mapping: flatfile 2 Idoc.
    in mapping test I'm trying to test it. but I get always a strange error warning:
    11:25:12 Teststart Mapping-Objekt MM_XXXXX2WGSREQ is not completely designed. The execution is impossible.
    Structure with min!=max without mapping
    11:25:12 Testende
    What for a problem?
    Thanks for any hints!
    Regards
    Rene

    Hi Rene,
    Check the mapping of 1:n occurence and 0:n occurence nodes.
    you can find the node in yellow color in the map level.
    Regards,
    Harish

  • How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

    How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

    How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

  • Error ORA-01426: numeric overflow when Creating table with double data type

    Hi,
    I am using ODP.NET to create a table with data from SQL to Oracle. The problem is with double data type fields that is equivalent to FLOAT(49) in Oracle. My syntax is:
    CREATE TABLE SCOTT.ALLTYPES
    F1 NUMBER(10),
    F10 DATE,
    F2 NUMBER(10),
    F3 NUMBER(5),
    F4 NUMBER(3),
    F5 FLOAT(23),
    F6 FLOAT(49),
    F7 NUMBER (38,5),
    F8 NVARCHAR2(500),
    F9 NVARCHAR2(500)
    Th error is with field F6 but I am not sure what is the correct type equivalent to double in SQL.
    I woul appreciate if anyone can help me with this problem.
    Sunny

    Does this simple test work for you?
    In database:
    create table float_test
      f1 float(49)
    );C# code:
    using System;
    using System.Data;
    using System.Text;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace FloatTest
      /// <summary>
      /// Summary description for Class1.
      /// </summary>
      class Class1
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
          // connect to local db using o/s authenticated account
          OracleConnection con = new OracleConnection("User Id=/");
          con.Open();
          // will hold the value to insert
          StringBuilder sbValue = new StringBuilder();
          // create a string of 49 number 9's
          for (int i = 0; i < 49; i++)
            sbValue.Append("9");
          // command object to perform the insert
          OracleCommand cmd = con.CreateCommand();
          cmd.CommandText = "insert into float_test values (:1)";
          // bind variable for the value to be inserted
          OracleParameter p_value = new OracleParameter();
          p_value.OracleDbType = OracleDbType.Double;
          p_value.Value = Convert.ToDouble(sbValue.ToString());
          // add parameter to collection
          cmd.Parameters.Add(p_value);
          // execute the insert operation
          cmd.ExecuteNonQuery();
          // clean up
          p_value.Dispose();
          cmd.Dispose();
          con.Dispose();
    }SQL*Plus after executing above code:
    SQL> select * from float_test;
            F1
    1.0000E+49
    1 row selected.- Mark

  • Error in messege mapping " Structure with min!=max without mapping"

    Hi Experts,
                           got an error in  messege mapping, after mapping was done as " Structure with min!=max without mapping" . Any idea what is my mistake!
    Points will be rewarded.
    Thanks and Regards,
    Arnab.

    Hi Mohd,
    This error pops up when your mapping is incomplete...
    First check all the fields are mapped....
    and check all the required fields are mapped which are in RED in colour...if not map to the specific field or to a constant or disable that one...and check the type of the sourse and target fields.....is it string,floatetc
    you got a element, which occurences (=minOccurs & maxOccurs) are unequal.
    Those fields have to be mapped.
    http://help.sap.com/saphelp_nw04/helpdata/en/02/9a6a1c244411d5b2e30050da4c74dc/frameset.htm
    Reward points if this helps
    Regards
    Pragathi.

  • Structure with min!=max without mapping

    Hi,
    At Message Mapping - Test Tab, we have the following error:
    "Mapping object  incomplete. Unable to continue execution
    Structure with min!=max without mapping"
    We did added some custom segments to the standard idoc, but we already validate the xml structure and it seems valid.
    Do you guys know what it means?
    Thanks in advance,
    Luí

    Hi,
    If you don't map a mandatory target field, red bulb is shown in graphical mapping.Altough it saves "successfully", it fails while testing using the Test Tool and throws an error mapping incomplete Unable to continue execution. So try debugging for the unmapped target field .
    BR.Venkat

  • Fetch data using structure with full working example

    does any body tell me how to fetch data using structure with full working example
    the structure name is RSTXT and the field is TXLINE
    the data in the form of text is entered from the functional side using t-code ME52N
    from there i have to fetch the data
    in smartform or in report

    using this code to get text from ME52N  this is a structure still not getting output  
    DATA:BEGIN OF TA_ROW occurs 0,
          TXZ01(1000) TYPE C,
          END OF TA_ROW.
      DATA:BEGIN OF IT_ROW OCCURS 0,
          TXZ01(1000) TYPE C,
          END OF IT_ROW.
       DATA: thread LIKE thead.
       DATA: headerid TYPE char24.
       DATA: it_text LIKE tline OCCURS 0 WITH HEADER LINE.
       data:wa_banfn like eban-banfn.
       thread-tdid = 'B01'.
       thread-tdname = headerid.
       thread-tdobject = 'EBAN'.
         select txz01 from eban into corresponding fields of table ta_row
          where banfn = wa_banfn.
       headerid = '  '.
       CALL FUNCTION 'READ_TEXT'
         EXPORTING
      CLIENT                        = SY-MANDT
           id                            = thread-tdid
           language                      = sy-langu
           name                          = thread-tdname
           object                        = thread-tdobject
      ARCHIVE_HANDLE
                                    = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
         TABLES
    lines                         = it_text
        EXCEPTIONS
          id                            = 1
          language                      = 2
          name                          = 3
          not_found                     = 4
          object                        = 5
          reference_check               = 6
          wrong_access_to_archive       = 7
          OTHERS                        = 8.
         LOOP AT it_text.
         CLEAR ta_row.
       BREAK-POINT.
      FROM THIS POINT TEXT IS COMING
         ta_row-txz01 = it_text-tdline.
         APPEND ta_row TO it_row.
         ENDLOOP.

  • Let all channels(with same data structure)run one program

    Hello,
    I want to let all channels with same data structure run one program,how can i program it?
    Thanks!

    Hi charleen,
    You're going to need to provide more details for us to help you.  In general "channels" do not "run" programs.  You can, however, run a program which loops over channels, checks their properties, and decides whether to include them in the overall analysis.  What do you mean by "data structure"?
    What do you want to actually happen in the "program"?
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Filling an XML structure with data

    Hi
    I’m about to write a program that shall do GL postings based on IDocs, using standard FM BAPI_ACC_DOCUMENT_POST.
    The challenge is that the program shall return the results of the postings back to the sending system in XML-format.
    The interface team has defined an XML/XSD/WSDL document containing the required structure:
    <i><?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Receipt xmlns:ns0="http://www.compello.com/xi/glposting">
       <Header>
          <Filler1/>
          <Title/>
          <Filler2/>
          <Filler3/>
          <Filler4/>
          <Filler5/>
          <Filler6/>
          <Filler7/>
          <Filler8/>
          <b><Bilagsnr/></b>     
          <Filler9/>
       </Header>
       <b><Error> (Occurrence = 0 .. unbounded)
          <Filler1/>
          <ErrorCode/>
          <ErrorText/>
       </Error></b>
    </ns0:MT_Receipt></i>
    …and I’m supposed to fill this structure with the reference document number in the element <Bilagsnr/> and all messages returned from the BAPI (except those of type ‘I’ and ‘S’) in the <Error>-table.
    I have tried to understand what to do by looking into several threads, but as I am quite a novice when it comes to XML, I’m still a bit uncertain of how to solve this task.
    Can anyone give an example how to solve this, preferably referring to the above described structure?
    I’m working on an SAP ECC 6.0 system.
    Thanks

    Not exactly a rush of answers, maybe I should have posted it in the XI forum instead. However, I finally managed to resolve it myself.
    Message was edited by:
            Ole Kristian Branæ

Maybe you are looking for

  • Applications freezing... Then they will not quit.

    I have looked around in the forums and have found similar problems, but the solutions offered did not really help my problem. I have encountered this problem most of the time when I am using firefox, but it is not limited to firefox. I will be browsi

  • After LDAP failure rebuild I cannot turn on Wiki for group

    Our LDAP database died today so I converted the Open Directory Master to Standalone then back to an Open Directory Master and rebuilt our users and groups. No settings were changed in the Web section of the server. But now I cannot choose anything fr

  • Insert Error: Column name or number of supplied values does not match table definition.

    I'm getting this error when I try to run my stored procedure, I have checked that the inserts matches the select, which seemed to be the issue for most of the time this question is asked. As far as I can tell they match so something else must be wron

  • Issues while readin SQL server via ODBC connection

    Hi Experts, I havea SQL server db as a source. I have configured the Datastore using ODBC connection. Developed a job which simply reads a table and populates into a flat file. when we run the job, it doesnt show any progress, it just stops after a l

  • Developer help

    Im a registed devloper im wondering do i need a mac to get ios 5 beta?