Manipulate the result rows using routine or fm

Hello BW Experts,
Can we manipulate the BW result rows in Bex using any routine or fm.
Suggestions appreciated.
Thanks,
BWer

Dear BWer,
Following is a sample code for ZXRSRU01:
You can get the data from Queries or any other objects.
Is this what you are lookign for ?
Good luck, BB
Variable Type
case i_vartyp.
when 0.
case i_s_rkb1d-infocube.
when '0SD_C03'.
clear: g_vir.
refresh: g_t_price1,
g_t_price2.
Loop selection table and get Price Id and Price Year
loop at i_t_var_range into g_t_var_range.
case g_t_var_range-iobjnm.
when 'PR_ID1'. g_vir-pr_id1 = g_t_var_range-low.
when 'PR_ID2'. g_vir-pr_id2 = g_t_var_range-low.
when 'PR_YEAR1'. g_vir-pr_year1 = g_t_var_range-low.
when 'PR_YEAR2'. g_vir-pr_year2 = g_t_var_range-low.
endcase.
endloop.
Insert prices to table g_t_price1
if not g_vir-pr_id1 is initial.
select *
from zprice
into table g_t_price1
where price_id = g_vir-pr_id1
and price_year = g_vir-pr_year1.
endif.
Insert prices to table g_t_price2
if not g_vir-pr_id2 is initial.
select *
from zprice
into table g_t_price2
where price_id = g_vir-pr_id2
and price_year = g_vir-pr_year2.
endif.
endcase.
endcase.

