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: 

How to find the inserted values in alv

Former Member
0 Kudos

Hello All,

How to find the inserted and deleted values in ALV.

Regards,

lisa.

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Hi,

copy the output table before calling set_table_for_first_display and refresh_display

then in your event call

CLASS lcl_alv_handler_1100 DEFINITION.

PUBLIC SECTION.

METHODS:

handle_data_changed

FOR EVENT data_changed OF cl_gui_alv_grid

IMPORTING er_data_changed,

ENDCLASS.

after this here you can find modified new output table

then compare the new output table with older one

aRs

8 REPLIES 8

Former Member
0 Kudos

Hi Lisa

What do you mean?

U can get all info by fm REUSE_ALV_GRID_LAYOUT_INFO_GET or REUSE_ALV_LIST_LAYOUT_INFO_GET.

mAX

0 Kudos

Hi,

Could you please tell me in OOPS concept.

Regards,

Lisa

0 Kudos

Hi

If you means the record inserted or deleted in the output table of ALV, see the program demo BCALV_EDIT_04.

U need to use two new internal tables: one for inserted record and one for deleted record.

Max

0 Kudos

Hi,

My requirement is

when the user enter a new row in alv grid then i should able to get those valus and also all deleted cells.

How can i do this?

Regards,

Lisa

former_member194669
Active Contributor
0 Kudos

Hi,

copy the output table before calling set_table_for_first_display and refresh_display

then in your event call

CLASS lcl_alv_handler_1100 DEFINITION.

PUBLIC SECTION.

METHODS:

handle_data_changed

FOR EVENT data_changed OF cl_gui_alv_grid

IMPORTING er_data_changed,

ENDCLASS.

after this here you can find modified new output table

then compare the new output table with older one

aRs

0 Kudos

How can i see this. Could please post some code and explain me how can see the values of the newly inserted and deleted ones.

Regards,

lisa

Message was edited by:

Lisa Roy

0 Kudos

Hi Lisa

U need to manage the event DATA_CHANGED: in the report BCALV_EDIT_04 you can see all abap code you need.

Max

Former Member
0 Kudos

Solved it by own