Get the net sales total amount

Dear All,
I need to get the net sales from query, would like to seek for advise.
The calculation of getting net sales should be total $ of A/R invoice - total $ of Return ??
Thank you very much!

hi
SELECT T0.[ItemCode],T0.[Dscription],
T1.[Quantity] 'IN', T0.[Quantity] 'Out' FROM INV1 T0, RDN1 T1 WHERE T0.[Dscription] =[%0]
SELECT T0.[ItemCode],T0.[Dscription],
sum(T1.[Quantity]) 'IN', sum(T0.[Quantity]) 'Out' FROM INV1 T0, RDN1 T1 WHERE T0.[Dscription] =[%0] GROUP BY T0.[ItemCode],T0.[Dscription],
T1.[Quantity], T0.[Quantity]
Thanks
Kevin

Similar Messages

  • Table/BAPI to get the customer overdueand balance amounts

    Hi Gurus,,
    Can some one help me in finding the Table/BAPI to get the customer overdueand balance amounts in a period of time.
    Thanks And Regards,
    Abhi....

    Hi Eli,
    Thanks for the answer, but my problem is actually related to Credit Control Management, where we define the Credit Limits and Risk Catagories.
    Again, I wanted to know the table/BAPI where I can get the information about the Overdue Amonut (the pending amount that was supposed to be paid by Customer in a fixed period) and the total amount : Outstanding Amount
    Thanks In Advance..
    Abhi...

  • Getting the open sales orders and open deliveries valies

    Hi SDNs,
    I have a requirement that i need to get the all sales orders open values and delivery values. I need to build a logic for this scenario. could you please provide the logic for getting the open sales order values for respective customer.
    Please provide logic instead of standard reports. That would be very useful
    Thanks in advance
    Regards,
    K

    Please provide logic instead of standard reports.
    Really surprising !!!!!!!!!
    But still I would like you to have a look at VA05 where both open quantity and open order value will flow.  If you still feel to get the related tables, you can consider VBBE where you can get open order quantity
    thanks
    G. Lakshmipathi

  • Function to get the standard sales price

    Dear all,
    is there a bapi/function I can call to get the standard sales price of an article?
    Kind regards
    Roman

    Hi~ Roman
    There is a fuction for it.
        CALL FUNCTION 'PRICING'
             EXPORTING
                  COMM_HEAD_I      = TKOMK
                  COMM_ITEM_I      = TKOMP
                  CALCULATION_TYPE = PREISFINDUNGSART
             IMPORTING
                  COMM_HEAD_E      = TKOMK
                  COMM_ITEM_E      = TKOMP
             TABLES
                  TKOMV            = XKOMV
                  SVBAP            = UVBAP.
    this fuction is standard function. you can find it when you debug T-code 'VA01'.
    it returns like this.
    table tkomv
    100            000010 011 01 V  <b>ZU01</b> 2005.10.16 C                10.00            11.80  KRW    1.00000         1  EA      1      1    X       A     30 0021410014 01
    100            000010 100 01 V  <b>NETW</b> 2005.10.16 G                10.00             0.00  KRW    1.00000         1  EA      0      0  L         A     00            00
    100            000010 915 01 V  <b>MWST</b> 2005.10.16 A                11.80           100.00                         0          0      0  D         A X   10 0000006903 01
    100            000010 940 01 V  <b>VPRS</b> 2005.10.16 C                10.00         9,900.00  KRW    1.00000     1,000  EA      1      1  G X       A     00            00
    as you can see condition type zu01, netw, mwst, vprs has it's own prices.
    Try to debug it.
    <b>With program : SAPFV45P
         include : FV45PF0P_PREISFINDUNG
         fuction : PRICING</b>
    and look at parameters.
    I wish I could help you.
    good luck
    Regards
    Kyung Woo.

  • Getting the Net Price from sales order into PO

    Hi All,
    I want to get the netprice from sales order to PO just before creating the PO.
    Is there any user exit for that.
    Thanks,
    Praveen

    where u are creating PO ? How u are passing Sales Order Number to PO ?
    regards
    Peram

  • How to get the summed up total of the column?

    Hi BW gurus,
    i created a restricted keyfigure for amount,account#,0metype and for the corresponding 0metype and account# i am getting the amount for the fiscal period(12 months in column).
    i need to get the total for the amount for each fiscal period(columnwise total).
    If any more details needed plz reply me.
    Help is highly appreciated.
    Thanks in advance,
    Sam Mathew

    Hello Sam,
    You can try displaying the results row of 0metype or account#. Hope this helps.

  • To get the invoice number of amount applied in view prepayment applications

    hi all
    In AP abc Manager-Invoices--when we give invoice number in the invoice number field we get to see supplier name etc in the same Invoices Form there is a
    tab called General from which we can get Amount Paid ,
    Similarly there is a tab called View Prepayment Applications ,when clicked on this tab we can see Amount Applied and invoice number corresponding to that amount applied
    KIndly help me from which table or view this invoice number can be obtained
    i got amount applied from the view AP_UNAPPLY_PREPAYS_V,but i cant find the invoice number.
    kindly guide
    thanking in advance
    Edited by: makdutakdu on Dec 19, 2011 11:29 AM

    Thanks Robin,
    i was able to get a work around for this. For the time being i am using the following code snippet, i will try using the one u sent an will see if this works too.
    // create nodeinfo object for the node that table will bind to
    final IWDNodeInfo nodeinfo = wdThis.wdGetContext().node<NODENAME>().getNodeInfo() ;
    //get the structure of the node
    final IStructure struct = nodeinfo.getStructureType() ;
    Iterator iter = nodeinfo.iterateAttributes() ;
    if (null != struct)
    totalFields = struct.getNumberOfFields();
    else
    for ( Iterator i = nodeinfo.iterateAttributes(); i.hasNext(); i.next() )
              totalFields++;
    for(count = 1; count <= totalFields; count++)
         fieldName = nodeinfo.getStructureType().getField(count).getName();

  • How to get the Net value in SD Bex query

    Dear All,
    We have a  key figure called Net Value in SD query 0SD_C03_.  But in validating data with ERP system to this bex the value is not matching.
    In this Query we are maintain sales doc category -C and Item category.
    Because the  Net value is depends on all the above mentioned condition.Please let me know the solution to validated the data with ERP to above Bex query.
    Please let me know the possible t codes in ERP to validate  the  above query.
    Thanks
    Regards,
    Sai 

    I dont think you can capture the offset applied value in a exit as the value is dependent on the variable itself and nothing to capture the result after the offset has been applied.
    why dont you capture the variable value itself and apply the logic to do an offset in the customer exit?

  • How can get the library items total file size

    Hi All,
    I want to get the total file size of the library and count how many file in library.
    would I use getItemsRequest can get them?
    or have another ways to do that?
    Thank You
    Jimmy

    Sorry, I don't have any ideas.
    Just so you know, the document management support is the lowest priority.
    There are not any active enhancements planned for document management.
    We added some support in 12.0.x for WebAccess, but there is none planned
    further.
    Preston
    >>> On Tuesday, August 21, 2012 at 2:26 AM,
    jimmyng25<[email protected]> wrote:
    > Thank you, Preston.
    > I will try to find other ways.
    > Would you please telling me if you have any idea?
    > I no idea to solve that, thank you very much.
    >
    > Jimmy

  • How can i get the open sale orders for given material no and plant

    Hi,
    I have to retrieve the open sale orders depending on the material number and plant.
    For only open sale orders at header level and item level.
    I want to use VBUK-GBSTK to find open sale order at header level and
                          VBUP-GBSTA at item level.
    Can any one suggest me the best logic as performance is concerned?           
    Thanks,
    Kumar.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • To get  the net value  by subtracting discount from total

    Hi all
    I have an issue in the report I am using oracle reports 6i
    i have a total_services field which is a summary column (CS_1) AND a discount_field which is a formula column (cf_1)
    the requirement is to get total_services - discount value
    i created another formula column NMAD1 with the following formula (sub_dis_ser is a placeholder column of NUmber datatype i created)
    function NetserFormula return nUMBER is
    begin
       :sub_dis_ser  := :CS_2 - :CF_1;
       return(:sub_dis_ser);
    end;this is the code for CF_1, in which i have included a placeholder column CP_6 i created
    function DiscFormula return Number is
    begin
       if  nvl ( :Dis_per1 ,0 ) <> 0     then
                      :CP_6  :=  :TOT_INV_SER - (  :TOT_INV_SER * nvl (:Dis_per1,0) /100 ) ;
       elsif  nvl ( :DIS_VAL1  ,0 ) <> 0    then
                :CP_6  :=  :TOT_INV_SER - nvl ( :DIS_VAL1 ,0 ); 
       Else
                 :CP_6  :=  :TOT_INV_SER ;
               Return ( null  ) ;
       End if ;
               Return ( null  ) ; 
    end;i am getting blank data
    kindly guide me
    thanking in advance
    Edited by: makdutakdu on May 13, 2013 10:33 AM
    Edited by: makdutakdu on May 13, 2013 12:16 PM

    Hi,
    Are you getting any compilation errors in this function..
    function DiscFormula because what is that you wanted to perform in this if condition?
      if  nvl ( :Dis_per1 ,0 )  0     then ....your if statement seems to compare nothing like this   if  nvl ( :Dis_per1 ,0 ) > 0     then... Regards,
    Archana

  • Is is possible to get the deleted Sales order.

    Hi Experts,
    Please let me know the possibility of viewing a <b>deleted Sales order</b>. Thanks in advance.
    Regards,
    Viven

    try SE16 and search for the vbeln.
    Normally sales orders dont get deleted in real their records just gets marked as deleted.
    ok i´m wrong sorry not working in VBAK tho.
    Message was edited by:
            Florian Kemmer

  • Getting the data in Total window

    Hi All(Experts),
    Here i have one sap script with total window just below mainwindow with USD
    followed by Invoice Subtotal, Gst, Frieght, Deposit, Totals.
    Last window is empty and we need to get data similar like USD data but with SGD currency.
    Program name is : "RFKORD50_IRE".Can you please let me know how to get this data?
    Thank you,
    Suman

    Hi,
    For data saving purposes aggregate button in the corresponding webdyn pro component and implement method ONACTIONSAVE.
    You will need to take profit of the function BAPI_BUS2173_GET_DETAIL to find path to the data you want to save..
    kind regards
    HF

  • Where does Sting to IP get the net address if the computer is disconnected from the net? It should return the same I

    P/Net address� it did not change. Internet Protocal(TCP/IP) Properties did not change. When the network is physically disconnected, my VI after several runs returns 127.0.0.1. So, how do I get my IP address whether it�s connected to the network or not?Thanks in advance for your help.

    P/Net address� it did not change. Internet Protocal(TCP/IP) Properties did not change. When the network is physically disconnected, my VI after several runs returns 127.0.0.1. So, how do I get my IP address whether it�s connected to the network or not?If you're getting a dynamically assigned IP address from the network, then String to IP will return that IP but it may not be constant. See if TCP/IP properties are set to "Obtain an IP address automatically". If you disconnect from the network, then the IP address will default to something and I wouldn't be surprised if the default is 127.0.0.1. If you want to always have the same IP, then the ICP/IP properties should be changed to use a fixed IP but you'll certainly need to check with your IS department before doing so.

  • How to get the Cumulative Sales Value ?

    Hello All,
    I want to extract the data from sap tables which is related to Sales. that is also in 5 ways
    1. Company
    2. Vertical(Corporate)
    3. Sales men
    4. Customer
    5. Region
    Again these each five have 3 formats those are Monthly and Quarterly and Yearly applicable to all five.
    I did not understand this where should we start and how to extract that data.
    if any one knows about this please try to help me in this
    Thanks in advance

    Hello All,
    I also created one workflow which is client initiated and in the SCC(Sybase Control Center) created a user and installed the
    workflow.apk and SybaseDataProvider.apk in to my Android Emulator and given the credentials in Emulator which I given in SCC
    But, still I am unable to connect to server. in the Android Emulator the ShowLog is showing : 
    "Waiting to Connect"
    "Waiting to Connect"
    "Communication Error"
    "Disconnected From Server"
    "Waiting To Connect"
    I checked the log in SCC also there is no data at this time.
    If any one have idea about this let me know.. It helps me alot
    Thanks in Advance

Maybe you are looking for