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: 

Preset cells with values when adding new lines - AUTO_VALUE

uwe_schoenwald
Employee
Employee
0 Kudos

If the indicator AUTO_VALUE is set in the field catalog and a new row is appended or inserted, the ALV Grid Control copies the value of the previous row to this column. This applies also to columns that are not editable. This allows the user to enter new data more quickly.

If no previous column exists, the field in the new row remains initial. And that is exactly my problem.

How can I preset a cell with a default value when adding a new line in an INITIAL ALV Grid where no previous column exists using the standard function buttons (ADD, COPY)?

An example would be very helpful.

Thanks and regards.

Uwe

4 REPLIES 4

Former Member
0 Kudos

Take a look at BCALV_EDIT_04.

Best!

Jim

Former Member
0 Kudos

I've got the same problem.

I would give an default posnr to my alv-application (10,20,30), after presing the append-button.

The attribute 'auto_value' just copies the former values.

Please help me too

Regards

Sascha

hymavathi_oruganti
Active Contributor
0 Kudos

hi,

r u using oops alv,

if so, u can handle that in data changed. because append row is caught only in data changed event.

so u can give some default values there.

Former Member
0 Kudos

thx for the quick r. but the add-button does not trigger the data change event. sorry.

regard sascha