Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Scripts

Former Member
0 Kudos
152

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
135

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.

8 REPLIES 8

Former Member
0 Kudos
136

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.

0 Kudos
135

Do a search on the textelement in the printprogram. Perhaps it's called twice?

0 Kudos
135

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

0 Kudos
135

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.

0 Kudos
135

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.

Former Member
0 Kudos
135

must be a problem with data in internal table.

Else am unable to comment without seeing the code.

madan_ullasa
Contributor
0 Kudos
135

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....

Former Member
0 Kudos
135

hi,

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

Regards.