HOW TO GET TOTAL BEFORE DISCOUNT AMOUNT IN MARKETING DOCUMNET

HI.
I need one requirement in this,
i need to capture the Total before discount amount at A/R invoice.
i checked in tables Discount and Discount amount will be come below Total before Discount amount
but Total Before Discount Amount i am not able to get it from the Database.
Any information plz Update me.

Hi Srinivas,
As already answered by Seniors that you have to apply Formula to get Total before Discount. Please check below
Total Before Discount =  ( DocTotal + DiscSum - VatSum )
If you want to put FMS then please try below FMS for Header Level
SELECT ( $[OINV.DocTotal] + $[OINV.DiscSum] - $[OINV.VatSum] )
Hope this helps
Regards::::
Atul Chakraborty

Similar Messages

  • How to get total in ALV report in same Internal table?

    Data : Begin of it_data,
            kunnr type kunnr,
            name1 type name1,
            amt1  type btrt01, " CURR 15,2
           end of it_data.
    loop at it_data into wa_data
    endloop.      
    Hello friends,
    I am developing one ALV report with 20 rows.
    I have filled one internal table with some fileds like amount.
    I want to get total of all amount1 in AMT1 field.
    So, How to get total of amount in same internal table in ALV report ?
    It is ok if i get duplicate rows in internal table.
    Points 'll be awarded soon.
    Regards,
    NVM

    Hi Ronny,
    the alv output will display the sum at the last row.
    for this functionality u have do this logic.
    data: lw_fcat type slis_fieldcat_alv.
    data: lt_fcat type slis_t_fieldcat_alv/
    wa_fcat-fieldname = 'AMT1'.
    wa_fcat-tabname = 'ITAB'.
    wa_fcat-do_sum = 'X'.
    append wa_fcat to lt_fcat.
    and then pass it to reuse_alv_grid_display function,
    regards,
    Santosh Thorat

  • How to get total number of days

    Hi All,
    how to get total number of days , for example if month eq 05 then need to get total number of days until MAY 31.
    and how to get total number of days in a month.
    Thank You,,
    Sriii..

    Hi Sridhar,
    Pls Try to search before posting general questions.
    Try this,
    CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
        EXPORTING
          i_datum_bis                   = p_lv_date1
          i_datum_von                   = p_lv_date2
       IMPORTING
         e_tage                        = p_e_date_difference
       EXCEPTIONS
         days_method_not_defined       = 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.
    Regards,
    Sunil kairam.

  • How to display total "items" and "amount " in header.jsp in CRM ISA B2B

    Hi,
    I am modifying “header.jsp” in standard CRM ISA B2B application.  Here we have summary of total number of items and total amount but it is coming in to button and for that below code is there in “header.jsp” and it display it as button text.
    if (!ui.homActivated) { %>
    !!" alt="" border="0" height="16" width="20">
    </td>
    <td class="vertical-align-middle" name="miniBasket" value="<isa:translate key="b2b.header.minibasket.default"/>" >
            <form name="basketForm" action="javascript:show_basket();">
         <input class="green" name="miniBasket" type="button" value="<isa:translate key="b2b.header.minibasket.default"/>"/>   
        </form>
    </td>   
    <% } else { %>
    <!-- HOM scenario - minibasket displays collective order -->
    <td  class="vertical-align-middle" align="right">
    !!" alt="" border="0" height="16" width="20">
    </td>
    <td  class="vertical-align-middle" name="miniBasket" value="<isa:translate key="b2b.header.collorder.default"/>">
    <form name="basketForm" action="javascript:show_collective_order();">
        <input class="green" name="miniBasket" type="button" value="<isa:translate key="b2b.header.collorder.default"/>"/>   
    </form>
    </td>
    <% } %>
    Now I want to display total number of items and total amount separately in two different <td> element.
    How I can get total number of items and total amount in “header.jsp” I tried below code but did not get any success.
    Insert below line in “header.jsp” with respective page import statement for class or let me know which class I have to import.
    <%
         HeaderSalesDocument  hdr =
                (HeaderSalesDocument) request.getAttribute(MaintainBasketBaseAction.RK_HEADER);
        ItemList items =
                (ItemList) request.getAttribute(MaintainBasketBaseAction.RK_ITEMS);
    %>
    And then I use
    <td><%= hdr.getNetValue() %></td>
    <td><%= items.size() %></td>
    But it is not printing any thing and header page not display at all.
    Pl. tell me how to get total amount and number of items in header area. Which class or object I have to use here.
    I really appreciated any help from any one.
    Thanks and regards.
    Ashish Patel.

    Hi, I tried another logic. I took value from  Standard button, in which B2B application display total items and amount and I hide this field, to another text element.
    Now I Am breaking that value in words and stored them in array  and then trying to display that array with particular number which contains total item and amount through Java Script on Focus.
    But problem here is, It is not getting updated automatically I have to click on new text files to trigger Onfocus event. How I can achieve effect like as soon as Standard button changes it's value which is now hidden filed my new text box should update automatically.
    Thanks.
    Ashish

  • How to get total of any field in sapscript?

    Hello ,
    i m making sapscript...
    How to get total of any field in sapscript?

    Hi
    Yes, you can define a variabe in your print program and pass it to the SAPScript.
    LIKE:
    Define L_SUM in the Global data.
    DATA: L_SUM TYPE BSEG-DMBTR.
    LOOP AT ITAB.
    L_SUM = L_SUM + ITAB-AMOUNT.
    ENDLOOP.
    CALL FUNCTION 'WRITE_FORM'
    WINDOW = 'MAIN'
    ELEMENT = 'TOTAL'.
    Now, in your SAPScript, create a text element in MAIN window
    /E TOTAL
    Total,, &L_SUM&.
    Go through below link
    http://sap-img.com/sapscripts/sapscript-how-to-calculate-totals-and-subtotals.htm
    Regards,
    Chandru

  • Total Before Discount

    Hi,
    Is there a property in the Sales Order Document to get the Total Before Discount ?

    Hi Binita, Hi Marc,
    Effectivly your formula is correct.
    In my application i don't activate Rounding. So the value is only 0.
    To calculate the total before discount :
    Total document - rounding - Tax + discount.
    (DocTotal - TotalExpns - VatSum + DiscSum --> SQL fields)
    (DocTotal - Rounding - VatSum + TotalDiscount --> Properties DIAPI)
    Regards
    Michael
    Edited by: Michael LECLERCQ on Jul 4, 2008 8:49 AM

  • How to get total at each hierarchy

    Hello Gurus,
    Does anybody know how to get total at each  level.
    I mean, if I have the following structure...
    Level 1
    Level 2
    Level 3
    Level 4
    Level 5
    At level 5 we have the following calculation
    Volume      Price    Amount(From Formula Volume * price)
    5                 2           10,00
    6                 3           12,00
    7                 4            28,00
    My question is how to get  a sum of (10,00 + 12,00 +28,00 = 50,00) at level 4?
    Thanks in advance.
    With regards,
    Anand

    Does anybody know how to get total at each level.
    I mean, if I have the following structure...
    Level 1
    Level 2
    Level 3
    Level 4
    Level 5
    At level 5 we have the following calculation
    Volume       Price       Amount(From Formula Volume * price)
    5                     2                 10,00
    6                     3                 12,00
    7                     4                  28,00
    I am getting following results : It is adding volume and price then multiplying volume * price and giving results.
    18                  9                18 * 9 = 162,00
    But I have to get sum of  ( 10,00 + 12,00 +28,00 = 50,00) at level 4.
    My question is how to get a sum of (10,00 + 12,00 +28,00 = 50,00) at level 4?
    Thanks.
    With regards,
    Anand

  • Invoice field "Total Before Discount"

    I am importing data via DTW to an invoice. I am then trying to apply a 10% discount. However, the 10% doesn't apply because the field "total before discount" is empty.
    I have tried to look at importing in to this field but can't find which field to update and I also thought that it would update automatically from the line items?
    Although perhaps it's not updating because by adding the items codes and qty during the import it doesn't then set the Total (LC) field. Do I have to set this?
    Edited by: Ricky Thomas on Apr 1, 2011 12:52 PM

    HI,
    Ya,you just add the discount in its respective field along with the previous details(like neceesary standard information for that invoice) and update it through DTW....
    Edited by: kambadasan on Apr 1, 2011 1:29 PM
    Edited by: kambadasan on Apr 1, 2011 1:31 PM

  • Other Charges on total before discount value

    Hi Experts,
    I faced an issue while generating sales quotation, apart from tax code we need to put other charges on the total before discount value of the documents like UT charges,P&F charges, Tarnsit Insurance and TPI Charges.
    However these other charges percentage are variable in nature it depend upon the customer to customer(C2C).
    Please put some light on this major issue of sales process.
    Thanks in Advance
    Regards
    Amit Tyagi

    Hi Amit,
    In the lines of the quotation there is only place for 3 sorts of freight charges, but I think this will be the most easy to use for you.
    At first you have to setup your freight charges: Administration > General Settings > General > Freight
    Define your different charges there, so you can use them in the sales quotation.
    After you have done that, you can open the sales quotation and take a look at the freight charges that is displayed under the document discount. If you click on the golden arrow, you can see the defined freight costs and give in the ammounts.
    You can also do this in the lines, open the form settings for the sales quotation and make the freight costs visible in table format. It is possible to make formatted searches on these colums.
    I have one question remaining at this moment: Do you want to see the extra costs on the lay-out?
    Kind regards,
    Hendri Wessels

  • Total Before Discount field.

    Hi, evrybody!
    Can you show me about what table store Total Before Discount field..in SQL tables
    Can you help me! Thank you.

    Hi,
    The total before discount is the sum of the line total which are stored in the lines table.
    For an example ,
    Sales Order,
    SELECT SUM(PriceBefDi),docentry FROM RDR1 WHERE DOCENTRY = "docentry value" group by docentry.
    Regards,
    Tom.

  • How to get total available RAM

    Hi
    How to get total available RAM of the system. I used Runtime.getInstance().totalMemory(), it is not giving total memory of the system. I appreciate any help on this pl.
    Thx
    PK

    If there would be any operating system command
    displaying the desired result,
    we could execute it as runtime command and parse the
    output.
    But I don't know if such a command exists.
    I tried "mem", but it does not show the value I
    expected.For windows XP the following command (either in the cmd window or executed by Runtime.exec) will provide the physical memory size.
    systeminfo | find "Total Physical Memory"I don't know if it works in other Windows versions.

  • How to get total numbers and total price in query reports

    Hi,
    how to get total numbers and total price in query reports.for example:
    particular item is issued 3 times a week...I need total quantity of item issued
    my query...
    SELECT T0.[DocNum], T1.[ItemCode], T1.[Quantity], T1.[Price] FROM OIGE T0  INNER JOIN IGE1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode]  Like '%%[%1]%%'  and  T1.[U_WOType]='[%0]'

    Hi,
    Try this:
    SELECT T1.[ItemCode], SUM (T1.[Quantity]) as [Total Quantity], SUM (T1.[Quantity] * T1.[Price]) as [Total Price] FROM OIGE T0  INNER JOIN IGE1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode]  Like '%%[%1]%%'  and  T1.[U_WOType]='[%0]'
    Group By T1.[ItemCode]
    Beni.

  • How to get total amount between two fiscal years

    i Have a report requirement. I have created a crosstab report where I need to get amount of current year current month(10/2010), current year last month(09/2010),last year last month(10/2009). Here I'm comparing  10/2010 amount with 09/2010 and 10/2009. But now my manager asking to me create report that  compare amount between 2008 and 2009 periods.
    How to get that?
    I have a prompts and I entered  1)fiscal year=2009
                                    2)fiscal period= 9;10
                                    3) account numbers=x;y;z;p;q;r;s
    I entered fiscal year:2009 in the prompt but I need to compare  fiscal year 2009(i.e 10/2009) amount with fiscal year 2008(10/2008).              
                                                                2009/09    2009/10   2008/10
    Account number  account name         amount     amount     amount
    In advance,Thanks for your response

    Is your universe based on a BEx query? If so, create the offset variables in the BEx query.
    If the universe is not based on a BEx query, you will need to create these variables in your universe. I do not believe you can do this directly in Webi.

  • Regarding: How to get the Tax Breakup  Amount using SDK

    Hai Friends,
                   I created one saled order . I have given Tax code (Service) then it show total  amout of tax is 370.80. when i click the link button of Tax Amount field  from sales order then it show  the  Tax Breakup Details in Separate Screen of SAP. That screen Contain following Details.
    From Caption is : Define Tax Amount  Distribution
          Type               Tax Parameter Code         Tax Parameter Name                Rate            Duty         Tax Amount        Base Amount
          Service           Service                            Service Tax                               12                                 360.00
          Cess_ST        Cess_ST                          Education Cess for Sevice          2                                     7.20
          HSCess_ST   HSC_ST                            HSCee for Service                      1                                     1.00
                  My Doupt is :
                           How do i get the Service tax Breakup value from above grid.
                           How to get the Tax Breakup value from that SAP Screen, is it any help in SDK.
    Please Help Me.
    Regards,
    K Sakthivel
    Edited by: ksakthivel on Dec 7, 2011 10:41 AM
    Edited by: ksakthivel on Dec 7, 2011 10:53 AM
    Edited by: ksakthivel on Dec 7, 2011 10:54 AM

    Hai Friends,
                   I created one saled order . I have given Tax code (Service) then it show total  amout of tax is 370.80. when i click the link button of Tax Amount field  from sales order then it show  the  Tax Breakup Details in Separate Screen of SAP. That screen Contain following Details.
    From Caption is : Define Tax Amount  Distribution
          Type               Tax Parameter Code         Tax Parameter Name                Rate            Duty         Tax Amount        Base Amount
          Service           Service                            Service Tax                               12                                 360.00
          Cess_ST        Cess_ST                          Education Cess for Sevice          2                                     7.20
          HSCess_ST   HSC_ST                            HSCee for Service                      1                                     1.00
                  My Doupt is :
                           How do i get the Service tax Breakup value from above grid.
                           How to get the Tax Breakup value from that SAP Screen, is it any help in SDK.
    Please Help Me.
    Regards,
    K Sakthivel
    Edited by: ksakthivel on Dec 7, 2011 10:41 AM
    Edited by: ksakthivel on Dec 7, 2011 10:53 AM
    Edited by: ksakthivel on Dec 7, 2011 10:54 AM

  • MDX How to get total distict count and SUM of subgroups?

    with
    MEMBER Measures.[EmailCount] as IIF(ISEMPTY([Measures].[Tran Count]), 0 ,[Measures].[Tran Count])
    MEMBER Measures.AdvGroupTotal as
    SUM (
    FILTER( EXISTING ([Dim IFA Details].[Parent Key].[Adviser Group].Members * [Dim Date].[Fiscal].[Fiscal Year].members )
    , Measures.[Amount] > 100 )
    , Measures.[Amount])
    MEMBER Measures.[AdvGrpCount] as
    distinctCOUNT(Existing([Dim IFA Details].[Parent Key].[Adviser Group].Members * [Dim Date].[Fiscal].[Fiscal Year].members))
    member Measures.IncomePerEmail as Measures.AdvGroupTotal /Measures.[EmailCount]
    member Measures.AvgIncomePerFirm as Measures.AdvGroupTotal/ Measures.AdvGrpCount
    SELECT { [Measures].[Amount] , Measures.[EmailCount], Measures.AdvGroupTotal, Measures.[AdvGrpCount],
    Measures.IncomePerEmail, Measures.AvgIncomePerFirm }
    ON COLUMNS,
    [Dim Date].[Fiscal Year].[Fiscal Year].ALLMEMBERS * [Dim Date].[Fiscal Quarter].[Fiscal Quarter].ALLMEMBERS *
    Except( [Dim Income Range].[Hierarchy].[Range ID].Members , [Dim Income Range].[Hierarchy].[All].UNKNOWNMEMBER.UNKNOWNMEMBER )
    on rows
    FROM [Income and Emails Cube]
    where
    [Dim Date].[Fiscal].[Fiscal Year].&[FY 13/14]
    The query above returns :
    How can I get Totals for AdvGroupTotal and AdvGroupCount for the year ?
    In the above case I want to tally up 1586 + 67 + 155 + 12 + 1718 for AdvGroupCount, same applies for the corresponding
    AdvGroupTotal figures.
    Seems simple enough, but I seem unable to come up with a way around this.
    Jon

    I worked it out with the help of Simon from another forum.
    Using a filtered set will get me the result required. It is however not very quick, so I probably should look into building it into the cube.
    WITH SET [Filtered Groups] AS
    ( Filter (
    { [Dim IFA Details].[Parent Key].[Adviser Group] } *
    { [Dim Date].[Fiscal Year].CurrentMember },
    [Measures].[Amount] > 100
    MEMBER [Measures].[Annual] AS
    Sum ( [Filtered Groups], Measures.[Amount] )
    MEMBER [Measures].[Firm Count] AS
    DistinctCount ( [Filtered Groups] )
    MEMBER [Measures].[Avg Income Per Firm] AS
    [Measures].[Annual] / [Measures].[Firm Count]
    MEMBER [Measures].[Test] AS
    Sum (
    { [Dim Date].[Fiscal Quarter].[Fiscal Quarter] } * { [Dim Income Range].[Hierarchy].[Range ID] } * { [Filtered Groups] },
    [Measures].[Amount]
    MEMBER [Measures].[TotalCount] AS
    DistinctCount (
    { [Dim Income Range].[Hierarchy].[Range ID] } * { [Filtered Groups] }
    MEMBER [Measures].[TotalAvg] as [Measures].[Test]/ [Measures].[TotalCount]
    MEMBER [Measures].[Quarter] as [Measures].[Amount]
    SELECT
    { [Measures].[Quarter], [Measures].[Annual], [Measures].[Firm Count], [Measures].[Avg Income Per Firm],
    [Measures].[Test], [Measures].[TotalCount], [Measures].[TotalAvg] } ON COLUMNS,
    [Dim Date].[Fiscal Year].[Fiscal Year].AllMembers * [Dim Date].[Fiscal Quarter].[Fiscal Quarter].AllMembers *
    Except ( [Dim Income Range].[Hierarchy].[Range ID].Members, [Dim Income Range].[Hierarchy].[All].UnknownMember.UnknownMember )
    DIMENSION PROPERTIES Member_Unique_Name, MEMBER_CAPTION
    ON ROWS
    FROM [Income and Emails Cube]
    WHERE [Dim Date].[Fiscal].[Fiscal Year].&[FY 13/14]

Maybe you are looking for

  • Creating bookmarks from access(VBA)

    Hi all, Im creating a number of bookmarks from access 2010 via VBA. And it works fine except that the acrobat.exe file still remains in process permanently. Ive found that it is this line bookmarkList = bookmarkRoot.children which causes the acrobat.

  • Message in service entry sheet

    I wnat to convert an error message into warning in Service entry sheet. What is the procedure? Regards VS

  • Calling ABAP Extracts into XI

    Calling ABAP Extracts into XI What is my understanding for the above scenario will be follows 1. Build the ABAP extract (basically SQL from what I understand).  This SQL dictates the structure for master table. 2. Build a BAPI wrapper around the extr

  • Can't download After effects CC

    Hello, As the title already mentioned, do I have problems with downloading the After effects CC application. I can't find it in the Creative Cloud >> Apps [http://i.gyazo.com/dd33eeb6856896791c7ab3f5cf387703.png], nor can I download it when I visit t

  • Forms runtime settings

    I am using Oracle Forms [32 Bit] Version 10.1.2.3.0 My Forms runtime settings where we specify the default browser, Application Server URL etc are not getting saved. Meaning when I exit out and open Forms builder again , I am having to specify this a