In query display sales negative values
Hi Friends
Iam Exicuting query based on these selection parameters
Sales Org: 5360
cal Month/Year: 04.2007 to 04.2008
When am exucuting the query above parameters some values display negative values like
04.2007 month display -39
07.2007 month display -253
the key-fig is sales turnover Qty display negative values
in BW side cube also display negative values
why display the negative values
anybody help me
Check the Source where data is coming if it is negative value. If source has positive value, in Cube also it should be positive.
Whatever value you have in your infoprovider, it will display in query.
Similar Messages
-
How to display only Negative values in the report.....
Hi,
I want to display only negative values for one particular column.
Any suggestions ?
Thanks,
JeetuHi,
define a condition for all characteristics and for specially the keyfigure. Set it to < 0. That should do the trick.
regards
Siggi -
Can I display only negative values in an X-Y graph
I have my graph set up to run reading two arrays. It is a sine on sine wave and I only want to display the negative results. Is there a way to do this? Is it possible with something like a scan from function? In the end I will be linking this up to an absolute value and having only the negatives be positive, but getting the graph to display only the negative values is the first step.
You can use the Threshhold 1D Array to filter out all values greater than 0.
Cory K -
- How to Display Sales Qty & Value for This Year & Last Year in 2 Columns -
Dear All,
I'm having trouble in extracting the last year figures based date entered. I'm actually would like to create a query where I'm able to know the "TOP 10 item sold based item category". I've created a query, which show the top10 item sold (total quantity & value) for this year, but not able to display the last year figure (quantity). Please advise & thanks for your help and time.
SET ROWCOUNT 10
SELECT T1.ItemCode, T2.ItemName, T3.ItmsGrpNam, SUM(T1.Quantity) as "Total Qty Sold", SUM(T1.TotalSumSy) as "Total Amount"
FROM ODLN T0 INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
WHERE T0.DocDate >='[%0]' AND T0.DocDate <='[%1]' AND T3.ItmsGrpNam ='[%A]'
GROUP BY T1.ItemCode, T2.ItemName, T3.ItmsGrpNam
ORDER by SUM(T1.Quantity) DESC
I wish to have the output as follow
Item Qty (2008) Qty (2007) Value(2008) Value(2007)
A 300 150 1000 500
B 250 300 800 650
C 100 250 700 550
Currently, My results display:
Item Qty (2008) Value(2008)
A 300 1000
B 250 800
C 100 700
Cheers,
SereneHi,
if you want more flexible, you could try this modified Istvan's query:
SELECT top 10 T1.ItemCode, T2.ItemName, T3.ItmsGrpNam, SUM(T1.Quantity) as "Total Qty Sold",
SUM(T1.TotalSumSy) as "Total Amount" ,
(select sum (r.Quantity) from ODLN h
inner join DLN1 r on h.DocEntry=r.DocEntry
where h.DocDate>='[%4]' and h.DocDate<='[%5]'
and r.ItemCode=T1.ItemCode) '2007 Sold',
(select sum (r.TotalSumSy) from ODLN h
inner join DLN1 r on h.DocEntry=r.DocEntry
where h.DocDate>='[%6]' and h.DocDate<='[%7]'
and r.ItemCode=T1.ItemCode) '2007 Amount'
FROM ODLN T0 INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
WHERE T0.DocDate >='[%0]' AND T0.DocDate <='[%1]' AND T3.ItmsGrpNam between '[%2]' and '[%3]'
GROUP BY T1.ItemCode, T2.ItemName, T3.ItmsGrpNam
ORDER by SUM(T1.Quantity) DESC
Rgds, -
Query plan and negative value in where
I have a question about this query:
select g.col1,
g.col2
from tab1 g,
tab2 part
where part.col3 <> 0
and g.col4 = 'PRO3'
and g.col2 = part.col5
and g.cod7 = -1
This is the execution plan:
SELECT STATEMENT, GOAL = ALL_ROWS
HASH JOIN
INDEX FAST FULL SCAN SYS_C00254422 14 22453 516419
TABLE ACCESS FULL TAB2 920 67458 1079328
If I change the select in this way:
select g.col1,
g.col2
from tab1 g,
tab2 part
where part.col3 <> 0
and g.col4 = 'PRO3'
and g.col2 = part.col5
and -g.cod7 = 1
I have a new query plan:
SELECT STATEMENT, GOAL = ALL_ROWS
NESTED LOOPS
INDEX FAST FULL SCAN SYS_C00254422
TABLE ACCESS BY INDEX ROWID TAB2
INDEX UNIQUE SCAN SYS_C00254336
Oralce use a nested loop and the index of the table TAB1 and doesn't do the hash join.
Why?
I use oracle 10g
Message was edited by:
user613483
Message was edited by:
user613483SQL> desc TAB1
Name Null? Type
COL1 NOT NULL VARCHAR2(5)
COL4 NOT NULL VARCHAR2(5)
COL2 NOT NULL VARCHAR2(15)
COL7 NOT NULL NUMBER(3)
DTCOL8 NOT NULL DATE
DRcol9 DATE
LEVcol10 NUMBER(3)
COL11 VARCHAR2(30)
COD12 VARCHAR2(15)
LEV13 NUMBER(3)
COD14 VARCHAR2(15)
LEV15 NUMBER(3)
COD16 VARCHAR2(15)
LEVN17 NUMBER(3)
COD18 VARCHAR2(15)
LEV19 NUMBER(3)
CODNOD20 VARCHAR2(15)
LEVNO21 NUMBER(3)
CODNOD22 VARCHAR2(15)
LEVN23 NUMBER(3)
COD24 VARCHAR2(15)
LEV25 NUMBER(3)
CODNOD26 VARCHAR2(15)
L27 NUMBER(3)
CODN28 VARCHAR2(15)
LEV28 NUMBER(3)
D30 DATE
SQL> desc tab2
Name Null? Type
COL5 NOT NULL VARCHAR2(15)
DESY1 VARCHAR2(60)
DESPA VARCHAR2(60)
CODS VARCHAR2(5)
CODNI VARCHAR2(5)
CODZO VARCHAR2(10)
CODC VARCHAR2(5)
CDFIS VARCHAR2(30)
CO VARCHAR2(30)
CODVATI VARCHAR2(30)
COT1 VARCHAR2(15)
COT2 VARCHAR2(15)
DCAT3 VARCHAR2(15)
CAT4 VARCHAR2(15)
COD VARCHAR2(15)
COU VARCHAR2(5)
FLG NOT NULL NUMBER(1)
COT VARCHAR2(20)
FLGCUSTD NOT NULL NUMBER(1)
CODMOE VARCHAR2(5)
FLG NOT NULL NUMBER(1)
FLGC NOT NULL NUMBER(1)
CODMOP VARCHAR2(5)
CODC VARCHAR2(15)
COELIV VARCHAR2(15)
CONC VARCHAR2(15)
COGMT VARCHAR2(10)
COR VARCHAR2(5)
COOUP VARCHAR2(15)
VALDIT NUMBER(14,2)
DTREDIT DATE
DTRE DATE
DTD DATE
DST DATE
DK DATE
COCK VARCHAR2(5)
CMOD VARCHAR2(5)
FNN NOT NULL NUMBER(1)
PGDCL VARCHAR2(60)
PDB VARCHAR2(60)
CXTEL VARCHAR2(15)
ILCK VARCHAR2(15)
DTTART DATE
PVERY NUMBER(9)
FLTUAL NOT NULL NUMBER(1)
DVER DATE
RIFE_INTERNO VARCHAR2(15)
DATADATE
ESENZIONE DATE
NMSENZIONE VARCHAR2(15)
VSED NUMBER(14,2)
EORD NOT NULL NUMBER(1)
EM VARCHAR2(30)
COTER VARCHAR2(15)
COUST VARCHAR2(15)
CORINT VARCHAR2(15)
TURFACE NUMBER(6)
ODSURFACE NUMBER(6)
ALINDEXPOT NUMBER(6)
SSE NUMBER(6)
NUSEATTR NUMBER(6)
NUETTI NUMBER(6)
CORTY VARCHAR2(15)
DESEC VARCHAR2(60)
QTEARI NUMBER(6)
TOFACE NUMBER(6)
COD VARCHAR2(30)
FLGCI NUMBER(1)
FLGC NUMBER(1)
COL3 NUMBER(1)
FLGCOL33 NUMBER(1)
Query plan of the original select:
1 SQL_ID 51kgr2x36h3y4, child number 0
2 -------------------------------------
3 select g.col1, g.col2 from tab1 g, tab2 part
4 where part.col3 <> 0 and g.col4 = 'PRO3' and g.col2 =
5 part.col5 and g.col7 = -1
6
7 Plan hash value: 2145701647
8
9 ---------------------------------------------------------------------------------------
10 | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
11 ---------------------------------------------------------------------------------------
12 | 0 | SELECT STATEMENT | | | | 938 (100)| |
13 |* 1 | HASH JOIN | | 22485 | 856K| 938 (17)| 00:00:05 |
14 |* 2 | INDEX FAST FULL SCAN| SYS_C00254422 | 22453 | 504K| 14 (8)| 00:00:01 |
15 |* 3 | TABLE ACCESS FULL | TAB2 | 67458 | 1054K| 920 (16)| 00:00:05 |
16 ---------------------------------------------------------------------------------------
17
18 Predicate Information (identified by operation id):
19 ---------------------------------------------------
20
21 1 - access("G"."COL2"="PART"."COL5")
22 2 - filter(("G"."COL7"=(-1) AND "G"."COL4"='PRO3'))
23 3 - filter("PART"."COL3"<>0)
24
Sql plan of the second quesry:
1 SQL_ID g1hc2xj88sc7x, child number 0
2 -------------------------------------
3 select g.col1, g.col2 from tab1 g, tab2 part where
4 part.col3 <> 0 and g.col4 = 'PRO3' and g.col2 = part.col5
5 and -g.col7 = 1
6
7 Plan hash value: 601419963
8
9 ----------------------------------------------------------------------------------------------
10 | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
11 ----------------------------------------------------------------------------------------------
12 | 0 | SELECT STATEMENT | | | | 512 (100)| |
13 | 1 | NESTED LOOPS | | 249 | 9711 | 512 (1)| 00:00:03 |
14 |* 2 | INDEX FAST FULL SCAN | SYS_C00254422 | 248 | 5704 | 15 (14)| 00:00:01 |
15 |* 3 | TABLE ACCESS BY INDEX ROWID| TAB2 | 1 | 16 | 2 (0)| 00:00:01 |
16 |* 4 | INDEX UNIQUE SCAN | SYS_C00254336 | 1 | | 1 (0)| 00:00:01 |
17 ----------------------------------------------------------------------------------------------
18
19 Predicate Information (identified by operation id):
20 ---------------------------------------------------
21
22 2 - filter(((-"G"."COL7")=1 AND "G"."COL4"='PRO3'))
23 3 - filter("PART"."COL3"<>0)
24 4 - access("G"."COL2"="PART"."COL5")
25
Index used:
Primary key on tab2 SYS_C00254336:
alter table TAB2
add primary key (COL5)
using index
tablespace name_tablespace;
Primary key on tab1 SYS_C00254422;
alter table TAB1
add primary key (COL1, COL4, COL2, COL7, DTCOL8 )
using index
tablespace name_tablespace;
Message was edited by:
user613483
Message was edited by:
user613483 -
Displaying Currency as Negative Value
Hi All,
I have an object Amount. Based on a condition, i.e if movement_type is 500 then i need to display the amount field as negative value.
IF movement_type = 500 then amount should be displayed as negative value.If amount is $10 then it shuld be displayed as -$10.
How do we proceed to display amount as negative value.Do we need to do this at report level or at can i go ahead at update routine level.Please let me know how to do.
Regards,
Sudha.Try out the follwing formula using Boolean Operations
(movement_type == 500) * (Amount - (2*Amount)) + (movement_type <> 500) * (Amount)
try with (Amount - (2Amount))* because *(Amount * (-1))* does not work. -
Hi All,
As per my client requirement I have created info structure to display sales document wise cost and revenue report at line item level. At MCVR level i have done the status check. Revenues and cost are updated in my info structure and shown line item wise. But in MCSI when i display my info structure, It is displaying the negative values. Any idea on it?
Thanks & regards.Hi All,
I have a requirement to compare the actual revenues with planned revenues of each customer in period wise. I hope this will be possible only in Actual/plan option.
How Can upload the Planned figures.
Thanks & regards -
Crystal didn't show the BEx query Attributes description changes/Values
We experiencing the BEx query attributes/crystal report issue.
I create a crystal report using BW- BEx query. Bex query displays the attributes values. But in crystal report side it didn;t show up the values as well as description changes.
But If I change the display properties of attributes (different from one attribute to another) the crystal report reflect the values. But crystal report didn't show the Attribute description changes , the one i did it in BEx query side.
Example:
Bex has a Masterdata as well as attribute Field1, Field2 etc.. I changed the description like Field_Test1 and Field_Test2. Also I changed the display property for Field_Test1 is Key and text and long , Field_Test2 is Text & LOng text.
I got the attribute values is crystal report Xi R2. But crystal didn't reflect the description changes?
Suggestions Please?Post your question to the Business Object Integration Kits forum
-
Stacked chart with negative values
Is it possible to create a stacked verticle bar chart that can display a negative value below the bottom line? Currently, all of my my charts are displaying negative values as if they were positive and the only way to know that the value is negative is to hover over the bar and read the hint.
Thanks in advance for your help,
ToddHi Todd,
Depending how you look at costs, it's not expensive.
A single developer license of Anychart 5 costs USD 499.00 - 15% if you use the APEX15 promotion code.
If you spend a couple of days trying to integrate with something else you easily went over that amount.
So really, it depends in which perspective you look at it. The workaround with Excel, is that really an option? How long would it take for every person wanting to see that screen? How long would it take before you get to $440?
Anyway if you wait till next year, Anychart 5 is included in APEX 4.0 and you have it out of the box.
Just my thoughts,
Dimitri -
When executing query...in the result i want to display each row values
Hi All,
When executing query...in the result area i want to display each row values.
Example: query result is like this
Business Area Sales Material
kh02 1000 2000
2000 300
5000 400
6990 1000
Kh03 1400 700
200 500
50 60
but i need like this
kh02 1000 2000
kh02 500 600
kh02 400 300
kh03 1400 700
kh03 200 500
Why i need like this because am exporting to Excel spread sheet and i have to send as i show above ....i am doing manual but the file is very big like 95, 969 records i have to change manual...like this i have to change 8 files.
please advice me easy way
i willl be very gr8ful
Thanks
sidharthaHi,
that'S exactly what hide repeated key values does. If this option is on your result is:
Kh02 1000 1500
blank 500 456
blank 600 700
kh03 400 500
balnk 500 600
If you turn it off, the result will be:
Kh02 1000 1500
Kh02 500 456
kh02 600 700
kh03 400 500
kh03 500 600
Exaclty what you want. Try it, it should work
Regards,
Juergen -
How to display first row value returened from a query as checked as default in a report
How to display first row value returned from a query as checked as default in a report
Example
Parameter 1
Paramerter2
ABD
x(checked)
Test
DEF
JMG
MudassarHi Mudassar,
The issue is caused by the order in which the parameters appear in the report data tab can be difference between our report execution and it failing. In other words, “Parameter2” is execution before parameter “A” due to this issue. We can adjust the parameter’s
order to solve the issue.
If “Parameter2” is parameter “A”, we cannot use that expression. Because fields cannot be used in report parameter expression, if we want to display the first value returned from a query as default value, we have to fill the “Specify values” text box with
the specific value in Default Values dialog box.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
Dvt:gauge StatusMeter displaying negative value strangely
Hi,
I'm creating a number of dvt:gauge components to display some retrieved numeric values. My aesthetic preference is to use the STATUSMETER gauge type. The values to be displayed vary greatly in scale and may be positive or negative. As a result I'm letting Oracle determine the best Min and Max values for the gauge(s).
The problem is that when a negative value is displayed, the status bar is still shown starting from left to right. This looks quite odd to our users as we would expect the bar to start at 0 (zero) and move from right to left. Currently it looks as if the value starts at an arbitrary negative value and is moving towards zero...?!
I've tried configuring the Min and Max values myself with no joy. Are there some additional attributes that I'm missing that enable the Status Meter to be shown in a more sensible way? Thanks.
FYI. I'm using JDeveloper Studio Edition Version 11.1.2.1.0.Hi,
Any help on this would be really appreciated.
Thanks. -
How to display negative values in a screen field of a screen
Hi All,
Please let me know how to display negative values in a screen field of a screen.
thanksHi Kishore,
You can do this method. In the screen , create a text field of CHAR instead fo creating an INT4 field.
I have created a field of CHAR of name say TEXT.
In the main program,
declare a variable of the same name ie. TEXT.
data: TEXT(5) TYPE C.
In PBO, just assign the negative values.
It will work.Since there is automatic conversion between character and integer data types, it will work for positive values as well.
Regards,
Sylendra. -
Negative Value Fields Not Displaying on Windows XP / Adobe Reader 10+
Hi,
We have some PDF forms for invoices. At the bottom of the forms, there is a table with various totals (items total, discount total, restocking fee, etc).
This is a pretty strange one to me. Here is what I am seeing:
If the dollar amount is negative in those totals, the dollar value will not show up. It's only negative values, but it's consistent across all fields in this totals table. I've confirmed this by manipulating values in the debugger. So we would expect the table to look like this:
Items Total: 10.00 USD
Discount: -1.00 USD
Amount Due: 9.00 USD
Instead we see:
Items Total: 10.00 USD
Discount: USD
Amount Due: 9.00 USD
Even stranger, this only happens in our quality and production environments, not in our development environment. It only happens when the user chooses to print preview, not if the output is triggered in the background.
To further add to the confusion, it does not happen on Adobe Reader 9 or lower. It does not happen on Windows 7. This problem is reproducible only if the user is running Adobe Reader 10 and Windows XP.
I'm reasonably confident this has something to do with ADS, but I don't even know where to start looking.
Thanks
BryanThe amount field in the interface is CURR 15.
On the form, the amount field is a decimal field BUT this field is hidden. The display field is defined as:
Thanks,
Bryan -
A query to display sales orders with corresponding outbound deliveries
Hi Experts,
Don't know if this is the right place to post the question but i would like to know if a query, in SAP, can display sales orders with their corresponding outbound deliveries, i tried using table LIKP and VBAK, VBKD didn't help. the whole idea is to enter any specified sales order number and the query will return any outbound deliveries belong to the sales order.
Thanks in advance!run the se16 transaction - table VBFA.
This table gives the Sales document flow.
Give the sales order nos. and in the subsequent document category select delivery.
You will get all deliveries.
Thanks
Ajay
Maybe you are looking for
-
How do I get rid of the pop ups that ask to store space on my computer
How do I get rid of the pop ups that ask to store space on my computer? How do I get rid of the pop ups that ask to store space on my computer?
-
Hello, I'm from Brazil, and i'm very interested in the Online Number. But, it's not available for my country, Brazil. It is possible have a Online Number from Brazil? Thank you
-
I have been hosting my website on a g4 xserve with 10.3 server successfully for a year and a half or so. I am not running any mail server on the machine. All email for the domain is hosted by an email hosting company. Recently I noticed scripts that
-
Films or TV programs on the Touch
I travel quite a bit and I was wondering if there is a LEGAL. Apple approved way of either transferring my own bought DVDs I have to the touch or placing recorded TV programs on it for me to view on the go? I live in the Netherlands which means I can
-
Oracle RAC on Solarais Configuration Issue
Hi, We are trying to install Oracle RAC 10g R2 on Solaris 10. Following are the products 1=> Soalris 10 OS 2=> Sun Cluster 3.1 3=> Veritas Volume Manager 4=> Veritas Cluster File System Can i deploy Oracle RAC using the above listed Software. Here we