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

Similar Messages

  • How can i calculate excisable value

    hii
    actually excisable column is disable mode in my sales order..i want calculate excisable value...shall i create udf fields or not.any other way.if i  create udf, how i calculate..what is process..
    plz suggest me...

    Dear.......
    You need to create tax code which is given in standard by SAP.
    You need to only modify the Tax Rates or Add new Tax Rates......
    And create Tax Code accordingly. Your Tax 10.3% will calculate automatically.
    No need to work around with UDF.....
    Regards,
    Rahul

  • How to calculate acquisition value for specified day

    Hi,
    in my z program I have a problem how to calculate acquisition value for my asset for specified day.
    Example:
    I have asset created 8.7.2008 with TTYPE 104 (External asset acquisition) with value 5950.
    30.11.2008 there is another TTYPE 272 (Retirement of current-yr acquis., w/o revenue) with value 950.
    So BEFORE 30.11.2008 acquisition value is 5950. After is 5000. Is there any function module (or something else) in SAP system where I can send asset number and date a it return to me acquisition value for that day?
    Many thanks for any answer!

    Hi,
    your suggestion means that I have to compute acquisition value by myself (sum all TTYPE 1** - sum all TTYPE 2**). So SAP does't provide such functionality (LDB ADA have it, because it can compute acquisitiob value for specific day)?
    Mant thanks for answer

  • 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

  • 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 print Excise values in Purchase Order Smartform

    Hi, Experts,
    I am developing the Purchase Order Smartform as per the my client requirment. For this i took the copy of standard Smartform for PO. The name of the standard smartform is 'YBIN_MMPO'. My requirment is to print all the excise values {BED,CESS,ECESS and VAT/CST} of every item. How to get these conditions to print in PO. I serched the table KONV, but the conditions which are under the taxes button are not stored in this table.
    For this I found one FM "CALCULATE_TAX_FROM_AMOUNT'. This is also not helpful if client goes to manual excise to create PO.
    Is there any other table to get these conditions? or is there any function modules to get these conditions?
    Please give me the solution.
    Thanks & regards,
    Jagadeesh.

    Hi,
    I used this piece of code to get the excise values in PO.
    SELECT SINGLE * FROM EKPO INTO
                    W_EKPO
             WHERE EBELN EQ IS_EKKO-EBELN AND
                   EBELP EQ <FS>-EBELP.
    CALL FUNCTION 'J_1I4_COPY_PO_DATA'
        EXPORTING
          Y_EKPO        = W_EKPO
        EXCCOM        =
    CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT'
    EXPORTING
    i_bukrs                 =  <FS>-BUKRS
    i_mwskz                 =  <FS>-MWSKZ
      I_TXJCD                 =
    i_waers                 = IS_EKKO-WAERS
    i_wrbtr                 =  <FS>-NETWR
      I_ZBD1P                 = 0
      I_PRSDT                 =
      I_PROTOKOLL             =
      I_TAXPS                 =
      I_ACCNT_EXT             =
    IMPORTING
      E_FWNAV                 =
      E_FWNVV                 =
      E_FWSTE                 =
      E_FWAST                 =
    tables
    t_mwdat                 = ITAB_TAXDATA
    EXCEPTIONS
       BUKRS_NOT_FOUND         = 1
       COUNTRY_NOT_FOUND       = 2
       MWSKZ_NOT_DEFINED       = 3
       MWSKZ_NOT_VALID         = 4
       KTOSL_NOT_FOUND         = 5
       KALSM_NOT_FOUND         = 6
       PARAMETER_ERROR         = 7
       KNUMH_NOT_FOUND         = 8
       KSCHL_NOT_FOUND         = 9
       UNKNOWN_ERROR           = 10
       ACCOUNT_NOT_FOUND       = 11
       TXJCD_NOT_VALID         = 12
       OTHERS                  = 13
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    regards,
    Jagadeesh T.

  • How to calculate usage value through measuring document.

    Hi,
    While creating Sales Order with reference to a Contract i need to update the usgae value in the Order Quantity ( RV45A-KWMENG ) field (at line item level).
    Can you help me calculate usage value through measuring documents for equipment over a period of time.
    Is there any function module for the same?
    Thanks.

    Hi,
    To determine the usage value of a an equipment I had followed the following.
    From table STPO, check if the material receipted belongs to a standard BOM (STLTY='S')
    If yes, record the BOM (STLNR)  and the BOM item node number (STLKN)
    From PLMZ table, select the task list type (PLNTY), the key for task list group (PLNNR), the group counter (PLNAL), the task list node number for operation (PLNKN),   if the record is not flagged for deletion (LOEZ)
    From PLFH table, select the object type of the CIM resource (OBJTY), the object id of the resource (OBJID), the usage value (EWVGW) if the record is not flagged for deletion (LOEZ)
    From CRVE_A table, select the equipment number (EQUNR)
    The result of this selection will be all the tools which can be used for the production of the material receipted.
    The measuring point for this or these equipment(s) will be selected from equipment number and EQUI table
    The result of this selection will be all the measuring point to update.
    Create new measurement document for the selected measurement point (transaction IK11)
    Technically go as follows:-
    MAT = material receipted
    Select STLY, STLNR, STLKN from STPO table where IDNRK='MAT' and STLTY='S'
    If results exist
    Select STLTY, PLNNR, PLNAL, PLNKN from PLMZ where PLMZ.STLTY=STPO.STLTY and PLMZ.STLNR=STPO.STLNR and PLMZ.STLKN=STPO.STLKN
    And PLMZ.LOEZ<>'X'
    Select EWVGW, OBJTY, OBJID from PLFH twhere PLFH.STLTY=PLMZ.STLTY and PLFH.PLNNR=PLMZ.PLNNR and PLFH.PLNAL=PLMZ.PLNAL and PLFH.PLNKN=PLFH.PLNKN and PLFH.LOEKZ<>'X'
    USAGE=PLFH.EWVGW
    Select EQUNR from CRVE_A where CRVE_A.OBJTY=PLFH.OBJTY and CRVE_A.OJBID=PLFH.OBJID
    All the equipment number selected at this moment will be called EQUIP in the next steps
    EQUIP= Equipment number previously selected
    Select OBJNR from EQUI where EQUNR=EQUIP
    Select PARNR from IHPA where OBJNR=EQUI.OBJNR
    If PARNR = Vend then
    Select IMRC_POINT from equi where equnr=equip
    All the measuring points  selected at this moment will be called MEASP  in the next steps
    For each MEASP
    Insert into IMRG the new increment value  (USAGExMAT) in field CDIFF
    Remark: the field CDIFF is managed in floating point number, accurate to 8 bytes.
    I hope this is useful for you.
    Regards,
    Ankur Parab

  • How to calculate query value on extended range of data

    Hi,
    This is my first post, so let me greet all forum users. I'm reading the forum for few weeks and I'm really impressed with the force of this community.
    My question is based on some real problems but I'll ask in general:
    In a BEx query - is it possible (and how?) in a result cell to obtain value that is calculated based on some more extended range of infoprovider records than it results from all the characteristics related to that cell?
    The question is somehow about a reverse case to the restriction in Selection. I'm asking about a kind of 'extension' of selection.
    Example for the question follows (it is somehow simple, I put it here just to picture the problem, note: the question is more general!)
    cube: ch: 0CALMONTH, 0MATERIAL, 0PLANT
          kf: 0QUANTITY (ex. of outgoing deliveries)
    What I need is to obtain in any query the SUM(0QUANTITY) over all 0PLANT (this can lead to knowing the 'activity' of the specific plant by calculating the share. that activity can be calculated at diferent level of detail).
    The 'dream' query would look like:
    rows: 0CALMONTH, 0MATERIAL, 0PLANT      
    cols: 0QUANTITY  SUM_OVER_0PLANT
    resulting in ex:
    0CALMONTH  0MATERIAL  0PLANT  0QUANTITY  SUM_OVER_0PLANT  PLANT_ACTIVITY
    2005.01    00001      P100    10         30               1/3
    2005.01    00001      P200    20         30               2/3
    2005.01    00002      P100    30         70               3/7
    2005.01    00002      P200    40         70               4/7
    2005.02    00001      P100    50         110              5/11
    2005.02    00001      P200    60         110              6/11
    2005.02    00002      P100    70         150              7/15
    2005.02    00002      P200    80         150              8/15
    after removing drill 0MATERIAL:
    0CALMONTH  0PLANT  0QUANTITY  SUM_OVER_0PLANT  PLANT_ACTIVITY
    2005.01    P100    40         100              4/10
    2005.01    P200    60         100              6/10
    2005.02    P100    120        260              12/26
    2005.02    P200    140        260              14/26
    after removing drill 0CALMONTH:
    0PLANT  0QUANTITY  SUM_OVER_0PLANT  PLANT_ACTIVITY
    P100    160        360              16/36
    P200    200        360              20/36
    For this specific case I investigated several solutions:
    1) using formula & function SUMCT (Result). This has a drawback that Result for 0PLANT must be present in right place (bottom level) in the resulting query. I don't like this.
    2) SUM can be directly precalculated in the cube. Well, I'd prefer Bex only...
    Please keep in mind also following:
    1) there may be a need to refer to the data that is outside prompt/filtering/restricting range.
    2) I want to preserve all the OLAP freedom, so all the solution should be a query with some tricky formula/kf/??? to be used by user in any situation and producing right result.
    I hope I'm not demanding to much...
    (now after this long example please have a look at the question again!)
    Regards,
    Mirek

    Hi Ashwin,
    while using SUMCT I loose the freedom of OLAP. SUMCT calculates properly SUM_OVER_0PLANT only when the 0PLANT is the lowest drillin level. If this is not the case (ie. some other ch is the lowest level or 0PLANT results are suppressed) the approach won't provide right result.
    sure I will reward all helpfull posts.
    regards,
    Mirek

  • How do you pass values between case structures?

    Hi,
    I have a simple vi where I am measuring voltage in a WHILE LOOP. The WHILE LOOP contains 2 case structures.  Under some measured voltages,  case 1 or case 2 will execute, and under some other voltages, neither case will execute, and the WHILE LOOP simply iterates again. 
    Case 1 and Case 2 both issue commands that are calculated using both the measured voltage and the PREVIOUS command value, using a very simple addition/subtraction sequence.  Case 1 and Case 2 are likely to execute many times before the voltage changes enough to pass into the "in between" range.  Each time either case executes, a new command is issued.  Each new command is a modification of the previous command by the addition/subtraction process.
    The two cases refer to an upper threshold and a lower threshold.voltage value.  There is also a voltage range in between the lower and upper threshold values where we do not issue any commands.  Commands are issued only when Case 1 (voltage<lower threshold) or Case 2 (voltage>upper threshold) is TRUE.
    In the case structures, the measured voltage is used to calculate a command value by adding or subtracting to the previously calculated command, where either Case 1 or Case 2 are TRUE.  The case structures do NOT use any of the voltage values measured in the "in between" range. 
    Suppose that Case 1 is executing and sending commands properly, and then, the voltage value changes to the in-between range and continues to the Case 2 range.  What I want is for the Case 2 to use the last command issued by Case 1 for the Addition/Subtraction.  Recall that many voltage values are likely to be measured in the "in between" range and none of these will result in issued commands.  How do I capture the last command from Case 1.  Of course, I want to go both directions.  A total of four differen sequences are possible:
    Case 1--> In between --> Case 2
    and
    Case 2 -->In between --> Case 1
    and
    Case 1 -->In between --> Case 1
    and
    Case 2 -->In between --> Case 2
    How do I capture that last command issued, and store it until either case becomes TRUE again, and then make the case use this command?  I don't think that a shift register will work because the "in between" range will change the value in the shift register, and I don't see how to implement a shift register with a Case structures.  Will the feedback function work for this?
    Thanks for your thoughts.
    Dave

    Action Engines probably are a good idea.
    I think the state machine in the attached vi should also be sufficient.
    Attachments:
    State Machine Example.vi ‏11 KB

  • How to calculate mean value of a matrix

    Hi... I ve one matrix of order (m*n). I need to calculate the mean value of this matrix. How to do this?
    let we consider the matrix as 4x4.(Row=Column=4) The resultant matrix i.e mean value matrix is 1x4(Row=4,Column=1). To read the row value simultaneously in order to calculte the mean value thro row.... ?  please help me out
    Example:
    Matrix A=1 2 3 4
                   5 6 7 8
                   1 3 5 7
                   2 4 6 8. 
    Mean value thro row would be:   10/4 [  (1+2+3+4)/4
                                                      26/4 [ (5+6+7+8) /4...Like this i ve to do..
    Please help me out

    Hi,
      See this attachment.....
    Thanks and regards,
    srikrishnaNF
    Attachments:
    Example_VI_BD.png ‏3 KB

  • Excise values in case of export under bond

    Hello All
    I am creating a export excise invoice .So in J1IIN I am selecting the export type B.
    After this all the duty value et zero in the excise invoice.
    Can someone please advice that how should the values be updated in J_1IRG1 ,J_1iEXCHDR,J_1iEXCHDL tables.Should the vlaues be zero there or should the percentages be populated there
    Many thanks
    Aditi

    Dear Aditi Gupta
    If the values are not flowing in J1IIN, first you need to check in billing document (vf02), whether those values are flowing.  Please check in your billing document.
    thanks
    G. Lakshmipathi

  • How to calculate avg value in bex

    Hi all
    I have a requirement
    I want to run a query for a particular period say 0032005.
    in the query output value will display for all prior period in different column. for perod 003
    it will display value for 001 , 002 ,003. and
    at the last column  i want calculate the avarage for this 3 period. these should be dinamic.
    if i run this query for period 0052005. query will display value for period 001 ,002 ,003,004,005 and last column will display avarage for the 5 period.
    i am able to diaplay each prior period in different column that is fine. but i am not abel to calculate the avarage column.
    example
    selection screen :
    fiscal period : 0042005
    Query output
    Char 0012005 0022005 0032005 0042005   Avg
         88        99     77       66     (889977+66)/004
    Please any one know about please help with steps.
    Thanks

    I have a requirement
    I want to run a query for a particular period say 0032005.
    in the query output value will display for all prior period in different column. for perod 003
    it will display value for 001 , 002 ,003. and
    at the last column i want calculate the avarage for this 3 period. these should be dinamic.
    if i run this query for period 0052005. query will display value for period 001 ,002 ,003,004,005 and last column will display avarage for the 5 period.
    i am able to diaplay each prior period in different column that is fine. but i am not abel to calculate the avarage column.
    example
    selection screen :
    fiscal period : 0042005
    Query output
    Char 0012005 0022005 0032005 0042005 Avg
    88 99 77 66 (889977+66)/004
    I got the resolution as bellow.
    In the Characteristic Property Set it as Suppress Result Rows-> Never. For the key figure Set Calculate Result Rows-> Average of All Values.
    yes it is working fine . but there is a small problem in the column heading for this colume is displying as overall result. but values are displying as a avg value. how can i change it.
    why i ahve to create a text variable. please explain

  • How to calculate the values

    Hi Experts,
    I have doubt, i have an internal table now i want to calculate the total for every group. How to do that?
    value          type
    5,439.01 ;    ZMP0
      509.60 ;     ZMP0
    4,749.26 ;    ZMP0
    9,053.95-    ZPNL
    732.70-      ZPNL
    66.30-       ZPNL
    18.10-        ZS03
    63.90 ;        ZS03
    According to the type i need a total for ZMPO, ZPNL, ZSO3 separately.
    how to do that?
                       5,439.01 ;    ZMP0
                         509.60 ;     ZMP0
                        4,749.26 ;    ZMP0
    ZMPO total =
                         9,053.95-    ZPNL
                          732.70-      ZPNL
                           66.30-       ZPNL
    ZPNL total =
                          18.10-        ZS03
                           63.90 ;        ZS03
    ZSO3 total =
    Like that i need, can any one help this?
    Regards,
    Mohana

    Hello,
    Use the COLLECT.
    DATA:
      wa LIKE LINE OF itab,
      itab_sum LIKE itab.
    SORT itab BY key.
    LOOP AT itab INTO wa.
      COLLECT wa INTO itab_sum.
    ENDLOOP.
    The itab_sum has the same structure like the itab where is the data to me summarized, and the wa has the line structure of the itab.
    Regards.

  • How to calculate average value?

    Hi all,
    I'm using Lumira 1.15. I'm doing some practices with the sample dataset BestRunCorp... I want to calculate the average value of gross margin which is grouped by lines so that I can use a line chart to show the difference between the gross margin value and average value.
    How can I achieve this ?
    Best regards,
    Shuang

    It looks like it calculates the average based on the dimension
    See below:
    If you take the "Best run" Excel file, sort by country, calculate the average in Excel, it matches Lumira's 4,056 (for Argentina)
    I am not sure I follow your divide by 12 logic?

  • How to calculate some value that referring to another table

    Hi...
    Need help asap
    The questions are :
    Q1 : In Microsoft Excell, we can take value from one cell and use it to another cell.
    How about in BO, if we want to take value (ex. 93.75) from the other table and use or refer the value that we want to to another table (just use the value from another table)
    Just for information, we want to use the number (93.75) in another function. (if <93.75, then........) and the value (93.75) is a result from another function or calculation.
    Q2 : How to SUM from one table and show the result to another table.(We want to use the result of SUM for another calculation in different table.)
    Thanks for your kind help.

    Eva,
    In answer to your question about using a cell from report (block) as a value to be manipulated within another block, will be tricky unless you can employ the "Merge Dimensions" technique.  Working in the blind and trying to visualize what you are trying to do is very difficult, so to speak in general terms, you will have to determine a best way to merge dimensions, then build specific local variables to "flag" and extract succinct values from one data provider, and then use that local variable in applying it to the other block.  This will take some experimentation and testing before you can feel confident and get the hang of it.
    On the other hand, if you know what the threshold value is that you want to apply (like for instance 91.75), then you can either "hardcode" that in your formula(s), or build a prompt in your report that captures this tidbit from the user when the report runs, and using the UserResponse function you should be able to calculate what it is you want to do.
    Good luck and post more details (specific tables, columns, and manipulations) and perhaps some one can post a suggestion on how to best execute your report.
    Thanks,
    John

Maybe you are looking for

  • Scanning issue using Canon Imageclass MF4350d

    I am trying to scan using the Canon MF4350d. I am using the Canon MF Tool software and it works great, almost. When putting a multi-page document in the sheet feeder, it makes every page a separate PDF, instead of putting them all in one PDF. Canon t

  • Problem in enabling the selection screen

    Hi , I have problem in enabling the selection screen. i have radio button and based on the radio button i need to make the date field as mandatory. When i tried this with at selection screen on radio button group XXX, itu2019s not triggering. Could y

  • Is there a way to boost range of the WRT610N?

    Good evening, I purchased the WRT610N a few months ago, and until now, it has worked just fine, and I had no problems with the range. But, I moved to a new house, which apparently has thicker walls :/ and the signal is very very poor now, and I have

  • FB60 Enhancement - BADI / User Exit / Substitution

    I have the following requirement: <b>When an invoice is posted using transaction FB60, based on GL Account entered, the line item text should be populated with the vendor name/number.</b> I searched the forum and found that some of you have recommend

  • Can't find a self created group during add group in reporting

    The Operations manager that i am using si 2012. First let me describe what I have done. In "Authoring", I have created a new group and added two object which is a Windows server 2012 into the group. Then, I tried to use the Windows Server 2012 report