ALV + Change cell

Question: Hi Sapfans,

I have one report that shows the internal table by ALV.

I want change some fields of the first line of my internal table.

Is this possible?

I don't use ALV with create objects, I'm working in version 4.6c with traditional ABAP code.

So, all ideias are wellcome.

Br,
Ana

Answer:
Hi

You can set the edit field of your fieldcatalogue to 'X' for the fields in question.

Regards

Carl

Answer:
yes you can but trust me... I hope that you don't wanna have automatic recalculated fields on you ALV depending from the users input because you'll get crazy to manage it !!! I finished a program like this in the last weeks and it hasn't been easy to don't throw the monitor outsite the window

Answer:
Hey Big Joe, I'm about to embark on a similar development, and I have used ALV grids as input grids before so i know what you mean when you say it can be a nightmare. But my question is when recalculating data in the grid once a users has entered new data I use the refresh method - the trouble with this SAP always returns the user to line 1 in the grid. Is it possible to keep the cursor position in the grid when the user refreshes his/her data?

Answer:
IF you use user callback program to process user command in ALV, then
there is parameter with type slis_selfield. You can set field row_stable in
this parameter.

Answer:
Thanks for the tip, but what is a user callback program? Have you got any examples?

Answer:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_BYPASSING_BUFFER = 'X'
I_CALLBACK_PROGRAM = gf_repid
I_CALLBACK_PF_STATUS_SET = lf_status
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
.......

FORM on_user_command
*----------------------------------------------------------------------*
* user commands processing
*----------------------------------------------------------------------*
FORM on_user_command USING pu_ucomm type sy-ucomm
pu_selfield type slis_selfield.
case pu_ucomm.
when 'REF'. " grid refresh
.....
endcase.
pu_selfield-row_stable = 'X'.
ENDFORM.

More help you'll find pressing green light on parameter
I_CALLBACK_USER_COMMAND in SE37 for REUSE_ALV_GRID_DISPLAY
function .

Answer:
Hi,
Are there any differences between using the I_CALLBACK_... parameters and using the event equivalent, via the I_EVENTS parameter? Thanks.
Copyright ?2007 - 2008 www.jt77.com