How to calculate percentage and difference of two values in matrix report in ssrs 2008

Hi everyone,
DB--SQL server
SSRS-2008
I am creating matrix report with grouping on WEEK and Fiscalyearweek,
I need to calculate of difference between FY14W01,FY15W01 ande  percentage of those..
how to calculate in ssrs level.
Thank You, Manasa.V

Hi veerapaneni,
According to your description, you want to calculated the increment percentage and difference between two fiscal year week within each week. Right?
In this scenario, since we need to do calculation based on values between dynamically generated cells, we can't simply use expression to achieve this goal. In this scenario, we need to use custom code to record the value for fiscal 14 and fiscal 15, then
we can calculate the difference and percentage within the column group. We have tested your case in our local environment, please refer to the steps and screenshots below:
1. Add the custom code below into the report (you may need to modify the data type based on your scenario:
Public Shared Value1 as Integer
Public Shared Value2 as Integer
Public Shared previous as string
Public Shared previousweek as string
  Public Shared Function GetValue(Value as Integer,product as String,Week as String) as Integer
If product =previous and Week =previousweek  Then
     Value2=Value
Else
previous=product
previousweek=Week
Value1=Value
End If
     return Value
  End Function
  Public Shared Function GetPct()
     return (Value2-Value1)/Value1
  End Function
Public Shared Function GetDiff()
     return Value2-Value1
  End Function
2. Design the matrix like below:
3. The result look like below:
If you have any question, please feel free to ask.
Best Regards,
Simon Hou

Similar Messages

  • How to calculate the phase difference between two square wave (acquired from two channel in one DAQ)

    Hello everyone ,
     I need a quickly help that as below :
    I am trying use PCI-6220 to acquired six signals from one rotation encoder (channel A, channel B,channel Z ,and their non-signals) .The encoder out signals will be square wave and 4000pulses per revolution. I set it rotation at 300rpm speed. I need show every square wave of six out channels in waveform and measure the A-B phase difference to check if the value is correct (designed value should be 90deg) .
    I have no idea how to measure or calculate the phase difference of two square wave base on synchronizate to acquire these two square wave from two channel on the PCI-6620....
    Anyone can give a idea how to calculate the phase difference with two square wave ?
    Thank a lot and Thanks again...
    Tim

    Tim,
    Here is a simple rising edge detector for one channel.
    Lynn
    Attachments:
    Rising edge.vi ‏15 KB

  • How to calculate the hour difference between two dates?

    hi all,
    how to calculate the hour difference between two dates?
    eg i trying this...
    ((TO_DATE(TO_CHAR(GRNi.reference_date_4,'hh24:mi'),'hh24:mi') -
    TO_DATE(TO_CHAR(NVL(GRNi.reference_date_3,SYSDATE),'hh24:mi'),'hh24:mi'))*24)*60 Act_Hr
    Reg.
    AAK

    Hi
    To break the diff between 2 dates into days, hours, minutes, sec -- you can use the following:
    select to_char( created, 'dd-mon-yyyy hh24:mi:ss' ),
    trunc( sysdate-created ) "Dy",
    trunc( mod( (sysdate-created)*24, 24 ) ) "Hr",
    trunc( mod( (sysdate-created)*24*60, 60 ) ) "Mi",
    trunc( mod( (sysdate-created)*24*60*60, 60 ) ) "Sec",
    to_char( sysdate, 'dd-mon-yyyy hh24:mi:ss' ),
    sysdate-created "Tdy",
    (sysdate-created)*24 "Thr",
    (sysdate-created)*24*60 "Tmi",
    (sysdate-created)*24*60*60 "Tsec"
    from all_users
    where rownum < 50
    HTH
    RangaReddy

  • How we calculate the date difference between two list in SharePoint 2010

    Hi friend's....I have two list first is list1. In this list i have two coulmn start_date and End_date. In second list2 i have two column HolidayName and Holiday_date. Now i want two find the number of day in list1 Excluding Weekend and Holiday_date(that
    column from list2). How i will do ..? Please help me dosto..

    Thanks for reply...
    I have done the date difference in list1. But i want to Exclude the Holiday_date form list2.
    I have list1 - Start_date , End_date, Number_of_day(Exclude weekend and Holiday_date between Start_date and End_date )
    list2 - HolidayName, Holiday_date
    Now how i will calculate the Number_of_day in first list.

  • How to calculate the month difference between two date char. in Query?

    Customers would like to see how many months passed between two date type of characteristics (e.g., the month difference between the current date and the scheduled delivery date in the record) and put the result into the column as KF. 
    We would have to grab the fiscal year/period kind of value and then do the subtraction, e.g., if the current date value is 2/28/2008 and the scheduled delivery date value in the record is 12/01/2007, the correct result should be 2 month difference between these two date values, but could someone here give us the technical light on how to make this happen in query design?
    Thanks and we will give you reward points for the correct anwsers!

    Hi Kevin,
    The Badi is RSR_OLAP_BADI.
    You can create an implementation using Transaction  SE18.
    The implementation is per cube and is defined in the filters.
    In the Implementation you have the following methods :
    1. Define : Here you will provide the Keyfigure you need as a virtual one.
    2. Initilialize : Any Init Function you want to do.
    3. Compute. This is called per datarecord and here you can cimpute your value.
    Hope this helps.
    Pralay Ahluwalia

  • How to Calculate Sum of Difference between two dates

    Hi,
    I'm using BI Publisher in Siebel CRM.
    In RTF template I have the following expression to calculate the Difference between dates
    <?xdoxslt:date_diff( 'd' , psfn:totext(CIRGSubmittedDate,"yyyy-MM-dd","MM/dd/yyyy"), psfn:totext(Done,"yyyy-MM-dd","MM/dd/yyyy"), $_XDOLOCALE, $_XDOTIMEZONE)?>
    The above expression works for me to calculate the dates.
    I need to calculate the Sum of all these dates for a Group.
    Want to know the Syntax for Sum function using Date_diff.
    Tried the following and didn't work.
    <?Sum(xdoxslt:date_diff( 'd' , psfn:totext(CIRGSubmittedDate,"yyyy-MM-dd","MM/dd/yyyy"), psfn:totext(Done,"yyyy-aMM-dd","MM/dd/yyyy"), $_XDOLOCALE, $_XDOTIMEZONE))?>
    Not sure what I'm doing wrong here...
    Anyone please help...
    Thanks
    PV

    Hi
    To break the diff between 2 dates into days, hours, minutes, sec -- you can use the following:
    select to_char( created, 'dd-mon-yyyy hh24:mi:ss' ),
    trunc( sysdate-created ) "Dy",
    trunc( mod( (sysdate-created)*24, 24 ) ) "Hr",
    trunc( mod( (sysdate-created)*24*60, 60 ) ) "Mi",
    trunc( mod( (sysdate-created)*24*60*60, 60 ) ) "Sec",
    to_char( sysdate, 'dd-mon-yyyy hh24:mi:ss' ),
    sysdate-created "Tdy",
    (sysdate-created)*24 "Thr",
    (sysdate-created)*24*60 "Tmi",
    (sysdate-created)*24*60*60 "Tsec"
    from all_users
    where rownum < 50
    HTH
    RangaReddy

  • How to find the structural difference between two tables

    Hi all,
    How to find the structural difference between two tables .
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for 32-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    Thanks,
    P Prakash

    you could try something similar to this, for each table pair that you want to compare:
    SELECT 'TABLE_A has these columns that are not in TABLE_B', DIFF.*
      FROM (
            SELECT  COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
          ) DIFF
    UNION
    SELECT 'TABLE_B has these columns that are not in TABLE_A', DIFF.*
      FROM (
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
          ) DIFF;that's assuming, column_name, data_type and data_length are all you want to compare on.

  • How to find the phase difference between two signals using Hilbert transform

    hi, 
        I am new to LabView.... I am trying to find phase difference between two signals. I sucessfuly found out the phase difference between two predefined waves using single tone measurement. .... But I really want to know how can I measure phase difference between two signals( not predefined... ie we don't know the initial conditions) using hilbert transform or any transformation techniques (without using zero cross detection).. I tried by using hilbert transform based on algorithm... bt I am getting error.... plz help me
    Attachments:
    phase_differece.vi ‏66 KB

    you could try something similar to this, for each table pair that you want to compare:
    SELECT 'TABLE_A has these columns that are not in TABLE_B', DIFF.*
      FROM (
            SELECT  COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
          ) DIFF
    UNION
    SELECT 'TABLE_B has these columns that are not in TABLE_A', DIFF.*
      FROM (
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
          ) DIFF;that's assuming, column_name, data_type and data_length are all you want to compare on.

  • How to calculates averages and send to a file?(source code)

    how to calculates averages and send to a file?(source code) I need to get started but I don't know where to begin...........the book I have doesn't really say how to handle averages and send to a file.................anybody got suggestions on how to get started? I am a newbie so place in layman's terms.............thanx

    To calculate an average: add all of the numbers together and divide by how many numbers you added together.
    ex: (1 + 2 + 3 + 10)/4 = 4 (4 is the average)
    As for writing them to a file, look over the API for random or sequential access files.

  • How to calculate excise and vat

    can anybody tell me how to calculate excise and vat as i am doing a alv reports from me23n and i have to put excise and vat in respect to document invoice number in me23n.i am using tables mseg,makt,bseg,ekpo so if there any related program please refer me.

    In this  report i have to calculate excise and vat according to po number and also i dont how to put so plesae solve this if possible......
    *& Report  ZFA_GRS
    *&RD1K903618
    REPORT  ZFA_GRS.
    TABLES : ekpo,EKKO, t001,MSEG,MKPF,komk,komp.
    TYPE-POOLS : SLIS.
    DATA : IT_FCAT TYPE SLIS_T_FIELDCAT_ALV,
           WA_FCAT TYPE SLIS_FIELDCAT_ALV.
    DATA : IT_SORT TYPE SLIS_T_SORTINFO_ALV,
           WA_SORT TYPE SLIS_SORTINFO_ALV.
    DATA:  GT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
           LS_LINE TYPE SLIS_LISTHEADER.
    DATA : BEGIN OF IT_FINAL OCCURS 0,
           LIFNR LIKE MSEG-LIFNR,
           MATNR LIKE MSEG-MATNR,
           MBLNR LIKE MSEG-MBLNR,
           BELNR LIKE BSEG-BELNR,
           MAKTX LIKE MAKT-MAKTX,
           MENGE LIKE MSEG-MENGE,
           MEINS LIKE MSEG-MEINS,
           BWART LIKE MSEG-BWART,
           EBELN like MSEG-EBELN,
           EBELP LIKE MSEG-EBELP,
           DMBTR like BSEG-DMBTR ,
           EXAMT TYPE DMBTR,
           WRBTR LIKE BSEG-WRBTR,
          EXAMT LIKE BSEG-WRBTR,
           HKONT LIKE BSEG-HKONT,
           NETVALUE type DMBTR,
           VATAMT TYPE DMBTR,
           TOTAMT TYPE DMBTR,
           MWSBP LIKE KOMP-MWSBP,
           EXBED LIKE J_1IEXCDTL-EXBED,
           EXSED LIKE J_1IEXCDTL-EXSED,
           EXAED LIKE J_1IEXCDTL-EXAED,
           CESS LIKE J_1IEXCDTL-CESS,
           ECS LIKE J_1IEXCDTL-ECS,
           EXADDTAX1 LIKE J_1IEXCDTL-EXADDTAX1,
           VAT TYPE KONV-KWERT,
           UNIT TYPE EKPO-MEINS,
           TOTQNT TYPE MSEG-MENGE,
           NETWR TYPE EKPO-NETWR,
           PEINH LIKE EKPO-PEINH,
           NETPR LIKE EKPO-NETPR,
           menge1 like ekpo-menge,
           TOTEXC TYPE DMBTR,
           TOTVAT TYPE DMBTR,
           TOTVAL TYPE DMBTR,
    END OF IT_FINAL.
    DATA : WA_FINAL LIKE IT_FINAL OCCURS 0 WITH HEADER LINE,
           W_J_1IEXCDTL LIKE STANDARD TABLE OF J_1IEXCDTL WITH HEADER LINE.
    DATA : WA_FINAL LIKE IT_FINAL OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 1.
    SELECT-OPTIONS: P_MBLNR FOR MSEG-MBLNR .
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN : END OF BLOCK B1.
    SELECT MATNR MBLNR MENGE MEINS BWART EBELN EBELP DMBTR FROM MSEG INTO CORRESPONDING FIELDS OF TABLE IT_FINAL WHERE MBLNR IN P_MBLNR AND
                ( BWART = '101'  OR  BWART = '102' OR
                  BWART = '113'  OR  BWART = '114'  )  .
    DATA : TOTAMT TYPE DMBTR,
           NETVAL TYPE DMBTR,
           NETVALUE TYPE DMBTR,
           NETWR LIKE EKPO-NETWR,
           EXAMT TYPE DMBTR.
    SORT IT_FINAL BY MBLNR.
    LOOP AT IT_FINAL.
    ENDLOOP.
    LOOP AT IT_FINAL INTO WA_FINAL.
    SELECT SINGLE MAKTX FROM MAKT INTO WA_FINAL-MAKTX WHERE MATNR = WA_FINAL-MATNR.
    SELECT single  DMBTR from BSEG into  wa_final-DMBTR where EBELN = wa_final-EBELN .
    SELECT SINGLE WRBTR FROM BSEG INTO WA_FINAL-WRBTR WHERE EBELN = WA_FINAL-EBELN.
    *WA_FINAL-WRBTR = W_J_1IEXCDTL-EXBED + W_J_1IEXCDTL-EXSED + W_J_1IEXCDTL-EXAED + W_J_1IEXCDTL-CESS + W_J_1IEXCDTL-ECS + W_J_1IEXCDTL-EXADDTAX1.
    *wa_final-EXAMT = Wa_final-EXBED + wa_final-EXSED + Wa_final-EXAED + Wa_final-CESS + Wa_final-ECS + Wa_final-EXADDTAX1.
    SELECT SINGLE BELNR FROM BSEG INTO WA_FINAL-BELNR WHERE EBELN = WA_FINAL-EBELN.
    MODIFY IT_FINAL FROM WA_FINAL TRANSPORTING   BELNR
                                                 MAKTX
                                                 MENGE
                                                 MEINS
                                                 BWART
                                                 EBELN
                                                 EBELP
                                                 DMBTR
                                                 WRBTR
                                                 HKONT
                                                 LIFNR
                                                NETVAL
                                                NETVALUE
                                                 EXAMT
                                                 VATAMT
                                                 TOTAMT
                                                 MWSBP
                                                 VAT
                                                 UNIT
                                                 TOTQNT
                                                TOTNVL
                                                 TOTEXC
                                                 TOTVAT
                                                 TOTVAL
                                                 PEINH
                                                 netwr
                                                 netpr
    ENDLOOP.
    PERFORM GEN_TOP.
    *TOTAMT = NETVAL.
    WA_FCAT-COL_POS = 1.
    WA_FCAT-FIELDNAME = 'MATNR'.
    WA_FCAT-SELTEXT_M = 'MATERIAL NO.'.
    WA_FCAT-TABNAME = 'IT_FINAL'.
    WA_FCAT-OUTPUTLEN = 18.
    APPEND WA_FCAT TO IT_FCAT.
    WA_FCAT-COL_POS = 2.
    WA_FCAT-FIELDNAME = 'MBLNR'.
    WA_FCAT-SELTEXT_M = 'MAT.DOC NO'.
    WA_FCAT-TABNAME = 'IT_FINAL'.
    WA_FCAT-OUTPUTLEN = 15.
    APPEND WA_FCAT TO IT_FCAT.
    WA_FCAT-COL_POS = 3.
    WA_FCAT-FIELDNAME = 'BELNR'.
    WA_FCAT-SELTEXT_M = 'INVOICE DOC NO'.
    WA_FCAT-TABNAME = 'IT_FINAL'.
    WA_FCAT-OUTPUTLEN = 15.
    APPEND WA_FCAT TO IT_FCAT.
    WA_FCAT-COL_POS = 4.
    WA_FCAT-FIELDNAME = 'EBELN'.
    WA_FCAT-SELTEXT_M = 'PO DOC NO.'.
    WA_FCAT-TABNAME = 'IT_FINAL'.
    WA_FCAT-OUTPUTLEN = 12.
    APPEND WA_FCAT TO IT_FCAT.
    WA_FCAT-COL_POS = 5.
    WA_FCAT-FIELDNAME = 'MAKTX'.
    WA_FCAT-SELTEXT_M = 'DESCRIPTION'.
    WA_FCAT-TABNAME = 'IT_FINAL'.
    WA_FCAT-OUTPUTLEN = 35.
    APPEND WA_FCAT TO IT_FCAT.
    WA_FCAT-COL_POS = 6.
    WA_FCAT-FIELDNAME = 'MENGE'.
    WA_FCAT-SELTEXT_M = 'QUANTITY'.
    WA_FCAT-TABNAME = 'IT_FINAL'.
    WA_FCAT-OUTPUTLEN = 8.
    APPEND WA_FCAT TO IT_FCAT.
    WA_FCAT-COL_POS = 7.
    WA_FCAT-FIELDNAME = 'MEINS'.
    WA_FCAT-SELTEXT_M = 'UNIT'.
    WA_FCAT-TABNAME = 'IT_FINAL'.
    WA_FCAT-OUTPUTLEN = 5.
    APPEND WA_FCAT TO IT_FCAT.
    WA_FCAT-COL_POS = 8.
    WA_FCAT-FIELDNAME = 'BWART'.
    WA_FCAT-SELTEXT_M = 'MOVTYPE.'.
    WA_FCAT-TABNAME = 'IT_FINAL'.
    WA_FCAT-OUTPUTLEN = 8.
    APPEND WA_FCAT TO IT_FCAT.
    WA_FCAT-COL_POS = 9.
    WA_FCAT-FIELDNAME = 'DMBTR'.
    WA_FCAT-SELTEXT_M = 'NETVALUE'.
    WA_FCAT-TABNAME = 'IT_FINAL'.
    WA_FCAT-OUTPUTLEN = 12.
    APPEND WA_FCAT TO IT_FCAT.
    *WA_FCAT-COL_POS = 9.
    *WA_FCAT-FIELDNAME = 'EBELP'.
    *WA_FCAT-SELTEXT_M = 'LINE ITEM.'.
    *WA_FCAT-TABNAME = 'IT_FINAL'.
    *WA_FCAT-OUTPUTLEN = 12.
    *APPEND WA_FCAT TO IT_FCAT.
    WA_FCAT-COL_POS = 10.
    WA_FCAT-FIELDNAME = 'WRBTR'.
    WA_FCAT-SELTEXT_M = 'EXCISE'.
    WA_FCAT-TABNAME = 'IT_FINAL'.
    WA_FCAT-DO_SUM = 'X'.
    WA_FCAT-OUTPUTLEN = 15.
    APPEND WA_FCAT TO IT_FCAT.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = SY-CPROG
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
       I_CALLBACK_TOP_OF_PAGE            = 'ALV_TOP_OF_PAGE'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
       IT_FIELDCAT                       = IT_FCAT
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
       I_DEFAULT                         = 'X'
       I_SAVE                            = 'A'
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          = IT_FINAL
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM ALV_TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          I_LOGO             = 'ZROHALOGO'
          IT_LIST_COMMENTARY = GT_TOP_OF_PAGE.
    ENDFORM.                    "alv_top_of_page
    *&      Form  GEN_TOP
          text
    -->  p1        text
    <--  p2        text
    FORM GEN_TOP .
    DATA: INFO(60),
            B_DT(10), E_DT(10).
      REFRESH : GT_TOP_OF_PAGE.
      CLEAR : LS_LINE.
      LS_LINE-TYP = 'H'.
      LS_LINE-INFO = '       ROHA DYECHEM PVT LTD'.
      APPEND LS_LINE TO GT_TOP_OF_PAGE.
      CLEAR : LS_LINE.
      LS_LINE-TYP = 'S'.
    LS_LINE-KEY = 'Address'.
    LS_LINE-INFO =
      APPEND LS_LINE TO GT_TOP_OF_PAGE.
      CLEAR : LS_LINE.
      LS_LINE-TYP = 'S'.
    LS_LINE-INFO =
      APPEND LS_LINE TO GT_TOP_OF_PAGE.
      CLEAR : LS_LINE.
      LS_LINE-TYP = 'S'.
    LS_LINE-INFO =
      APPEND LS_LINE TO GT_TOP_OF_PAGE.
      CLEAR : LS_LINE.
      CLEAR LS_LINE.
      LS_LINE-TYP = 'S'.
      LS_LINE-KEY = 'Report Name'.
      LS_LINE-INFO = 'NEW GRS REPORT'.
      APPEND LS_LINE TO GT_TOP_OF_PAGE.
      CLEAR LS_LINE.
      LS_LINE-TYP = 'S'.
      LS_LINE-KEY = 'T-CODE'.
    LS_LINE-INFO =
      APPEND LS_LINE TO GT_TOP_OF_PAGE.
      CLEAR LS_LINE.
      LS_LINE-TYP = 'S'.
    LS_LINE-KEY = 'Period'.
      LS_LINE-INFO = INFO.
      APPEND LS_LINE TO GT_TOP_OF_PAGE.
      WRITE SY-DATUM TO B_DT.
      CLEAR LS_LINE.
      LS_LINE-TYP = 'S'.
      LS_LINE-KEY = 'Report Dt.'.
      LS_LINE-INFO = B_DT.
      APPEND LS_LINE TO GT_TOP_OF_PAGE.
    ENDFORM.                    " GEN_TOP

  • Store procedure to calculate lcm and gcd of two number

    Hi,
    Can anyone please help me to write this procedure
    ---- to calculate lcm and gcd of two number
    Thanks,
    Deekay.

    Hi, I am getting this error with the above query.
    Error starting at line 1 in command:
    select lcm(1,2), gcd(1,2) from dual
    Error at Command Line:1 Column:17
    Error report:
    SQL Error: ORA-00904: "GCD": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:   
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • WAE 611-k9: how to config primary and backup for two WAE611s?

    hi,everyone:
    I want to config two WAE611 AS my proxy servers,the one is primary and the other one is as backup,so based-config guide(the primary and backup proxy server), i need config like this,
    http proxy outgoing host 10.1.1.1 8088 primary
    http proxy outgoing host 10.1.1.2 220
    but the host ip address 10.1.1.1 is my WAE611 interface f0/1 ip address or not?
    if not ,pls tell how to config primary and backup using two WAE611?
    thanks
    David

    hi,
    By the way,two WAE611 connect to cisco6509 on the same vlan.
    and I need WAE611 as my proxy server,there is not other proxy server in my LAN.
    thanks

  • How can i Flash and restore the firmware ( EFI ) from a Macbook pro ( late 2008 , 5.1 ) ??

    How can i Flash and restore the firmware ( EFI ) from a Macbook pro ( late 2008 , 5.1 ) ??
    Please help me !!

    The Seagate backup drive I bought doesn't support 10.5.8
    The only reason I can see for that is it's formatted NTFS, which would likely be Read Only in 10.5.x, if you can reformat it MacOS extended, which would erase everything on it now, then that should work for your purposes.

  • How to calculate the Time difference between 2 dates

    HI All,
    I am using HR_hk_diff_btw_2_dates to calculate the employee service dates.
    For that i  am inputing his hire date and Term dates and Output format as '05' i am getting output perfectly....
    But problem is  whe i am inputting the employee hire date is Dec 1 2007 and Term date is
    March 31 2009 It is coming as 1 year 3 months  31 days instead of 1 year 4 months directly .......How could we make it make last date also working day and get the O/p as 1 year 4 months ?Please Advice..
    Regard
    sas

    1. FM for difference betwwen two times:SCOV_TIME_DIFF
    Import parameters               Value
    IM_DATE1                        2008-01-01
    IM_DATE2                        2008-01-01
    IM_TIME1                        10:00:00
    IM_TIME2                        11:30:00
    Export parameters               Value
    EX_DAYS                         0
    EX_TIME                         01:30:00
    2. SD_CALC_DURATION_FROM_DATETIME : Finds the difference between two date/time and report the difference in hours
    L_MC_TIME_DIFFERENCE : Finds the time difference between two date/time

  • How to calculate number of days between two date in Template design?

    Hello guys
    I have a situation where I have to create a template that returns data, and one of the thing of the existing report is that there is a column that is actually the number of days between start date and end date columns..
    So in template, how would I be able to do the same? I have start date and end date columns on the template, now when I created another column using expression like end date - start date and preview the template, I am getting errors saying :
    Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert 03/31/2009 to number.
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
    Please advice
    Thanks

    Hi
    There is an extension function you can use, from the javadoc:
    date_diff
    public static long date_diff(java.lang.String format,
    java.lang.String fromDate,
    java.lang.String toDate,
    java.lang.String locStr,
    java.lang.String tzID)
    Method to get the difference between two dates in the given locale. The dates need to be in "yyyy-MM-dd" format. This function supports only Gregorian calendar.
    Parameters:
    format - the format to which the difference is required; allowed formats are y (for Year), m(for month), w(for week), d(for day), h(for hour), mi(for minute), s(for seconds) and ms(for milliseconds)
    fromDate - the first date
    toDate - the second date
    locStr - locale string -> lang-Territory
    tzID - timezone ID ->http://java.sun.com/j2se/1.4.2/docs/api/java/util/TimeZone.html
    Returns:
    the difference in dates in the desired format
    For example
    <?xdoxslt:date_diff(‘d’,’2009-09-14’, ‘2009-09-20’,’en-US’,1)?>
    give a result of 6
    You can substitute in columns for the dates, just remember the date format required.
    Regards
    Tim

Maybe you are looking for

  • Flex IO error# 2032 when using IE7 for parallel https calls across two servers

    Hi, Weeks back I faced a wierd issue in the behaviour of flashplayer running on IE7 which is invoking parallel https calls. I have two SSL enabled servers one is listening on port 443 and the other is listening on port 8443 but both running in the sa

  • AirPort card not working ... mostly

    This is one that has me a bit stumped. I have a G3 iBook with the original airport card installed. Yesterday, it stopped recognizing any wireless networks in the local area (I have one graphite ABS and one AirPort Express, plus there are one or two o

  • Objects are locked in open change requests during support packs update

    Hi All, We are applying support packs in the ECC Dev system. Its giving error in phase OBJECTS LOCKED..?  after that i checked with ABAP consultant he given requests which i unlocked the objects from SE03. Still the same error Objects are locked in o

  • Use Timer Task to run a loop at a certain time

    import java.util.*; class Run30Sec { public static void main( String args[] ) int numberOfMillisecondsInTheFuture = 10000; // 10 sec Date timeToRun = new Date(System.currentTimeMillis()+numberOfMillisecondsInTheFuture); Timer timer = new Timer(); tim

  • How do i get the PAD to send docs to the C8180 wireless printer

    We have an IPad that works well with the wireless adapter, however we can't get it to print to the HP Photosmart C8180 wireless  printer.  We have a Toshiba laptop running Windows XP.  The printer doesn't show up when we scan for printers with the Ip