Quantcast
Viewing all articles
Browse latest Browse all 9269

Re: Loop Table for layout

Hi Lavanya,

 

2) Now i have same data available in internal table not in work area . I would like to know if i can write

some routine logic or events where i populate the already existing work area by looping around the new internal table .

Printing of data in internal table can be done using 2 different methods.

The one that I am explaining is using the subform, where we need not loop the internal table but print all the data in the internal table.

 

I hope you have designed your form layout using subforms to hold the fields of your work area. If not, wrap the fields in a subform that has the property 'flowed' let's refer it as subform_in from now. Wrap the same in another subform with property 'flowed' let this be subform_out.

 

Now, go to the binding tab of the subform_out, in the default binding field, bind with the internal table name. this should show you something like $record.LT_ITAB in that field. Once this is done, select the subform_in which is holding your workarea fields and bind this with the data of your internal table. this should show you value like DATA[*].

 

Just below this default binding field, Select the check box that reads 'Repeat Subform for Each Data Item'. This will repeat your subform for each entry with the consecutive entries of the internal table lt_itab. This will resolve your point number 2.

 

3) For each record in the new internal table i want a new page to be triggered too.

This can be achieved by re-sizing your content area in the Master Page such that it holds only the data for one entry. So that the next entry goes to the next available content area(i.e. next page).   I am not sure whether this is the right way to do it.Image may be NSFW.
Clik here to view.
But this should work.

 

Hope this helps.

 

Cheers,

Vivek.


Viewing all articles
Browse latest Browse all 9269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>