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: 

How to display 10 default empty lines in OO ALV output Screen

Former Member
0 Kudos

Hi Experts,

I need to  display 10 default empty lines in OO ALV output Screen how can i achieve this please provide any suggetions or any usefull links

Regards.

3 REPLIES 3

former_member184578
Active Contributor
0 Kudos

Hi,

You can append initial lines to your internal table and then pass the itab to the ALV

for ex:

do 10 times.

APPEND INITIAL LINE TO lt_table. " lt_table being your internal table

enddo.

Then pass the lt_table to the ALV

Regards,

Kiran

0 Kudos

Hi Kiran,

Thanks for the reply.

As you said i can pass the initial lines but in my scenarios

1.there is no selection screen in my program user can upload data by clicking on a button in the application toolbar after that the alv get filled with data if user didn't upload any file he can be able to insert the lines by using Insert button(+) so i want to display 10 default empty lines so that user can enter the data  without pressing any  Insert button.

will your solution work in this scenario.

Regards.

0 Kudos

Hi,

Yes. And make sure you make it as editable ALV so that you can enter the data into those empty lines.

Regards,

Kiran