Conditional Data show / change values to be shown for months

Dear All,
I am trying to make a report for Employee Compensation History with the following query
SELECT T1.DocEntry, T2.Period, T2.u_payperiod,T0.dept, T3.Name, T0.empID, T0.firstName,
T4.U_note,T0.lastName, T1.U_ebasic, T1.U_ehra, T1.U_etrspt, T1.U_ecola,
(T1.U_ebasic + T1.U_ehra + T1.U_etrspt + T1.U_ecola) 'Sub-Total 1', 
T1.U_education,T1.U_grosssal, (T1.U_grosssal + T1.U_education) 'Sub-Total 2',
T1.U_oadd, T1.U_enothour, T1.U_ebonus, (T1.U_oadd + T1.U_enothour + T1.U_ebonus) 'Additions Sub-Total-3',
T1.U_dedhra, T1.U_dedtrans, T1.U_dedsa,
T1.U_oded,T1.U_ducloan,(T1.U_dedhra + T1.U_dedtrans + T1.U_dedsa + T1.U_oded +T1.U_ducloan) 'Deductions Sub-Total-4',
T1.U_netsal, T1.U_bank, T1.U_accno, T1.U_Remarks
FROM dbo.OHEM T0
INNER JOIN [dbo].[OUDP] T3 ON T3.Code = T0.dept
INNER JOIN [dbo].[@PAYROLL_PR_DETAIL] T1 ON t1.U_ecode=t0.empid
INNER JOIN [dbo].[@PAYROLL_PROLL_HEAD] T2 ON t2.docentry=t1.docentry
INNER JOIN [dbo].[@PAYROLE_PP_HEAD] T4 ON T4.u_srlno=t2.u_payperiod
In crystal Report I have made a Group of T0.firstName which is the Employee Name, Second I have made a group of T4.U_Note wherein Each Month is displayed ( E.g Jan, Feb, March, April, May...till December ).
I have bought u_ebasic ( which is the basic salary ) in the second group row. Next T1.u_ehra and so on side by.
Hence the reports looks like
Employee A      u_eBasic      u_ehra
Jan 09               5000             2000
Feb 09               5000             2000
March 09           6000             3000
April 09              6000            3000
May 09               6000            3000
June 09              6000            3000
July 09               6000            3000
August 09          7000            3500
September 09    7000            3500
October 09        7000            3500
November 09     7000           3500
December 09     7000           3500
Now I want to display in the above only the changes row in the report. Means Jan09 should show as its the starting then March 09 with the value of 6000 for Basic and Hra should show as its revised, then August 09 should show with the corresponding vales and supress or skip all data where there is no change.
How to achieve such conditions through Crystal Report. Please advise.
Best Regards,
Depika

Hi deepika
Actually, my input is quite simillar to what Graham has suggested. only difference is  the object should be suppressed and the display of data should be handled.
because your core requirement is to conditionally display the data based on some logic.
Let me rephrase the statement
Instaad of putting the database fields directly into the designer, please use formulae variables.
that means, the new formulae which you have created each will hold each database field.
Design the blank report with formuale and use suppress option of the object to conditionally display the data you want.
Int his way, you will have less maintenance in future. My idea is similar to adhoc reporting.