Similar Messages

  • Display only the result rows only by using condition or any other way

    Hello Everybody,
    I've a web report where I want to diplay ony the result rows and don't want to display the detail rows at all. I could hide the detail rows but these rows still appear without any value in the key figure fields.
    I tried to revove the characteristic field from the drilldown but it doesn't show the report correctly. Then I tried to write a condition to filter the detail rows but this condition doesn't apply to the result rows so this effort also didn't work for me.
    Is there anyway we can display the report with only the result rows ? I've already tried to find out a solution on SDN but couldn't get the solution eventhough I found many posts on this kind of requirement.
    Any help would be greatly appreciated.
    Thanks
    Alok

    Please explain when you say
    "I tried to remove the characteristic field from the drill down but it doesn't show the report correctly"
    What is problem there? What result do you get. If possible please provide  details of columns layout and few numbers

  • How to hide the all rows except the result row in a report?

    Hi Experts,
    We have a report in which the user is interested to see only the result rows and I need to HIDE the characteristics in the rows. I was successfull in doing the same for Key figures in columns using "Calculate single value as suppress result". But I am not finding a way out to hide the characteristics in the rows.
    If I move the characteristics in rows to Free characteristics, the result row is not getting dispalyed. Also, the characteristics are  used dynamically by the formulae in columns and hence i cant remove these characteristics from the query. . The user wants the query to contain only one characteristic in the row and the result row for the key figures in columns. The report currently displays Invoice level data for each customer and this needs to be eliminated and it should display the summarised  data for every customer. Please suggest how this can be accomplished
    Regards,
    Kavitha

    Moving the char to free char will show the equivalent of result.
    Your issue likely is that this breaks the calculations since you do want the calculations done at detail level.
    To achieve this, move your char to free char (say it is 0CUSTOMER).
    For the CKF/Formula, go to aggregation tab, set the exception aggregation as Total (or whatever it was in standard behavior) and specify reference characteristic (in this case 0CUSTOMER), also check the 'Before aggregation' if you have that checkbox there.
    This will ensure the calculation is done at detail level even though the char is not included in the rows.
    If you have multiple chars to be moved to free char but included in detailed calculation, you will need to build cascading CKFs (CKF1 with ref char1, CKF2 eq to CKF1 with exception aggr on ref char2...and so on).
    Added:
    I understand you do want 0CUSTOMER in there, but something else (let us say 0DOCNO) removed. Use 0DOCNO in place of 0CUSTOMER in the case described above.
    Edited by: Ajay Das on Aug 5, 2009 8:57 AM

  • Restricting on the Result Row

    I have a query where I am trying to restrict the query by the results row.  For example:
    Account Nbr       Installation         Type         Nbr of Installations
    12345                 70430                Elec                        1
    12345                 70691                Elec                        1
    12345                 71321                Gas                        2
    Result Row                                                                 3
    15421                 70002                Gas                        1
    Result Row                                                                 1   
    In this case I would only like to see the first set because the result is greater than 1.  How can I accomplish this? Thanks.
    Edited by: labraun on Nov 4, 2009 7:16 PM

    hi ravi,
    that sounds intrestin.
    MAy be u can do this in the update rule i.e instead of KF use as Char and just concatinate figures.
    and in the report u can do some manupiation to show results .
    cheers
    Babu

  • Presenting/Selecting the "result rows" in a query

    Hi,
    Here is a description of my problem:
    I have a query which returns values for materials grouped by purchasing groups:
    Group 1 Material A KyeFigure
    Group 1 Material B KyeFigure
    Result:  KyeFigure       
    Group 2 Material C KyeFigure
    Group 2 Material D KyeFigure
    Result: KyeFigure
    I'm using a Web application designer chart to present the values graphically. I would like only to present the result rows in the chart, not item values. But since the chart picks all KFs presented in the table (items as well) this is not the case. I've tried to find a way in the chart-settings without any luck - it seems not possible. The documentation states that you're supposed to design your table the way you want it to show in the chart. However, I'm not allowed to redesign the cube or the report. It is not possible to drill up characteristics either (this affects the calculation).
    My question is: Is there a way to extract the result rows into a new table and then base my chart on that one or simply somehow present only the result rows in a chart?
    Best Regards
    /Daniel

    Hi Daniel,
    You can create the query view in BEx Analyzer. After you execute the query, use filters, drill downs etc to get to the exact "view" of data that you would like you chart to present. Save this query view. Then in your web template assign this query view as the data provider.
    Hope this helps...

  • What is the result of using the "post tax payable" option in the advance ta

    what is the result of using the "post tax payable" option in the advance tax report - program rfumsv00? I know it will then post the input and output tax to the tax payable GL account. But from point of view of reporting, when you run the advance tax report, will there be any change after doing this posting to tax payable account?

    Basic communication aside, J2EE is mostly a synchronous run-time environment. When asynchrony is introduced, a whole new set of infrastructure requirements is needed to support QoS and commercial-quality implementations. In other words, it's not just about API anymore, it's about reliable communication, exception handling, time outs, etc. You may want to look at this Q&A to see some of the benefits provided by J2EE as underlying run-time for orchestration:
    http://searchwebservices.techtarget.com/ateQuestionNResponse/0,289625,sid26_cid511195_tax292928,00.html
    Doron\
    Download Collaxa 2.0
    http://www.collaxa.com

  • Getting descrepency in the result row of the Query

    Hi All,
    I am executing a query which is having 4 Keyfigures and 2 formulas.
    I am getting wrong result in the query for formulas.
    Below is the query structure
               f1        f2         f2%f1       f3       f4            f4%f3
    date
    1
    2
             792    408        51.78        9647    8403       88.57
    All the keyfigures - result is set as total
    Formula                - result -nothing is defined(under calculation tab)
    The result I am expecting for column 3 is 408/792 = 51.51
    The result I am expecting for column 6 is 8403/9647=87.10
    To get the expecte result what changes i need to do to the formula.
    Thanks
    Jagadeesh

    Hi Anand,
    Thanks for your reply.
    If i change it to summation, it will give me sum in the result row.
    I am not looking for summation, i want percentage for (overall result F2/overall result F1).
    Thanks
    Jagadeesh

  • Decimal places on the result row is incorrect

    Dear Expert,
    I met a problem that decimal places on the result row is incorrect.Anyone can help me?
    On key figure balance,we do the currencies translation,also we set the key figure should have two decimal places.
    We set a fomular to calculate the total result of Account A,B,C.
    (Total result = account Aaccount Baccount C).
    If we manually sum up the balance of account A,B,C displayed on analyzer,which are rounded to 2 decimal places,the result should be 601.25(100.61200.38300.26),but the actual total result executed by query is 601.24.
    In fact we need the result 601.25 instead of 201.24.
    I take the example as following:
    Account      Balance
    Account A  100.61
    Account B  200.38
    Account C  300.26
    Total result 601.24
    Thank you in advance.
    Best Regards,
    Maggie
    Edited by: Maggie Ma on Sep 25, 2008 9:17 AM

    your "problem" is, that BEx is not totalling the "displayed" values but the real values
    try a summation on the following in Excel:
    100,605
    200,375
    300,26
    then format the cells to show 2 decimal places only
    do you see the result changing?

  • How to sum the  result rows at query designer

    Hi,
    We want to sum  the result rows which are at the end of the row by the help of query designer?So ,we directly see at analyzer
    exp:
       ..A.jan...A.feb...B.may...B.jun...SumA...SumB....SumA+B
    X..1............9..........6..............7........10.........13..........?????
    Edited by: zarata on Oct 23, 2011 12:49 PM
    Edited by: zarata on Oct 23, 2011 1:07 PM

    Hi,
    Could you please provide some more information.
    if you have characteristics iobject whose values are (A, B etc) and calendar month in rows and then at column level you have key figures then if you have turn on the "Display Result Rows" property of both iobject in Bex  as "Always" you can get the result. At the same time you can set "Display Overall result" property of the Query to get overall result.
    Regards,
    Pravin

  • How to make the Results row a toggle when the user wants/does not want see

    The user wants to toggle between seeing/not seeing the Results row at the bottom of each row. How to make it like a toggle checkbox/selection on the screen so that the user can decide on seeing/not seeing it in the report. If not possible to do such a thing, then how do I totally prevent it from showing in the report. Version is 3.5 BW.
    Thanks
    Ram

    For each characteristics in the query designer, right-click and go to properties....
    then in the 'Display of Results' section in the 'Suppress Result Rows' option, select: "Always".
    This will suppress the result rows.
    Good luck,
    AT

  • Formula Collision in the result rows

    Hi Guys,
    I have 2 KFs A & B and KF C = A/B.
    In Results rown instead of calculating it as ( A1 + A2 +... +An)/ (B1 + B2 .... Bn) , I want to calculate it as (C1 + C2 + ....+Cn). I tried all options in formula variables, it simple doesnt work. Not sure if we can use it with Result Rows.
    Does anyone have any answer ?
    I would return point for all the helpful answers which I always does.
    Cheers
    Kirk

    Hi Kirk,
    There are 2 ways of doing this
    1) If you're defining the Caluclate KF then you have to right click on the calculated key figure and then click on Enhance button. In the Aggregation block you have to choose "After Aggregation" from the drop down.
    2) If you are using New formula which is local to the query only, in that you have to define a new formula as per your requirement and then go to the property of the new formula by right clicking on it. In the Formula collision block you ned to choose "Result from competing formula".
    Hope this will help.
    Please note that for the calculated field C which is A/B the Calculate Result as should be Nothing defined. But for Field A and B it should be SUMMATION.
    Give reward point if satisfied.
    Regards,
    Message was edited by: tapan tripathy

  • Question on the result of using Wavelet transform on sine wave

    Dear all,
    I have apply the Wavelet transform on a 50Hz sine wave. The result is shown below. But I don't understand the result of Wavelet transform. Anyone can help me? Thanks.
    Victor

    You seem to have something against the FFT, yet continually compare other transforms to the "sweet spot" for the FFT, ie. sinusoidal and periodic functions.  Without trying to write a treatise on the subject (there are many fine books), a few observations.
    The primary purpose of any transform pair is to perform a rotation in function space, for the FFT we are familiar with the time domain and frequency domain.  The wavelet domain is not so simple.  The FFT is very effective for sinusoidal and periodic functions, ie. those that have no localization in the time domain.  If you have a sinusoidal input, the infinite signal in the time domain can be reduced to a pair of numbers (one if you take the power spectrum).  That is very efficient, other periodic signals can usually be approximated by a small number of terms.  
    Wavelets on the other hand are chosen to be localized in both the time domain and the wavelet domain.  If you look at a periodic signal like your sine wave, you see a mess, and to recreate the input signal you will need to keep an awful lot of the points around for the inverse transform.  You may be able to set the last 1/3 to zero, but that's it.  To see an effective application, you should be looking at localized functions, like an impulse.  Put an impulse into the wavelet transform and you get something that is still a bit complex, but pretty simple.  The FFT of an impulse contains components at all frequencies and the wavelet clearly wins in this case.  
    On paper, there is usually a clear choice, and the FFT almost always wins for spectral estimation.  On the other hand, if you are trying to compress "real world" data, for instance an image, then there is a choice to be made.  Standard JPEGs are FFT based, you take the FFT and try to keep just the largest frequency components.  As you probably notice, edge contrast usually suffers, especially at higher compression.  With wavelets, it is typical to have slightly better contrast leading to better preservation of details for a given compression.
    In short, my opinion is that transforms are useful when they simplify the problem.  Wavelets do not simplify the representation of a sine wave. 

  • Is there a way to get the result of using multiple blending modes in one object?

    Hello,
    I wonder if there's a way to merge multiple objects with blending modes to one object. Here is the example:
    On the left rhere are three objects with the same appearence but different blending modes(color dodge, normal, overlay), on the right they are overlapped, which are still three object. I'm looking for the way to have the same result as the right overlapped one, but as one object. Having the same multiple objects only for the result of color blending mode uses too much memory for my computer.
    Thank you for your help in advance.

    create one object: then in your appearance panel, duplicate the fill twice. Select the top fill and expand the sub menu, click on opacity, choose blending mode. repeat.
    G

  • How to filter the result by using a Quarter fields

    How can i fiter the output by using the quarter field for example I want to display the output for letting date 07060801 and quarter 1(Q1-2007) thanks
    SELECT tab.description, tab.itmenum, tab.units, tab.countyname, tab.datelet,'Q'||tab.Quarter,
           tab.contid, tab.vendor, tab.vendorname, tab.quantity, tab.EngineersPrice ,
            (tab.EngineersPrice*tab.quantity) EngineersTotal, tab.vendorsPrice,
           (tab.quantity * tab.vendorsPrice) VendorsTotal
      FROM (SELECT   INITCAP (i.idescrl || '  ' || e.isupdes) description,
                     e.isupdes, i.idescrl, SUBSTR (e.eiitem, 1, 4)|| '.'|| SUBSTR (e.eiitem, 5, 9) itmenum,
                     e.eiitem, func_get_unit_name (iunits) units,
                     INITCAP (func_get_county_name (p.ccnty1)) countyname,
                     b.datelet,TO_CHAR(b.datelet, 'Q-YYYY') Quarter, p.contid, d.vendor, l.CALL, g.csecnum, e.iplineno,                         
                     SUM (e.iqty) quantity,
                     (TRIM (d.vendor) || ' : ' || INITCAP (v.vnamel)) vendorname,
                           (SELECT br.bidprice
                        FROM bidtabs br
                             --------------------Select Letting Dates-------------------------------
                       WHERE br.letting  between '&lettingDatePlease' and  '&lettingDatePlease2'
                         AND br.lineflag = 'L'                                   
                         AND br.iplineno = e.iplineno
                         AND br.CALL = l.CALL
                         AND br.vendor = d.vendor) vendorsPrice,
                         (SELECT DISTINCT pi.price
                                 FROM propitem pi
                                WHERE pi.contid = p.contid
                                         AND pi.lineflag='L'
                                         AND trim(pi.iplineno) <> ' '
                                  AND trim(pi.iplineno) = trim(e.iplineno)) EngineersPrice
                FROM itemlist i,
                     estitem e,
                     estcatg g,
                     propproj x,
                     proposal p,
                     letprop l,
                     bidlet b,
                     bidders d,
                     vendor v
               WHERE p.contid = x.contid
                 AND x.pcn = g.pcn
                 AND e.pcn = g.pcn
                 AND e.cn = g.cn
                 AND i.item = e.eiitem
                 AND i.ispecyr = p.cspecyr
                 AND e.iplineno <> ' '
                 AND e.eiitem <> '2550601/01000'
                 AND e.eiitem <> '2565601/00031'
                 AND e.eiitem <> '2565601/00033'
                 AND e.eiitem <> '2402601/01000'
                    -----Select Item Number----------
                 AND e.eiitem = '&itemNumberPlease'
                 AND l.lcontid = p.contid
                 AND l.letting = b.letting
                 AND l.letting = d.letting
                 AND l.CALL = d.CALL
                   -- AND l.LETSTAT='A'---------------------why 6/22 is not included----------------------------work with this-------------------------
                 AND d.vendor = v.vendor
                    ------Select Letting Dates--------
                 AND b.letting between '&lettingDatePlease' and  '&lettingDatePlease2'
            GROUP BY p.contid,
                           d.vendor,
                     g.csecnum,
                     e.iplineno,
                     SUBSTR (e.eiitem, 1, 4) || '.' || SUBSTR (e.eiitem, 5, 9),
                     b.datelet,
                     l.CALL,
                     e.eiitem,
                     (i.idescrl || '  ' || e.isupdes),
                     func_get_unit_name (iunits),                
                     iunits,
                     p.ccnty1,
                     i.idescrl,
                     e.isupdes,
                     i.idescrl,
                     v.vnamel,
                     e.isupdes)  tab
    DESCRIPTION     ITMENUM     UNITS     COUNTYNAME     DATELET     'Q'||TAB.QUARTER     CONTID     VENDOR     VENDORNAME     QUANTITY     ENGINEERSPRICE     ENGINEERSTOTAL     VENDORSPRICE     VENDORSTOTAL
    Mobilization        2021.501/00010     LUMP SUM     Hennepin     3/30/2007     Q1-2007     060048              ALS0010            ALS0010 : Ames / Lunda / Shafer (Jv)     1     11376150     11376150     14357900     14357900
    Mobilization        2021.501/00010     LUMP SUM     Hennepin     3/30/2007     Q1-2007     060048              MP0001             MP0001 : Mccrossan/Pcl (Jv)     1     11376150     11376150     15600000     15600000
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              C320               C320 : Central Specialties Inc     1     130459     130459     637860     637860
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              D420               D420 : Duininck Brothers Inc     1     130459     130459     362000     362000
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              H151               H151 : Hardrives Inc     1     130459     130459     516000     516000
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              H438               H438 : Hoffman Construction Company     1     130459     130459     255000     255000
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              K0037              K0037 : Knife River Corporation - North Central     1     130459     130459     290953.37     290953.37
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              M0027              M0027 : Midwest Contracting Llc     1     130459     130459     285000     285000

    Hi gourous,
    I am sorry, my question is a little bit more complex. I hope I may repost here, without opening another thread. Thank you for your understanding.
    The EQUIPE_ID column of the table refers to a team. This id is returned by a select list named :P60_EQUIPE_ID which select all the EQUIPE_ID available. Then if one choose a team in this select list, the choosen EQUIPE_ID is returned. If nothing is selected in the select list, then a null value is returned.
    The AGENT_ID refers to a person. This id is returned by a select list named :P60_AGENT_ID, which returns all the members of the previously selected EQUIPE_ID. If nothing is selected, then a null value is returned.
    A team may have several persons belonging to that team.
    I would like that if a TEAM is selected, without selecting an agent in the :P60_AGENT_ID select list (returning a null value in this case), then all the people belonging to that theam will be retrieved by the select QUERY of a report.
    Then one could refine the query by selecting a person in the :P60_AGENT_ID select list in order to view only the people of that team in the report.
    To resume :
    IF EQUIPE_ID is NULL -> all the teams and all the persons are displayed in the report.
    IF EQUIPE_ID is NOT NULL and :P60_AGENT_ID is NULL -> All the people of that selected team appears on the report
    IF EQUIPE_ID is NOT NULL and :P60_AGENT_ID is NOT NULL -> The report displays only the results of the query for that person of that team.
    Thank you for your kind help !

  • Sorting by Characteristic Result Rows using Condition Top 100%

    I need to sort characteristic by results and use <<Top 100%>> condition to do it.
    I got three characteristics in my query:
    1. Organization
    2. Date
    3. Planning Level
    And three key figures
    1. Planned amount
    2. Actual amount
    3. Deviation % (Actual/Planned) (calculated by using amounts, Date and Planning Level)
    I need to know best palnning organisations by sorting them on deviation results on Organisation Level.
    Also I need Date  and planning Level characteristics involved in query, because they taken in  Deviation formula.
    Then I use condition (Top 100%) by Organization, the query doesn't sort Organisations by Deviation properly Any ideas why? I tried to add one extra characteristic in query on top of Organisation and use it in condition but it doesn't work either.

    I guess u didn't understand me.
    I got three characteristics in my query:
    1. Organization
    2. Date
    3. Planning Level
    And three key figures
    1. Planned amount
    2. Actual amount
    3. Deviation % (Actual/Planned) (calculated)
    I need to know best planning organizations. So I need sort Organization by
    Also I need Date  and planning Level characteristics involved in query, because they taken in  Deviation formula.
    So, then I use condition (Top 100%) by Organization the query doesn't sort Organisations by Deviation properly

Maybe you are looking for

  • Merging scanned documents

    I want to scan a 40 page document and then create a .pdf file suitable for viewing on computer screens. I'm not concerned with print quality. What's going to be the best method for doing this. I have a Canoscan LiDE 35 scanner and the software that c

  • PO not allowed beyond the target value of contract.

    Hi Forum, I have a Contract, when I create a PO with ref to the Contract, it should not allow the PO to be created beyond the target value of the Contract. Where should I make the configuration settings for this. Whenever the PO created beyond the ta

  • Traits for Audio elements?

    I am trying to create a very simple player example that responds to the type of media being loaded. I can get it to display a play button for video, and not display it for a JPG. However, I can't seem to get it to work for audio; none of the traits y

  • Creating dimensions in 2007 A version

    Hi , I just wanted to confirm whether it is still not possible to create new dimensions (financial - costing) with SAP 2007 A PL 30. I read threads about the same being not possible in 2005 A. thanks and regards, Binita Joshi

  • CS6 and Custom Point Curve vs. Linear

    So when I open a new D700 shot in ACR with CS6 and go to the point curve panel it defaults to Custom. Which appears to have about 10-12 points on it and looks like it is providing a slight lift in the shadows and a slight dip in the highlights. I can