Skip to Content
author's profile photo
Former Member

Regarding Scripts

hello,

Can anybody help me regarding scripts.when we loop a function module write_form first record is executing twice

and all other records are executing normally.we have used top and endtop for header data in one window.and in other window we are pooulating data here we are getting problem that first record is executing twice.

Thanks,

Nagalakshmi

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 05, 2005 at 08:11 AM

    Hi,

    Did you checked in the Debug mode of Form and Print prog,

    So that you can know why that particular record is repeating.

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Have you also checked your internal table while debugging? Ig the record is there two times the problem occurs on filling the table, not while printing with the script.

  • author's profile photo
    Former Member
    Oct 05, 2005 at 11:36 AM

    must be a problem with data in internal table.

    Else am unable to comment without seeing the code.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 05, 2005 at 12:47 PM

    Hi,

    Make the text element your are using to print that repeated element, the first text element and see to that the main window editor has no other lines before this text element.

    As to delete the header, in the write_form use

    funtion 'DELETE', body 'TOP'. use this after the write form for the main body is executed...

    regards,

    Madan....

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 05, 2005 at 02:52 PM

    hi,

    Clean the header line of the table loop. Maybe it works...

    Regards.

    Add comment
    10|10000 characters needed characters exceeded