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

Similar Messages

  • Excise and vat report

    hi
    All my excise and VAT to be inventories but I need report how much Excise and VAT has been inventories.
    How to get the report?
    reg
    mrs

    Hi,
    Check it in Report J1I2 with proper Tax Code and Condition Type.
    Also refer report S_ALR_87012357 - Advance Return for Tax on Sales/Purchases

  • Excise and vat at Invoice verification

    Dear All
    Excise and Vat is not known at the time PO.vendor has submitted Excise invoice from his manufraturer at time GR.Excise amounts had been entered and posted excise in excise invoice tab with MRP indicator. till this it is fine . At the time of MIRO, LIV GR/IR balances is not happening correctly.
    Pl help me
    MVRao

    Hello,
    At the time of MIRO, LIV GR/IR balances is not happening correctly.
    Hai,
    1.Reduce the invoice value at the item level by tax values as this is inclusive of excise.
    2.Select the proper tax code at the item level & header level.
    3.If it is a TAXINN procedure, then maintian the condition records for excise & vat conditions.
    4.Flag the Calcualte tax check box at the header - basic data in MIRO.\
    5.Simualte & check the accounting entries.

  • 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 on Customs Duty?

    Dear All,
    My client wants to calculate excise on the customs duty for the imported goods for which they can take CENVAT credit. So, the calculation should be on the following components:
    (Price*Quantity)Customs DutyPacking
    Currently, the customs duty is entered in Landed Costs and Packing is entered in "Freight" where we cannot use CENVAT Codes.
    How can we do this in SAP b1?
    Bharath S

    Hi!
    Use Assessable Value (INR) Field in PO/GPRO/Invoice RowLevel to give the BaseValue of CENVAT. Also, you need to Change your CENVAT Formula accordingly. Search the forum with Key word Assessable

  • How to calculate YTD and Last year YTD on Date in Bex

    Hi,
    I have a requirement in which I need to show the report as following format.
    I need to show    Year>monthday as Hierarchy. user will drill down on Month to Date.
                 Del Qty              Ord Qty              Del  Qty LY              Del Qty YTD                  Del Qty  L YTD
    Year
    > Drill Down to Months
            Jan
            Feb
            Mar
              ---> 1.03.2010
              ---> 2.03.2010
              ---> 3.03.2010
            Dec
    I have Calday, Calmonth, Calyear all three objects.
    Now my question is how I can achive this? On which i need to create hierarchy?
    and how to calculate the YTD at day level.
    Note:- in the selection calyear is mandatory. User wants to display as per year.   So What infoobject I need to take in selection?
    and the way to calculate YTD on Day (in the case also ,where user doesn't give the date in selection)
    Plz reply asap its uregent !!!
    Thanks in advance,
    Amit

    Hi,
    As per my understanding I think YTD means JAN to current date result. I means say if user enter 062005 then result in YTD should be from 012005 to 062005.
    And to do this you need to write a customer exit variable where LOW field of internal table you will put JAN year and HIGH will contain month year entered by user.
    Hope this will help you.
    Suneel

  • MIRO- excise and VAT duties Rounding off

    Hi all,
    A PO will have 20 items. Those 10 items will have excise duties and VAT amount. At the time of PO these excise duties and the VAT amount should not get rounded off. But while the user is doing MIRO, the value of these excise duties and the VAT amount should come to the screen as rounded off. Is it possible? If yes please suggest me.
    I am Using TAXINN procedure

    Hi girish,
    We can Bring condition  Round Down and Up but we can't do as you said.See some User Exists are available .
    BR
    Raj

  • Excise and Vat amount fetching in crystal reports

    Hi
    Document:GRPO (Draft)
    Reports Format:Crystal Reports
    Im not able to fetch the values of Excise(BEDCessHcess) and Vat applicable to each items in row.
    Plz suggest me the wayout.
    Thanks

    Hi ,
    Pls make a query having joining start from oinv> inv1>inv4  on docentry .
    For tax description u can go ostt .
    Evert tax have a taxcode , in inv4 check the tax entry by taking the refrence of a particualr docentry from oinv and then fetch the  required data .in inv4 look for linenum  field which is also in inv1 , link that two on docentry and linenum for particualr row item,I think u got little bit idea for that , Just try to start query , pls let us know if u face any issue in query .
    Rgds,
    Premraj

  • How to calculate difference and percentage in matrix report dynamic columns in SSRS 2008

    Hi Friends,
    I need to calculate Difference and Percentage In matrix report SSRS 2008
    1) Row grouping based On Product
    2) Column Grouping Week and Fiscal Year Current week  and Previous Year same Weeks 
    3)Data Invnetory(Value fileld)
    Example:
    If value1 and Value2 Available we need to calculate Percentage and Difference.Otherwise Not required NA I need to Show.
    For example If Particular week,Current year data is available,Previous year  week data is not available No
    need to cal Diff and Percentage we need to show Empty.
    Below Code is working for If two values is available.
    If any one of the fiscal year week data is not there it's taking some garbage values.
    I tries with If condition in GetPCT() and GetDiff() It's not working.
    Can some one please help me on this.
    I am using the custom code 
    Public Shared Value1 as String
    Public Shared Value2 as String
    Public Shared previous as string
    Public Shared previousweek as string
    Public Shared Function GetValue(Value as String,partner as String,Week as String) as String
    If partner =previous and Week =previousweek Then
    Value2=Value
    Else
    previous=partner
    previousweek=Week
    Value1=Value
    End If
    return Value
    End Function
    Public Shared Function GetDiff()
    return Value2-Value1
    End Function
    Public Shared Function GetPct()
    return (Value2-Value1)/Value1
    End Function
    How to handle this.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, if one of the fiscal year week doesn’t have data, the custom code returns false results.
    For your requirement, if NULL value exists in the database, we should replace it as zero then perform calculate. So within the code, we should judge whether the value is NULL. To achieve your goal, please refer to the steps below:
    1. Create a table like below.
    create table dif4
    ([Product Group] varchar(50),
    [Week] varchar(50),
    [Fiscalyearweek] varchar(50),
    value int
    insert into dif4 values
    ('Desktops','W01','FY14W01',0),
    ('Desktops','W01','FY15W01',45),
    ('Desktops','W02','FY14W02',null),
    ('Desktops','W02','FY15W02',30),
    ('Desktops','W03','FY14W03',12),
    ('Desktops','W03','FY15W03',50),
    ('Notebooks','W01','FY14W01',35),
    ('Notebooks','W01','FY15W01',56),
    ('Notebooks','W02','FY14W02',45),
    ('Notebooks','W02','FY15W02',87),
    ('Notebooks','W03','FY14W03',75),
    ('Notebooks','W03','FY15W03',105),
    ('Tablets','W01','FY14W01',34),
    ('Tablets','W01','FY15W01',46),
    ('Tablets','W02','FY14W02',49),
    ('Tablets','W02','FY15W02',96),
    ('Tablets','W03','FY14W03',42),
    ('Tablets','W03','FY15W03',113)
    2. Add the custom code in the Report Properties.
    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 Value=Nothing Then
    Value=0
    End If
    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()
    If Value1=0 Then
    return 0
    Else
    return (Value2-Value1)/Value1
    End If
    End Function
    Public Shared Function GetDiff()
    return Value2-Value1
    End Function
    3. Design the matrix like below.
    4. Then get the expected results.<o:p></o:p>
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Function Module for Excise and VAT Calculation

    Dear All,
    I required one Function module for calculation of Excise % and amount of Invoice Verification Document.
    We are use TAXINN tax procedure. I am try to make Purchases Register where we required the Break up of Full tax amount as basic excise duty, Education Cess, S&H Education Cess and VAT Amount.
    Thanks
    Mukesh

    Hi,
    Locks are usually appliend on Tables. So you could find the table names affecting.
    Then you could goto SE11 and n Lock objects search for table name
    Once you identify the lock object. Display. Goto->Lock Modules.
    You will get 2 module names one for enqueue and 1 for dequeue.
    e.g. Lock object EBKK_ACCNT.
    and FMs are DEQUEUE_EBKK_ACCNT and ENQUEUE_EBKK_ACCNT
    Hope this helps.
    Regards
    Megha

  • 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

  • How to calculate interest and tds

    friends,
    we have one asset where it is provided by our business partner. every month we have to pay interest based on the mail received from business partner. my query is how to post this interest in the system, how to calculate the tds on this,
    regards,

    Hi Subramaniyan,
       1. You need to configure interest calculation all the steps.
    http://www.sap-basis-abap.com/sapfj001.htm
    or
    OB46 - Interest Settlement Calculation Type
    Int Calc. Type
    P - calculate interest based on line items.
    S - calculate interest based on account balances.
    Secornd, make it avaliable to the interest run program.
    OB82 - Interest Terms
    Third, determine the interest rate that will be used by the calculation.
    OBAC - Define Reference Interest Rates
    OB83 - Enter the Reference Interest Rates Value
    Fourth, assign the interest indicator to the reference interest rate.
    OB81 - Define Time Dependent Terms
    Finally, determine the how and to which accounts the interest program will post.
    OBV1 - Prepare Interest on Arrears Calculation F.26    A/R: Balance Interest Calculation
       2. Create Recurring Entries.  fbd1
    http://help.sap.com/saphelp_46c/helpdata/EN/6e/1218df9f0411d189b80000e829fbbd/content.htm
      3.  Process Batch Input   sm35
    Regards,
    Srinivas Muthyala

  • How to calculate Date and Days

    Hi BW Experts,
    I have requirement, I have field original GI Date and  it is calculating based on 'Original promise date'-'Transport time'. Formula is 'Original GI Date' = 'Original promise date'-'Transport time'.
    We are getting data for original promise date as Date format and  Transport time as Days (ex: 1 or 2 days).
    Here, how can I convert into Date or how can I calculate Date and Days. I am working on BW3.5 .
    Please help me how can I overcome this requirement.
    Points will be assign.
    regards
    Yedu.

    Hi Ventatesh
    It's not a problem
    You can subtract days from date to get the resultant date
    Original Promise time  =  GI Date  - Transit time ( in days)
    Add Original Promise Time in your data target and fill that up with the above rule.
    If the above is not working you can use this function module
    DATE_IN_FUTURE
    Here you need to pass Date and Days to get future date. Only trick you need to apply that if the transit days is 5 days, you pass -5 to this function module.
    But this function module is not available in BW system. Just copy the code from ECC system and create a Z FM for BW system
    Regards
    Anindya
    Edited by: Anindya Bose on Feb 9, 2012 4:36 AM

  • How to Calculate Freight and Acquisition Overheads on Material Price

    Hi Gurus,
    currently i am working in Product costing. my requirement is to calculate Freight and Acquisition overheads on Material Price.i have maintaind rates for condition types ZFRA , ZA2H and ZAOH  by using MEK1 transaction code. eventhough system is not calculating this overheads while running CK11n. system showing only material price no other oveheads.
    my intension is to estimate the cost for Purchased parts not for Manufacturted parts. for that i have given the priority in the Valuation Variant is Price from purchase record.
    can anybody resolve my problem?
    Thanks&Regards
    Prasad

    Hi
    Thanks for your reply.According to my clients requirement i need to do material cost estimates for purchased materials thru ck11n.for this i have given priority as price from purchase info record in the Valuation Variant. my mm  friends maintaind price in the purchase info record ME11.
    In additions to this i also maintained rates for Freight,Acquisition and Customs condition types in MKE1.
    Now if i run CK11n, system showing only Material Price which is in the Purchase inforecord but system not calculating any required overheads.
    I need to calculate Overheads thru Condition types not thru Costing sheet.
    If you see Price Simulation system calculating the Overheads accordingly.but same is not getting populating while running the CK11n.
    In Valuation Variant under the Deivery Costs tab I have assign all required Condition types to Valuation Variants and Controlling area accordingly.
    I hope that i explained my current problem clearly.can anybody give me the solution
    Thanks&Regards
    Prareddy

  • How to calculate excise values in case of "No Bond"

    Dear All,
    For Export scenario, BED, ECESS and HrECESS  are calculated as "Statistical" condition types.
    So it will not hit the accounts.
    But in case of "No Bond" export type, Excise values should hit the accounts.
    How to do the configuration for this. Because, we already defined excise related condition types as "Statistical".
    How to manage this situation.
    Please give some suggestions.
    Regards,
    Mullairaja

    Hi
    Even if you select your export type as NO Bond and in your pricing procedure the excise related conditions are statistical even then in excise invoice will generate the accounting document.
    regards
    SAP SD

Maybe you are looking for

  • How to find out a screen exit

    hi seniors can any one tell me abt screen exit n thier search. pls hurry points will be rewarded offer valid for today only. Sameer

  • Acrobat Reader for Mac

    I have a cd's that require the latest Adobe and Acrobat Reader for Mac to open.  I tried without and it doesn't work.  Can anyone help?  I currently have a Mac version 10.6.8.

  • Fix For nvlddmkm.sys Black Screen Of Death

    I think I finally found a fix for the Black Screen of Death from the bug with nviddmkm.sys and all the latest Nvidia Drivers.  This works on my IQ816 with NVIDIA 9600GS, it should work for most TouchSmarts that are having the random black screens. Th

  • Elements 12 and Adobe Camera Raw

    If I load a Canon CR2 file into the 'editor' the image is opened in Adobe Camera Raw 8 - that is fine. If I then make a change to the exposure slider, or any other, and click 'done' ACR shuts down. Not very good, anyone know what is going on? Regards

  • Static method are not overriden ?

    Hi, as I try to understand java in depth, I come back with this simple question: public class hiddenVar1 { boolean aVariable=true; public static void main (String [] args) { System.out.println("Hello"); public class hiddenVar2 extends hiddenVar1 { bo