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.
Similar Messages
-
Display Currency symbol with value in ALV Report
Hi Experts,
I need to display currency symbol with value in ALV Report like if currency type is dollar then $200.
Here I am using field catalog type slis_t_fieldcat_alv and suing field merge catalog FM: 'REUSE_ALV_FIELDCATALOG_MERGE'
I tried like this
IF <fs_fieldcat>-fieldname = 'STPRS'.
<fs_fieldcat>-seltext_s = 'Std Cost '.
<fs_fieldcat>-seltext_m = 'Std Cost'.
<fs_fieldcat>-seltext_l = 'Std Cost '
<fs_fieldcat>-tabname = 'MBEW'.
<fs_fieldcat>-ctabname = 'T001'.
<fs_fieldcat>-cfieldname ='WAERS'.
<fs_fieldcat>-datatype = 'CURR'.
ENDIF.
Please any one can suggest the solution for this.
Advance Thanks.
Regards,
Bala AchariHİ,
Check this link.
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=24379571
Take care.
Çağatay -
Properly displaying currency amounts (negative sign) via WRITE statement
Dear forumers,
Using the WRITE statement, how may I properly display a currency amount that has a negative value?
In my program, the variable, V_AMOUNT to be displayed is originally of the type "WERTV12".
Using the WRITE statement for this, nothing gets displayed in the screen (blank only).
So, I assigned V_AMOUNT to another variable of the type "P DECIMALS 2", V_AMT.
Using the WRITE statement for this, the amount is displayed in the screen.
But, if the amount has a negative value, the negative sign is not displayed there.
I.e. If V_AMT has the value '500.00-', only '500.00' is displayed in the screen.
Finally, I changed the type of V_AMT as type string.
This works - any amounts with negative sign is displayed in the screen properly.
But, with this approach, I'm unable to "customize" the display of amounts according to currency, like this:-
DATA int TYPE i VALUE 12345678.
WRITE int CURRENCY 'EUR'.
The output of the WRITE statement is "123456,78".
Is there a better way to achieve this?SAP display amounts/quantities as positive numbers with another field that denotes whether positive or negative. You could change the value to a character field and put the negative where you need it (or put an additional field next to the amount with the sign)... but using a character field probably would negate the currency display, too....
-
How to display Currency Unit beside value in BEx Report?
Hi,
I have 2 separate Amounts in the columns area. Their respective currencies exist as Characteristics in Unit dimension. How do I display the amount along with currency unit beside it?
As of now my Report looks like....
Amount 1 Amount 2
2000 3000
I would like to display it as......
Amount1 CUR Amount2 CUR
2000 EUR 3000 USD
Thanks,
SD
Edited by: Sebastian D'Souza on Jan 16, 2009 11:40 AMHi Sebastian,
Yes it can be possible to get the currency unit along with currency in ur report.
To do this, first of all u need to have the currency unit in ur flat file or else in ur data.
If u have so, here are the steps to do that.
1.Double click ur amount info object under 'currency/unit of measure tab' , in the unit/currency field just give as 0currency.
2.And then activate ur info object.
3.In Transformations u will find another field '0currency', just map it to the amount field.
and then do the process as usally loading data to target, and the execute the report.
u will be able to see currency unit filed also.
hope this helps u.
Thanks,
Sai Chand. -
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 -
Greetings,
I am trying to display a textbox in a Dynpro, the value to be displayed is of type Currency but only allows me to enter/display positive numbers (ends with a dump when the associated variable has a negative number), it is associated . If I draw a box making reference to a dictionary field, It works fine displaying and receiving negative values. Is there a flag or a property to set in the screen painter to allow negative values?I am declaring my field with a LIKE sentence referring to a transparent table where the components are of type NETWR, the domain it referres to has the Sign flag already checked.
tables: zsourcetable.
data:
reg1 like zsourcetable,
reg2 like zsourcetable.
start-of-selection.
select single *
from zsourcetable
into reg1.
reg2-value = reg1 * -1.
call screen 100.
zsourcetable is of type NETWR, the domain it uses has the sign flag checked.
If i put on the dynpro 100 the field reg2-value, when it has a negative value, the program exits with a dump. If I use the field zsourcetable-value, it works fine. Anyway it is not the solution since I need to display simultaneously several records on screen with the results of calculations. -
Stock Posting List - Negative Value when Different Currency in PO
Hi experts,
We would like your help on the following scenario.
A Purchase Goods Receipt PO and a Purchase Invoice are added in SAP 9.0, on the same date, in a different currency from the system's currency; system's is Euro and Purchase documents are added in JPY (Japanese xen), i.e. 300 JPY. When checking the "Stock Posting List" report for a number of goods that were purchased with the above documents, the report presents the line of the Goods Receipt PO with the value of 270 JPY, and the line of the Purchase Invoice with a negative value, i.e.-15 Euro.
Has anyone faced the same issue?
Thank you in advance.
Kind Regards,
Vassilis KorolisBoth queries have the default value of "Only Posted Values for Navigation".
As I was looking at this, I did realize the following though.
Remember, I mentioned that my zcurrency_mand field has a Reference Characteristic of 0currency.
Query 1: The key figure that is being converted is tied to 0currency in the back end. (this is the query that works).
Query 2: The key figure that is being converted is tied to 0inv_curr in the back end.
Both of the currency conversions are using zcurrency_mand. Should query 2 be using a new variable similar to zcurrency_mand, but with a Reference Characteristic of 0inv_curr?
If the answer is yes, I tried creating ZINV_CURR_MAND with Reference Characteristic of 0inv_curr, but am getting the following error when I try to save the changes to Query 2
[E117(BRAIN)] Errors: Variable ZINV_CURR_MAND2 is not permitted for the target currency.
Thanks,
Jennifer -
How to enter negative value in a currency field
Hi Experts,
Please help me how to allow to enter negative value in a field on report selection.
I created a currency field on a report selection using PARAMETERS.
I can enter positive value in the field. But, I cannot enter negative value.
SAP shows an error message 00 126 "Specify positive values only".
I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
However, I cannot do it on screen 1000 created by report program.
Thanks,
GeorgeHi ,
I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
Prabhu--> Just Create a new Domain( select "WITH SIGN") and date elemet,And Use Data Element in your report.
regards
Prabhu -
Display Currency Value of User POV for Entity & Value in Text Box (Header)
I am looking for a function in Financial Reporting Studio that operates the same as the HsCurrency function in Smart View. This would allow batch reports displaying the currency value of the User POV for Entity based on the User POV for Value. Right now I have to have Member Lists for separate reports and different currencies as I am only able to display the Value dimension in the heading of a given report. Users will not be certain of the currency if the Value dimension is <Entity Curr Total>.
I tried the HFMCurrency text function, however the entity is not defined in a Row / Column / Page reference as the entity is determined by the User's Point of View.
Is there a way to display the currency value of a User's Point of View for Entity based on the User's Point of View for Value?
Reference from Oracle Hyperion Smart View for Office, Fusion Edition, User's Guide:
HsCurrency
Data sources: Financial Management, Hyperion Enterprise
HsCurrency retrieves the currency value of the specified dimension member. Entity and Value are the only valid members for the HsCurrency function.
Syntax
HsCurrency (“Connection,Entity;Value”)
Example
In this example, HsCurrency retrieves the entity currency where the currency for the East Sales entity is USD, and the currency for the UKSales entity is GBR. The EastSales entity displays USD, and UKSales displays GBR.
HsCurrency(“Comma”,”Entity#EastRegion.EastSales;Value#<Entity Currency>.”)
HsCurrency(“Comma”,”Entity#EastRegion.UKSales;Value#<Entity Currency>.”)Question answered in My Oracle Support Community - Hyperion Reporting Products:
communities.oracle.com -
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 meCheck 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. -
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 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 -
How to display currency values in indian format
hi all,
When I am displaying Currency values as output , those are displaying in U.S. format (ie.1,234,000.00) , But I need to display those in Indian Rupee format (i.e 12,34,000.00).
Plz any one can help me that how to display this
thank you,
regards
HanumaHi Hanuma kumar, please try this code.
REPORT ZAMOUNT_CONVERSION.
DATA : RESULT1(20).
PARAMETERS : NUM TYPE P DECIMALS 2.
DATA : num2 type STRING.
DATA : col_amt(20) type n,"15
col_b type i,
num_1(20) type C,"15
Length type i.
num_1 = num.
write : 'default format :',num.
uline.
skip.
IF ( num >= 999999999 ).
write num_1 using edit mask 'RR__,__,__,__,______' to col_amt.
CONDENSE col_amt.
length = STRLEN( col_amt ).
if length = 16.
REPLACE first OCCURRENCE OF ',' in col_amt with space.
write :/'amount indian format:',col_amt.
else.
write :/'amount indian format:',col_amt.
endif.
ELSEIF NUM < 999999999 AND NUM >= 9999999.
write num_1 using edit mask 'RR__,__,__,______' to col_amt.
condense col_amt .
length = STRLEN( COL_AMT ).
if length = 13.
REPLACE first OCCURRENCE OF ',' in col_amt with space.
write :/'amount indian format:',col_amt.
else.
write :/'amount indian format:',col_amt.
endif.
ELSEIF NUM < 9999999 AND NUM >= 99999.
write num_1 using edit mask 'RR__,__,______' to col_amt.
condense col_amt .
length = STRLEN( COL_AMT ).
write :/'amount indian format:',col_amt.
ELSEIF NUM < 99999.
data : dumy(10) type c.
dumy = num .
CONDENSE dumy.
length = STRLEN( dumy ).
if length <= 6.
write :/'amount indian format:',num.
else.
write num_1 using edit mask 'RR__,______' to col_amt.
write :/'amount indian format:',col_amt.
endif.
ENDIF.
uline. -
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
Maybe you are looking for
-
Problem in Xperia Pro after upgrading to Android 4.0.4
Hi all, I purchased Xperia Pro a couple of weeks back. Android version initially installed was 2.3.4. I went on to upgrade the same to 4.0.4 yesterday (Build no: 4.1.B.0.431). Everything works fine but for my sliding keypad keys. The alphabet keys A,
-
Creating a double sided flag in indesign - flipping image problems
Hi there - struggling to flip an image in idesign I want to create flags, which when printed will be on sticky paper and stuck to cocktail sticks to make mini flag poles to put in the drinks however when I flip the flag image (see example http://www.
-
Web Gallery Web Widget after MobilMe
I have numerous web pages that were created before the change to MMe, that have a Web Gallery widget on them. All these widgets point to the gallery on .mac. Short of deleting the old gallery widget and creating a new one, which will point to the .me
-
Page cannot be displayed error when login to EBS home page
Hi All, I have some problem login to EBS page, if only one responsibility is active to user it will get error Page cannot be Displayed error 404 on the Main Menu. However if 2 or more responsibilities are active no error will come up and it will show
-
hi, i would like to ask on unplanned. 1) unplanned cost for moving average price material when post in miro, cost will go to price difference or stock? why? 2) unplanned cost for standard price material. when post in miro, cost will go to price diffe