‎2009 Jul 01 11:46 AM
Dear all,
I have an variable like Spell-amount which is 160 character long.
Now i want to print this variable in two line.
like this,
spell-amount(40) in first line
spell-amount+40(120) in second Line
one crore thirty five lakhs twenty two th
ousand eight hundered sixty three.
Now the question is i want to print these two line like this:
one crore thirty five lakhs twenty two
thousand eight hundered sixty three.
how can i do this??????????????
i want to avoid to cut the word.
Help me
‎2009 Jul 01 11:58 AM
Hi,
Use FM RKD_WORD_WRAP in a form and call that form from your script.
SEARCH SCN for sample codes.
Regards
Karthik D
‎2009 Jul 01 12:54 PM
Dear Sir,
Thanx for your reply.
till now my 50 % problem is solved.
but one problem is that.
after using RKD_WORD_WRAP function now my data is stored look like this:
OUT_LINE1 = One Crore Thirty Five Lakh Twenty Two
OUT_LINE2 = Thousand Eight Hundred AND Sixty Three
OUT_LINE3 = Only
now i store data in two string for two line printing.
AMT1 = One Crore Thirty Five Lakh Twenty Two
AMT2 = Thousand Eight Hundred AND Sixty Three Only
now the problem is,
in script form i m passing the amount in words through spell-word structure.
first line spell-word(40)
second line spell-word+40(120)
means pass one varible
now how can i pass the value of amt1 & amt2 to spell-word structure
‎2009 Jul 01 1:02 PM
‎2009 Jul 01 1:04 PM
Hi,
Declare two variables in Script and use that in the changing option of the perform. Now you can print those two variables.
Regards
Karthik D
‎2009 Jul 01 1:04 PM
‎2009 Jul 01 1:05 PM
Hi,
"Only" is a constant string. You need not pass it to the script. You can hard code the value in script or append it to the OUT_LINE2 and then pass it to the script. It should work fine. Don't you think so?
Regards,
Anand Patil
‎2009 Jul 01 1:07 PM
‎2009 Jul 01 1:08 PM
‎2009 Jul 01 1:10 PM
‎2009 Jul 01 1:10 PM
‎2009 Jul 01 1:12 PM
‎2009 Jul 01 1:12 PM
‎2009 Jul 01 1:28 PM
‎2009 Jul 01 1:30 PM
‎2009 Jul 01 1:30 PM
‎2009 Jul 02 7:33 AM
Hi Shalini
I have solved the same sort of problem in my programming you use the function module RKD_WORD_WRAP so with this half of our problem is solved na .Now in script you have declared the first variable .check exactly down to that in next line u declare this variable then your problem will be solved .
Note Suggestion: when giving a space to the second line make sure go with tab space in script .
If you have any doubt let me know clearly .
HAVE A NICE DAY