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 AM
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 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,
KapilHi,
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. -
ALV: how to display only subtotals and total rows in the output
ALV: how to display only subtotals and total rows in the output
i am getting output
i am getting subtotals for respective fields
but i want to display only subtotals and totals rows in the output
i have tried the
totals_only parameter in slis_layout_alv
but it is not working.hi,
For TOTAL
For the amount field / quantity field in the field catalog give DO_SUM = 'X' for WHOLE total
For SUBTOTAL
For subtotal you will have to create an internal table sort..Let's say you want to do subtotal for each customer..
DATA: lt_sort type SLIS_T_SORTINFO_ALV,
ls_sort type slis_sortinfo_alv.
CLEAR ls_sort.
ls_sort-spos = 1.
ls_sort-fieldname = 'Give the field name that you do the sum'.
ls_sort-up = 'X'.
ls_sort-subtot = 'X'.
APPEND ls_sort TO lt_sort.
fieldcatalog-do_dum = 'X'.
for subtotals
WA_SORT-FIELDNAME = 'ERSDA'.
WA_SORT-SPOS = '2'.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOTAL = 'X'.
APPEND WA_SORT TO IT_SORT.
Refer
http://help.sap.com/saphelp_erp2004/helpdata/en/ee/c8e056d52611d2b468006094192fe3/content.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/doesnt-function-event-subtotal_text-in-alv-713787
regards,
Prabhu
reward if it is helpful -
Urgent : how I get tree type group total result
hi master
sir now system give me this type for result
PARENT ACCID DRBAL CRBAL
K1
K11
11 K1101 46291132
11 K1102 13182173
11 K1103 23784045
11 K1104
11 K1105
11 K1106
11 K1107 10001795
11 K1108 9083529
11 K1109
11 K1110 4224350
11 K1111
11 K1112 6696832
11 K1113 7963381
11 K1114 742766
1 K12
12 K1201 1486082
12 K1202
12 K1203
1 K13
13 K1301
1301 K130101
1301 K130102
1301 K130103
1301 K130104 1977616
1301 K130105
1301 K130106 736266
1301 K130107 396673
1301 K130108 42751
1301 K130109 298362
1301 K130110 187696
1301 K130111 537
1301 K130112 942
1301 K130113 987
1301 K130114 1272
1301 K130115 40000
13 K1302
1302 K130201
1302 K130202
1302 K130203
1302 K130204
1302 K130205 259941
13 K1303
1303 K130301
1303 K130302
1303 K130303 177716
13 K1304
1304 K130401
1304 K130402
1304 K130403
1304 K130404
1304 K130405
1304 K130406 809719
1304 K130407
1304 K130408 1786091
13 K1305
1305 K130501
1305 K130502
13 K1306
1306 K130601
13 K1311
1311 K131101 788780
K2
2 K21
21 K2101
2101 K210101
2101 K210104
21 K2102
2102 K210201
2102 K210202
22 K2205
2205 K220501
2205 K220502
220502 K22050201
220502 K22050202
220502 K22050203
220502 K22050204
22 K2206
2206 K220601
2206 K220602
but sir i need this type of result
PARENT ACCID DRBAL CRBAL
GROUP NAME K1
GROUP NAME K11
11 K1101 46291132
11 K1102 13182173
11 K1103 23784045
11 K1104
11 K1105
11 K1106
11 K1107 10001795
11 K1108 9083529
11 K1109
11 K1110 4224350
11 K1111
11 K1112 6696832
11 K1113 7963381
11 K1114 742766
TOTAL
1 K12
TOTAL
GROUP NAME
12 K1201 1486082
12 K1202
12 K1203
TOTAL
1 K13
13 K1301
1301 K130101
1301 K130102
1301 K130103
1301 K130104 1977616
1301 K130105
1301 K130106 736266
1301 K130107 396673
1301 K130108 42751
1301 K130109 298362
1301 K130110 187696
1301 K130111 537
1301 K130112 942
1301 K130113 987
1301 K130114 1272
1301 K130115 40000
13 K1302
1302 K130201
1302 K130202
1302 K130203
1302 K130204
1302 K130205 259941
13 K1303
1303 K130301
1303 K130302
1303 K130303 177716
13 K1304
1304 K130401
1304 K130402
1304 K130403
1304 K130404
1304 K130405
1304 K130406 809719
1304 K130407
1304 K130408 1786091
13 K1305
1305 K130501
1305 K130502
13 K1306
Sir I need total group by group father group total and child group total
Please help me how I get tree type group total resultHi master
thankyou for your reply
Sir,
i know and you see my working i get code form master table and get detal amount form other table
I have two table see table
Acctab Baltab
PARENT PCID
CHILD title
PCID amount
I need heretical result use this type of query but not success
please see my query and give me idea how I get here full tree
select test.child,test.pcid,baltab.pcid from (select acctab.child,acctab.parent,acctab.pcid
from acctab
start with acctab.parent is null
connect by prior acctab.child= acctab.parent) test,baltab
where test.pcid=baltab.pcid ;
CHILD PCID PCID
1 1 1
2 2 2
3 3 3
11 111 111
12 112 112
13 113 113
21 221 221
22 222 222
23 223 223
31 331 331
32 332 332
33 333 333
but I need this type result
CHILD PCID
1 1
11 111
12 112
13 113
2 2
21 221
22 222
23 223
3 3
31 331
32 332
33 333 -
Grouping of Top 10 Customers by Sales and Total Sales
Hi Guys...
I need to design a report where I need to include both "Top 10 Customers based on Sales" and "Total Sales for remaining customers".
Can you guys help me with a solution.
Thanks,
Regards,
GHi,
You can implement this in BEx using concept of virtual characteristics and BADI which will be a little bit complex. Its better go for WAD.
Hope it helps.
Regards,
Prakash -
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 -
Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay? If any one can help please before I throw it through the window!
Grum12 wrote:
Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay? If any one can help please before I throw it through the window!
Hi Grum,
If the formulas aren't filling to the new column, you must have changed something in the template since you first opened it. Numbers is rather fussy about filling row content in columns as they are added. Only rows with the same expression in every Body Column will fill when a column is added. Just as an experiment, start a new Employee Schedule document from the Template Chooser and then add a column by clicking the Add Column handle in the upper right corner of the table. If that works, as it should, then think about what might have changed in your working document to disconnect that feature. Maybe we can figure it out together.
Jerry -
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. -
How to get system date and time?
Can someone show me a code on how to get system date and time.
Thanks!there is one really easy way to get system time, the api gives a great example of code on this. use gregorian calendar, which you'll find in the api under GregorianCalendar. You only need to create one instance of GC, ie Calendar time = new GregorianCalendar();
you save seconds, minute and hours into int values, so you don't have to access the system time every second, you can create a thread which adds one to the int second value, if oyu see what i mean, for example, i have saved the hours, minutes and seconds as int values;
int hour, minute, second;
i can then create a thread (Thread thread = new Thread(this) and run it like:
Calendar time;
int hour, minute, second;
Thread thread = null;
public MyTime() {
hour= time.get(Calendar.HOUR_OF_DAY);
minute = time.get(Calendar.MINUTE);
second = time.get(Calendar.SECOND);
if(thread == null) {
thread = new Thread(this);
thread.start();
public void run() {
Thread t = Thread.currentThread();
while(thread == t) {
thread.sleep(1000);
second++;
if(second > 59)
minute++;
if(minute>59)
hour++;
formatTime();
public void formatTime() {
second = (second > 59? 0 : second);
minute = (minute > 59? 0 : minute);
hour = (hour > 23? 0 : hour);
System.out.println(hour+":"+minute+":"+second);
public static void main(String[] args) {
new MyTime();
I know this looks like gibberish but it should work. If not, try to fix the problem, i have written from memory really but i guarantee you, this gets the time then every second, simply adds one to the second and then formats time. You can also access the day, month and year then format them using the above code. I don't like giving code since you should really do these things yourself but it is 2:04am, i have nothing better to do and i am not tired so i did you a favour - i have become what i always did not want to, someone ho stays upall night writing code.
Maybe you are looking for
-
Infoset based Query creating locks on DSO Activations
Hello Experts, We are current on SAP NetWeaver 7.3 on ORACLE data base version 11.2.0.3.0. We have a query thats built on top of an infoset ( Based on left outer join on 0material and 0mat_plant) when user executes the query its causing locks on DSO
-
My new iBook has a lot of errors in it. Help,
-
Use for a Crosstab Query?
I have a table with the following metric data in it. one entry for a metric, whether its integrity was checked and the date checked. I need a report that puts all monthly activity on a single line. Examples: Here's what the table looks like proj_name
-
Error when activating an analytic view
Hi All, I am getting the below error when trying to activate an analytic view: An internal error occurred. Assertion failed with error message JoinManager::convertLogicalToPhysicalJoin(), cannot retrieve attribute for: CA_BNFPO in dimension: ECC-COMM
-
Will this code to alter the find bar still work in FF29?
This support thread contains code to change the way the find bar looks in firefox 27: https://support.mozilla.org/en-US/questions/976166?esab=a&s=&r=3&as=s Will this code, this method, still work in FF29? I don't really want to 'give it a try' withou