2007 Jun 07 4:03 PM
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
2007 Jun 13 9:03 AM
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
2007 Jun 13 9:03 AM
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.
2007 Jun 13 9:07 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |