08-29-2008 1:38 PM
Hi,
Can any body tell me How to activate the save button on ALV screen. Save button should be in active on the application tool bar and also all other buttons of ALV should be active
Thanks,
srinivas.
08-29-2008 2:12 PM
08-31-2008 8:47 PM
Hello Srinivas
Since you want to have a "SAVE" function your ALV list is obviously editable. The SAVE button is part of GUI status where you have to define a function code (e.g. SAVE) for the SAVE button.
The toolbar functions of the ALV grid are context sensitive meaning that buttons like "ADD ROW", DELETE ROW" etc. are only visible if the ALV grid is editable.
In order to make the entire ALV grid editable (which usually makes no sense if some columns contain key values for the displayed records) you have to set the layout GS_LAYOUT-EDIT = 'X'.
Regards
Uwe
09-03-2008 2:56 PM
Solved on my own.
Copied the standard programs PF-Status to my program and activated the save button also. And I have called the PF status in a dynamic subroutine, which is sent to I_CALLBACK_PF_STATUS_SET parameter of REUSE_ALV_GRID_DISPLAY fm.
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'.
FORM PF_STATUS.
SET PF-STATUS 'STANDARD'.
ENDFORM.
Thanks,
srinivas.