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: 

How to activate the save button on ALV screen

Former Member
0 Kudos

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.

3 REPLIES 3

andreas_mann3
Active Contributor
0 Kudos

define in your field-catalog:

catalog-edit = 'X'.

A.

uwe_schieferstein
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.