Application Development and Automation 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: 
Read only

ALV Object Model

Former Member
0 Likes
1,090

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
Read only

Former Member
0 Likes
1,071

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

Read only

Former Member
0 Likes
1,071
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

Read only

0 Likes
1,071

Hi Vijay,

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

Thanks,

Anuranjan

Read only

0 Likes
1,071

Hi,

Object model means using Classes (cl_gui_alv_grid).

or some thing else..

vijay

Read only

0 Likes
1,071

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

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

Regards,

Rich Heilman

Read only

0 Likes
1,071

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.

Read only

0 Likes
1,071

Hi Rich,

Thanks, i never knew this...

thanks

vijay

Read only

0 Likes
1,071

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