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

appending problem

Hi,

Iam trying to display 4 lines of text for the particular doc no.But iam getting only last line.How to achieve it.

Here is the code.

loop at t_hdr.

loop at t_det.

write:/ t_hdr-name. write:'-'. write: t_hdr-text.

t_hdr-group = t_det-QMGRP and t_hdr-code = t_det-QMCOD.

write :1(5) t_det-sno,

7(15) t_det-qmnum,

22(15) t_det-refnum,

37(15) t_det-parnr,

53(25) t_det-qmtxt.

<b> loop at itab where qmnum = t_det-qmnum.

write :80(50) itab-desc.

endloop.</b> this is having four lines of text

endif.

endloop.

endloop.

points guaranteed

cheers

kaki

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Posted on Dec 02, 2005 at 10:18 AM

    Hi,

    try:write:/80(50) itab-desc.

    instead

    write :80(50) itab-desc.

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2005 at 10:19 AM

    use write:/80(50) itab-desc.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 02, 2005 at 10:20 AM

    loop at itab where qmnum = t_det-qmnum.

    new-line.

    write :80(50) itab-desc.

    endloop.

    try this ...in place of the highlighted code

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2005 at 10:21 AM

    Hi Kaki,

    Put new line command after write statement like below:

    loop at itab where qmnum = t_det-qmnum.

    write /:80(50) itab-desc.

    endloop. this is having four lines of text

    It will print 4 lines of your message.

    Award points, if it solves ur problem.

    Regards,

    Sudhakar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2005 at 10:24 AM

    Hi,

    I think that each line have length of 132 character.But u have speciped only 50 characters.So increase your character like

    write: 80(500).

    I Hope it helps

    regards,

    srini

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2005 at 10:34 AM

    Hi,

    Data: vline type SYLISEL.

    vline = 50.

    loop at itab where qmnum = t_det-qmnum.

    write :vline(50), itab-desc.

    vline = vline + 50.

    endloop. this is having four lines of text

    Try this.

    Regards,

    Sudhakar.

    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.