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

problem in looping data in variable window

Former Member
0 Likes
547

Hi All,

I am using loop at and i am displaying data in VAR window. But every time it loops it over writing the data in VAR window and finally its printing only the last record in the loop. Can we loop all the data in the VAR window just like what we do in general for MAIN window.

3 REPLIES 3
Read only

former_member585060
Active Contributor
0 Likes
435

Just try to use Text element and give the values to be printed under text element, in print program in pass the WRITE_FORM with text element in loop and Endloop.

I think we can not use Variable window to print records from an internal table, suppose if the data in first page is full in variable window, and if u use same variable window in second page, it starts printing from 1st record in second page also.

Regards

Bala Krishna

Read only

Former Member
0 Likes
435

Hi Ben,

You should use only MAIN window to write continuos data.

You cannot write continuos data (from an internal table) in VAR window. If you do so it will overwrite.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
435

Change the type of the window from VAR to MAIN...u cannot display dynamically growing data in var window.

Note: In sapscript u can define more than 1 MAIN window.