Similar Messages

  • Viewer slow while retrieving data while changing value from a page item

    Hi, I am using 9.0.2 to create reports. My end-users are using Viewer to run these reports. Recently, we are experiencing performance problems with Viewer. We have reports with Page Item. Let say a report takes 1 min to run. After running the report if a different value is selected for a page item, it is takes another 1 min to get new data. Whereas, Desktop is not taking any additional time (noticable) for a different value for the page item. Recently, we are experiencing this problem. I thought that it was cache problem in Application server, so we restarted all the pieces in aps server. However, the problem still exists. We are using a materialized for this particular report.
    Any tips would be highly appreciated. Thanks.

    The performance differences can be attributed to the differences in product. Desktop is a client server product. A query executes and ALL data is returned to the desktop. You can manipulate that data in any way and the database is not required. Web (Plus/Viewer) only return the data needed to satisfy the query currently being viewed. If you change a page item, a database call is made to retreive additional/different data.
    In other words this is just how things work. You can alter settings in your prefs.txt file to improve performance in Viewer/Plus. Changing number of rows returned, memory settings, row fetch limits, rows per fetch all can improve/reduce performance.
    As best I know there is not a "magic" setting for these values. It is based on the server/volume of data/workbook content/ workbook layout. etc. Crosstab workbooks are much slower to return data than page -detail.

  • Change Region/ Country/ bank account for monthly payment

    I Transferred from US to Germany and need to change my bank account. I was not able to do so as the only option I had is to choose US. I could not change it to Germany to adjust my bank account.
    your help would be greatly appreciated. thanks!

    Your best bet is to contact Support at this link:
    Contact Customer Care
    They are the people that can help with this.

  • How to capture changed value in ALV Grid

    Hi Guys,
    I have an ALV grid report where I have 'Edit On' for one of the quantity fields in the report. How do I capture the new (changed) value in the suboutine for user command when user changes the value in the report and clicks on a button ?
    Points assured for helpful replies.

    FORM USER_COMMAND USING P_UCOMM LIKE SY-UCOMM...........
    Data ref1 type ref to cl_gui_alv_grid.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    E_GRID = ref1.
    call method ref1->check_changed_data
    ENDFORM.
    Also chk the blog
    /people/community.user/blog/2007/01/10/displaychange-mode-of-editable-fields-in-alv-using-function-modules-but-not-custom-containers

  • HT1937 I have the Simpsons Tappit on my Iphone but I cannot no make it connect,do I delete and reinsall? I have had this game for months and do not want to lose my data! Please help x

    I have the Simpsons Tappit on my Apple IPhone but it will not now connect! Do I delete and reinstall and do I lose all my data? I have had this app for months! Please help x x x

    The lock button on my iPhone5 has also started acting up. Extremely annoying. I have to get it replaced, but I've dropped my phone once and there is a scratch on the top left corner of the phone, so I'm not sure what the warranty says about this situation.

  • Where can I see the condition record change value -?

    Hi friends
    Please let me know this
    Ex: if I change my condition record for $10 to $12 to day.
    where can I see both the prices ?
    In vk 13 if i go to environment ->changes , it is only showing new value not showing old value -?
    Please help me with this.
    thanks
    Kris

    Hi Kris,
    Go to [VK13]. Enter the condition type and select the access sequence. Enter the necessary values in the selection fields and click on the condition info option in the application toolbar. Now ensure the selection values are still present and remove the validity date. Press F8 and you would get the history of the condition record.
    Regards
    Nadarajah Pratheb

  • SAP report showing sales orders on which pricing conditions have been chang

    Is there a SAP report that shows a list of sales orders on which pricing conditions have been changed.
    My knowledge is:
    Review pricing condition transaction data table (‘KONV’) helps is some way.

    Hi Ashish,
    I don't know any such a report, but I guess you can play arround with table CDPOS.
    Change doc. object = VERKBELEG
    Table Name = KONVC.
    Actually this will take lot of time.
    Thanks,
    Mandar

  • Showing all values for Multiple Line field with Append Changes

    I have a simple SharePoint list with a multiple line column that has append changes enabled. I am doing a report with Report Builder 3.0 and I want to show all values of the field the same way you achieve it through a DVWP using:<SharePoint:AppendOnlyHistory
    FieldName="Comments" runat="server"
    ControlMode="Display" ItemId="{@ID}"/>
    For reference, I'm trying to replicate this function, but on a report:
    http://sympmarc.com/2011/02/07/showing-all-versions-of-append-changes-to-existing-text-in-a-data-view-web-part-dvwp/ 
    Any suggestions to show all the appended values in a report?

    Hi Lewis75581,
    According to your description, you want to show the append changes history of a column in Reporting Services. Right?
    In Reporting Services, we don't have a feature to show the change history of a column. However, we can have workaround on SQL level. In SQL Server, we have tables: inserted table and deleted table which contains the recently inserted and deleted records.
    In this scenario, we can create a trigger in your database. Once you insert rows into the table, it will be triggered and get those inserted rows. Then insert those rows into another table. Now we can create one more dataset based on this table and display
    these inserted rows in our report. This might be the most effective workaround for your requirement. Please refer to a similar thread below:
    http://social.technet.microsoft.com/Forums/en-US/dacfb141-a976-489a-acca-789ba90e15de/ssrs-multiple-reports-with-different-parameteres-in-single-window?forum=sqlreportingservices
    Reference:
    Use the inserted and deleted Tables
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • I do not obtain to change value in price conditions bapi CHANGE_SALES_ORDER

    Hi all,  
    We are developing a new solution using this RFC to maintain Sales Orders from the Legacy System.
    In some situations, it will be necessary to change values of the Item Price Conditions in Sales Orders already created, in order to attend a Legacy Systems requests.
    We tried to use the follow keys, but without a good result:
    IX_KONVKOMX-UPDKZ = D (Delete) - Doesn't works
    IX_KONVKOMX-UPDKZ = U (Update) - Insert a new line in Pricing
    IX_KONVKOMX-UPDKZ = I (Insert) - Works as U (Update)
    Could you please clarify why the key "U" doesn't works as Update and
    if there is any way to make this kind of modification?
    I verified you vary answers in this forum, but none was useful.
    Thanks a lot

    example:-
    *& Report  ZSALESORDER_CHANGE
    REPORT  ZSALESORDER_CHANGE MESSAGE-ID 38.
    Selection Screen Definitions *
    PARAMETERS: p_vbeln TYPE vbap-vbeln OBLIGATORY, "Order Number
    p_posnr TYPE vbap-posnr OBLIGATORY, "Order Item
    p_etenr TYPE vbep-etenr OBLIGATORY, "Schedule Line
    p_reqqty TYPE bapischdl-req_qty OBLIGATORY. " Order Qty
    Internal Tables/Structures/Variables for calling BAPI. *
    DATA: i_hdr TYPE bapisdh1,
    i_hdrx TYPE bapisdh1x,
    i_ret TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
    wa_ret TYPE bapiret2.
    DATA: BEGIN OF i_sched OCCURS 10.
    INCLUDE STRUCTURE bapischdl.
    DATA: END OF i_sched.
    DATA: BEGIN OF i_schedx OCCURS 10.
    INCLUDE STRUCTURE bapischdlx.
    DATA: END OF i_schedx.
    START-OF-SELECTION Event *
    START-OF-SELECTION.
    *" Initialize internal tables.
    REFRESH: i_sched, i_schedx, i_ret.
    CLEAR: i_sched, i_schedx, i_ret.
    *" Fill required ORDER_HEADER_IN data.
    i_hdrx-updateflag = 'U'.
    *" Fill required SCHEDULE_LINES data.
    i_sched-itm_number = p_posnr.
    i_sched-sched_line = p_etenr.
    i_sched-req_qty = p_reqqty.
    i_schedx-updateflag = 'U'.
    i_schedx-itm_number = p_posnr.
    i_schedx-sched_line = p_etenr.
    i_schedx-req_qty = 'X'.
    APPEND i_sched.
    APPEND i_schedx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = p_vbeln
    order_header_in = i_hdr
    order_header_inx = i_hdrx
    TABLES
    return = i_ret
    schedule_lines = i_sched
    schedule_linesx = i_schedx.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    LOOP AT i_ret.
    WRITE / i_ret-message.
    ENDLOOP.

  • How do you change values after logging data to the citadel database (DSC)?

    How would one go about changing values that already exist in the citadel database.  So say I were logging a numeric value with a timestamp for 1 year and then wanted to change a few values for the month of June because my sensor wasn't working at that time.  How could I do this?  Is it possible without re-creating the whole database over?
    Thanks
    Matt

    mattyk wrote:
    Hey Ben,
    Thanks for the quick response.  I called NI and asked about this because this would be a big show stopper for me.  Their applications engineer said that the best way to change previous data would be to read in the trace that you want to change, modify it and save it as a new trace.  I am also looking into SQL querying.  I was able to connect to the citadel database by setting up a ODBC data source and using the database connectivity toolkit to query the database.  This worked.  Now I am trying to come up with a statement in SQL to change previously saved data.  I'll Keep you posted.
    Thanks
    Matt
    That reinforces my suspicions.
    I have an app running for about 8 years now that keeps a paper trail to enusr ethe cartdiges used in respirators (operated NIOSH National Institute of Occupational Safety and Health par teh CDC) that use DSC to enusre nobody can ever falsify those records. If they can be hacked I my customer and anyone using a respirator with a NIOSH sticker on the side of it, want to know.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to insert data into a table only when data has changed its value (when compared to the previous inserted value)

    I wish to insert data into a table only when the value of the inserted data has changed. Thus, in a time series, if the value of the data at time, t-1, is 206 then if the data to be inserted at time t is 206, then it is skipped (not entered).
    If the value of the data at time t+1 is 206, it is skipped also; until the value changes, so if the value at t+1 was 205, then that would be inserted, and if at time t+2 the data is 206, it would be inserted too.
    What is the best way to do it without increasing overheads?

    This view works:
    SELECT
    i.IDNO,i.[Date],i.[Level]
    FROM
    mytable i
    INNER
    JOIN mytable
    d
    ON
    d.IDNO
    = i.IDNO-1
    WHERE
    i.[Level]
    <> d.[Level]
    on this mytable below.  A trigger could be quite useful here although I am cautious using them. However I wish to avoid the overhead by not having a temp table (which could be sizable).  mytable below
    should give 3 lines. The IDNO is an identity column.
    IDNO
    Item
    Date
    Level
    1
    X24
    12/23/13 10:41
    22996
    2
    X24
    12/23/13 10:41
    22996
    3
    X24
    12/23/13 9:21
    23256
    4
    X24
    12/23/13 9:21
    23256
    5
    X24
    12/23/13 9:22
    23256
    6
    X24
    12/23/13 9:22
    23256
    7
    X24
    12/23/13 9:22
    22916

  • HT4623 I have an iPod with iOS 4.2.1 and would like to up date version 5. The pc I normally sync with has XP operating system. So I can't up date to iTunes 10. And my iPod doesn't show the software update button shown in the article. What can I do?

    I have an iPod with iOS 4.2.1 and would like to up date to version 5. The pc I normally sync with has XP operating system. So I can't up date to iTunes 10. And my iPod doesn't show the software update button shown in the article. What can I do?

    You cannot update it if you can't get the latest version of iTunes. Actually, the latest version of iTunes will run in XP if you have Service Pack 2. Also, you posted in the iPad forum, and your profile shows you have an iPad, but in your post, you say it is an iPod. Is it an iPad or an iPod?

  • How to change value date from posting date to net due date

    Hi Gurus,
    My client wants to change value date from posting date to net due date. currently posting date is considered as value date but in future client wants to change value date to net due date of documents.
    1. what configurations need to be maintained to change value date from posting date to net due date.
    2. Will these changes effect automatic payment run.
    Thanks and Regards,
    Suresh

    Hi Suresh,
    In Future
    While posting the documents you can mention the value date as due date of the documents.
    For already posted documents
    You can change the value date to net due date.
    If the value date is display mode i.e. if you are not able to change the value date in FB02 (Document Change Mode), use OB32 transaction and make value date field as eidtable (BSEG-VALUT).
    In OB32 transaction enter all the required fields like Account type, transaction type, company code and finally activate the Field can be changed check box.
    But not sure, whether we can change the value date to previous date or not?
    This would help you..
    Regards,
    Praisty
    Edited by: Praisty on Jul 28, 2009 9:56 AM

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • Wants to change value in Condition Tab ( ZOTL ) of PO

    Dear Expert,
    I was created subcontracting PO with item category L. In condition tab I put value 10,000 for other charges by mistake I want to change that value 1,000.
    PO quantity is 1000 and I did GR of 600 material quantity for that purchase order.
    Is there any possibility to change condition value without reverse back GR ?
    or any other condition in which I cancel the value in difference ?
    or any other way to settle that PO and invoice payment ?
    Please provide the solution.  
    Thanks,
    Farrukh khan

    Hi,
    only solution is without cancel or revese GR is to do Credit memo for that vendor.
    Thanks & Regards
    Suresh

Maybe you are looking for

  • Logon fail when creating Connection in Crystal Reports SP3

    Greetings, I am working on an issue where we have installed the SAP GUI 7.10, Crystal reports 2008 SP3, and SAP IK FP 3.1. We are testing the access to ECC.  We have setup the server in the GUI and can successfully logon to the server in the GUI.  We

  • Adobe photoshop album starter edition 3.2

    Hello, I have used this software for 2 years, and before few weeks the software lock. The software asked me to register and to get new key to unlock it. When I registered i recieved email which tell me that adobe isn't support this software more. All

  • Purchase error

    HI, I have had a problem with my purchase and I need some help. I have the US version of The Last of Us and I needed to make an American account to play multiplayer. I decided to buy an add-on for £3.14 on my UK account, hoping it would transfer to m

  • Sell streaming video in webshop

    How to set up streaming video? I would like to sell streaming video in a web shop as I do with other products. Is it possible to set up and sell a video only as a streaming service and not as a product to download (wish is of course possible).

  • Why so many disconnectors?

    Hi, In the FIM terminology, a connector space object, if it is linked to a metaverse object is known as connector and disconnector if it is not linked. So, under which circumstances would a FIM system develop disconnectors? One I can think of is if t