Is it posible to compare 2 variales in single if statement in BIP report?

Hi,
I want to know following things reg BI Publisher-
1. Is it possible to compare 2 variables in single if statement in BI Publisher report as follows-
<?if: xdoxslt:get_variable($_XDOCTX,'RVal1') = xdoxslt:get_variable($_XDOCTX,'RVal2')?>
2. Is it possible to compare 1 variable with 1 xml tag in single if statement in BI Publisher report?
eg - <?if: ObjId = xdoxslt:get_variable($_XDOCTX,'RVal2')?>
We are having 2groups QuoteItem and QuoteItemXA. QuoteItem is a parent group and QuoteItemXA is a child group of QuoteItem. We want to compare value of field QuoteItemId from QuoteItem group with value of field ObjId from QuoteItemXA group in inner for loop(QuoteItemXA for loop).
We want to display values of one field only when values of these two fields matches. Hence we are taking 1 variable for QuoteItemId and comparing it as follows -
<?if: ObjId = xdoxslt:get_variable($_XDOCTX,'RVal2')?>
The RVal2 variable is already initialized and assigned value of QuoteItemId in outer for loop.
But above for loop is not filtering out any data.
When we tried giving hardcoded values as -
<?if: ObjId = '1-151QGPO' and xdoxslt:get_variable($_XDOCTX,'RVal2') = '1-151QGPO'?> then its showing report only for this QuoteItemId.
Please suggest us the solution- how to compare above two fields?
Regards,
Rakesh

hello Rakesh,
Were you able to fix this issue ?
We have a BIP report on the Quote , Line Item and XA entities and we have the same issue with duplication of attributes due to use of Hierarchy parent lKey. I am assuming you would be having the same issue as well; as a result of which XA.ObjId is compared with QLineItem.Id

