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: 

Input in classic ALV is not working

former_member211905
Participant
0 Kudos
179

Hi,

I have created an classic ALV-programlist, and want to get input from one column in the list. This column is named "RATE_NEW"

When doing change A, it's possible to change values in the column "RATE_NEW", but unfortunately the edited values is not availabel in the program afterwords (the "register_edit_event" is not triggered)

A)

FORM setup_fieldcatalog

...

CASE g_fieldcat_h-fieldname.

WHEN 'RATE_NEW'.

g_fieldcat_h-input = 'X'.

g_fieldcat_h-edit = 'X'.

When doing change B, it's also possible to change values in the column "RATE_NEW", the edited value is availabel in the program afterwords (the "register_edit_event" is triggered). So this is working find realated to catch the changed data in the program. However using chnage B, all column area avaliable for input (not only the "RATE_NEW" column), ant that is not desirabled.

B)

FORM reuse_alv_layout_fill USING ps_layout TYPE slis_layout_alv

..

ps_layout-edit = gc_charx.

Do anyone know how to program the ALV-list to have the desired result (input from one column and use the new data in the program) ?

I'm not familiar with oo-ALV.

Best Regards

Jørn Thomassen

1 ACCEPTED SOLUTION

huseyindereli
Active Contributor
0 Kudos
85

Hi ,

While calling the alv grid display function , use the parameter of EDT_CLL_CB of I_GRID_SETTINGS import parameter(AS a structure).

DATA : ls_grid_setting type LVC_S_GLAY.

 ls_grid_setting-EDT_CLL_CB = 'X'.


 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
.
.
I_GRID_SETTINGS = ls_grid_setting
.
.
.
.
.

4 REPLIES 4

uwe_schieferstein
Active Contributor
0 Kudos
85

Hello Jørn

You are hundred times faster using OO-based ALV instead of the classic approach.

There are many sample reports available, e.g. BCALV_EDIT_02.

When you call method go_grid->check_changed_data( ) at PAI (module USER_COMMAND_xxxx) the changed values will be transferred from the frontend (ALV grid) to the backend (ABAP itab). It is really simple.

Regards

Uwe

huseyindereli
Active Contributor
0 Kudos
86

Hi ,

While calling the alv grid display function , use the parameter of EDT_CLL_CB of I_GRID_SETTINGS import parameter(AS a structure).

DATA : ls_grid_setting type LVC_S_GLAY.

 ls_grid_setting-EDT_CLL_CB = 'X'.


 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
.
.
I_GRID_SETTINGS = ls_grid_setting
.
.
.
.
.

0 Kudos
85

Hi Hüseyin,

Thanks a lot.

This solved my problem.

Jørn

0 Kudos
85

Hi Jørn ,

Great to see your problem solved