Key and name customized display

Hello,
I would like to know (in BW3.1) if there is a trick in the Bex to display "key and long name" for a characteristic in the report while the object is declared with 'short description' in the rsa1 (bex part) ?
The objective is not to change for all user the default display (we want to keep short name)  but allow some users to display even so "key + long name". Apparently only 'long name' alone is possible, a pitty.
We could solve creating a separate attribute, but it's an heavy trick...
thank you !
Olivier

Dear Harita
The first issue Currency translation in query or workbook is solved with SAP note 1119549.For second issue we have not found solution until now ,Once we find the solution we will update you..
Shu Moh

Similar Messages

  • Display as Key and Name Not working properly after upgrade to Bi7.0

    Hi Bw Guru's
    Recently we have upgrade our BW 3.5 system to BI 7.0 (Only system upgrade not applications ).
    after the upgrade we are facing lot of issues with Bex Analyzer. The following are some of the issues
    1) In BW3.5 after the execution of Workbook or query ,we can convert to local currency .
       Right click on workbook -> Currency translation-> Database currency .
        but after upgrade to BI7.0 this is not working ..
    2) Characterstic Right click on workbook Dispaly as Key and Name is also not working ..
    I know that Currency translation in BI7.0 works in different way compare to BW3.5 .we can use alternate option like By Target Currency from Database currency to convert to local currency and it is working fine in Bex,but businesss users want more friendly way ...because to select the above option they have to enter local currency and rate type ...
    Do you we have any notes available for the above solutions ..?Do we need to upgrade Bex version also..?Is there any document which describe how the above things works after system upgraded to BI7.0?
    Please suggest me..
    Thanks in advance
    Shu Moh.

    Dear Harita
    The first issue Currency translation in query or workbook is solved with SAP note 1119549.For second issue we have not found solution until now ,Once we find the solution we will update you..
    Shu Moh

  • Send email (c#) using ews and set custom display name (from)

    How to connect to exchange service via exchange web services send a mail and the display name is custom ?
    With this code, just connect to exchange server (ews) and send a mail.
    How to change my code ?
    private void t() {
    const string subjectBody = "test email ";
    const string username = "username";
    const string password = "password";
    const string domain = "domain";
    const string ewsURL = "http://exchangesrv/ews/exchange.asmx";
    unews.ExchangeServiceBinding esb = new unews.ExchangeServiceBinding();
    esb.Credentials = new System.Net.NetworkCredential( username, password, domain );
    esb.Url = ewsURL;
    unews.CreateItemType newItem = new unews.CreateItemType();
    newItem.MessageDisposition = unews.MessageDispositionType.SendAndSaveCopy;
    newItem.MessageDispositionSpecified = true;
    unews.MessageType msg = new unews.MessageType();
    msg.Subject = subjectBody;
    msg.Body = new unews.BodyType();
    msg.Body.BodyType1 = unews.BodyTypeType.Text;
    msg.Body.Value = subjectBody;
    msg.ToRecipients = new unews.EmailAddressType[1];
    msg.ToRecipients[0] = new unews.EmailAddressType();
    msg.ToRecipients[0].EmailAddress = "[email protected]";
    newItem.Items = new unews.NonEmptyArrayOfAllItemsType();
    newItem.Items.Items = new unews.ItemType[1];
    newItem.Items.Items[0] = msg;
    try {
    unews.CreateItemResponseType createItemResponse = esb.CreateItem( newItem );
    if (createItemResponse.ResponseMessages.Items[0].ResponseClass == unews.ResponseClassType.Error) {
    throw new Exception( createItemResponse.ResponseMessages.Items[0].MessageText );
    else {
    Console.WriteLine( "Item was created" );
    catch (Exception ex) {
    Console.WriteLine( ex.ToString() );
    With this code, can connect to a exchange server (smtp) and send a mail, with a custom display name.
    System.Net.Mail.SmtpClient smtpc = new System.Net.Mail.SmtpClient( "exchangesrv" );
    System.Net.Mail.MailMessage mm = new System.Net.Mail.MailMessage( "CustomDisplayName <[email protected]>", "[email protected]", "test email", "test email" );
    smtpc.Credentials = new System.Net.NetworkCredential( "username", "password", "domain" );
    smtpc.Send( mm );

    That won't work the way you want it in EWS, like when you send via Outlook or OWA when you send a messages via EWS it's submitted via the Exchange store so the Sender Address will be resolved back to the default Reply address for whatever account your trying
    to send as. If you need some sort of custom display name I would suggest you stick to SMTP or possible create a Transport Agent that would rewrite the address before its sent externally.
    Cheers
    Glen

  • Update keys and fields

    Hi All,
    In my landscape, we have 2 remote systems for mdm. ( say source as BO, target as ECC).
    When we import data from BO, we are generating key (based on Account group.) using Remote system key generation technique.
    But,at the same time we want to update same key value for the customer field.
    Is there any technique we can update key value for the field values?

    If I understand correctly, you want to populate both the Remote Key and a customer field with the same value taken from the BO system.  In your import map, select the field coming from BO in the Source Hierarchy Pane, right click, and select clone field.  You should then be able to map the field from BO to [Remote Key] and the cloned field to the customer field.

  • Need to set "Title", "Display Name" and "Name" fields to custom string property "RMA Number" for each instance of custom work item

    Hi,
    We have a custom Work Item we use to track RMA's. I've created a string property called RMA Number which is also used as a key.
    RMAs do not have titles or any other identifying properties other than the unique RMA number (think incident number).
    I was wondering what the best approach would be to set these other fields ("Title", "Display Name" and "Name") to the RMA Number value (RMAXXX), as I'm currently investigating using a powershell script via a workflow.
    Thanks,
    Pietro

    Hi Marcel,
    I've come up with the following:
    # Load the SMlets module
    Import-Module SMlets
    # Get the RMA Class
    $RMAClass = Get-SCSMObject -Class (Get-SCSMClass -Name MyWorkItem$)
    foreach ($RMA in $RMAClass)
    $RMANumber = $RMA.RMANumber
    $RMA | Set-SCSMObject -PropertyHashtable @{"DisplayName" = $RMANumber; “Title” = $RMANumber; ”Description” = $RMANumber; }
    Is it possible to make it aware of which RMA work item executed it, and only update that one? Updating all the records each time a new one is created will cause some problems in the future.
    Thanks,
    Pietro

  • Display key and text by WAD command in custom structure hierarchy

    Hi everybody,
    I have a query using a custom structure with hierarchy layout. As usual the structure does only display its text as descriptions but I can enable the display the key in BEx Web by right-click on the analysis item --> Properties --> Characteristic --> Display. Unfortunately these setting can not be defined directly in the structure within the Query Designer.
    For a workaround I put the query into a web template, in which I used the Set Presentation (SET_PRESENTATION) command to enable key and text display from the start. Hence I put that command in the wem template parameters Action Before First Rendering (ACTION_BEFORE_FIRST_RENDERING). Everything is working properly and makes me very happy.
    But... there is one thing missing, I would like to implement... I want a toggle button, which allows the user to switch between key and text display and text display. Unfortunately setting the same command from Action Before First Rendering (ACTION_BEFORE_FIRST_RENDERING on a various button does not working. The button command only affects data rows of the leaves of the structure hierarchy. All parent nodes do not change their appearance.
    Any ideas how to solve this?
    Thank you for any helps and comments!
    Sebastian

    Hi Sebastian,
    I have a similar problem. Can you help me? How did you set the entry in Member Presentation of Command SET_PRESENTATION to display key and text? I just found the values to set the only text or only key.
    best regards,
    Barbara

  • Long text problem in BW query and Key figure name

    Hello
    We're using SAP BO 4.0 (IDT) and SAP BW as a datasource. Maybe someone knows:
    1. How to change the name of keyfigure, which now appears as Formula 1, Formula 2 etc. In BW every single key figure has it's own name Sales, Purchases etc. What I'm missing here?
    2.As you well might know every single char infoobject has it's own Long\Short\medium which now appears as an attribute. When I choose multiple Long definitions then the execution of a BEx query fails with 'Inconsistent answers'. In Universe Designer we can change the objects name, but how to proceed here. Do I need to change something on a Bex query level?
    I'm well familiar with SAP BO, but due to lack of experience in SAP I'' ve hit astumbling block with these 2 things> Any assistance would be more than welcome
    Thanks in advace

    Hi,
    for (1)  - that doesn't sound right...   i think your KF are calculated KF (CKF)  possibly with a formulae variable .. or something, which is supposed to populate the name, based on a user response ? 
    Or maybe you've got non-unique KF descriptions, and this is some system imposed nomenclature?
    for (2)  i'm not so sure, but you may have to change the infoobject text setting, globally, in RSA1.   webi won't like non-unique labels if the keys are different.. How does it look with the default 'key and text' (medium) setting?
    yes you can change the characteristic display properties in Bex query designer, but i have a funny feeling that it doesn't get consumed by webi over that API.  (it's native OLAP stuff for BEx really...)
    Good luck
    H

  • Presentation Layer - Custom Display Name

    We use Oracle Datamarts as Data Source thus in our Repository a lot of information is just routed through. Of course we configured the joins in the physical layer and added some hierarchies, joins and calculated measures to the business model.
    The question is now where to set the right column names which the end users will see (translation from technical column names to business column names). Normally I read that the naming should be done in the business model and then can be copied to the presentation model.
    Is there any reason why not to leave alle the technical column names through to the presentation model and just to do the naming with the Custom Display Names? This had the advantage that we could rename the column display names and the reports never had to be modified.
    Thank you for your thoughts and input

    The main reason could be this:
    If the attribute has been used in multiple subject areas, there is no need to go each subject areas and rename them, instead a one time rename in Business Modeling layer will do the work. Eg. Suppose there is a common dimension, say, Supplier/Customer/Time which are used in multiple subject areas. Renaming in Business modeling layer will be easier than going to each subject areas and rename them in presentation.
    Hope this helps..
    Thanks,
    Anilesh

  • How do I change custom field description and name on the project fields PDP

    I'm creating a custom PDP for a workflow process and I need to add the folloiwng fields "Project Name" and "Description"
    When I try to create Project Name custom field under server settings I get the following message "The custom field name cannot match the name of any intrinsic fields."
    So I went to the PDP web part Project fields and I found a field named " Project Name". I added it to the Proejct Fields web part, but it displays as "Name".
    How can I change this field that's out of the box? I don't see "Project Name" and "Description" under server settings > Enterprise Custom Fields and Lookup Tables to modify them.
    Thank you

    Hi there,
    Project Name & description fields are internal fields in project server which you cannot view in Enterprise custom fields in PWA. You will not be able to create with the similar name. There is no way to change these fields as far as I know. 
    I would suggest to have the new fields name something like  Project_Name/ ProjName or Project_Description/ProjDescription . 
    Hope that helps.Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

  • Need help for displaying key and description in Dropdown (ABAP WEBDYNPRO)

    Hi Experts,
    I am using dropdown as a table field. For this dropdown I want to display the value as well as description.
    In ALV table when we create a dropdown dynamically in table field, there is a method SET_KEY_VISIBLE in class CL_SALV_WD_UIE_DROPDOWN_BY_KEY.
    But I think we cannot use similar method for normal dropdown field in table.
    Is there any way we can display both value and description in dropdown value set ?
    Please help.
    Regards,
    Anand

    Hi,
    I think there is no such option. You need to consider one variable type string and while populating the
    valueset fill this variable by concatenating the value and description and assign it the key and value
    pair of the valueset.
    DATA:
      lt_value_set_ctry      type table of wdr_context_attr_value, " Country/Service Location
      lv_str type string.
        loop at lit_country into ls_country.
          concatenate ls_country-value ls_country-text into lv_str separated by space.
          ls_value_set-value = lv_str.
          ls_value_set-text  = lv_str.
          append  ls_value_set to lt_value_set_ctry.
          clear ls_value_set.
        endloop.
          lr_node_info->set_attribute_value_set( name = 'COUNTRY'
                     value_set = lt_value_set_ctry ).
    Consider this lit_country is a text table for countries.
    Regards,
    Lekha.

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • Installation of 27" cinema display with macbook pro silver key and bootcamp

    For everyone out there who may be interested in using the new 27" cinema display with an older Macbook Pro Intel with silver keys and bootcamp.
    What is needed:
    1. Apple 27" cinema display.
    2. Macbook pro Intel silver key model
    3. Altona Dual Link DVI to Mini DisplayPort Converter (Model AT-DP400)
    4. Bootcamp 3.1 drivers from Mac OSX Snow Leopard V10.6.3(retail)
    Procedure:
    1. Update your display software on the Mac OS side. Apple has posted an update on their software downloads page, "LED Cinema Display Software Update 1.0" After doing so, make sure that the 27" CinDisp is operating correctly and you can change the brightness from the system settings.
    2. On the Windows side, install the bootcamp 3.1 drivers. These are on the Snow Leopard distribution CD. However, there is a bug in the .msi installer that causes the installation to go into an endless loop. This must be resolved during the installation of the drivers. The following article discribes how to do this:
    http://discussions.apple.com/thread.jspa?threadID=2305631&tstart=0
    3. After you have successfully installed the bootcamp 3.1 drivers, then install Apple's bootcamp update: "Apple Magic Trackpad and 27-inch LED Cinema Display Update for Windows 32 bit".
    Good luck, it works!

    I have the same MBP and recently bought a 23" cinema display on Craigslist for $140.  It works great.  I had a display port to DVI adapter and it worked fine.  Built a stand to hold the laptop vertically so it's out of the way.  Don't know about older displays but anything with DVI should work fine.
    The screen size and resolution are great for photo editing.  I now have the best of both worlds, a display that rivals my wife's iMac and portability.

  • Depriciation key and useful life periods in asset master should in display mode only

    Hi all
    At the time of creation asset master AS01 we are given the Asset class, company code and similar of asset (1) then we click enter button we will get Create asset: master data screen here in general tab we enter the description and in time dependent tab we enter cost center manually
    But
    When we click on Depreciation tab here the  Depreciation key and use life fields are automatically come with Dep.key(ABC) and use life(15) (Because we maintained in OAYZ)
    Here user have a chance to change the Dep.key(ABC) and use life(15).so my requirement is these two fields are display with only display mode .
    User don’t have chance to modify this.

    Hi Anil,
    The screen layout for Asset and its depreciation tab are different. You have to make these fields as Display only in the screen layout. This can be done using T-Code AO21. Below are the screenshots for the path and screen layout for your reference. This should solve your issue
    Regards
    Pankaj Pareek

  • 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.

  • Web reporting - variable selection should be display as key and description

    hi experts,
    Can anybody tell me the solution for my issue. My isssue is , in the web reporting, i have variable company code, i am selecting the company code thru search help. the values for company code is displaying with key. 
    the new requirement should be displayed with key and description.
    I have checked in the bex, the properties  of company code has maintained as key. when i run the report when cas selet as key and descritption. bex is not a probelm.
    only the problew with webreports,  can anybody give some inptus on my issue.
    Any help is appreciated. waiting for your response.
    thanks
    surendra sheety

    For future reference, this question was finally answered correctly recently in the following thread: 
    F4 help - Search values - I need key and text
    Hope this helps someone who is as confused about this as I have been the past few days!
    Bob

Maybe you are looking for

  • Old Edge projects no longer working properly

    All my Edge projects I did back in 2012 are no longer working properly when i open them in the new Edge CC. Most (if not all) start-positions are wrong, animations go the wrong way and so on. Is there a way of getting it back to work without re-doing

  • Changing font size in interface builder

    This is really simple, but I'm missing it. How do you change the font size of a text field in IB? Adjusting min size in the inspector does not work.

  • Select query with package size

    Hi ,       i am trying to use select qurey with package size , to limt the data fetching . Can any one gives sqample code or idea select query using 'package size'. Advance Thanks, Regards veera

  • Chromium freezes randomly

    Hi, Ive noticed that sometimes chromium freezes. I cant press any buttons or anything. I can minimize or restore that window just fine but i cant do anything, so i have to kill chromium proccess. I think this started to happen after recent xorg updat

  • "App store quit unexpectedly" - Neither "update combo" nor "repair permissions" has corrected the issue

    I have already followed the instructions to delete the app and run the Update Combo, in fact I have done this twice. I have also repaired the permissions more than once. Does anyone have any other suggestions on how to get the App Store to work again