ALV - field input mode

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
Guest_SA

ALV - field input mode

Post by Guest_SA » Sun Dec 28, 2003 8:19 am

Hi Guys,

Requirement:
I have a list displayed thro' ALV. User can modify some of the fields( fieldcatalog-input is set to x for that field). If one field(for ex. flag) is set, then user should not be allowed to change any of the fields on that row.

Question: How do I change field properties of individual rows or cells on the ALV list?

Come on Guru's.

Guest

ulysis
Posts: 22
Joined: Thu Nov 28, 2002 9:38 pm
Location: seoul, korea

reference.........

Post by ulysis » Sun Dec 28, 2003 6:23 pm

You can reference Dev Class Slis....

'Slis' has a many exam program...

So you can find it....

good luck..

Cyberron

Post by Cyberron » Sun Dec 28, 2003 10:42 pm

Hi
Check out the program BCALV_EDIT_02 in the SLIS package. Input enabling is done at the cell level.

Regards
Cyberron

Guest_SA

Thanks very much

Post by Guest_SA » Sun Dec 28, 2003 11:54 pm

Guys,

Thank you both a lot. It's a very relevant one. I'll go thro' and get back to you if i come across any problems.

Thanks again,

Guest_SA

Guess1

Post by Guess1 » Tue Dec 30, 2003 10:14 am

Change the field catalog's edit property as
data: ft_cat type lvc_s_fcat. Create field catalog.
If ft_cat-fieldname = 'MATNR'.
ft_cat-edit = 'X'.
endif.

Guest

Post by Guest » Wed May 04, 2005 4:41 pm

Hi forum,
Change the field catalog's edit property as
data: ft_cat type lvc_s_fcat. Create field catalog.
If ft_cat-fieldname = 'MATNR'.
ft_cat-edit = 'X'.
endif.
In addition, I need that the editable field be obligatory ...anybody knows how I can do that?...I have checked the structure LVC_S_FCAT but I could not find a proper attribute!
As alternative, I am evaluating to send a message to the user making him to fill the editable field but the event DATA_CHANGED of CL_GUI_ALV_GRID does not work if the user does not fill any editable field
I will be grateful for any help

thanks in advance

Post Reply