2008 Mar 24 11:43 AM
hai all.
iam having one query in alv .
after completing our program we are executing the output.
how can we change the output feild values ?after changing output when ever i press save ,it will automatically should updates the database.how?
help me ..
tanx in advance
hai all.
iam having one query in alv .
after completing our program we are executing the output.
how can we change the output feild values ?after changing output when ever i press save ,it will automatically should updates the database.how?
help me ..
tanx in advance
2008 Mar 24 11:47 AM
Hi..
May be it is useful...
if u use oo alv.. first that output fields to be Editable in Fieldcatlog...
after changing use method GET_CHANGED_VALUES in class CL_GUI_ALV_GRID class..get all the values into internal table, by using this internal table to update data base tables..
if u have any query please find SAP provide programs in SE80 transaction by giving Package as SLIS.
2008 Mar 24 11:55 AM
Hi,
Make the fieldcatalogue option EDIT='X' for all the fields to be edited .
after this you can update the respective table under 'User command' routine.
Kind Regards,
Ravi Sankar.Z
2008 Mar 24 11:59 AM
Hi,
alv lists u cannot edit.only alv grids u can edit.
for editing alv grid,layout-edit = 'X'.(the will allow modifying all the columns)to allow individual columns use wa_fcat-edit = 'X'.append wa_fact to fcat.
rgds,
bharat.