2005 Oct 05 9:07 AM
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
2005 Oct 05 9: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.
2005 Oct 05 9: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.
2005 Oct 05 9:20 AM
Do a search on the textelement in the printprogram. Perhaps it's called twice?
2005 Oct 05 9:24 AM
hello,
I have searched it first all the textelements are executing once and the again loop is executing so the first record is executing twice.how to solve this problem.
thanx,
nagalakshmi
2005 Oct 05 9:42 AM
Hi,
I am not very much clear about your issue,
elaborate it.
At first sight, check that 1st item may printing twice because of Header line.Try clearing the header line before loop.
Thanks.
2005 Oct 05 10:18 AM
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.
2005 Oct 05 12:36 PM
must be a problem with data in internal table.
Else am unable to comment without seeing the code.
2005 Oct 05 1: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....
2005 Oct 05 3:52 PM
hi,
Clean the header line of the table loop. Maybe it works...
Regards.