Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

write statment issue

Former Member
0 Kudos

Hi,

I would like to write amount in word, through spell_amount function module. And printing

on A4 size paper through WRITE statment but that spell amount going out side of page if the

amount is larage eg. more than 1 crore ( not continuing next line ) so, how i can write that amount

continuing with next line..

Manoj..

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello

Just spit string.

6 REPLIES 6

Former Member
0 Kudos

Hi,

Before write statement chack string length and it is exeeded more that line number charecters split that and move to to temp varibales and use two write statement.

Regards

Md.MahaboobKhan

Former Member
0 Kudos

Hello

Just spit string.

0 Kudos

how sir ,

please tell me..

Manoj.

0 Kudos

Hi,

If u want to split the string you can use the floowing statement

SPLIT < Your Text> AT <Your Value> INTO: str1 str2 str3,

TABLE <Your Itab>.

Hope it helps u.

Thanks & Regards

0 Kudos

Hello

FM RKD_WORD_WRAP

Former Member
0 Kudos

Hi Manoj,

try this code

DATA: str1 TYPE string,

str2 TYPE string,

str3 TYPE string,

itab TYPE TABLE OF string,

text TYPE string.

text = `What a drag it is getting old`.

SPLIT text AT space INTO: str1 str2 str3,

TABLE itab.

hope it will help you.

Regards,

Anki Reddy