How to get Total Sales and Total Revenue?
Hi,
I have received requirement to calculate Total Sales and Total Revenue.
what is actual difference between total sales and Total revenue?
Is there any report or query in EBS R12 from which we can find total sales and total revenu?
Thanks,
Kapil
Hi,
Can I use Receipt details to get total revenue i.e actual income from customer ?
Please check the following query.
SELECT code_combination_id,
ra.applied_customer_trx_id,
trx_number,
SUM( NVL( line_applied, 0 )) line_receipt,
SUM( NVL( tax_applied, 0 )) tax_receipt,
SUM( NVL( freight_applied, 0 )) freight_receipt,
SUM( NVL( amount_applied, 0 )) total_receipt
FROM ar_receivable_applications_all ra,
ra_customer_trx_all trx,
ar_cash_receipts_all rcpt
WHERE
applied_customer_trx_id = trx.customer_trx_id
AND ra.cash_receipt_id = rcpt.cash_receipt_id
AND application_type = 'CASH'
AND NVL(ra.confirmed_flag, 'Y' ) = 'Y'
AND trx.complete_flag = 'Y'
AND trx.org_id = 204
AND trx.customer_trx_id = 51385
GROUP BY code_combination_id,ra.applied_customer_trx_id,trx_number
ORDER BY 3
Similar Messages
-
How to get Total Sale and Total Revenue?
Hi,
I have received requirement to calculate Total Sale and Total Revenue.
what is actual difference between total sales and Total revenue?
Is there any report or query in EBS R12 from which we can find total sale and total revenue?
Thanks,
Kapil
Edited by: Kapil Mistry on Aug 2, 2012 12:10 AM
Edited by: Kapil Mistry on Aug 2, 2012 12:11 AMHi,
Can I use Receipt details to get total revenue i.e actual income from customer ?
Please check the following query.
SELECT code_combination_id,
ra.applied_customer_trx_id,
trx_number,
SUM( NVL( line_applied, 0 )) line_receipt,
SUM( NVL( tax_applied, 0 )) tax_receipt,
SUM( NVL( freight_applied, 0 )) freight_receipt,
SUM( NVL( amount_applied, 0 )) total_receipt
FROM ar_receivable_applications_all ra,
ra_customer_trx_all trx,
ar_cash_receipts_all rcpt
WHERE
applied_customer_trx_id = trx.customer_trx_id
AND ra.cash_receipt_id = rcpt.cash_receipt_id
AND application_type = 'CASH'
AND NVL(ra.confirmed_flag, 'Y' ) = 'Y'
AND trx.complete_flag = 'Y'
AND trx.org_id = 204
AND trx.customer_trx_id = 51385
GROUP BY code_combination_id,ra.applied_customer_trx_id,trx_number
ORDER BY 3 -
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 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,
NVMHi 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 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 -
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,
AnandDoes 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 -
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
PKIf 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 automatic plant and shipping point and storage location
hi,
sap gurus,
how to get automatic plant and shipping point and storage location automatically into the sales order
i have done all the config settings for that
but its not appearing automatically.
regards,
balaji.tHi
Balaji...
U can get the plant in sales order, by doing the default the same in customer master or in material master. In customer master -- sales are data--shipping tab delivering plant there u can assign and get the same in order for that customer. it is better to do in customer master rather than in material master.
Shipping point is getting determine in sales order and u can not make it default like plant. Shipping point is determine in the basis of Shipping condition of customer ( ship to party)+ loading group of material + Deliverying plant there u have to assing the shipping point and it will flow in the sales order. Tcode OVL2
For S loc u have to enter manually in the sales order u can not get it automatically.
Hope this will help you.
Thx. -
How to create TopN sales and all sales in one row in obiee 11
Hi Experts,
I have an requiremnet i need to create top 10 sales as one measure and all sales based on cutomer id
i NEED MY RESULT LIKE BELOW,i
Top 10 sales(A) All sales(B) A/B
1000 30000
I have created top 10 by using topN function,but can i know how to get all sales in same line?Thanks,
I have alreay done using RCOUNT
Do you know how to do this
How to create measure header-Buckets in OBIEE 11 -
How to get current month and last month dynamically??
how to get current month and last month dynamically
like
month = getCurrentMonth();
lastmonth = getcurrentMonth() -1;
please help
thankshi :-)
/* depracated but can be still useful */
java.util.Date dtCurrent = new java.util.Date();
int month = dtCurrent.getMonth();
int lastmonth = dtCurrent.getMonth() - 1;
System.out.println("* " + month);
System.out.println("* " + lastmonth);
/* better to use this one */
Calendar cal = new GregorianCalendar();
int imonth = cal.get(Calendar.MONTH);
int ilastmonth = cal.get(Calendar.MONTH) - 1;
System.out.println("*** " + imonth);
System.out.println("*** " + ilastmonth);
regards, -
How to get count,index and compare to arraylists
hi
how to get count,index and comparing of 2 arraylist.... plz suggest me asap...How is your question related to JDBC? And what have you done so far with your code?
-
How to get system status and user status ?
how to get system status and user status for the given production order?
In which PP table we can
find these?
Thanks&Regards
SatishHi Ram,
Use the FM "STATUS_READ" to read both the system and user statuses for an Order.
Alternatively, the following tables store the user and system status info:
JSTO- Status object information
JEST- Individual Object Status
Hope this helps.
Let me know if u need further information.
Regards,
Sonal -
How to get customer number and name from the SD document
Hi All,
Can you please let me know how to get Customer Number and Name from the SD Document?
Thanks a lot....
AnilHi,
It will be displayed in the SD (BIlling document) itself, you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
regards,
radhika
Edited by: kolipara radhika on Jul 10, 2009 5:32 AM -
How to get current time and date??
How to get current time and date from my PC time and date to the java application??
i use java.util.* package but got error, that is:
- java.util.* and java.sql.* class are match
- abstract class cannot be instantiated
so what can i do, pls guide...thanks...There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
Don't import *. Import the specific classes you need.
Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother.
Maybe you are looking for
-
Applying italic, regardless if roman or bold?
Hi, firstly thanks for previous help. Learning as I go but stuck on this newbie question - I've searched but can't find any reference. I have codes in my XML for italic ("^I^" & "^/I^") surrounding text to make italic. I need to change it to italic r
-
No password prompt during fedora 10 install
Hello - I recently installed Fedora 10 for the sole purpose of installing Oracle XE (so I am completely new & inexperienced with both) When I installed Oracle XE I was not prompted for any sort of passwords. I installed Oracle using the Fedora GUI by
-
PDA could connect to old HomeHub, not new HomeHub2...
I like to use my PDA (HP iPAQ, WM5) in bed to stream stuff to listen to from my PC. On my old HomeHub it was no problem. With my new HomeHub2 I can't seem to connect unless I switch the security off completely. Any suggestions for settings that migh
-
NEW! When I try to scan (CANON 8400F scanner) into my desktop (WindowsXP) I now get an error message (code 2,178,0) followed by the message "TWAIN data transfer error". Can this be fixed? sunnycroft
-
IPhoto bombs on upgrading library
I have installed iPhoto6 by first removing the version 5. I am now trying to run it and I get this during upgrading of the library: Unable to upgrade this photo library because the current user does not have access. If possible, repair permission for