Spell_amount-wrong amount description
i m using the function module spell_amount. but when i m passing the amount field say value 900,000.12, then the output comin is 'RUPEES NINE HUNDRED THOUSAND AND ZERO PAISA ONLY', which is not correct in my sceneario. i want it to be nine lakh and twelve paise only.
how it could be and what changes i have to make ?
Example
TABLES : vbak.
data :
CTOTTEXT type c.
PARAMETER : ncurr(15) type c.
DATA :nsignamt like reguh-rwbtr,
nLentotake type i,
actualstrlen type i,
flen TYPE i,
nStrt type i,
nPos type i,
nIntEndsAt type i,
decpos type i.
DATA : cFullText(254) type c,
cstring(18) type c,
cIntstring(15) type c,
cPart(2) type c,
c1stdigit(1) type c,
c2nddigit(1) type c,
cDecstring(2) type c,
cTextpos(10) type c,
ctext like T015Z-WORT.
cFullText = ''.
move ncurr to cString.
REPLACE '-' WITH ' ' INTO CSTRING.
REPLACE ',' WITH ' ' INTO CSTRING.
REPLACE ',' WITH ' ' INTO CSTRING.
condense cSTring NO-GAPS .
fLEN = STRLEN( cString ). "gives correct length
decpos = flen - 2.
nIntEndsAt = flen - 3.
*split currency string into integer part and decimal part.
* move cString+0( nIntendsat ) to cIntString.
cIntstring = cString+0(nIntendsat).
move cString+decpos(2) to cDecString.
* TAKE 2 TIMES AS ONCE FOR INTEGER 2NDLY FOR DECIMAL
do 2 times.
* whichver part of the amount (int or dec) u want to process put it
* in cstring.
if sy-index = 1.
move cIntString to cString .
else. " for paise part.
if cDecstring = '00'.
EXIT.
endif.
CONCATENATE cFullText 'AND PAISE' INTO cFullText SEPARATED BY
SPACE.
move cDecString to cString .
endif.
fLEN = STRLEN( cString ). "gives correct length
nStrt = 0.
nLentotake = 1.
DO 10 times.
CASE flen.
WHEN 3. "hundreth position.
nLentotake = 1.
WHEN 9 or 7 or 5 or 2.
nLentotake = 2.
WHEN 8 or 6 or 4 or 1.
nLentotake = 1.
ENDCASE.
Similar Messages
-
Finder reports wrong amount of free space
Finder is reporting the wrong amount of free space on all my drives. It's not from time machine local backups, because I've disabled those. In fact, it's reporting MORE free space than there should be! In all cases, Disk Utility shows the correct amount. (So does the Terminal command df.)
eg:
external 120GB hard drive (USB) - finder says 137.83GB free (more than the drive can hold, nice) - disk util says 70 used 49.9 free... better
external 1TB (firewire) - finder says 276.66GB free - disk util says 783.72 used 216.15 free
internal 120GB SSD - finder says 108.32GB - disk util says 78.6GB used, 40.5 free
Anyway to fix Finder?I noticed the same problem. I assumed it was from Time Machine's local backups (which exactly account for the space discrepancy between Finder and Disk Utility on my machine). But, as you say, you've disabled Time Machine local "snapshots." I can only assume you deleted the local backups (to free up the space they were using), emptied your Trash and are still showing the discrepancy.
-
Multiplying UDF resulted in wrong amount in Total (LC)
Dear All,
I really need your help to solve my problem.
I created two UDF which are Qty (field type is Quantity) and Price (field type is Price). These UDFs appear in document with the type Service. I create a query which is :
declare @Qty numeric(11)
set @Qty = $[$39.U_Qty.0]
SELECT @Qty * $[$39.U_Price.0] As Price
And then I created formatted search in Total(LC) in document with type service using that query.
The problem is, the query sometime result in wrong amount (for example : Qty = 0.5 and the Price = 1000, the query is resulting in 1000 which is the correct amount is 500).
Please help me to solve this problem.
Thank you
Best Rgrds,
Surya A.
Edited by: Surya Anugrah on Jan 7, 2009 10:26 AM
Edited by: Surya Anugrah on Jan 7, 2009 10:27 AM
Edited by: Surya Anugrah on Jan 7, 2009 10:28 AMChange your declaration of "declare @Qty numeric(11)" as
declare @Qty numeric(19,6) -
Charged wrong amount for app want refund
Charged wrong amount for app want refund
Contact the AppStore Support, http://www.apple.com/support/mac/app-store/contact/
See the section "Account and Billing Support" : https://expresslane.apple.com/Issues.action -
IPad 2 shows wrong amount of space.
I have a wifi only iPad 2, and ever since I updated to iOS 4.3, the iPad has shown the wrong amount of space. This still happens even though I have updated to iOS 5.1. For instance, I want to record my guitar in GarageBand, but it says I don't have enough space to record. This is odd since I have 125 megabytes of space free. So, I go delete some photos and email. I look at the amount of space and it says I have 68.9 megabytes! This happens all the time and with various apps. When I sync the ipad with my Windows laptop, it also shows wrong amounts. There will also be small fluctuations such as 56.5 mb going to 52.8 mb. Can anyone help? Does anyone else have this problem? Help would be greatly appreciated.
Have you tried rebooting the iPad - just to try to reset the system memory and maybe get a more accurate reading? It does appear though with only 125 MB of space left - you were really cutting it close.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. -
Hello All,
I'm facing this problem "com.sap.dictionary.runtime.DdException: Wrong amount type (not decimal): Unit service cannot be instantiated
"..it seems to be a problem with one of the structure that is linked to one of my sub - model nodes (specificly bapidlvitem) if you see...the error is something to do with the context generation. I'm using a standard bapi "Bapi_delivery_getlist" and the str that have the problem is "et_delivery_item" of type bapidlvitem. It has some attributes but what i've figured out is that one of them is decimal, the other ones are string...so i dont know what to do because the problem appear when i create the model node with that subnode ("et_delivery_item") if i dont include that subnode, all works fine...and i really need that subnode because i have to use it in my application. Please someone help me
Regards,
MCHi Mariana,
The problem is you are passing String value to a decimal attribute.Try like this:
wdContext.<yournode>Element().set<yourAttribute>(new BigDecimal(yourStringAttribute));
If you want more help, provide your context structure also.
Regards,
Siva -
I was charged the wrong amount on 3 albums I downloaded. I received an email about special pricing, I downloaded the albums I wanted and was billed for the full amount. How do I get a refund?
Go here:
http://www.apple.com/support/itunes/contact/
and follow the instructions to report the issue to the iTunes Store.
Regards. -
MIGO - cancelled/reversed GR - Wrong Amount in Local Currency value (DMBTR)
Hi Experts,
I have a GR with an amount in local currency of 2,205.00.
Qty in Unit of Entry = 35 EA
Qty in SKU = 35 EA
Quantity Ordered = 3.900 EA
Quantity Received = 2.096
Can you please tell me why the reversed GR is picking up an amount of 2,206.11(different amount) instead of 2,205.00 which is the amount of the GR that causes the imbalance on the PO. Expectation is the amount must be still 2,205.00.
How can I know where/what the program pulls that amount?
Hoping for your replies SAP Experts!
Thank you very much!Hi,
When you mentioned Wrong Amount in Local Currency, do you refer to any foreign currency involved in this transaction?
Thanks,
Gordon -
Wrong Amount in Local Currency
Hello, every body.
We found the wrong amount in local currency has been transfered to accounting document as the following example.
Example:
.Document currency: EUR
.Local currency: BHT
.Dr: Vendor 6,458.40(amount) 271,611.23(amount in local currency)
. Cr. Sales-Foreign(Export) -3,229.20(amount) -135,805.61(amount in local currency)
. Cr. Sales-Foreign(Export) -3,229.20(amount) -135,805.62(amount in local currency)
How can we solute this problem?
Best regards,
SunHI
check this links
difference in local currency amount fb60
Onlybalances on local currency - incorrect foreign currency valuation
Regards,
Krishna. -
Pick up wrong Material description
Hi all,
Iu2019m getting wrong Material description in the report output.
Iu2019m displaying the report based on the sales order numbers.
But one sales order number doesn't have the material number,
Its not display the material number
But its display the Material description for previous material number description
How can I avoid this description in output?
Thanks,
SriniHi ,
You need to clear the work area after appending into the internal table.
like:
append workarea to internal table.
clear workarea.
Edited by: Bhavana Amar on Mar 10, 2010 11:02 AM -
Dear Expert
We are facing a problem in GR , GR amount is wrong, we have th po which has got price 339.83 against which GR has occured and order quantity 10000, partial MIGO has been done , in one of the GR of quanity 350.900 the amount is coming out 284,972,652.07 which loaded on stock . the quality is activated on the material recieved and ud has been given , now when store person came to know about this UD has been already provided , so GR cannot be reverse , After that they do 102 against the PO but the value which has been reverse is 182,004,899.17 . and the difference is loaded on PRD account. now since the PO is domestic there is no issue of exchange , we are not able to know why such huge difference come in the GR amount and PO price, what best we can do to resove this problem
RegardsSince it is a raw material and it is consumed after usage decision, also we are not able to get why one Gr such a huge amount , since we are doing against PO then price should pick up from PO , we have check in the PO there is no change in the Price
Regards
Edited by: usmfarhan on May 18, 2011 1:22 PM -
Hello Experts,
I have an issue to disscuse about PO/GR.
Scenario,
PO qty 3000000.00 lb
Material xxxyyy (raw material)
Recieved (GR) 20000 qty amount 5000 dlls
but the price was incorrect and user reversed the movement and the price recalculate wrong again the amount so now the result is that GR won't match against what we have to pay.
I there a solution directly in FI to handle the difference of what we have in GR and what we going to pay?
Thanks in advance for your comments
RegardsHi,
System takes amont from material master, check Your std or mvt price for this material and if it's necessery chenge it - keep in touch with controlling departement if You will going to change std price.
Regards
Lukasz -
Wrong "Amount in Local Currency" value shown in accounting document
Hi,
I have a customer payment accounting document, in which for some line items the "Amount in local currency" values are wrongly converted.
What could be the reason for these wrong values.
Thanks,
ChaitanyaHi Chaitanya,
May I know what t-code you used to post this doc 14-9099?
I presume 10004719 is your customer and you are offsetting AR invoice 198.09 with credit memo 213.09
I try to simulate this offsetting in my sandbox with F-32 and I got
DR Bank Charges
CR Customer
CR Forex
I didn't get 2 lines of customer as seen in your screenshot
Thanks and Regards,
Chee Chung -
Finder showing wrong amount of free space on Macintosh HD
Hi!
Does anyone know why Finder tells me that the amount of free space on my Mac is 46.53 GB while Disk Utility says there are only 31.89 GB of free space left?Just found the solution in another thread: the "problem" seems to be the local Time Machine Snapshots. Finder ignores them, Disk Utility doesn't.
-
I searched the forum, and it seems that other people have a problem with the OS seemingly reporting too little free space on the disk, which is the opposite of the problem I have.
I'm being shown that I have MUCH more free space than I do. I have a (Early 2013) MacBook Pro 15" with Retina display and a 500 GB SSD. Using "Get Info," the hard drive reports that I have a capacity of 499.42 GB with 459.04 GB free and only ~40 GB used. The "Item Info" below the disk name reports the same thing. This is impossible, considering the amount of data that I have stored, including a 60 GB Windows 7 partition. Disk Utility reports the correct amount of disk space available as does About This Mac.
Any idea what's causing the discrepancy? Since Disk Utility is reading the drive correctly and reports no problems when I use "Verify Disk," I'm guessing it's not a big deal, but I'd like to know if there's a fix.
Thanks.Try re-indexing Spotlight:
http://support.apple.com/kb/ht2409
Maybe you are looking for
-
Is that I sold my macbook pro an the person who bought it needs it quickly so I have an external drive but it is not portable so I bought a portable external drive but it may take a while to arrive so I backed up my data with the external drive that
-
Hi, from my database there is a field for date and it is a number like this: 1295944970. This corresponds to a date displayed as 1/25/2011 displayed on the website. Does anybody know how to convert the data 1295944970 from the database date field
-
LCD display..amongst others...
I have some problems with my MEGA 180...sad to say... Overall i´ve got most of it to work..(WiFi, Cardreader, USB). But the LCD doesn´t work at all...it never blinked or attempted to blink... The sound doesn´t seem to work either...and also the remot
-
Font management with InDesign and Windows 7
Hello I am presently looking to upgrade to Windows 7 and use InDesign CS4. I have had a play with installing postscript type 1 fonts using the windows font manager and it seems absoloutley average, but it worked (I think). I was wondering if you ha
-
Problem converting WMV movie file to format Adobe After Effects can read...
Need HELP... Trying to convert a windows WMV movie clip so that Adobe After Effects can read, as the Mac OSX version of After Effects does not like WMV. Any help appreciated. Max