Application Development and Automation 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: 
Read only

module pool multiple lines in same text box

Former Member
0 Likes
1,503

I got a requirement in a module program.this module pool is created through infotype.

i have field 'comments' this field is of length 100.

the user wants to split the comments into 4 lines in the same box.

the input for this field is coming from a input file.

so, here I need a logic for splitting the comments into 4 lines. each 25 chars.

but again here is a trick : if one line contains comment as 'there is a fox in the jungle'

here upto 'there is a fox in the jun' will be 25 characters. since this is word the whole jungle has to come

in the next line.

Can some one provide me idea/code/example?

many thanks in advance

Chitra

5 REPLIES 5
Read only

Former Member
0 Likes
966

you can use word wrap FM

call function 'RKD_WORD_WRAP'

Read only

0 Likes
966

Can you please provide me sample code for this?

thanks in advance.

I will have 4 lines in my text box, the word wrapping has to done for all four lines.

Thanks

Chitra

Read only

0 Likes
966

how to set 4 lines for in the layout?

Please help me

Read only

0 Likes
966

hi,

Check the code..

CALL FUNCTION 'RKD_WORD_WRAP'
    EXPORTING
      textline  = wa_t100-text
      outputlen = '25'
    TABLES
      out_lines = itab.

Read only

Former Member
0 Likes
966

THANKS