12-30-2005 4:45 AM
Hi,
In earlier version, to make a column editable, I used to change field edit of structure catalog to be X. How should I do the same in while using ALV Object Model.
In addition to that, SAVE button is disabled, how should I enable it.
Thanks,
Anuranjan
12-30-2005 4:52 AM
Hi,
Set the PF-ststus in PBO, and enable the save button by giving some function code to that.
and in objects fieldcat-edit = 'X'.
normal fieldcat-input = 'X'.
vijay
12-30-2005 4:54 AM
MODULE PBO OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
ENDMODULE. "PBO OUTPUT
i hope you create the screen and container, if so in the module PBO you need to set the status and enable save,back, what ever you required...
VIjay
12-30-2005 4:58 AM
Hi Vijay,
This is the way normally I do but as mentioned I am using ALV OM now.
Thanks,
Anuranjan
12-30-2005 5:01 AM
Hi,
Object model means using Classes (cl_gui_alv_grid).
or some thing else..
vijay
12-30-2005 5:05 AM
12-30-2005 5:07 AM
Hi.
Using cl_salv_columns . It's not ALV, it's SALV .
An excerpt:
Before the introduction of the ALV OM, you would create a Field Catalog to manipulate the number of columns and/or the settings for these columns Now there is an OO approach to this where you ask the ALV OM for a Columns Object (cl_salv_columns) and manipulate through it. The standard implementation of this method exposes all columns and sets the optimize width. This method can be redefined to create custom column processing.
12-30-2005 5:09 AM
12-30-2005 5:30 AM
I am trying to develop this based on weblog from Thomas Jung.