Skip to Content
author's profile photo Former Member
Former Member

Plz Urgent

hi all,

I have one requirement that one text is there

national hindi

this needs to be display in o/p as total column in up to down

not left to reght.

how can we do that Plz suggest.

Regards

Rami Reddy

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 03:37 AM

    Hi!

    Count the total number of charaters in ur text say n.

    Then loop it n no. of times and write : /n one charater in one line.

    hope it helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 17, 2008 at 03:43 AM

    data : wf_counter type i.

    clear wf_counter.

    while wf_counter < n.

    wf_counter = wf_counter + 1.

    write : / 'national hindi'.

    endwhile.

    n is the number of times...u wanna print...

    try this ...it will work....

    Reward points..if useful...

    Regards

    Rudra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 04:19 AM

    hi,

    data : INT TYPE I,

    WORD1(20) VALUE '12345'.

    WORD2(20).

    WORD3(20) VALUE ' 4 '.

    INT = STRLEN( WORD1 ). WRITE INT.

    INT = STRLEN( WORD2 ). WRITE / INT.

    INT = STRLEN( WORD3 ). WRITE / INT.

    The results are 5 , 0, and 4 respectively.

    In this way u can find the length of the string

    Then,

    data : int1 type i.

    while int1 < int.

    int1 = int1 + 1.

    write : ' National Hindi'.

    endwhile.

    Rgds.,

    subash

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 17, 2008 at 04:38 AM

    Hi check this logic..

    data: vl_n type i,
            vl_text type string.
    
    vl_text = 'national hindi'.
    vl_n = strlen( vl_text).
    
    do vl_n times.
    
    write:/ vl_text+counter(1).
    
    counter = counter + 1.
    enddo.
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 05:55 AM

    Hi.

    use the code given below it will definately helps u a lot.

    data:

    wv_text type string value 'national hindi',

    wv_length type i,

    wv_counter type i value 0.

    wv_length = strlen( wv_text ).

    while wv_counter lt wv_length.

    write :/ wv_text+wv_counter(1).

    wv_counter = wv_counter + 1.

    endwhile.

    PLZ award points if helpful.

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.