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

Alv Edit By set_table_for_first_display Problem

Former Member
0 Likes
989

Dear Experts,

I am getting a ALV Editable Report by set_table_for_first_display.

for this I created a screen with Number 2000.

Report is showing,and comming in Edit mode.

But when I changed the data, & saves it is not saving.

I saw in debugging, at user command od screen,when i click on SAVE button, in that internable the changes are not reflecting.

Still it is showing the Report data(before changes in edit mode) only.

but when I click F8, again in the report it is showing the changed data also.

I am not understanding, in PAI , why that Itab is not changing.And in PBO how that data is comming.

I am pasting My code also.

create object w_docking_container

exporting

ratio = 195

exceptions

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5

others = 6.

create object w_alv_grid

exporting

i_parent = w_docking_container.

call method w_alv_grid->set_table_for_first_display

exporting

is_layout = is_layout_new

changing

it_outtab = <f_tab>

it_fieldcatalog = it_alvfc "it_fieldcat_new

exceptions

invalid_parameter_combination = 1

program_error = 2

too_many_lines = 3

others = 4.

Please help me .

Thanks in advance,

Regards,

Rahul.

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
723

In PAI you need to use method check_changed_data and then change internal table accordingly.

Refer [How to get updated data from editable ALV|http://abap-explorer.blogspot.com/2008/09/how-to-get-updated-data-from-editable.html]

Regards

Marcin

Dear Experts,

I am getting a ALV Editable Report by set_table_for_first_display.

for this I created a screen with Number 2000.

Report is showing,and comming in Edit mode.

But when I changed the data, & saves it is not saving.

I saw in debugging, at user command od screen,when i click on SAVE button, in that internable the changes are not reflecting.

Still it is showing the Report data(before changes in edit mode) only.

but when I click F8, again in the report it is showing the changed data also.

I am not understanding, in PAI , why that Itab is not changing.And in PBO how that data is comming.

I am pasting My code also.

create object w_docking_container

exporting

ratio = 195

exceptions

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5

others = 6.

create object w_alv_grid

exporting

i_parent = w_docking_container.

call method w_alv_grid->set_table_for_first_display

exporting

is_layout = is_layout_new

changing

it_outtab = <f_tab>

it_fieldcatalog = it_alvfc "it_fieldcat_new

exceptions

invalid_parameter_combination = 1

program_error = 2

too_many_lines = 3

others = 4.

Please help me .

Thanks in advance,

Regards,

Rahul.

2 REPLIES 2
Read only

MarcinPciak
Active Contributor
0 Likes
724

In PAI you need to use method check_changed_data and then change internal table accordingly.

Refer [How to get updated data from editable ALV|http://abap-explorer.blogspot.com/2008/09/how-to-get-updated-data-from-editable.html]

Regards

Marcin

Read only

Former Member
0 Likes
723

Hi,

Try this [Editable ALV|https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3133474a-0801-0010-d692-81827814a5a1&overridelayout=true]

Hope, it would help you.

with regards,

Mamta Kumari