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.
Similar Messages
-
How to get California ees and their supervisors in a report?
HEllo,
I am using IT 0208 to identify California ees but among those ees how do I identify who are the supervisors. I was thinking something like this - get CA ees using 0208, run a report using SE16 u2013 HRP1001 and use relationship A 002 (reports to) for the same positions -
but in this scenarios it will include ees as well as supervisors -
how do I identify supervisors among alll...
Thanks,
Rashmi>
Rashmi Chawla wrote:
how do I identify supervisors
> Rashmi
Use the B002 relationship. For the CA employees, obtain the positions from their IT0001 and then look up hrp1001 for a b002 relationship to identify supervisory positions.
~Suresh -
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 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 -
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 -
I deleted my iCloud because I thought it was not working and I have lost all my phone numbers, how do I get my numbers and/ my account back?
i had te same problem, funny it worked too...
next questions i have:
my msn contacts (emails) show up in my calling countact in the iphone, i would like to not see them here, how can i get rid of them?
i would like my phone number contacts to be saved in outlook in the event i forget my phone home! is this possible as the only way i see to access them is by the phone...
thanks alors! -
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 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 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 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 Material Master Moving average price into Purchase Order
Hi,
How to get Material master moving average price into purchase order instead of Purchase Info record.
Thanks,
SridharHi,
I cannot understand whether it is necessary .
How about as following step?
1. create Purcahse requisition
Price come form moving average price in material master.
2. Create Purchase order reference Purchase requisition
There is a setting from the unit price of P/R onto the unit price of P/O.
Regards,
Gaito -
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
-
Pricing Procedure and Condition Types
Hi Guys, What do we mean by a pricing procedure in SD? Where do we assign this Pricing Procedure and what is the purpose of this? Also what do we mean by the condition types? What does a condition type signify... Please let me know the tcodes and als
-
I've been dragging photos out of iPhoto and into a folder on desktop, but suddenly I cannot. Why?! I've tried everything I can think of.
-
Need help sending dialog to remote computer and saving results
As the title states, what I want to do is send a dialog box to all remote computers listed in the array $compnames where I can receive a yes or no and either save this as a file or array to pass back to my local computer to shutdown the ones where ei
-
How can I change the order in which photos are presented on an Apple TV?
I am showing photos on my Apple TV via my Apple MacBook, iTunes and Home Sharing. That all works nicely for me, except that I wish to change the order in which a few photos are being presented. How can I change the presentation order on the Apple TV
-
MSS General Information Employee Search A002 relationship
Hi All, We are having A002 based reporting structure ( no A012 relationship maintained). In General information there is a Iview for employee search. When we execute this search ( say using pernr), search does not return any values. Now if I maintain