Check printing: Amount in words is getting jumbled
Hi,
I have a problem in displaying amount in words in check.
I am getting the amount in words through functuion module SPELL_AMOUNT correctly,i.e,(for example,110,002 ) ONE HUNDRED TEN THOUSAND TWO.
After getting the amount,i am concatenating the words 'ONLY' amount 'RIYALS'.In program it is concatenated correctly.Expected output is RIYALS ONE HUNDRED TEN THOUSAND ONLY.
But when seen on screen,the words are getting jumbled.
It is getting displayed as TWO RIYALS ONLY ONE HUNDRED TEN THOUSAND.
(Note: My form is in arabic,since i want to display vendor name in arabic,and rest of the check in english).
Please help me with some solution.
Thanks & Regards
Seshagiri.
Hi Dishant,
Sorry for the delay.I am pasting the code below:
Code in print program:
Global data:
data: gv_riyals(6) value 'RIYALS', "RIYALS
gv_only(4) value 'ONLY',
gv_halalas(7) value 'HALALAS',
gv_and(3) value 'AND'.
Local data:
data: lw_dummy(25),
lw_fraction(2), "for fraction part of amount in HALALAS
lw_integer type i.
if spell-decimal is initial.
clear: spell-decimal, dg_100.
else.
lw_integer = spell-decimal / 10.
lw_fraction = lw_integer.
concatenate '(' lw_fraction '/100)'
into lw_dummy. " SEPARATED BY space.
condense lw_dummy.
clear dg_100.
dg_100 = lw_dummy.
if not spell-word is initial.
condense spell-word.
gv_spell_word(50) = spell-word. "Amount in RIYALS
endif.
endif.
call function 'WRITE_FORM'
exporting
window = 'PAY_DOC'
element = 'PAY_DOC'
exceptions
window = 1
element = 2.
if sy-subrc eq 2 and
( err_element-fname ne t042e-zforn
or err_element-fenst ne 'PAY_DOC'
or err_element-elemt ne 'PAY_DOC' ).
err_element-fname = t042e-zforn.
err_element-fenst = 'PAY_DOC'.
err_element-elemt = 'PAY_DOC'.
err_element-text = text_530.
*--Code in the script:
/: IF &DG_100& EQ ' '
L1 &gv_only(C)&,,&gv_riyals(C)&,,&spell-word&
/: ELSE
L1 &gv_riyals(C)&,,&gv_spell_word(C)&
L1 &gv_only(C)&,,&gv_halalas(C)&,,&dg_100(C)&,,&gv_and(C)&
/: ENDIF
Thanks & Regards
Seshagiri.
Similar Messages
-
Print Layout : Amount in Words
Hai To All,
I customize print layout of A/P Invoice on that i have some problem:
1) there iam calculating total amount.At the bottom of my page that amount should display in words.How to do that???
2) In between repetitive Area and End of Report there is no border while taking print its not looking good.
Anyone have idea about this????
Regards,
AnithaHi Ani,
For 1st question:
1. select the that field. goto Properties
2. In General Tab u can find Link to Textbox
3. In that textbox select the field-id of the Total Amount
4. Now goto Format tab, select the Amount in words check box
This is the way u can print Amount in words.
For 2nd Question:
1. select the repetitive area in Field Index window
2. Now goto Properties Window, select the Border Tab
3. there, in low textbox, put 1.
Thanks,
Suresh Yerra -
hi all,
I have a requirement where in i have to print amount in words. The user enters the amount in table rows, and the total in amount gets printed in another text field. I have put the code for sum in the exit event of the rows(cell) this is done through formcalc.
Now i have requirement to print the amount in words
1. Is there any function like SPELL in form calc? (i doubt there would be one...!!)
2. If there is no such funcrion, then how to implement this functionality? Can i some how call the FM SPELL in the interactive form or may be generate a event that would call FM SPELL in my WD componentand then print the result back in my interactive form?
All help will be appreciated.Hey Runal,
I haven't had much experience with Interactive forms inside WDJ, but I think this will work...
In the Submit To SAP button, this code exists...
// DO NOT MODIFY THE CODE BEYOND THIS POINT - 710.20060821084622.325745.280724 - SubmitToSAP.xfo
ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
// END OF DO NOT MODIFY
This code triggers an event call to the backend.
What I would do is have a variable in your form that you set just before you click the button so you know what "event" you want to trigger, then of course, set it to null inside the method... when it goes back into the method in your web dynpro, you could then take the number, call the function module, and return the value to the screen.
In theory, this should work.
Hope this helps...
Cheers,
Kevin -
Reg: Convert amount in values to amount in words
Dear All,
Want to convert amount value into words and it will displays on UDF which is created in Marketing document. How can i do that.
Plese help me
Thanks & Regards
Venkatesh NHi,
Check Re: Amount in Words in INR for solution.
Create function in SQL and then apply FMS to get that function in udf.
Thanks,
Neetu -
Amounts in words will be in Chinese
Hi All,
I need to print Amount in words in Chinese language. I used Function Module "SPELL AMOUNT". By using this FM i can able to print the words in english. Eventhough i used language (sy-langu='zh') is China but i cant able to print in chinse letters. Please guide me on this.
Regards,
JayakumarHi,
the language is ZH and the currency is CNY, those are the values that u need to pass to the FM.
It should work fine, otherwise, check this notes 1401367 - Spell Amount:
Note 152520 - T015Z - Digits and numbers in words in Asian lang.
What is the SAP version that u r working on?
Regards -
Check print report PaymentAmountText field gets spaces while using RPAD Fn
Hi,
In the check print report we are using the PaymentAmountText field to print the amount in text.
After printing the remaining spaces should be filled with '*'
I used the below command
<?xdofx:rpad(PaymentAmountText,100,'*')?>
But the output is as follows:
Twenty-Five Pounds And Fifty Pence
Only***********************************************
There is a huge space between two words.
So please suggest some ideas to remove the space between two words.There is a huge space between two words.
So please suggest some ideas to remove the space between two words.
you can use normalize-space(tag_name) like
Result - <xsl:value-of select="normalize-space('Initial werwe rrr r r')"/>
and result as
Result - Initial werwe rrr r r
also look at Re: Problem with Rpadding in RTF -
Wrong Conversion of Amount in Words in Purchase Order print out
Hi,
Please help me with the problem in printing of Purchase Order, there is an error in amount in words. For example the total amount in numbers is 93,311.30 however the amount in words will be nine million three hundred thirty-one thousand one hundred thirty.As per my understanding the amount in number was multiply by 100. Please help what i should check.
Thanks,
RichardDear,
Take the help of the ABAPER guy and check what he written in the program of the PO layout & printout.
http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
This will solve your problem
Thanks & regards.
Varun Bisaria
Edited by: Varun Bisaria on Oct 21, 2011 2:10 PM -
Print gross, tds & net amount , invoice wise in check printing
Dear Experts
Can u please help me for check printing ? Actually i write code for printing the invoice wise gross amount tds amuont & net amuont nut it is not getting printed.
I have code it in main window. But it is not printing multiple invoice. ABAP Program code is same as standard code. Somewhere i need to change it in standard program code or not please help.
I also create the zprogram . But it is not printing. Please help.
Regards
Nitin VarshneyDear Sreesudha,
Actually I want to print the mutiple Invoice on the First Page.
Like when we are payment to one vendor against the multiple invoices, we want to print the all invoice on the first page of script & at below of page i want to print the check.
How i can loop on script for multiple invoice printing. AtNew command will work on script or in some other ways.
Please help.
Regards
Nitin -
India Check printing - words notation issue
Hello,
I have a report for check printing for our india localization. I was able to change the words notation to Lakhs and Crores using ap_lookup_codes, lookup_type 'NLS TRANSLATION', but unable to change the way <b>commas</b> are displayed for amount field.
Eg. an amount of 112476100.48, is displayed as 112,476,100.48 (in words displays as one hundred and twelve thousand four hundred and seventy six one hundred rupees and forty eight paise) whereas for India localization, we need this to be displayed as 11,22,76,100.48 (eleven crore twenty two lakhs seventy six thousand one hundred and forty eight paise)
Function CHK_DISP
declare
l_check_amount varchar2(15);
l_inr_amount varchar2(15);
begin
SRW.REFERENCE(:C_CHECK_AMOUNT);
SRW.REFERENCE(:C_CURRENCY_CODE);
SRW.USER_EXIT('FND FORMAT_CURRENCY
CODE=":C_CURRENCY_CODE"
DISPLAY_WIDTH="15"
AMOUNT=":C_CHECK_AMOUNT"
DISPLAY=":C_CHECK_AMOUNT_DISP"
MINIMUM_PRECISION=0');
IF :C_CURRENCY_CODE = 'INR' THEN
l_inr_amount := to_char(:C_CHECK_AMOUNT, '99,99,99,999.99');
l_check_amount := replace(rtrim(l_inr_amount),' ','*');
ELSE
l_check_amount := replace(rtrim(:C_CHECK_AMOUNT_DISP),' ','*');
END IF;
end;
This errors out for some reason.
If I just do a srw.message('6','l_inr_amount: '||to_char((:C_CHECK_AMOUNT, '99,99,99,999.99')); --- this works perfectly fine and displays the required format in log file. Can someone please advice on how to achieve these comma positions for India check printing?
Thanks in advance
HariHi
Try to use CALL FUNCTION 'SPELL_AMOUNT' Currecny Key = "USD" irrespective of the currency and then based on the country key or langauge Concatenate the Currency to the SPELL AMOUNT..
surya -
Urgent :Check print template not getting attched to the conc program
Oracle apps version : 11.5.10.2
XML Publisher : 5.6.2
Other XML publisher program works fine, but for check print progam rtf template doen not get attached at run time.
path: Payables --> Payments --> Once you click on pay , 2 concurrent programs gets fired. Payments process manager and other one is Format payments program. Now for this Format payments program i have attached my template.
But at runtime it looks like the check print template is not getting attached to format payments program.
I have verified short of con progrma, and code of data defn and templates and found that all are in sync (i.e. all 3 have same short name and code)
Any help is appreciated .
Regards,
SameerHi,
See if the documents referenced in these threads help.
Printing Checks from Oracle r12
Printing Checks from Oracle r12
Reports Printing in EBS R12
Reports Printing (CHECKS) in EBS R12
Regards,
Hussein -
Working on check printing template,Getting Extra space in second page
I am working on check printing template,in case of multi page output.I am getting almost 1/2 page blank space and getting disturbed output.
Please provide mail id so that i will share template and xml.
Thanks in advance.
MahiSend me the template and the xml, i ll try to figure out the issue
my main id is : [email protected]
Ragul -
TDS amount printing wrongly in words
Hello,
Please suggest urgently the solution.
While Printing the TDS certificates in Tcode J1INCERT, the amount in words is taking the last item of the list and displaying the same in words. TDS printing Scriptform - ZJ_1IEWT_CERT is also perfect.
Thanks,
RatnamHello Experts,
Explaining this issue once again Please
In the TDS certificate there will be 3 line items, Ex:- each line item is having 1) 3000, 2) 5000 and 3) 2000. the total amount is ten thousand will print in the words.
But in my case " Certified that a sum of Rs. Two thousand has been deducted at source and paid to the credit of the Central Government q -
Lock checks printing get ticked somehow
Hello to all,
we have a few customers experiencing this problem. When they want to print checks, well the checks simply don't get printed, with no warnings or messages. When at the last step, they click on Print, but then nothing happens. Each time we find that the Lock checks printing check box is ticked and the customer is falbergastered because he did not knew the existance of this check box.
So the $ 100,000 question is: how does this check box get ticked by itself ? Is it a bug or a feature ?
Thanks
Gilles PlanteHello Geneviève,
This note is the normal explanation of this issue, if this resolve the question can you please award point and mark the thread as answered.
Regards,
Paul Finneran
SAP Business One Forums Team -
Convert Numbers to Words in Check Printing
I am creating my own check template in SAPscript instead of a smartform simply because I did not want/find a driver program for a smartform. I am a little confused on how to perform ABAP function calls in SAPscript and need some help. I figure this ABAP code will do the job:
DATA: wa_amt TYPE SPELL.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = 100
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = it_amt
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.
o
+
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE 'A' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write wa_amt-WORD.
But I think this code is meant for a smartform->program lines. I want to convert the variable "REGUD-SNETT" from a number to a string of words.
On a side note, how to do I set a break-point in my SAPscript so it enters debug mode after I post the check document in transaction code f-58?------------------ Amount in words -------------------------------------
/ &'*** 'SPELL-WORD& ®UD-WAERS&&' and 'SPELL-DECIMAL(2)'/100 '&***
/* Example for amount and decimal places in words
/* &'*** 'SPELL-WORD& ®UD-WAERS&&' and 'SPELL-DECWORD' Cents'& ***
/* Example for numbers in words
/* &SPELL-DIG06(6)&&SPELL-DIG05(6)&&SPELL-DIG04(6)&&SPELL-DIG03(6)&&SPELL-D
If you want to see the details Open F110_PRENUM_CHCK Script and check the window code for Amount in words (Description of window)
If it is useful, please reward me with points. -
When attempting to print in Pages, I keep getting a message that no printer is detected. I have checked all connections and they are solid, this printer has always worked before, and even if I try to add it, I still get that message. I can print from all other applications, just not any Pages documents.
You may just have an outdated printer driver.
Menu > Edit > Print > Printer: Add Printer
Peter
Maybe you are looking for
-
Error while Deleting the agreements
Hi, I'm not able to delete the agreement,it indicates below error.How can i solve this.I deleted all the related delivery channels also.Plz help me. Error There was an error deleting agreement. 1.Error -: AIP-16015: Delete of Internal Delivery Channe
-
Delivery type LR cannot be invoiced with billing type RE?
Hi, I am refering below flow to create an return order, but face an error when creating credit billing document: ret sale order(RE)-ret delivery(LR)-post goods receipt(stock will be restored in corresponding storage loc)---credit for return(RE) Error
-
Error in application services, CAF
Hello all, When testear my application services gives the following error me: <i>"ERROR. The following exception occured while processing your request: com.sap.caf.rt.exception.CAFFindException.:"</i> To what it can be due? Best Regards, Luis Galey.
-
Please Help In Restriction Code !!!
Hie Guys..! Before Sum Days I Was Usin My Sim Wid A data Card To Use Net On Pc,but Wen I Inserted Sim In Mobile it Started To Show "contact Service" ..! I Switched It Off N On Again But Now Its Askin For " RESTRICTION CODE" even I Tried Wid Other Ope
-
Problem when installing jwsdp 1.5 in suse 9.2
Greetings!! I am trying to install the jwsdp 1.5 in suse 9.2 and when I execute the installation script it throws me an exception: "Exception in thread "main" java.lang.NoClassDefFoundError: JWSDP" and for but that have attempted I have not been able