Changing display of charachteristic based on a condition

Hi all,
i have a particular requirement for diplaying the material infobject in a query output. The user wants the display of the material based on what the material is. If the Material = A, then it shoud be displayed as "XXXX" and if Material = B it should be displayed as "YYYY". Is this possible in Bex??
Thank you

I don't think it's possible through Bex.
Even, we can have it as an Attribute of Customer ot material. That is also not so easy (we need to make it as compunding).
Nagesh

Similar Messages

  • Display an exception based on some condition

    HI..
    how to run a exception based on some condition i.e
    i want to highlight the sales(key figure) which r less than the  average sales..
    where sales and average sales r keyfigures...

    Hi!
    welcome to SDN.
    create a calculated key figure which will be 1 if the sales is less then the average sales.
    create exception based on this calculated key figure.
    with regard
    ashwin
    <i>PS n: Assigning point to the helpful answers is the way of saying thanks in SDN.  you can assign points by clicking on the appropriate radio button displayed next to the answers for your question. yellow for 2, green for 6 points(2)and blue for 10 points and to close the question and marked as problem solved. closing the threads which has a solution will help the members to deal with open issues with out wasting time on problems which has a solution and also to the people who encounter the same porblem in future. This is just to give you information as you are a new user.</i>

  • How to change users' initial page based on a condition

    I'm using SSO on my application, and have two types of users who will be logging on - I want one set (admins) to go straight to one page, and the other set (users) to go to a another page after logging in. These two sets of users are stored in the database, so I can want to use that to check against.
    I get the impression this would be easy enough if my users went via the 101-login page, but as I'm using SSO I don't think they do. I can change the default starting page, with the home link setting in the application's security attributes, but you can only set one of those.
    I don't mind having it all default to one page, and then redirect away from that if the username meets a particular condition, but can't see how I can do that.
    Can anyone suggest how I can work this to achieve what I need?

    Tim,
    First I would create a HOME_PAGE application item. Then I would create an application computation on new instance that sets that item accordingly. something like this:
    with user_table as(
        select 'TIM' user_name, 'ADMIN' user_role from dual
    select case
               when exists(select *
                             from user_table
                            where user_name = :APP_USER
                              and user_role = 'ADMIN')
               then
                  102
               else
                  103
          end
      from user_tableI would make a landing page all people go to. Page 150. On that page i would make a branch before header which references your HOME_PAGE application item.
    Cheers,
    Tyson Jouglet

  • Changing Label text color based on some conditions

    Hi,
    I have these labels and I would like to change the text color IF the text has some specific value (coming from an XML created by a program); for example the default text color is red, but if the text value is "Yes", the text color should be green.
    Any helps much appreciatted, as usual...
    Thanks.

    unsure, but you might be able to get away with something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[
                public function changeColor(value:String):uint
                    if(value == "Yes")
                        return 0x007F00;
                    else
                        return 0x7F0000;
            ]]>
        </mx:Script>
        <mx:Panel x="343" y="199" width="250" height="200" layout="absolute">
            <mx:Label id="lbl1" text="Yes" color="{changeColor(lbl1.text)}" x="102.5" y="10"/>
            <mx:Label id="lbl2" text="BlahhhhhBlahhhh" color="{changeColor(lbl2.text)}" x="97" y="36"/>
            <mx:Label id="lbl3" text="Exampleeeeeeee"  color="{changeColor(lbl3.text)}" x="97" y="62"/>
        </mx:Panel>
    </mx:Application>
    using a single label in an item renderer, passing across the 'data.text' value

  • Display Image(which set as behind text)   based on some condition.

    hi all
    I have developed a xml report and in that rtf am displaying a static image (which is set as behin text).
    But i need to display the image based on some condition
    for example i have a field as ORG_ID
    if org_id=87 then image should display for that purpose am planning to use <?if:ORG_ID=87?> condition but where to place this condition for the image.
    kindly help me
    thanks for all in advance.

    that too not working because
    on image am displaying some other fields.
    see i think you didn't get my point.
    in my out put page am displaying item details ,quantity,and cost and customer details just like invoice copy .
    behind this data am displaying my company logo which will capture whole page size..
    if i place the image in table then fields will be automatically in table so i cant restrict image in this way.
    Kindly suggest any other way that works only for image which is behind text. i mean condition should be applicable only for image and leaving all other fileds in rtf.
    or
    help on this how to set a dynamic image as behind the text.
    Edited by: maddy on Nov 28, 2012 7:32 AM
    Edited by: maddy on Nov 28, 2012 7:35 AM

  • Include file based on if condition

    I was wondering if its possible to include a file (or display a file) based on a condition in JSPs.. for example:
    ----------Desired functionality----------------
    <%
    if (myconnection == null)
    // include/display login page
    else
    // display the main page
    %>
    I tried this.. Not working based on my condition... I get both the files displayed in one page..
    ----my code----
    <%
    if (DBcon.con == null)
    out.println("No connection");
    %>
    <%@ include file="Login.jsp"%>
    <%
    if (DBcon != null)
    out.println("connected");
    %>
    <%@ include file="Main.jsp" %>
    -NJU

    If you don't put a { after the if statement, then it's only going to execute the first line after it.  This is always the case, in JSP or otherwise.  Otherwise how would it know when to stop? 
    <%
    if (DBcon.con == null) {
       out.println("No connection");
    %>
    <%@ include file="Login.jsp"%>
    <%
    if (DBcon != null) {
       out.println("connected");
    %>
    <%@ include file="Main.jsp" %>
    <%
    %>

  • Displaying record based on the condition in Crystal report

    Hi All,
    I want to display certain records in crystal based on some condition.
    For example,
    If I am having 5 student records like,
    Name  Mark1 Mark2 Mark3 Total
    aaa      40       50       60      150
    abc      30       60       40       130
    tcr        25      25        25       75
    Now in table i have only 4 fields (STUNAME, MARK1, MARK2, MARK3).
    I have to calculate the total at runtime and if total is greater than 150, then actual record should display in report.
    For example, I can use formula to calculate total but I can calculate total only after each record prints. But i want to calculate total internally only it should display in report if condition satisfies. I dont want to keep one more field for total in crystal report.
    Please help me on this.

    If the filter is not "pushed" down to the database, then Crystal will pull all of the data into memory and then filter it there.  This is not a big deal if you only have a couple of records, but it can significantly slow down a report that is pulling in more than a few records.
    An alternative, if your report is just linking tables in the Database Expert, would be to create a SQL Expression that adds the three fields together.  Using this in the Select Expert WILL push the condition down to the database.
    If you're using a command instead of linking table, they you would add this to the Where clause of the comment.  If you're using a stored proc instead of tables or a command, you would want to do this filter in the code for the stored proc.
    -Dell
    Message was edited by: Dell Stinnett-Christy

  • Conditionally displaying a portlet based on parameter?

    Hi, I've been looking for a way to show or hide on a page a portlet (the standard Oracle search one, but it could be anything else) depending on whether a parameter is set to 0 or 1. So far the only "solution" I've found is to instead have two copies of the page, one with and one without the portlet in question, but obviously this scales very badly and is a bad idea from a maintenance POV.
    Is there a clean way to do something like this?
    Thanks,
    Cedric

    Yes, You can do it .. but it is little tricky. We have done something like this.
    First, you may know that all portlets are rendered by PPE , so we can not pass parameters to PPE to display particular portlets based on parameter.
    Instead, with in that Portlet, If the parameter is "N" then don't display any HTML from that portlet. Hope you know How to Pass page parameters to Portlets.
    Other way to implement this is by Portal Groups and granting access to those portlets,
    Still , if you are not convinced you can have a look at Portlet SecurityManager Class..
    Thanks
    Shan

  • Pricing Condition type triggering based on other condition type

    Hello sir,
    There are some pricing condition types in our system.
    Based on condition records you can trigger one condition type based on other    condition type.
    For eg: PR00 condition type is there and amount is  suppose 1000rs and other condition type is JBED and we made a condition record and put it some percentage so as soon as we some value in PR00 ,JBED condition type is automatically manipulating the value on the base condition record.
    Now i want other than condition record can we trigger one condition type based on other condition type through defining user routine under requirement.
    Suppose we have condition type ABC and some amount i have given and other condition type DEF , i want that amount of DEF condition type should automatically come from the Condition type and it should manipulate according to my routine .
    eg  Condition type    Amount
           ABC                  1000
           DEF                    40
      The value 40 should come as 4% of 1000.
    I am not maintaing any condition record and i want that this should trigger through some requirement created by me.
    i created my routine no 905 and i putted the code inside it.
      if komtl-kschl = 'DEF'.
      komv-kbetr  =   ( komv-kbetr * 4) / 100.
    endif.
    Now problem is that this code is getting trigger when i m giving value in DEF condition type then it is showing 4 % of it.
    But i want as soon as i give value for the condition type ABC and some value 1000
    then after pressing enter , one condition type DEF should automatically come with value 40 that too in display mode ,not in change mode.
    Please suggestions and solutions regarding this matter , I will be grateful to you.
    Manish

    hi
    In V/06 in the calculation type you can see the entries for "D-gross weight" & "E-net weight"
    For the required condition type select the calculation type as gross weight or net weight. Save it.
    In MM01 - create material master, here in BASIC DATA 1 SCREEN you have fields for gross weight & net weight.
    Maintain the condition record in VK11 for the required condition type.
    You can also maintain the scales as required like u said
    1 to 10 kgs -  100 rupees,
    11 to 25 kgs - 1000 rupees.
    Another way could be
    The BEST practice to do it is, use of VOFM routine for price calculation (VOFM-->Formulae).
    Take help from ABAPer and write a routine such that
    if weight = 1 - 10
    price = 100.
    else if weight > 8.
    price = 1000.
    else
    price = 100.
    end if
    but the maintainnance of routine is big problem as u might be having many records
    Hope this will help you
    Vishal

  • Remove duplicates based on a condition

    Hi all,
    I need help on a query to remove duplicates based on a condition.
    E.g. My table is
    FE CC DATE FLAG
    FE1 CC1 10/10 FB
    FE1 CC1 9/10 FB
    FE1 CC1 11/10 AB
    FE1 CC2 9/10 AB
    FE1 CC2 10/10 FB
    FE1 CC2 11/10 AB
    I want to remove all duplicate rows on FE and CC based on the below condition :
    DATE <MAX(DATE) WHERE FLAG='FB'
    That means I want to remove the row FE1 CC1 9/10 FB
    but not the rows
    FE1 CC1 10/10 FB
    and
    FE1 CC1 11/10 AB
    as only the row FE1 CC1 9/10 FB has date <MAX(DATE) WHERE FLAG='FB'.
    Similarly I want to keep
    FE1 CC2 10/10 FB
    FE1 CC2 11/10 AB
    but not
    FE1 CC2 9/10 AB
    Many thanks.

    Hi,
    Do you want to DELETE rows from the table, or just not show some rows in the output? Since you're talking about a "query", rather that a "DELETE statement", I'll assume you want to leave those rows in the table, but not show them in the output.
    Here's one way:
    WITH     got_r_num     AS
         SELECT     fe, cc, dt, flag
         ,     RANK () OVER ( PARTITION BY  fe_cc, flag
                          ORDER BY          dt       DESC
                        )          AS r_num
         FROM     table_x
    SELECT     fe
    ,     cc
    ,     TO_CHAR (dt, 'fmMM/YY')          AS dt
    ,     flag
    FROM     got_r_num
    WHERE     flag     != 'FB'
    OR     r_num     = 1
    ;if you'd care to post CREATE TABLE and INSERT statements for your sample data, then I could test it.
    This assumes that the column you called DATE (which is not a good column name, so I called it dt) is a DATE, and that you are displaying it in MM/YY format.
    This also assumes that dt and flag are never NULL.
    If I guessed wrong about these things, then the query can be changed; it will just be a little messier.

  • Trying to alter font on a report row based on data condition

    Hello.
    I have an Apex application with a "classic" SQL report and a corresponding form.
    In the report region I am pulling all items from a table (Select * from TASKS)
    The TASKS table contains many columns including DUE_DATE and COMPLETE_DATE field.
    I am trying to find a way to format the rows in my report based on the condition of those two fields.
    If the record has a complete_date (not null) then I want to change the font for the entire row (each column) to be grey.
    If the record does not have a complete_date (null) and due_date is before today, I want the row to be bold and red.
    Otherwise, the row would display standard black text.
    I can't seem to find a straightforward way to do this in Apex.

    Hi JodyMorin,
    Try looking at this post:
    Conditional item formatting (color)
    You will need to tweak the code a bit for your needs, but I hope it helps.
    -Marc

  • How to secure access of Report based on a condition

    Hello Experts,
    My project requirement is to secure BW Reports based on a condition. For e.g a user should be authorized to access the Report if:
    1. He is the WBS Manager of the selected WBS Element
    OR
    2. If he is authorized to access the Profit center Hierarchy Node which is the parent of the selected WBS Element.
    I think this may be achieved by using a Customer exit in the Analysis authorization but i don't know how.
    Do you have any idea, whether it is possible to achieve in BI7 Security Model? Any help will be highly appreciated.
    Thanks
    Rajat

    Hi Tomer,
    There will be a selection variable for WBS in all BW reports. If the user selects a particular WBS Element then he can only see the result of the report if he fulfill EITHER of the following conditions:
    1. If he is the WBS Manager of the selected WBS Element
    OR
    2. If he is authorized to access the Profit center Hierarchy Node which is the parent of the selected WBS Element.
    WBS managers will keep on changing so it is not possible to maintain the users in one role.
    Secondly, according to the second condition, even if the user is not WBS Manager but he is authorized to access Profit center Hierarchy Node, which is the parent of the selected WBS Element, he should view the report.
    Please let me know if don't understand the question.
    Thanks
    Rajat

  • Column value coloring Based on the condition in ssrs 2008

    Hi,
    I need to change color formating based on below conditions
    Red if <=28 days or > 65 days       
    Green if >28 and <=60 days       
    Yellow if > 60 days and <=65 days
    <=0 No color
    I tried with below IIF condition it's not working.
    =iif(Fields!HDSI13.Value<=0,
    "No color",iif((Fields!HDSI13.Value<=28
    or Fields!HDSI13.Value>64),"Red",iif((Fields!HDSI13.Value>29
    and Fields!HDSI13.Value<=60),"Green",iif((Fields!HDSI13.Value>60
    and Fields!HDSI13.Value<=65),"yellow",Nothing))))
    Can any one help me on this.
    Thanks,
    Manasa.
    Thank You, Manasa.V

    hi all,
    When i wrote like this in table report ...woking fine.
    =iif(((Fields!HDSI13.Value<=28
    and Fields!HDSI13.Value>0)
    or Fields!HDSI13.Value>64),"Red",iif((Fields!HDSI13.Value>=29
    and Fields!HDSI13.Value<=60),"Green",iif((Fields!HDSI13.Value>=61
    and Fields!HDSI13.Value<=65),"yellow",iif(Fields!HDSI13.Value<=0,"Nocolor",""))))
    Thank You, Manasa.V

  • Dropdown editable in a table based on a condition

    Hi,
    I would like to know how to solve these problems.
    1. I have a cell (of the type dropdown by key) in a table, which is editable or not, depending on a condition ? Is this is possible? Please let me know if there is a sample code
    2. So basically I have a  table that has 2 entries in it, user details and one of the fields in FLAG showing the values Yand N for the user. I want the table in the webdynpro application to show the 2 user entries and then in the Flag column have a DROPDOWNBYKEY that DEFAULTS to showing what flag the user has, but also allows the user to CHANGE the entry.
    Thanks in advance
    I appreciate for the help.

    is possible
    In your Context node which is binded to the table as DataSource, add an attribute WDY_BOOLEAN type
    In layout bind the newly created attribute to the dropdown UI element Enable property
    while filling your context node, fill the attribute with abap_true and abap_false based on your condition
    Abhi

  • How change the graph dynamically based on pivot table.

    Hi,
    My Report having pivot table and bar chart. Organization Name column set as pivot table prompts in pivot table.So Organization Name is appear as dropdown list.If i choose the diffrent Organization Names the pivot table data is according to the Organization Name but no changes in chart.How change the Graph dynamically based on pivot table.
    Please help on this.

    ok.I created pivot table with 4 columns and created chart using pivot table chart options but all 4 columns are displaying chart.But I need only 2 column in chart ..unable to edit the only chart in pivot table.Please help on this.Thank you..

Maybe you are looking for

  • Posting with trans type 300 not possible sap

    HI All, I am trying to post an entry in ABT1N. I am getting below error posting with trans type 300 not possible please assist me

  • Error starting Admin Server in a OSB Cluster installation

    Greetings I have an environment with two osb nodes in cluster, when I start the Admin server the server start succesfully and the osb servers also works fine, but I got the following messages starting the admin server: <Oct 12, 2012 5:52:04 PM COT> <

  • What is the value of MacBook Pro 17 inch 160 GB?

    What is the value of MacBook Pro 17 inch 160 GB?

  • Tethering working on MacPro but NOT Macbook Pro

    Having a problem with tethering when using it with my laptop. Macbook Pro (6.1), Snow Leopard 10.6.6 and Aperture 3.1.1. My MacPro is working without any problem. (Snow Leopard 10.6.6 and Aperture 3.1.1) I have tried both my cameras Canon 5Dmk2 and C

  • Bat file to Start Service.

    Hi All,  I need a bat file to restart one of the service when user login to the PC. These users are not local admins so they cannot start this service.  net start "Service Updater"  give and access denied. This service  have to run as  SUser not as