cancel
Showing results for 
Search instead for 
Did you mean: 

ALV GRID GROUPING AND EDITING

0 Kudos

Hello everyone this is my problem i create an alv report using a grid i have my data ordered and grouped by a field but when i declare other field editable my report lose the grouping could you give some advise ? i was thinking about editing the field in a popup window but 'till now i just can read the data in the popup without the possibility of editing it. thanks .

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can`t edit and group at the same time, maybe you want to order and edit at the same time.

1. Create a edit button and use this code (user command).

2.-Declare this.

FIELD-SYMBOLS: <GRID> TYPE REF TO CL_GUI_ALV_GRID.

3.-Use this code to edit or not the fields.

ASSIGN ('(SAPLSLVC_FULLSCREEN)GT_GRID-GRID') TO <GRID>.

IF <GRID>->IS_READY_FOR_INPUT( ) EQ 0.

CALL METHOD <GRID>->SET_READY_FOR_INPUT

EXPORTING

I_READY_FOR_INPUT = 1.

EXIT.

ELSE.

CALL METHOD <GRID>->SET_READY_FOR_INPUT

EXPORTING

I_READY_FOR_INPUT = 0.

EXIT.

ENDIF.

ENDIF.

Alejandro Garaban.

Message was edited by: Alejandro Garaban

Message was edited by: Alejandro Garaban