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

Insert rows in ALV

Former Member
0 Likes
993

Hi,

Want to insert rows in editable cell of ALV grid display without using classes and methods.

Thanks in advance

3 REPLIES 3
Read only

Former Member
0 Likes
569

hii

loop at main int table(using for ALV)

clear header of this table

append main internal table.

endloop.

like this a blank row will be inserted.

Edited by: pardeep kumar on Aug 13, 2008 2:42 PM

Read only

Former Member
0 Likes
569

Hi,

Check this report BCALV_EDIT_04.

Hope this helps you.

Thanks,

Ruthra

Read only

Former Member
0 Likes
569

you need to have a button to append the Rows. it can be possible with the PF_STATUS event. and handling will be done using the User_command.

FORM PF_STATUS using extab type slis_t_extab.

set pf-status 'STANDARD' excluding extab.

ENDFORM.

FORM USER_COMMAND  using r_cuomm type sy-ucomm 
   selfield type slis_selfield.

case r_ucomm.

when 'APPEND'.
  APPEND EMPTY LINE HERE to internal table
endcase.
selefield-refresh = 'X'.

ENDFORM.