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: 

Add row in Tabstrip ALV

Former Member
0 Kudos

Hi...

I have a subscreen in tabstrip where i am using


 CALL METHOD C_ALV_RATE_ANL->SET_TABLE_FOR_FIRST_DISPLAY

to display a alv......

I want to add a button the tabstrip which will aloow user to add lines in alv and user should be able to save it

regards

vivek

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Why cant you use set_table_for_first_display of class cl_gui_alv_grid ?


DATA:  go_grid_ctrl TYPE REF TO cl_gui_alv_grid.
CALL METHOD go_grid_ctrl->set_table_for_first_display

This will automatically have a APPEND ROW button in the tabstrip which will automatically add one new line

Cheers,

Kothand

3 REPLIES 3

Former Member
0 Kudos

Hi,

Why cant you use set_table_for_first_display of class cl_gui_alv_grid ?


DATA:  go_grid_ctrl TYPE REF TO cl_gui_alv_grid.
CALL METHOD go_grid_ctrl->set_table_for_first_display

This will automatically have a APPEND ROW button in the tabstrip which will automatically add one new line

Cheers,

Kothand

0 Kudos

hi

i have set_table_for_first_display of class cl_gui_alv_grid only..

but that doest give new row in alv

can u plz explain???

regards

vivek

0 Kudos

Hi,

Can't you see the CREATE icon button in the toolbar?

Else i think you have not enabled the EDIT mode for the display

check lvc_s_fcat-edit flag is set

Cheers,

Kothand