Application Development and Automation 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: 
Read only

Iteration problem in script.

Former Member
0 Likes
447

Hi Experts,

I have one Main window , footer window and logo windows in my script.But eventhough the WRITE FORMS are in same loop,

in the first iteraion it is going only to the main window .So the first page Footer contains the second iteration value and so on.Please help me to solve this.

I want to print the first iteration value in the first page footer.

Regards,

Sreeja

2 REPLIES 2
Read only

Former Member
0 Likes
409

Hi sreeja,

Why dont you loop and when using write form, specify the window name.

try this.

loop at itab into wa.

call function 'Write_form'

importing

window = 'window name XXX'

call function 'Write_form'

importing

window = 'window name YYY'

call function 'Write_form'

importing

window = 'window name ZZZ'

endloop.

Blacky

Read only

Former Member
0 Likes
409

Hello,

dont call the FOOTER window inside the loop as the loop is used for MAIN window.

Write the logic for footer window and call the FOOTER window outside the loop.

Cheers,

Balaji