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: 

ALV Object Model

Former Member
0 Kudos

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

8 REPLIES 8

former_member188685
Active Contributor
0 Kudos

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

former_member188685
Active Contributor
0 Kudos
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

0 Kudos

Hi Vijay,

This is the way normally I do but as mentioned I am using ALV OM now.

Thanks,

Anuranjan

0 Kudos

Hi,

Object model means using Classes (cl_gui_alv_grid).

or some thing else..

vijay

0 Kudos

Vijay, I believe he is referring to.....

/people/sap.user72/blog/2005/09/14/a-new-approach-to-alv-programming

Regards,

Rich Heilman

0 Kudos

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.

0 Kudos

Hi Rich,

Thanks, i never knew this...

thanks

vijay

0 Kudos

I am trying to develop this based on weblog from Thomas Jung.