‎2007 Apr 17 6:39 PM
Hello friends
1) I want to display a "ALV report " which should be
a) editable so that i can change the value of a particular field when the list is displayed
b) and that value should be saved in database
Plz help me how i can do this . Plz give me a example ( Code)
Thanks with regards
Points will be awarded
‎2007 Apr 17 6:58 PM
‎2007 Apr 17 6:43 PM
Hi Kamal,
You have to use filedcatlog properties such as "INPUT' on , here i am sending you some expamle programs.
CLEAR lv_fieldcat.
lv_fieldcat-fieldname = 'LIGHT'.
lv_fieldcat-reptext_ddic = text-425.
lv_fieldcat-tabname = 'GT_COMM'.
lv_fieldcat-col_pos = w_position.
lv_fieldcat-outputlen = 5.
lv_fieldcat-icon = 'X'.
lv_FieldCat-input = 'X'.
<b>* lv_fieldcat-edit = 'X'.</b> use this field cat property
Add to the Global Table
APPEND lv_fieldcat TO gt_fieldcat.
ADD 1 TO w_position.
‎2007 Apr 17 6:58 PM
‎2007 Apr 17 7:45 PM
Download the PDF, it gives a step-by-step guide of almost everything in ALV.
hith
Sunil Achyut
‎2007 Apr 17 7:52 PM
Hi,
check the following link:
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_editable.htm
regards,
bhaskar