Mapping of IDOC Please help

Hi,
I has a scenario from JMS XI IDOC where my inbound and outbound interfaces are same ie ACCDOCUMENT ACCDOCUMENT02 IDOC.Presently there is no mapping for this interface .
PA default brand = 75999
Ledger = 460050                    
Ledger = 471000
Ledger = 420600
Ledger = 472150
I need to create a mapping writing the conditions that  i need to remove the occurence of the  default brand for the above Ledger numbers.Could any one suggest how i can proceed with the mapping and which functions i can use to  compare in mapping.
<ACC_DOCUMENT02>
<IDOC BEGIN="1">
<E1BPACHE09 SEGMENT="1">
  <COMP_CODE>2000</COMP_CODE>
  <DOC_DATE>20081114</DOC_DATE>
  <PSTNG_DATE>20081105</PSTNG_DATE>
  <DOC_TYPE>22</DOC_TYPE>
  <BUS_ACT>RFBU</BUS_ACT>
  <USERNAME>AFP06</USERNAME>
  <REF_DOC_NO>15002016</REF_DOC_NO>
  <HEADER_TXT>0615002016 081114020007</HEADER_TXT>
  </E1BPACHE09>
<E1BPACGL09 SEGMENT="1">
  <ITEMNO_ACC>816</ITEMNO_ACC>
   <GL_ACCOUNT>0000485150</GL_ACCOUNT>
   <REF_KEY_1>081114020007</REF_KEY_1>
   <REF_KEY_3>06000286504315</REF_KEY_3>
   <COSTCENTER>0000439630</COSTCENTER>
   <ALLOC_NMBR>1746493</ALLOC_NMBR>
   <MATERIAL>000000000000110741</MATERIAL>
   <BASE_UOM>KG</BASE_UOM>
   <QUANTITY>6.800000</QUANTITY>
   </E1BPACGL09>
<E1BPACGL09 SEGMENT="1">
  <ITEMNO_ACC>817</ITEMNO_ACC>
   <GL_ACCOUNT>0000471000</GL_ACCOUNT>
   <REF_KEY_1>081114020007</REF_KEY_1>
   <REF_KEY_3>06000286501055</REF_KEY_3>
   <COSTCENTER>0000102836</COSTCENTER>
   <MATERIAL>000000000000007358</MATERIAL>
   </E1BPACGL09>
<E1BPACGL09 SEGMENT="1">
  <ITEMNO_ACC>818</ITEMNO_ACC>
   <GL_ACCOUNT>0000471000</GL_ACCOUNT>
   <REF_KEY_1>081114020007</REF_KEY_1>
   <REF_KEY_3>06000286501071</REF_KEY_3>
   <COSTCENTER>0000102836</COSTCENTER>
   <MATERIAL>000000000000007361</MATERIAL>
   </E1BPACGL09> <E1BPACKEC9 SEGMENT="1">  <ITEMNO_ACC>817</ITEMNO_ACC>
  <CHARACTER>0087000589</CHARACTER>
  <FIELDNAME>KNDNR</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>817</ITEMNO_ACC>
  <CHARACTER>000000000000007358</CHARACTER>
  <FIELDNAME>ARTNR</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>817</ITEMNO_ACC>
  <CHARACTER>000073000</CHARACTER>
  <FIELDNAME>MATKL</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>817</ITEMNO_ACC>
   <CHARACTER>000075999</CHARACTER>
   <FIELDNAME>ZZBRA</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>818</ITEMNO_ACC>
  <CHARACTER>0087001139</CHARACTER>
  <FIELDNAME>KNDNR</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>818</ITEMNO_ACC>
  <CHARACTER>000000000000007361</CHARACTER>
  <FIELDNAME>ARTNR</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>818</ITEMNO_ACC>
  <CHARACTER>000073000</CHARACTER>
  <FIELDNAME>MATKL</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>818</ITEMNO_ACC>
  <CHARACTER>000075999</CHARACTER>
   <FIELDNAME>ZZBRA</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>819</ITEMNO_ACC>
  <CHARACTER>0020009077</CHARACTER>
  <FIELDNAME>KNDNR</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>819</ITEMNO_ACC>
  <CHARACTER>000000000000073717</CHARACTER>
  <FIELDNAME>ARTNR</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>819</ITEMNO_ACC>
  <CHARACTER>000073000</CHARACTER>
  <FIELDNAME>MATKL</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>819</ITEMNO_ACC>
  <CHARACTER>000075999</CHARACTER>
  <FIELDNAME>ZZBRA</FIELDNAME>
  </E1BPACKEC9>
