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: 

Grid Display, Record Editing

Former Member
0 Kudos

Hi,

Internal table itab having fields name1,name2,name3.

I want to display these in grid format. Suppose itab having 20 records.

After displaying the grid output, I need to do the edit the record,

whose Itab-name1 = 'CDC'. only these record

Once editing is done, I need to do update these information in ZABC Custum table.

Can u please tell me the logic for these ASAP????

5 REPLIES 5

Former Member
0 Kudos

refer to program BCALV_EDIT_02.

You will be able to keep selected cells editable.

Former Member
0 Kudos

Hi,

search with BCALV* or SALV* in SE38. There are a lot of examples.

Regards, Dieter

Former Member
0 Kudos

IF grid1->is_ready_for_input( ) eq 0.

  • set edit enabled cells ready for input

CALL METHOD grid1->set_ready_for_input

EXPORTING i_ready_for_input = 1.

ELSE.

  • lock edit enabled cells against input

CALL METHOD grid1->set_ready_for_input

EXPORTING i_ready_for_input = 0.

ENDIF.

Former Member
0 Kudos

Hi,

Refer program BCALV_TEST_GRID_EDITABLE

Former Member
0 Kudos

Hi,

refer to the following link:

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_editable.htm

Also check the program:<b>BCALV_EDIT_04</b> This report illustrates how to add and remove lines to a table using the ALV Grid Control and how to implement the saving of the new data.

Hope this helps.

Reward if helpful.

Regards,

Sipra