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

Check data in ALV

Former Member
0 Likes
645

I've done an ALV report with input fields, with the method cl_g_alv_grid->set_table_for_first_display

When I change a data manually, the ALV checked the consistency of the data (dictionary control).

I can also update my ALV grid by uploading a data file. In that case, there is no control (as i didn't change the data manually, there is no event 'DATA_CHANGED' ).

Do you know if there is a way to force the control for the changed cells ?

Thank you for your help

Message was edited by:

Jean-Christophe Segond

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
501

Hello,

You must use the event DATA_CHANGED.

They are many sample of ALV editable in the package SLIS.

Check programs of this package with the transaction se80.

I've done an ALV report with input fields, with the method cl_g_alv_grid->set_table_for_first_display

When I change a data manually, the ALV checked the consistency of the data (dictionary control).

I can also update my ALV grid by uploading a data file. In that case, there is no control (as i didn't change the data manually, there is no event 'DATA_CHANGED' ).

Do you know if there is a way to force the control for the changed cells ?

Thank you for your help

Message was edited by:

Jean-Christophe Segond

2 REPLIES 2
Read only

Former Member
0 Likes
502

Hello,

You must use the event DATA_CHANGED.

They are many sample of ALV editable in the package SLIS.

Check programs of this package with the transaction se80.

Read only

Former Member
0 Likes
501

Hello,

DO like this.

    WHEN 'UPDATE'.
 
      DATA REF1 TYPE REF TO CL_GUI_ALV_GRID.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
           IMPORTING
                E_GRID = REF1.
      CALL METHOD REF1->CHECK_CHANGED_DATA.
 
      LOOP AT G_T_OUTTAB WHERE CHECK = 'X'.
" Update the Ztable
EnDLOOP:

Regards,

VAsanth