Skip to Content

Remove Logline in Longtext printing

Dear Experts,

I've a smartform where Notification long texts (QMNUM) are printed.

The longtexts are printed alongwith the Logline at the top, which I do not want.

Please help.

kind regards

Jogeswara rao

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2012 at 08:39 PM

    I think you're seeing the "created by ...date, time, etc? Is that what you mean by "log line"? If that is what you want to remove, I did the same thing in a QM implementation. It's really very easy to update the text table in place, save it, output it, then destroy it...

    data: lt_tline type table of tline.

    constants: lc_log(11) type c value 'Created by:'.

    field-symbols <lfs_t> type tline.

    call function 'READ_TEXT'

    . . .

    lines = lt_tline.

    . . .

    loop at lt_tline assigning <lfs_t>.

    if <lfs_t> is assigned.

    if <lfs_t>-tdline cs lc_log. "contains the constant somewhere in the text line?

    delete lt_tline. "remove the text row.

    * or, alternatively....

    <lfs_t>tdline = space. "leave an empty row.

    endif.

    endif.

    endloop.

    To utilize this intelligently, save it using SAVE_TEXT FM, then pass the TDID, TDNAME, TDOBJECT, etc., in your interface to the form, and utilize INCLUDE TEXT in the window to allow the form to optimize the output of the text, based upon margins, paragraph format, etc. See SO10 parameters for some possible choices.

    After form completes, use FM DELETE_TEXT to blow away the print-only long text object created above.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 04, 2012 at 01:37 PM

    Hi Jogeshwara,

    could you please specify the Tcode from whihc you are printing Notification and what kind of line is getting printed currently .. possibly with a screenshot?

    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.