cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Grid - Create new entries / change existing entries

Former Member
0 Kudos

Hi,

I have to write 3 reports, one for creating entries in a database, one for changing existing entries and one for only displaying.

The screen for inserting new entries should show the last 9 entries in an ALV grid controll, and below a line for insert or another grid for making the new entries.

The screen for editing should give some selection criteria and should show then the results and make them editable.

The last screen for displaying should give some selection criteria and should only show the found lines.

Now my problem. I have tried to make all this on a 4.7 system. I´m quite new in ALV programming, but I have got the alv-displaying data and have found the possibility to make columns editable (with the structure LVC_S_FCAT and the field EDIT).

But now, I have to do all this on a 4.6B system and there is no field "EDIT" in the "LVC_S_FCAT" structure, which I can give to the method "SET_TABLE_FOR_FIRST_DISPLAY".

Can anybody help me out of trouble? Does anybody know how to make fields editable and how to handle that in a 4.6B system?

Thank You very much!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Arne,

I remember searching this field in 46B system.

Actually you dont have the option of making an ALV field editable in 46B.

You will have to resort to some other ways.

PS: Remember to reward points.

Reg,

PP.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can make the grid editable by calling the method

set_ready_for_input.

For example,

call method i_grid->set_ready_for_input

exporting

i_ready_for_input = 0.

The parameter i_ready_for_input has two values.value '0' indicate uneditable and value '1' indicate editable.

Hope u have understood.

Thanks&Regards,

Ruthra.R