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

Preset cells with values when adding new lines - AUTO_VALUE

uwe_schoenwald
Advisor
Advisor
0 Likes
1,611

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

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
Read only

Former Member
0 Likes
1,271

Take a look at BCALV_EDIT_04.

Best!

Jim

Read only

Former Member
0 Likes
1,271

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

Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,271

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.

Read only

Former Member
0 Likes
1,271

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

regard sascha