Similar Messages

  • To compare date with another date in string in siebel bip report

    Hi,
    In my rtf I am comparing a Date1 with a date in string i.e. '10-NOV-14'. If Date1 is less than '10-NOV-14' I am dispalying a certain text and if not another text.
    This condition is working fine if Date1 have 2014 values but if  Date1 cointains 2015 date than the mentioned condition is falling.
    Kindly suggest any solutions.
    Regards,
    Siddhika

    This example may help:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:param name="currentDate"/>
        <xsl:variable name="firstDate" select="concat(substring($currentDate, 1,4),substring($currentDate, 6,2),substring($currentDate, 9,2))"/>
        <xsl:template match="/">
            <xsl:apply-templates select="//item"/>
        </xsl:template>
        <xsl:template match="item">
            <xsl:variable name="secondDate" select="concat(substring(submissionDeadline, 1,4),substring(submissionDeadline, 6,2),substring(submissionDeadline, 9,2))"/>
            <xsl:choose>
            <xsl:when test="$firstDate &gt; $secondDate">
                <xsl:call-template name="late"/>
                </xsl:when>
                <xsl:when test="$firstDate &lt; $secondDate">
                    <xsl:call-template name="ontime"/>
                </xsl:when>
                <xsl:when test="$firstDate = $secondDate">
                    <xsl:call-template name="same"/>
                </xsl:when>
                <xsl:otherwise>Monkeys<br /></xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template name="ontime">
            This is on time
        </xsl:template>
        <xsl:template name="late">
            This is late
        </xsl:template>
        <xsl:template name="same">
            This is on time
        </xsl:template>
    </xsl:stylesheet>

  • How to compare the variances of production order type and get report

    Hello All,
    I want to compare the variances of production order type wise.
    for ex. i want variances of order type PP 01 and PP 02 in a single report.

    Hi Sachin,
    You have to maintain summarization hierarchies to achieve this.
    1. Maintain summarization hierachies with hierarchy level - order type in the t.code.KKR0    
    2. Generate the hierarchy in KKRC
    3. Run the report KKBC_HOE
    Regards,
    Mukthar  

  • Compare and insert in single SQL

    Hi ,
    I want to insert data from one source table to destination table based on the condition that a row does not exist in destination table based on some column filter . Is it achievable using single SQL.?
    Merge statement cannot be used as there is no unique key in source table and destination table.
    Here is the data and tables.
    create table test_source
    x_id number,
    report_sent_flag varchar2(30),
    year number
    insert into test_source
    select 10 , 'Y' , 2013 from dual
    union all
    select 20 , 'Y' , 2013 from dual
    union all
    select 30 , 'Y' , 2013 from dual
    union all
    select 10 , 'Y' , 2013 from dual
    union all
    select 20 , 'Y' , 2013 from dual
    union all
    select 30 , 'Y' , 2013 from dual;
    create table test_dest
    x_id number,
    report_sent_flag varchar2(30),
    year number
    insert into test_dest
    select 10 , 'Y' , 2013 from dual
    union all
    select 10 , 'Y' , 2013 from dual;
    select * from test_source  ;
    10    Y    2013                                            
    10    Y    2013
    20    Y    2013
    20    Y    2013
    30    Y    2013
    30    Y    2013
    select * from test_dest ;
    10    Y    2013
    10    Y    2013
    Now , i need compare test_source and test_dest tables on column  (x_id , report_sent_flag and year ) column , since 10 , Y , 2013 is present in test_dest , it will be skipped . Rest should get inserted into test_dest table from test_source.
    Can it done by SQL only ?
    Please assist
    Thanks
    Please assist

    only SQL :
    SQL> select * from test_source  ;
          X_ID REPORT_SENT_FLAG                     YEAR
            10 Y                                    2013
            20 Y                                    2013
            30 Y                                    2013
            10 Y                                    2013
            20 Y                                    2013
            30 Y                                    2013
    6 rows selected
    SQL> select * from test_dest ;
          X_ID REPORT_SENT_FLAG                     YEAR
            10 Y                                    2013
            10 Y                                    2013
    SQL> select * from log_exists_records;
          X_ID REPORT_SENT_FLAG                     YEAR
    SQL>
    SQL> insert into log_exists_records
      2  select * from test_source
      3  where (x_id,report_sent_flag,year ) in (select x_id,report_sent_flag,year from test_dest)
      4  /
    2 rows inserted
    SQL>
    SQL> insert into test_dest
      2  select * from test_source
      3  where (x_id,report_sent_flag,year ) not in (select x_id,report_sent_flag,year from test_dest)
      4  /
    4 rows inserted
    SQL> select * from test_source  ;
          X_ID REPORT_SENT_FLAG                     YEAR
            10 Y                                    2013
            20 Y                                    2013
            30 Y                                    2013
            10 Y                                    2013
            20 Y                                    2013
            30 Y                                    2013
    6 rows selected
    SQL> select * from test_dest ;
          X_ID REPORT_SENT_FLAG                     YEAR
            20 Y                                    2013
            30 Y                                    2013
            20 Y                                    2013
            30 Y                                    2013
            10 Y                                    2013
            10 Y                                    2013
    6 rows selected
    SQL> select * from log_exists_records;
          X_ID REPORT_SENT_FLAG                     YEAR
            10 Y                                    2013
            10 Y                                    2013
    SQL>
    Ramin Hashimzade

  • How to compare data in a single table by month and year

    Hello Please.,
    i would like to see the 2014-06 matched results (3rd query),
    if the same ssn and acctno is exist in 2012-06 and 2013-06 and 2014-06 then eliminate from results, otherwise show it
    select ssn, acctno From jnj.drgSamples where Channel ='KM' and TrailMonth ='2012-06'
    select ssn, acctno From jnj.drgSamples where Channel ='KM' and TrailMonth ='2013-06'
    select ssn, acctno From jnj.drgSamples where Channel ='KM' and TrailMonth ='2014-06'
    i have written the below query but it shows only matched across three queries, but i want to display / delete from 2014-06 records if the ssn and acctno is exist in 2012-06 and 2013-06
    select c.*  from (
    (select * From jnj.drgSamples where Channel ='KM' and TrailMonth ='2012-06' ) a join
    (select * From jnj.drgSamples where Channel ='KM' and TrailMonth ='2013-06' ) b on a.SSN = b.SSN  and a.acctno = b.acctno  join
    (select * From jnj.drgSamples where Channel ='KM' and TrailMonth ='2014-06' ) C on a.SSN = c.SSN  and a.acctno = c.acctno  join
    Please Help me with this
    Thank you very much in Advance
    Asitti

    This is a relational division problem T-SQL:
    Relational Division
    Try:
    ;with cte as (select ssn, acctno, count (distinct(TrailMonth)) as cntMonths
    from jnj.drgSamples WHERE Channel = 'KM' AND TrailMonth IN ('2012-06','2013-06',2014-06'))
    GROUP BY ssn, acctno)
    delete from jnj.drgSamples S where exists (select 1 from cte where S.ssn = cte.ssn and S.acctno = cte.acctno and cte.cntMonths = 3)
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • List functions: Comparing lists... in SQL statements?

    Hello
    I got a table with a column containing comma-separated
    values, p.e.
    row 1: 45,67,2,90,67
    row 2: 34,7,23,9,7
    row 3: 4
    row 4: 567,8,90
    now I would like to find the rows containing p.e. 4 and 90.
    the search input comes in a list 4,90
    my results should be row 1, row 3 and row 4.
    how do I write the WHERE clause in SQL?
    thank you so much for hints...

    As Dan alluded to, you need to fix your data model. However,
    you say you can't do this, but you ask: "how do I write the WHERE
    clause in SQL?"
    SQL isn't designed to help you continue to use a faulty data
    model. Thus, there isn't a nice way to write what you want, and
    it's going to be dog-slow.
    For each item in the list you're searching for (4,90 in your
    example), you need to check 4 options:
    Is this element at the beginning of my list? WHERE row LIKE
    '#element#,%'
    Is this element at the end of my list? WHERE row LIKE
    '%,#element#'
    Is this element in the middle of my list? WHERE row LIKE
    '%,#element#,%'
    Is this the only element in the list? WHERE row = '#element#'
    You can see how this gets crazy.
    <cfset listToSearchFor = "4,90">
    <cfquery ...>
    SELECT * FROM tablename WHERE
    <cfloop list="#listToSearchFor#" index="idx">
    row LIKE '#idx#,%' OR
    row LIKE '%,#idx#' OR
    row LIKE '%,#idx#,%' OR
    row = '#idx#' OR
    </cfloop>
    1 = 2
    </cfquery>
    All of these OR LIKE checks are gonna make the query slower
    and slower.
    In the future, never EVER store a comma-delimited list in a
    database field. You want to break it out into another table. How do
    you do that? I'm glad you asked... In your example, where Row 1 =
    "45,67,2,90,67", assume the primary key for that row is "12"...
    Main_Table
    id
    Whatever_Table (You'd name this table based on what these ids
    stand for in the row list)
    main_id foreign key references main_table(id)
    whatever_id
    So your Main_Table would have an entry with an ID of 12 and
    Whatever_Table would contain:
    main_id whatever_id
    12 45
    12 67
    12 2
    12 90
    12 67
    Now you can get all the whatever_id values for a given
    main_id by:
    select whatever_id from whatever_table where main_id = 12;
    And to answer your original question, you can do:
    SELECT Main_Table.* FROM Main_Table JOIN Whatever_Table ON
    (Main.id = Whatever_Table.main_id)
    WHERE whatever_id IN (4,90)
    Lots easier, huh?

  • Is it posible to package multiple extensions in single mxp file?

    I am trying to figure out how to package multiple extensions into a single file.  I am creating extenstions for my elearning instructional designers who use DW CS4.  I want to save them the hassle of installing each extension 1 at a time.  It will also be great for maintenance purposes.  I know joomla has been able to achieve this.

    Yes, of you look at your mxi file, where it says files, for your last entry in the destination direct to a new folder (the extension manager will create it for you if it does not exist).
    The extensions that you create will be shown in this new folder.
    Add all the files for your extension (suite) to this one mxi file.
    HTH

  • How to compare performance of 2 reports which update a database table?

    I have got this assignment of optimizing the perfomance of an existing report. I made a report zreport_2 & executed both of them in background simultaneously to compare the time. However, the following error was reported during the concurrent run:
    Express Document "Update was Terminated"..
    When executing individual report in background, no error was reported.
    I checked T-code SM13 & ST22 (as advised in one of the threads) & following was the error (during INSERTING one record):
    Error analysis
    Short text of error message:
    Error in adding to table EASTE 000000000000065578   0
    Technical information about the message:
    Diagnosis
         An error occurred during addition of one or more table entries.
         This error was reported by the database system.
    System Response
         The system does not permit addition of one or more table entries.
         It is possible that an SAP short dump has been written from the SAP
         basis system.
    Procedure
         Find out if the SAP short dump provides additional information.
         You can view SAP short dumps using Transaction SM21.
    Message classe...... "E9"
    Number.............. 015
    Variable 1.......... "EASTE"
    Variable 2.......... 000000000000065578
    Variable 3.......... " "
    Variable 4.......... 0
    Variable 3.......... " "
    Variable 4.......... 0
    Please help!

    > I made a report zreport_2 & executed both of them in background simultaneously to compare the time
    this was really no good idea.
    If you insert anything to the database, then you get a dump, if you try to times the same.
    Even if you don't change anything then the parallel processing will not show anything the only try to get the resources.
    You must execute them onne by one.
    Run traces of both executions, execute every version at least three times (first one more expensive, second and third similar otherwise repeat)
    SQL trace:
    /people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy
    SE30
    /people/siegfried.boes/blog/2007/11/13/the-abap-runtime-trace-se30--quick-and-easy
    The SE30 shows everything what was going on, the SQL trace only the db part.
    Check the summary by SQL statements, this is small, and youi can compare both executions by hand.
    The SE30 hitlist is large, but there is a tool to compare then, see here:
    Z_SE30_COMPARE
    /people/siegfried.boes/blog/2008/01/15/a-tool-to-compare-runtime-measurements-zse30compare
    Siegfried

  • Regarding read and compare of internal table.

    HI,
    i want to read internal table based on key pernr.
    suppose if we load the dec month data we want the last record of that month.
    if we load march 2008 data we want todays record.
    for this there are two fields datefrom and dateto.
    how to compare thesse two fields in read statement.
    regards,
    swami.

    Hi,
    Check this code
    loop at itab.
    endloop.
    if month = december
    read table itab with key sy-tabix = sy-dbcnt.
    "above stmt will fetch the last record
    elseif month = march
    read table itab with key sy-tabix = 1.
    "above stmt will fetch the first record.
    endif.
    Reward if helpful.
    Regards.

  • Split Data File and Compare Events

    Hi All,
    I'm pretty new to DiAdem and the community so I apologize if this has been answered.  
    The data file I am working with is a vehicle field test and I would like to compare events throughout a single data file events highlighted by the flagged section of the attached picture.  I figured out how to flag and copy the data but I am wondering if there is an easier way to make the data line up without iteratively calculating it?  I'd like to do this without a script to be able to investigate these events before an analysis script is finalized.  Ideally I would like to select a second X-axis and slide it so the copied data lines up with the original.  

    Waveform data contains x-part and the y-part of a curve in one channel. The other way of storing data is having the x-data and y-data in separate channels. Based on your description, I think you have two channels of data, correct? When copying the data using the flags, there should be a copy of the x-data and a copy of the y-data.  From the picture, it looks like the y-data is being plotted against the original x-data and not against the copied x-data. To plot the copied x-data and the copied y-data&colon;
    Select the x-data copy
    Hold down the control (Ctrl) key
    Select the y-data copy. This will pair the copy together.
    Release the Ctrl key. 
    Then you can drag and drop the seletced pair of copied data onto the View pane, as I did in my image above. You should not have to perform analysis to shift the data over time if you use this method.
    [Edit: fixed spelling mistake]
    Taylor B.
    National Instruments

  • String comparator

    Hey guys,
    I am having a problem comparing 2 strings in an if statement.
    I have an NSString called picked and a string literal that I want to compare in the if statement. I want to see if those two strings are visually the same (meaning they both say "something" and that I am not trying to compare their addresses or anything.
    I have the following: if(self.picked == @"something") {...
    Of course I realize that "==" is probably comparing their memory addresses. However, when I try to use isEqualToString method, I either am using it wrong, or that method does not apply to this situation because I get errors/warnings.
    Thanks in advance for the help.

    I have the following: if(self.picked == @"something") {...
    I think this is in NSString
    if ([self.picked isEqualToString:@"something"]) {
    NSLog(@"Equal strings");
    Also I believe NSString subclasses NSObjects isEqual method so that it does the same thing so you could use
    if ([self.picked isEqualTo:@"something"]) {
    NSLog(@"Equal strings");

  • Comparing 2 strings in if statement

    Hi All,
    I want to compare two strings in if statement. When I use "==" then its throwing error that expected number and got string. Can anyone please let me know how can we compare two strings in an IF statement?
    Thanks in advance

    The OP doesn't state what release he's on.
    The functions @LIKE and @MBRCOMPARE are 11.1.2 and up only.
    OP, if you're at a lower release, I've faced this problem as well in 11.1.1.3. Here's an older thread that detailed how I got around it for a client:
    Re: How to compare two strings in calc script?
    It really wasn't hard to do and the performance, in the limited context I was using it in, was fine.
    Regards,
    Cameron Lackpour

  • Report Comparing Previous MRP Runs

    Dear Experts,
    Is there a SAP report that compares past MRP runs/results?
    For analysis and reporting purposes, we need to compare past MRP runs to identify factors which affect a certain material availability issue (e.g. out-of-stock, increased or decerased inventory holding, etc.).
    For a more specific example, let's say I would like to know why a certain material had its inventory level significantly lower compared to the safety stocks at a specific time in the past. Is it because of a higher actual demand compared to the forecast used during the planning run? Or was there an abnormal increase in consumption during the production?
    We also need to do the same when we have internal and external auditors auditing the process and systems we have in place.
    Hope to get your inputs on this.

    Dear,
    In my understanding you can use T code- MDLD or convert the MRP run results into a PDF file and you can compare.
    However i dont think there is some standard report to compare the same.
    Also check this link,
    MRP results
    Regards
    Mangalraj.S

  • How compare a word in en language with german language

    Hi All,
    I have one requirement. i.e. i would like to search for the german words in any kind of program(i.e.executable, dialog, include, function module etc..). For this i need to read the program line by line and find the number of lines. After that, i will split each line into words, and compare each word with german word ( or test wheather the word is in english or not?). Finally display the words which are not belongs to engilsh or display the appropriate message.
    Anybody came across this kind of requirement pls help me how to write code for the above. Please send me the code if possible.
    i am very thankful to one and all in advance.
    With Regards,
    Nagarjuna.

    You can try that will the following statements.
    READ REPORT and SCAN.
    With READ REPORT , you can upload your report into an internal table and then
    using SCAN you can break that internal table into TOKENS.
    You can check the internal tables returned by the statement SCAN. You will be able to get the report broken into different internal tables.
    Then you can compare the words for ENGLISH and GERMAN.
    Reward Points if Useful
    Regards,
    Abhishek

  • How to get reports from comparative reports from GLT0/FAGLFLEXT

    Hi,
    We have activated New GL and also write and read option to GLT0 indicators are active. While we are able to see in FS10N account balance report the account balances for the periods in classic GL but not been able to get comparative financial statements (F.01 report) with prior year comparatives. We have not yet deactivated GLT0.
    FS10N account balances we are able to see by using parameter ID -CLASSIC_BAL_FS10N.
    Is there any way to get comparative financial statements until we deactivate GLT0 at the current year end?
    Ramesh

    Hi,
    Please notice the new data structures within NewGL: in this scenario
    total table FAGLFLEXT replaces GLT0. (There is the possibility of
    parallel update and read of GLTO with activated NewGL: customizing path.
    Financial Accounting(New)-> Financial Accounting Basic Settings (new)->
    Tools Deactivate Update of Classic General Ledger (GLT0)). By default
    , after activation of the new general ledger, the reports only read the
    new general ledger accounting, the "read from Classic general ledger"
    flag is not set.
    Take into account that any update of the classic general ledger tables
    should be deactivated after you run and verify the first end-of period
    closing, at the latest. If you update the tables for both the
    conventional and new general ledger, you will generate too many unneeded
    records.
    If the parameter "Read Classic General Ledger (GLT0)" is marked, F.01 will not
    read New g/l information (FAGLFLEXT).

Maybe you are looking for

  • Multiple problems with touchscreen on iPad Air

    I bought an iPad Air right when it came out last year, and it has started to give me problems with the touchscreen. These problems don't happen all the time, just enough to be annoying - but not enough that I can discern any pattern. So I can't figur

  • Leap year problem

    I cannot enter the date "February 29". My normal way of specifying a date is "2-20", which gives me "February 20". This works up to and including "2-28". But entering "2-29" results in "1 feb 2029". I have been unable to find a solution here. Gunnar

  • Cannot remove a broken sidebar network folder alias in Finder window

    Mac OS 10.6.7 -- WinXP Home I have a created netowork folder alias in the sidebar of my Finder window that points to a shared folder on an officemate's PC (WinXP Home). This folder has been deleted on the officemate's computer. Now, in my Finder wind

  • How to manage access to jsps in ur application?

    Hi! we are developing J2ee application in which we have many Jsp pages , these jsp pages are accessed by different clients in different modes (i.e if administrator is watching a page then all the facilities in page will be available to him but if any

  • Error when i release the biling dcoument to accounting in VF02.

    Dear All, I am getting the following error when i release the biling dcoument to accounting in VF02. Kindly help me in getting the solution Document date / / is incorrect in item 0000000001 Message no. F5 833 Diagnosis Service financial accounting: d