Independent conditions in columns

Hello,
I have the following reporting problem: In a query I want to show all existing customers and their turnover regarding a specific brand above a variable limit. And in a second row again only the turnover but for a different brand and a different limit. E.g. in the first row only the turnover for brand A that must be more than 500 Euro and in the second one the turnover for brand B that exceeds 1.000 Euro.
So this is some sort of condition but not the lines should be surpressed but only the display. Perhaps there is a solution beyond VBA.
Thanks in advance,
Karsten.

Hi Karsten,
Urgen almost showed the way. The problem here is that you cannot restrict a key figure like a characteristic.
So, in the 2 rows you'll have the 2 selections in a structure with the key figure and a restricted brand char. Let's name them as R1 and R2. Hide both rows.
Create either a new calculated KF or a new formula in a structure. Put there formula:
(R1 > var1)*R1.
For the next new formula apply
(R2 > var2)*R2.
where var1 & var2 are variables for the limits.
Best regards,
Eugene

Similar Messages

  • Protect Condition Value Column in VA01

    I have a security problem on my sales orders: If somebody adds a line and enters the discount Z condition and some number on the value column, SAP updates the Order without going thru the regular checks of discount limit which it does on the amount column.
    What I want is to put an if to check if the Amount column its 0, to delete the number on the condition value column, I have tried with ' ' but the value turns to cero and it does not show an error.
    Here its the code:
    IF xkomv-kbetr = 0.
            MOVE '' TO xkomv-kwert .
            MODIFY xkomv INDEX sy-tabix.
        ENDIF.
    Regards,
    Carlos
    Edit: or if somebody knows how to make screen input = 0 (gray) for the Value Column that would be great.
    Edited by: Carlos Salazar on Jul 9, 2010 4:09 PM

    turns out 0 its correct as it will not get saved.

  • Purchase Info Record (time independent condition)

    Hi all,
    I am having a Purchaisng Info record for Material X, vendor A, Plant 1000, Pur Org: POR1
    last PO price history is Rs.10/-
    now requirement is:
    created a new Plant 2000, Pur Org:POR2,,
    want to create a manual purchasing info record for Material X, Vendor A, Plant 2000, Pur Org:POR2, wherein i want to insert price as Rs.10/- (time independent condition), so that while creating a new PO, it should capture this value Rs.10/-
    how this can be done?
    thanks & regards,
    urendra

    Hi,
    I think here you have two solutions here.
    1) Create a new inforecord with the new palnt and purchasig organisation
    Or
    Create a new purchase order with the new plant and purchase organisation first time you need enter the net price then save the purchase order
    After saving purchasr order system will create a new time independent info record for the combination of Material, Vendor, Plant, purchasing organisationa and infocategory.
    I hope this would resolve the problem. If it helps award me the points
    Cheers
    Umakanth

  • Conditional display column in report

    Hi,
    If we have a single row report of 30 columns, and I want to display only the one with any values but null and hide the null ones, Is there a way to do it?
    It's the same issue discussed in this thread conditional display column in report
    thanks,
    Fadi.

    Samara - I suspect there are a few ways to do this, but none obvious or very easy as far as I can see.
    You can create dynamic SQL (as Arie and others have suggested) to only include the columns that are not null.
    You can build and output the HTML directly to the page, choosing only to include the values that are not null.
    You can create a set of conditions that you can apply to the report columns. A very crude example might be 30 hidden page items like 'SHOW_COL1' etc. (not great, I know), or perhaps you could set a hidden page item to a value like '01:02:03:'etc., with the number only being included if the value is not null (so that col3 being null gives you '01:02::04'etc.), so that the condition for each column is 'Text in expr 1 in contained in Item in expr 2', where expr 1 is '01' for column 1 etc.
    Sorry, that is a very contrived example, but it's just to illustrate that there's generally a way of doing pretty much anything in APEX. You might create your item containing the comparison expression by requerying the data in this kind of way:
    SELECT NVL2(column1, '01', '') || ':' || NVL2(column2, '02', '') || ':' etc.
    FROM table
    WHERE condition
    However, wanting to create a single-row report with nulls hidden makes we wonder what you're actually trying to achieve and whether there's a better way? Could you use a series of page items, for example?
    John.

  • MWVS- Time Independent condition

    Hi,
    We are using MWVS condition type which is time independent condition for Input tax, now the requirement is percentage in this conditon is going to be changed form a future date. then how to bring in condition value baesd on time period.
    Thanks,
    Kiran Bodla

    Hi,
    This can be done through corresponding tax code and we have to change the percentage through FTXP.
    Thanks,
    Kiran

  • Why "condition value column" is there 2times in sales order under condition

    Hi Friends,
    Can any one say that why "condition value column" is there 2 times under condition tab  in sales order and in which scenario it will be useful.
    Thanks in advance
    JM.

    Hi JM,
    Suppose you r using conduction XYZ ok for that xyz conduction one access sequence is maintain for example AOO1 ok now just go in V/07 tcode for access sequence select your access sequence AOO1 from given option go inside one exclusion indicator is their make sure it is market tick for all access  
    If u r not clear.
    U r always welcome to ask question.
    Ahmed

  • Gray (only display) in base condition value column VF01

    We have Manual conditions for discount, the problem its that if in a new empty row you add the Condition Type (Cn Ty) and an amount in the condition value column, SAP will take it without doing any check (like in the Amount Column).
    So I require to gray out the condition value column (KOMV-KWERT) just like the column on the right (KOMV-KWERT_K) so no value can be entered this way for 2 discount conditions we use.
    I understand that some code in USEREXIT_FIELD_MODIFICATION  may do this, anyone has experience on this?
    Best Regards,
    Carlos

    I hope I understood your question properly.
    I assume you know how it works in the condition tab. When you enter condition type and enter the value. It will multiply the value with the number of material you entered in the sales order, and place the value in the condition value column.
    When you have manual condition discount condition it means you enter the value manually. If it is percentage basis it will calculate on the price (for instance PR00). If you do not want to enter it as manual the easy solution would be to uncheck the manual check box in the pricing procedure that you use V/08 and if you want to generate automatic values as you might know, create condition records for this condition type in VK11.
    For any particular you want to leave it as manual but to make it grayed out, as you already knew you can do it with user exit or another way with user exit would be, order can be blocked if there some changes done manually and later someone with proper authorization can approve the change and release it.

  • Context independant condition

    Hi everyone, I've got the next question:
    when I create a condition on a table in ODI and want to use a user defined procedure/function created in the database I have to use a qualifier (schemaname) in front of the procedure/function (E.g. TEST.ISDATE(STGBAS.EFFECTIVE_DATE) = 0, where TEST is the context of the test environment). But when I want to load the table in an other context (e.g. DEVELOP) the condition is not valid anymore (due to the qualifier). How can I create the condition context independant?
    Thanks,
    Quinten
    PS: Same happens when I use a EXISTS (SELECT .. FROM) construction.

    Hi Bouch,
    Thanks, we've tried your suggestion, for example:
    <%=odiRef.getInfo( "DEST_SCHEMA" )%>.ISDATE(STGBAS.EFFECTIVE_DATE) = 0
    ,but this results in "ORA-936: Missing Expression" while validating the expression.
    Maybe these substitutions do not work in Conditions/Constraints?
    To clarify what we're trying to achieve:
    When loading our table (alias: STGBAS) with user-generated CSV-files. We want to check if one column (EFFECTIVE_DATE) contains really a date by using a database-function (ISDATE).
    If this function returns 0, then EFFECTIVE_DATE is really a date, otherwise, this row must be rejected.
    This ISDATE-function resides in the target schema.
    We would like to use this function as described by Quinten.
    As a workaround we've already tried to create this function in a generic schema which is accesible by all contexts, but is not really what we want.
    If you can give another hint regarding this it is much appreciated.
    Thanks in advance,
    Steffen

  • Conditionally displayed columns of interactive report not displayed

    We have an interactive report in which few of the columns have been defined with conditions for display.
    But on the interactive report page, when the conditions are satisfied these columns do not display in the report by default.
    These columns are found in the 'Select Columns' -> 'do not display' pane. Everytime the report is run, these columns need to be selected using the select column.
    Is there anyway to make the columns appear in the report by default, when conditions are true.

    Thanks Jari for your help.
    For this issue, we finally came up with a work around.
    we removed the conditions from all the columns then ran the application report page.
    Clicked on Select Columns and moved the columns from the do not display pane to the right pane.
    Ordered them as needed. Then saved the report as primary.
    Then again went to the edit page-> interactive report and applied the conditions to the necessary columns.
    and it worked.
    When I went to the report these columns are displayed by default.

  • Interactive Report : Conditional Link Column

    Hi,
    I want my interactive report Link Column (Link to single row view) will be visible/active only when for the logged in current user.
    I am keeping the current user data in an "application_item".
    When ever I am trying to put Condition type as "Value of Iten in Expression1 = Expression 2" with
    Expression1 = CURR_USER (application item) and
    Expression2 = First_user (user_Name)
    the link column becomes invisible for the entire report.
    Please Please Please help.
    Thanks
    Neetu

    Hi,
    See if condition type "User is Authenticated (not public)" is what you looking for.
    Br,Jari

  • How to condition on column

    Hi all,
    I'm so new about HTML DB. Can you help me to put a condition on the column.
    EX: I have a table name "Test" look like:
    id error error_corrected
    1 N Y
    I want to put a condition on "error_corrected" column to accept users enter 'Y' or 'N' only. Otherwise will popup a message like "Please enter 'Y' or 'N' only"
    Thank you for your help

    Sorry, i did not provide enough detail. I have a table name like "Test" with 3 columns: "id", "error_flag", "error_corrected". On "Page Rendering" under "Region" i've created a report name "log_record" with type "SQL Query(updateable report) and code in "Region Source" like:
    select htmldb_item.checkbox(1,rownum) "",
    htmldb_item.hidden(2,id)|| id,
    htmldb_item.hidden(3,error_flag)|| error_flag,
    htmldb_item.text(4,error_corrected) as error_corrected
    from Test;
    On "Page Processing" under "Processes" i've picked pl/sql and the code in "Region Source" like:
    for i in 1..htmldb_application.g_f01.count
    loop
    update Test
    set error_corrected=htmldb_application.g_f04(htmldb_application.g_f01(i))
    where
    id=htmldb_application.g_f2(htmldb_application.g_f01(i));
    end loop;
    And I want users who fixed the errors in "Test" table, mark the checkbox and enter "Y" or "N" in "error_corrected" column only, then click "Update" button. Other than 'Y' and 'N' will popup a message like "Please enter 'Y' or 'N' only"
    thank you

  • Sorting a conditional list column doesn't roll up same results?

    I have a list with a column that adds the data of some other columns.
    When I look at the list in Standard View, and click on the column heading to sort, the dropdown looks like:
    Smallest on Top
    Largest on Top
    Clear Filter...
    0
    0
    0
    1
    1
    2
    2
    2
    2
    etc
    Why wouldn't it be rolling up same output? And how to fix?
    Thanks,
    Scott

    The average is also called the mean. To calculate the average of numbers in two or more columns in a row, use the AVERAGE function.
    COLUMN1
    COLUMN2
    COLUMN3
    FORMULA
    DESCRIPTION (RESULT)
    6
    5
    4
    =AVERAGE([Column1], [Column2],[Column3])
    Average of the numbers in the first three columns (5)
    6
    5
    4
    =AVERAGE(IF([Column1]>[Column2], [Column1]-[Column2], 10), [Column3])
    If Column1 is greater than Column2, calculate the average of the difference and Column3. Else calculate the average of the value 10 and Column3 (2.5)
    I tested in my local environment,it is giving average value only.Please  check the same thing in another list.
    If your number contains N/A value, then check the below article
    http://sharepoint.stackexchange.com/questions/67678/sharepoint-2007-calculated-column-formula-for-calculation-based-on-column-con

  • Caculated columns (conditionally required column)

    Hi All,
    First, please note that while I'm a site admin, I do not have access to Designer, and some of the typical options seem to have not been granted to all at my level (eg list validation from general settings).
    What I'd like to do is set a column to being required based on the entry of another column.
    Can anyone advise how to do that?  I know it can be done via List Validation, but as mentioned, this right/authority is not available to me.
    Basically, I have a yes/no column which if 'no' is selected, I want the next column to require the entry of a date.  If 'yes' is selected, then I want it to be blank.

    Hi Casey,
    I know you said you didn't have access to the List Validation, but it really is the perfect solution to what you are trying to achieve. Rather than trying to come up with another complicated solution, can you not get someone with access to List Validation
    to set this up for you?

  • Am unable to get the data from Sys.databases when i use where condition for column owner_sid

     
    Hi all,
    Help me here when i try am unable to get a data,Can some one help me with a query to get.
    If it cant be done can i know why..
     select * from Sys.databases
      where owner_sid='0x01'
    What am trying is to get a login
    names from syslogin
    table with respect to Sid.
    Select a.name,b.name,a.owner_sid from Sys.databases a
      Join Syslogins b
      on a.owner_sid = b.sid
      where owner_sid like '0x01'
    Thanks all in Advance.....

    Below are a couple of examples of how to accomplish the task.  Note that SID is varbinary so the literal should not be enclosed in quotes.
    SELECT
    a.name AS DatabaseName
    ,b.name AS OwnerName
    ,a.owner_sid AS OwnerSID
    FROM sys.databases a
    JOIN sys.server_principals b ON
    a.owner_sid = b.sid
    WHERE owner_sid = 0x01;
    SELECT
    a.name AS DatabaseName
    ,SUSER_SNAME(owner_sid) AS OwnerName
    ,a.owner_sid AS OwnerSID
    FROM sys.databases a
    WHERE a.owner_sid = 0x01;
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Conditional Columns in Select Statement for any type of Report

    Okay so I had a requirement to conditionally show columns on a report when the data in the column was not null. I played around the "vertical" report mentioned in other posts but it didn't work well for my needs. Also I know that there is a javascript solution for this as demonstarted in Denes Kubicek's app (which was copied from Vikas :) ). Anyways listed below is my approach.... Hope this can help anyone else out as it's just pl/sql returning sql. Also you will need execute on dbms_sql for this to work.
    declare
    v_count number := 0;
    v_row_count number := 0;
    v_col_name varchar2(100);
    q varchar2(4000) := 'select ';
    v_table_name varchar2(100) := :SOME_TABLE_NAME;
    v_id varchar2(100) := 'num = '||:SOME_APEX_VALUE;
    my_c INTEGER;
    fdbk INTEGER;
    statement varchar2(2000);
    cval_out varchar2(2000);
    nval_out number;
    begin
    select count(*) into v_count from cols
    where table_name = v_table_name;
    for counter in 1..v_count
    loop
    select column_name into v_col_name
    from cols where table_name = v_table_name
    and counter = column_id;
    statement := 'select count(*) '||
    ' from '||v_table_name||
    ' where '||v_col_name||' is not null and '||v_id;
    my_c := dbms_sql.open_cursor;
    dbms_sql.parse(my_c,statement,dbms_sql.native);
    dbms_sql.define_column(my_c,1,nval_out);
    fdbk := dbms_sql.execute(my_c);
    LOOP
    exit when dbms_sql.fetch_rows(my_c) = 0;
    dbms_sql.column_value(my_c,1,nval_out);
    end loop;
    v_row_count := nval_out;
    dbms_sql.close_cursor(my_c);
    if v_row_count > 0 then
    q:=q||v_col_name||',';
    end if;
    end loop;
    if(substr(q,length(q),1) = ',') then
    q:= substr(q,0,length(q)-1);
    end if;
    q:= q||' from '||v_table_name||' where '||v_id;
    end;Hope this helps...
    -David
    Message was edited by:
    rdpatric

    Hi Gints,
    Thank you for your reply. This is my query and
    nvl(TICKET_JOIN.TDQRLV,0) ACC_SHIPPED_QTY,
    TICKET_JOIN.TDSOQS QUANTITY_TICKETED are the columns tha's creating issue. If I comment those columns Index is accessed properly.
    select
    'TKT' SOURCE,
    TICKET_JOIN.TKDO01 HIRE_ID,
    TICKET_JOIN.TKQ101 TRUCK_ID,
    TICKET_JOIN.TKVEHT TRUCK_TYPE,
    1 TRUCK_COMM,
    nvl(TKCMP1,0) TICKET_NUM,
    nvl(TKADTM,0) TICKET_TIME,
    --TICKET_JOIN.TDSOQS QUANTITY_TICKETED,
    0 CHECKIN_TIME,
    --nvl(TICKET_JOIN.TDQRLV,0) ACC_SHIPPED_QTY,
    nvl(DDADTM,0) START_TIME
    from
    (select
    TICKET.TKCMP1,
    TICKET.TKDO01,
    TICKET.TKQ101,
    TICKET.TKADTM ,
    TICKET.TKVEHT,
    TICKET_DETAILS.TDAITM ,
    TICKET_DETAILS.TDQRLV ,
    TICKET_DETAILS.TDSOQS ,
    TICKET.TKCNTF,
    TICKET.TKTRDJ,
    TICKET.TK58GA8
    from
    CRPDTA.F5800091 TICKET_DETAILS ,
    CRPDTA.F5800090 TICKET
    where TICKET.TKCMP1 = TICKET_DETAILS.TDCMP1
    and TICKET.TKTRDJ = TICKET_DETAILS.TDTRDJ
    and TICKET.TKTRDJ = 107085
    and TICKET.TKEV12 <> 'Y'
    and TICKET.TK58GA8='ECSEO'
    and TICKET.TKCNTF = '11') TICKET_JOIN ,
    (select
    DDDOCO,
    DDCNTF,
    DDQTFN,
    DDAITM,
    DDADTM,
    DD58GA8,
    DDTRDJ
    from
    CRPDTA.F5800051 ORDER_DETAILS,
    CRPDTA.F5800050 ORDER_HEADER
    where
    ORDER_HEADER.DHDOCO = ORDER_DETAILS.DDDOCO
    and ORDER_HEADER.DHTRDJ = ORDER_DETAILS.DDTRDJ
    and ORDER_HEADER.DH58GA8 = ORDER_DETAILS.DD58GA8
    and ORDER_HEADER.DHDCTO = ORDER_DETAILS.DDDCTO
    /*and
    (ORDER_HEADER.DHTRDJ = 107085
    OR (ORDER_HEADER.DHTRDJ = 107084 and ORDER_HEADER.DHEV04='Y')
    and TRIM(ORDER_HEADER.DH58GA8) = 'ECSEO'
    and TRIM(ORDER_DETAILS.DDCNTF) = '11' ) ORDER_VIEW
    where TICKET_JOIN.TKTRDJ = ORDER_VIEW.DDTRDJ
    and TICKET_JOIN.TDAITM = ORDER_VIEW.DDAITM
    and TICKET_JOIN.TKCNTF = ORDER_VIEW.DDCNTF
    and TICKET_JOIN.TK58GA8 = ORDER_VIEW.DD58GA8
    and NOT EXISTS ( select 1 from CRPDTA.F5800120 TRUCK_ASSIGNMENT
    where TATRDJ = 107085
    and TACNTF = '11'
    and TA58GA8 = 'ECSEO'
    and TICKET_JOIN.TKQ101||TICKET_JOIN.TKVEHT = TAQ101||TAVEHT )
    Thanks
    GM

Maybe you are looking for

  • Virus won't allow me to install programs

    HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Please I"m growing new gray hair everyday, and they're falling out from my issues. I'm a grandmother on disability and cannot afford to pay for anti-virus programs, so I thought I had resolved problem with

  • Setting text position

    I have a css for a text block that must be 20px high and have a 1px border. The text is set to 0.7ems, but I can't get it to be aligned in the vertical middle of the box. I've tried all sorts of things to get it to align proberly, but it's not aligni

  • Automatically assign cost center

    Using SAP 4.7 We need to automatically assign Cost Center at the time of asset retirement through scrapping. User doesnt have to enter the cost center. I have tried additional assignment in asset - integration with GL Account but it fails to do. Can

  • Subtotaling in ALV(urgent)

    Hi experts, can anyone tell how to achieve the subtotaling in ALV'S.any pseudo code .points will be awarded. Regards, nagaraj

  • Delaying the redirection

    After the users logout's i wanted to display a gif image stating that the user is being logged out so i wanted to delay the redirection to the home page.So how do i delay the redirection for about 5 seconds from the currect JSP page to the net HTML p