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

discard repeating text in printing

hi friends,

i want to discard repeating text in my write statement what is syntax for this.

thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 20, 2009 at 11:17 AM

    Hi,

    Capture the text in a global variable.Before the write statement check the text with global variable contents.If they are not same then only use WRITE else skip it.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 20, 2009 at 11:24 AM

    Hi,

    do like below...

    data : gv1 , (Internal Table)

    LOOP at gv1.

    IF gv1 NS 'STRING'. (here compare with the text what you want)

    write : gv1.

    endif.

    endloop.

    Hope it helps!!

    Regards,

    Pavan

    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.