<E1BPACKEC9 SEGMENT="1">
  <ITEMNO_ACC>820</ITEMNO_ACC>
  <CHARACTER>0020009082</CHARACTER>
  <FIELDNAME>KNDNR</FIELDNAME>
  </E1BPACKEC9>

Hi,
Try like this
Ledger                        Ledger     
       EqualS------------OR            EqualS------------OR  EqualS------------OR   EqualS------------OR----Not---
Constant(460050)       Constant(471000)          Constant(420600)       Constant(472150)
and   Brand-------
                EqualS--CreateIF-----Target Brand
Constant(75999)
Thanks!

Similar Messages

  • Maps Location Problems - PLEASE HELP

    I have an 8 Gb iphone with firmware 1.1.4 and am trying to use the maps location feature. it will not work unless i turn my WiFi off and then try to locate and once i have been located i can turn WiFi back on and get a more accurate location. even if i am not connected to WiFi but i still have the WiFi feature turned on it will not work. please help

    I recall this post before. Were you the same one that posted it? The Google map location function seems to be the problem here, and it could be an issue with the application. Did you try the troubleshooting steps in order, power off/on, reset, restore? If you did and that doesn't seem to fix it, then I suggest a trip to the Apple Store Genius bar. I also find it interesting that once you get a location, that turning on the WiFi gets it more accurate. I've not seen that. The location goes out and gets its information from a webserver. If there is an issue connecting to their database, I don't know that you would get an error message. I think I posted the name of the server before, I just can't remember it now. There is a way to update location information with that service, it is posted on their webpage. I know I have the location saved on my desktop, it's is just that I'm away from home right now on my laptop. I'll see if I can find it for you.

  • Complex JavaBean Mapping in iBatis [Please help!]

    hi,
    i m new to IBatis, i got some mapping problems, and there are not too many tutorials out there, please help me, thanks.
    For example, i have 2 beans:
    // This is the Company bean public class Company {   private long pkId;   private String name;   private List employees;   ...... } // The Employee bean public class Employee {   private long pkId;   private String firstname;   private Company parentCompany; }
    In the Employee class, 'parentCompany' is of type 'Company', but in the Database, the corresponding column 'parent_company' stores a 'long' value, which is the company's pkId.
    In the mapping file, i am ok with 'Select' to either get 'Company' from an 'Employee', or get a list of employees from a 'Company'
    But there are problems when i m trying to save/update the 'Employee' object, i don't know how to write the Mapping for this, there's always a TypeHandler exception. Here's my mapping file for the employee:
    <update id="update_employee_by_pkid" parameterClass="java.util.HashMap"> UPDATE ido_user SET <isPropertyAvailable property="firstname"> firstname = #firstname# </isPropertyAvailable> <isPropertyAvailable property="lastname"> lastname = #lastname# </isPropertyAvailable> <isPropertyAvailable property="email"> email = #email# </isPropertyAvailable> <isPropertyAvailable property="role"> role = #role# </isPropertyAvailable> <isPropertyAvailable property="parent_company"> parent_company=#parent_company# </isPropertyAvailable> WHERE pk_user_id = #pkid# </update>
    when i call this query, i pass in a Map, in the map, there might be one or more entries, e.g.
        map.put("pkid", 20);     map.put("firstname", "John");     map.put("lastname", "Smith");     map.put("parent_company", parentCompany);  // in here, the 'parentCompany is an instance of Object Company, which is retrieved from the DB
    As the map contains a 'parentCompany', but the DB actually needs a long, so in the DAO class, i grab the id of the 'parentCompany', put it into the map, and replace the parentCompany like this:
        map.put("parent_company", new Long(parentCompany.getPkId()));
    But this gives me a NullPointerException, it happens at the point that i call: sqlMap.update("update_employee", map);
    Another question is about mapping design between JavaBean, like those 2 classes i gave above, do you think the design is good? By doing so, i can get the company from a given Employee, on the other hand, i can get a list of Employees of a given company. How would you do for such requirements?
    Anyone has idea about it?
    Thanks for your help!
    Best regards

    I'll give this one more shot to see if anyone can help me.
    I'm also willing to pay for this. I would do all the Flash design
    work, provide the database, and all the graphics. I just need the
    coding done. I'll write out in English what I need it to do, and
    hopefully someone might be willing to translate into actionscript.
    1. A user selects what category of connector they want to add
    by clicking a button.
    2. When the button is clicked, a list of connector names
    appears. This list is populated from an Access database using ASP.
    3. A user selects a connector by clicking on it's name. The
    draggable movie clip associated with that connector appears and is
    ready to drag.
    4. If the user drops it in the wall plate "drop zone," the
    connector stays there, and the price of the connector (also
    specified in the database) is added to the cost form.
    5. If the user drops it outside the "drop zone," it snaps
    back into original position.
    6. Once dropped in the "drop zone," the user can click and
    drag the connector around any way they want within the drop zone
    without the price being added again. If the user drags the
    connector outside the drop zone to a "trash can," the connector
    disappears and the price is reduced from the total.
    7. Once the user is finished building their plate, they can
    click a "finished" button and be taken to a form to submit their
    email address and comments. The details of the wall plate order,
    the cost, and the user submitted form are then emailed to our sales
    team.
    That's the project in a nutshell. I have drag functionality
    working, and the price adding up, but I don't know how to tie in
    the database. Once again, I'm willing to pay someone who might be
    able to do the coding on this. If you're interested, please send me
    an email at [email protected] and I can provide the most current
    FLA and additional details. Thanks!

  • CMDKEY Key Mapping Parameter Problem - Please HELP !!!

    Hello !
    I try to call a Report from Forms by using a keymap File ! I use IAS Forms and Report 10.1.2 and the Oracle Developer 10.1.2)
    My Keymap settings are correct
    The activated Parameters in rwservlet.properties are
    RELOAD_KEYMAP=YES
    KEYMAPFILE=CGICMD.DAT
    OID_ENTITY=%REPORTS_OID_ENTITY%
    SERVER=rep_asmic3
    The CGICMD.dat file includes the keymap
    telefon: server=rep_asmic3 destype=cache desformat=pdf desname=CGICMD userid=test/test@db102 %*
    The WHEN-BUTTON-PRESSED Trigger contains following code:
    declare
    vjob_id VARCHAR2(100);      
    rep_status varchar2(40);
    report_id Report_Object;
    ReportServerJob varchar(100);
    begin
         report_id:= find_report_object('telefonliste');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'paramform=no cmdkey=telefon');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'REP_asmic3');
    ReportServerJob := run_report_object(report_id);
    rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
    if rep_status = 'FINISHED' then
    vjob_id := substr(ReportServerJob,length(report_server)+8,length(ReportServerJob));
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id,'_blank');
    end if
    end;
    If I try to run the report from a form I get a FRM-41214 Error. It seems, that the keymap file is not loaded ! How come ?
    If I call the Report with the Keymap File directly from a Browser everything works fine:
    http://<hostname>.<domain>.local:7778/reports/rwservlet?telefon&report=telefonliste.rdf&userid=test/test@db102
    Please help ! Do you have a clue ?
    Thanks
    Katharina

    Hello,
    The parameter CMDKEY can be used only with the Reports Servlet or when executing a Reports as a JSP page :
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/cmdline/common/cla_cmdkey.htm?tp=true
    Regards

  • How to send response message from Java mapping class? Please help!

    Hi Experts,
      I have a sync scenario
              -Req-->  -
    >
    SOAP           XI       RFC
              <Res--     <-----
      The Req message contains:
      <Order>
           <Orderid>100</Orderid>
           <Desc>Extrenal Order</Desc>
           <Qty>2500</Qty>
      </Order>
      Response message is:
      <Log>
         <LogTxt>Qty value cannot be more than 3 chars</LogTxt>
      </Log>
      In the XI I have to validate the input request message using a schema. For this I am writing a java mapping program using aii_map_api.jar.
    My requirement is that If the input message schema validation fails then I want to send a response message back to sender.
      How can I send a response message back to the sender in java mapping program?
    Kindly help with sample code example.
    Thanks
    Gopal

    Hi,
    First, I think PI 7.1 has this functionality and perhaps it comes in a SP for PI 7.0 and XI 3.0.  So first have a look at that before creating custom development.
    Second, if you use the java mapping, you will only have access to a request or response message.  I would advise using a custom java module in the module processor and insert this message in the sender communication channel.  This will allow you to validate request and send a response.
    Regards,
    Yaghya

  • Upgrading from snow leapord to mavericks, i couldn't opened app store, messenger, ibook,FaceTime, maps and other. please help

    upgrading from snow leapord to mavericks, i couldn't opened app store, messenger, ibook,FaceTime, maps and other. please help

    Try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About
    If that doesn't work, do a backup. Boot to the Recovery Volume (command - R on a restart or hold down the option key during a restart and select Recovery Volume). Run Disk Utility Verify/Repair and Repair Permissions until you get no errors. Then reinstall the OS.
    OS X Recovery
    OS X Recovery (2)

  • Mapping Issues. Please help :-)

    Hi Guys,
    I am having some problems when Mapping in XI.
    I am mapping from an IDOC to another Data Type and I get the following message when testing.
    16:09:05 Start of test Mapping object msgMAP_IDOCINVOICE02_INVOICE incomplete. Unable to continue execution
    Structure with min!=max without mapping
    16:09:05 End of test
    Absolutely any suggestions would be appreciated

    Hi,
    Check the mapping ..Is all fields are mapped correctly ? Is it in green color?
    Also check if the root element of target structure mapped corerctly??
    Also check all the segments from target side with occurence level 1 is mapped ?
    Some inputs from this thread-
    Help needed for Flat file to IDOC Mapping
    Regards,
    Moorthy

  • Some Error in Nokia Map for E90 please help.

    Hello friends,
    I need some urgent help.
    I have Nokia Map already in E90.
    Its old version i think.
    Ok when ever i go to Nokia Maps > Options > Settings > Network
    The Nokia Maps closes automatically.
    I have tried to install the new version Nokia Map Version 2
    And when i keep on install, It says that Checking Certificate Online, Check settings. What to do about it ?
    Please someone help
    Thanks

    Hello friends,
    I need some urgent help.
    I have Nokia Map already in E90.
    Its old version i think.
    Ok when ever i go to Nokia Maps > Options > Settings > Network
    The Nokia Maps closes automatically.
    I have tried to install the new version Nokia Map Version 2
    And when i keep on install, It says that Checking Certificate Online, Check settings. What to do about it ?
    Please someone help
    Thanks

  • I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to customer. Can you please help me on the same?

    HI Experts,
    I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to vendor. Can you please help me on the same?
    Thanks
    SaiSreevastav

    Hi Sai,
    you can use XSLT or java mapping or adapter module to convert IDOC xml to XLS. Please refer the below blog
    Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way
    Convert incoming XML to Excel Sheet Part 2 – Adapter Module way
    Convert incoming XML to Excel Sheet
    then after converting to Excel, you can use the payloadswap bean in mail adapter
    XI: Sender mail adapter - PayloadSwapBean - Step by step
    regards,
    Harish

  • I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. Please help

    I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. I am accessing it via strong wireless connection and it works fine on other devices. Please help.

    zapgrap wrote:
    there is no information of locations.
    Then no information exists.  Use the Report a Problem button within the app to report it.

  • I am using iphone 4s and just updated ios6 but my apple map is not working please help me for the same

    Dear all,
    as i am using i phone 4s in INDIA, today itself i updated my phone to operating system ios6, but my map of phone is not working , so please help for same.Its says "direction could not be found ", when i select the starting point and end point, go to start.
    With Regards
    Anurag

    Friend,
    refer to following discussion on the same
    Apple maps very disappointing

  • Please Help::How to display a Map with LIsts as Keys and Values using JSTL

    Hi,
    I need some assistance on how to display a Map in JSP using struts or core JSTL. I have a HashMap which has a List of keys and each key maps to a value of an ArrayList.i.e I have an ArrayList of taxCodes and each taxCode maps to a value of taxDetails which is an ArrayList of details for for that particular taxCode. I have some trouble to display each taxCode then display taxDetails for each taxCode. Here is my code below:
    OrderDetails.java
    package orderitems;
    import java.sql.*;
    import java.util.*;
    public class OrderDetails {
        private LineOder lineOrder;
        private Map lineItems;
        //returns an item number, key_item, from its unique keys
        public int getItemNumber(int key_item, String key_year,
                String key_office,String key_client,String key_company){
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            int itmNum = 0;
             * key_item a unique number for an item.
             * key_year,key_office,key_client,key_company unique keys
             * for each order where this key_item is taken
             * from.
            String select = "SELECT key_item FROM "+
                    Constants.WEB_TABLE +" WHERE key_item = " + key_item +
                    " AND key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company +"'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                if(rst.next()){
                    itmNum = Integer.parseInt(rst.getString("key_item"));
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itmNum;
        //get a list of item number(item codes)
        public List getAllItemNumbers(String key_year,
                String key_office,String key_client,String key_company){
            List itemNumbers = new ArrayList();
            LineItem itemNumber = null;
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            String select = "SELECT key_item FROM "+ Constants.WEB_TABLE +
                    " WHERE key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company + "'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    itemNumber = new LineItem();
                    itemNumber.setKey_item(Integer.parseInt(rst.getString("key_item")));
                    itemNumbers.add(itemNumber);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itemNumbers;
        //get a list of tax codes
        public List getAllTaxCodes(int key_item, String key_year,
                String key_office,String key_client,String key_company){
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            ItemTax taxCode;
            List taxCodes = new ArrayList();
            int itemNum = getItemNumber(key_item, key_year,
                    key_office,key_client,key_company);
            String select = "SELECT key_tax_code FROM "+
                    Constants.WEB_TABLE +" WHERE key_item = " + itemNum +
                    " AND key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company +"'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    taxCode = new ItemTax();
                    taxCode.setKey_tax_code(rst.getString("key_tax_code"));
                    taxCodes.add(taxCode);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return taxCodes;
        /////This methode returns a Map which am trying to display in JSP
        //use tax code to get tax details
        public Map getItemTaxDetails(String key_year,String key_office,
                String key_client,String key_company,int key_item){
            ItemTax taxDetail = null;
            List taxDetails = new ArrayList();
            List itemTaxCodes = new ArrayList();
            Map itemTaxDetails = new HashMap();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //get a list of all tax codes of an item with a
            //given item number
            itemTaxCodes = getAllTaxCodes(key_item,key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
                    ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
                    String taxCode = itemTaxCode.getKey_tax_code();
                    String select = "SELECT tax_type,tax_value," +
                            "tax_limit_val FROM "+ Constants.WEB_TABLE +
                            " WHERE key_item = "+ key_item +
                            " AND key_year = '" + key_year + "'" +
                            " AND key_office = '" + key_office + "'" +
                            " AND key_client = '" + key_client + "'" +
                            " AND key_company = '" + key_company +"'" +
                            " AND key_tax_code = '" + taxCode + "'";
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        taxDetail = new ItemTax();
                        //records to be displayed only
                        taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
                        taxDetail.setTax_value(rst.getString("tax_value"));
                        taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
                        //////other details records ommited//////////////////////////
                        taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
                     * A HashMap which has all taxCodes of an item as its keys
                     * and an ArrayList of taxdetails as its values.
                     * I return this for display in a JSP.
                    itemTaxDetails.put(taxCode,taxDetails);
                System.out.println();
                System.out.println("*********CONSOLE OUTPUT*************");//display on console
                Set set = itemTaxDetails.keySet();
                Iterator iter = set.iterator();
                System.out.println("Key\t\tValue\r\n");
                while (iter.hasNext()) {
                    Object taxCode=iter.next();
                    Object details=itemTaxDetails.get(taxCode);
                    System.out.println(taxCode +"\t" + details);
                System.out.println("************************************");
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itemTaxDetails;
        //details of an item with all its taxes
        public List getAllItemDetails(String key_year,
                String key_office,String key_client,String key_company){
            List lineItems = new ArrayList();
            List itemNumbers = new ArrayList();
            Map taxDetails = new HashMap();
            LineItem item = null;
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //A list of all item numbers in the declaration
            itemNumbers = getAllItemNumbers(key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator itemIter= itemNumbers.iterator(); itemIter.hasNext();){
                    LineItem itemNum = (LineItem)itemIter.next();
                    int itemNumber = itemNum.getKey_item();
                    String select = "SELECT item_description,item_mass," +
                            "item_cost" +
                            " FROM " + Constants.WEB_TABLE +
                            " WHERE key_year = '"+key_year+"'" +
                            " AND key_office = '"+key_office+ "'"+
                            " AND key_client = '"+key_client+ "'"+
                            " AND key_company = '"+key_company+ "'"+
                            " AND key_item = " + itemNumber;
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        item = new LineItem();
                        item.setItem_description(rst.getString("item_description"));
                        item.setItem_mass(Float.parseFloat(rst.getString("item_mass")));
                        item.setKey_item(Integer.parseInt(rst.getString("item_cost")));
                        //////other details records ommited//////////////////////////
                        /* A HashMap of all itemTaxeCodes as its keys and an
                         * ArrayList of itemTaxedetails as its values
                        taxDetails = getItemTaxDetails(item.getKey_year(),item.getKey_office(),
                                item.getKey_client(),item.getKey_company(),item.getKey_item());
                        //item tax details
                        item.setItmTaxes(taxDetails);
                        //list of items with tax details
                        lineItems.add(item);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return lineItems;
        public Set getOrders(String key_year,String key_office,
                String key_client,String key_company){
            List lineItems = new ArrayList();
            Set lineOrders = new HashSet();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            LineOder lineOrder = null;
            String select = "SELECT * FROM " + Constants.WEB_TABLE +
                    " WHERE key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company + "'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    lineOrder = new LineOder();
                    lineOrder.setKey_year(rst.getString("key_year"));
                    lineOrder.setKey_office(rst.getString("key_office"));
                    lineOrder.setKey_client(rst.getString("key_client"));
                    lineOrder.setKey_company(rst.getString("key_company"));
                    ////list of items with all their details
                    lineItems = getAllItemDetails(lineOrder.getKey_year(),lineOrder.getKey_office(),
                            lineOrder.getKey_client(),lineOrder.getKey_company());
                    //setting item details
                    lineOrder.setItems(lineItems);
                    //a list of order with all details
                    lineOrders.add(lineOrder);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return lineOrders;
    Controller.java
    package orderitems;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Controller extends HttpServlet {
        private Map taxDetails = new HashMap();
        private OrderDetails orderDetails = null;
        protected void processRequest(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            String key_year = "2007";
            String key_office = "VZX00";
            String key_company = "DG20";
            String key_client =  "ZI001";
            int key_item = 1;
            String nextView = "/taxdetails_list.jsp";
            orderDetails = new OrderDetails();
            taxDetails = orderDetails.getItemTaxDetails(key_year,key_office,
                    key_company,key_client,key_item);
            //Store the collection objects into HTTP Request
            request.setAttribute("taxDetails", taxDetails);
            RequestDispatcher reqstDisp =
                    getServletContext().getRequestDispatcher(nextView);
            reqstDisp.forward(request,response);
        protected void doGet(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            processRequest(request, response);
        protected void doPost(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            processRequest(request, response);
    taxdetails_list.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <title>Simple Tax Detail Diaplay ::</title>
            <link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
        </head>
        <body>
            <jsp:useBean id="taxDetails" class="java.util.HashMap" scope="request"/>
            <table>
                <c:forEach items="${taxDetails}" var="hMap">
                    <tr>
                        <td><c:out value="${hMap.key}" /></td>
                        <!--td><%--c:out value="${hMap.value}" /--%></td-->
                    </tr>
                </c:forEach>
            </table>
        </body>
    </html>am displaying taxCodes(in this case i have VAT and ICD) fine but cant figure out how to display a list of value for each taxCode.Here is the output am getting
    both in my JSP and on the console:
    *******************************CONSOLE OUTPUT****************************
    Key          Value
    ICD     [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
    VAT [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
    Edited by: aiEx on Oct 8, 2007 6:54 AM

    hi evnafets,
    yes i need a nested for loop.I have tried your advice but my bean properties are not found.Am getting this error:
    javax.servlet.ServletException: Unable to find a value for "key_item" in object of class "java.lang.String" using operator "."
    I have tried this as stated earlier in the post:I have tried to make the method getItemTaxDetails return a List and get the returned list value as taxDetails. I then tested to display this list on JSP and its displaying fine.
    public List getItemTaxDetails(String key_year,String key_office,
                String key_client,String key_company,int key_item){
            ItemTax taxDetail = null;
            List taxDetails = new ArrayList();
            List itemTaxCodes = new ArrayList();
            Map itemTaxDetails = new HashMap();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //get a list of all tax codes of an item with a
            //given item number
            itemTaxCodes = getAllTaxCodes(key_item,key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
                    ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
                    String taxCode = itemTaxCode.getKey_tax_code();
                    String select = "SELECT tax_type,tax_value," +
                            "tax_limit_val FROM "+ Constants.WEB_TABLE +
                            " WHERE key_item = "+ key_item +
                            " AND key_year = '" + key_year + "'" +
                            " AND key_office = '" + key_office + "'" +
                            " AND key_client = '" + key_client + "'" +
                            " AND key_company = '" + key_company +"'" +
                            " AND key_tax_code = '" + taxCode + "'";
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        taxDetail = new ItemTax();
                        //records to be displayed only
                        taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
                        taxDetail.setTax_value(rst.getString("tax_value"));
                        taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
                        //////other details records ommited//////////////////////////
                        taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
                     * A HashMap which has all taxCodes of an item as its keys
                     * and an ArrayList of taxdetails as its values.
                     * I return this for display in a JSP.
                    itemTaxDetails.put(taxCode,taxDetails);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            //return itemTaxDetails;
            return taxDetails;
        }And my JSP
    taxdetails_list.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
        </head>
        <body>
            <table>
                <c:forEach var="curRecord" items="${taxDetails}" varStatus="rowCounter">
                        <c:choose>
                            <c:when test="${rowCounter.count % 2 == 0}">
                                <c:set var="rowStyle" scope="page" value="odd" />
                            </c:when>
                            <c:otherwise>
                                <c:set var="rowStyle" scope="page" value="even" />
                            </c:otherwise>
                        </c:choose>
                        <tr class="${rowStyle}">
                            <td>${curRecord.key_item}</td>
                            <td>${curRecord.tax_value}</td>
                            <td>${curRecord.tax_limit_val}</td>
                        </tr>
                    </c:forEach>
            </table>
        </body>
    </html>I can't see where am going wrong even with your advice.Please help.
    Thnx.

  • Please help me to solve error: Split mapping created no messages

    Hi Experts,
    I am facing Split mapping created no messages  when i run my scenario.
    My Scenario is : Proxy to FILE.
    I am triggering Proxy and based on one condition i am generating different Flat Files.
    Now when i do this i am getting error :Split mapping created no messages in SXI_MONITOR.
    When i check this in Message Mapping by taking data from SXI_MONI its working fine...
    but when i trigger the data from RUNTIME WORKBENCH its throughing the error.
    When i remove the NameSpaces <ns0:message>
    and <ns0:messages1> its working fine.
    How can i solve this issue.
    Even though i removed Namespace in Message Type, i am getting the error.
    I changed occurance of Target message to O..unbounded both in Message Mapping and Interface Mapping.
    Its working fine in Message Mapping, problem occurs only when i run end-to-end scenario.
    So please help me to solve this issue.

    I think there might be mismatch between your name spaces.
    may be this link might help you
    Split mapping created no messages -Mluti Mapping
    are you getting the same structure from your proxies whatever structure you have in your XI structure(sender) and NS should match.
    but I dont have exp with proxies.
    Sri

  • HT2693 How come my apple map doesn't show the map on apple standard map.. However, it does work on google map. I was trying to close the apple maps, restart, and many other ways but still didn't work. Please help me.

    A standard map on my iPhone 4s is suddenly not working. It shows the blue dot but it doesn't show the actual Map where I can see the streets.
    I don't know how to fix this problem. I did try so many ways even restarted iPhone but still not working... Please help me out.

    Hi JinHDK,
    Yes I worked previously but it's now not working. I did double click home botton and terminate the maps many time but still not working.
    The standard maps just not show any route only the blue dot (my location.)  I really don't know what to do. Btw, I used to live in SF but now I'm traveling to Thailand. One of my friend is using iPhone 4S as well but his maps is working. So I guess it is about its application on my phone...
    Thank you.

  • The map of Republic of Armenia in iOS 6 is not good. Please help us. Thank you in advance. Maps

    The map of Republic of Armenia in iOS 6 is not good. Please help us. Thank you in advance. Maps

    Hi Naren,
    When I double-click on this data type from the ABAP editor, it takes me to the definition screen.I wish I could put screenshots in this message but I don't know how. Anyway, the definition says it is a "table" type. There are four tabs underneath - Attributes, Line Types, Initialization, and Access Key. Under "Line Type," the properties are as follows:
    Predefined Type
      Data Type: STRING
      No. of Characters: 0
      Decimal Places: 0
    Thank you in advance for your help.
    Peter

Maybe you are looking for

  • Mac Pro (early 2008) still experiencing frequent Kernel Panic freezing ... ugh

      My early 2008 Mac Pro (2 x 2.8 GHz Quad-Core Intel Xeon, 24 GB 800 MHz DDR2 FB-DIMM) is still experiencing frequent Kernel Panic freezing. Some days I can go the whole day without one, other days I will experience many, some while using the compute

  • Printing All Documents being browsed FileMaker

    When printing from FileMaker on any of my printers, after upgrading to Mountain Lion, it will only print one record out of the found set of records even when you select print all records. I am running FileMaker 10.03 Any suggestions as to a fix?

  • Moving swap file

    Im trying to find a better way to change my swap file location to my secondary drive in OS X.5. Currently I have set a symlink to /Volumes/MacOS_Swap/.vm from the origional /var location (after removing the previous directory). It seems to work well

  • IPhone 5 restore boot loop, need help!?

    okay so here is the deal. I am travelling at the moment so my iphone is VERY important, yesterday i attempted to update my phone from 6.0.1 to 6.0.2. i plugged in my iphone 5 to my macbook pro and let it download and update. sadly it failed and now m

  • Core Data errors when loading saved files

    Hi there. I am working on a fairly simple Core Data document-based application that I am working on. Some files have been previously saved (in the same version of the app) using the SQLite and XML file types, but now cannot be reopened. The following