cancel
Showing results for 
Search instead for 
Did you mean: 

default values in ALV

Former Member
0 Kudos

When i add a new row in ALV in webdynpro, i need some columns to have some default values. I am using the standard functionality of ALV in webdynpro to append rows (that is by setting the set_editable property to abap_true). Could someone tell how i can achieve this.

regards,

Priyank

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Priyank,

I think you can set default values in the context which is bind to the ALV.

In each context's attribute you can set his default value.

When you will insert a new row it will be take this defaults values.

Regards,

Juan

Former Member
0 Kudos

Hi Juan,

thanks for the reply,

What i need is slightly different. When i append new rows, the new row should have default values based on the last row in the grid. For example, there are start dates and end dates in the grid, for the new row, the start date should be one day after the end date in the preceding row. Could you tell me how i can achieve this.

regards,

Priyank

Former Member
0 Kudos

Hi Priyank,

In this case you will need to write your own method to insert row/append row.. and will have to capture it using On_Function event handler .. I would suggest you insert you own button dynamically and then call the appropriate method which would default the value you desire based on the condition you desire ..

Regards,

Anoop