10-20-2007 2:59 PM
hi
i create an alv tree and want to make the tree node editable, how to do that? i have check the sap example such as 'SAPCOLUMN_TREE_CONTROL_DEMO
' and 'BCALV_TREE*' but found no solution.
if set lvc_s_fcat-checkbox = 'X' lvc_s_fcat-edit = 'X' ,it can work, the checkbox can be edited,but if the field is a text ,even i set lvc_s_fcat-edit = 'X' ,it doesn't work .
10-22-2007 1:53 PM
hi
good
try this
DATA WA_LAYOUT TYPE LVC_S_LAYO.
WA_LAYOUT-EDIT = 'X'.
WA_LAYOUT-GRID_TITLE = 'GRID CONTAINER FOR MATERIAL DISPLAY - EDITING'.
WA_LAYOUT-NO_TOOLBAR = 'X'.
WA_LAYOUT-ZEBRA = 'X'.
WA_LAYOUT-SEL_MODE ='A'.
CALL METHOD MAIN_ALV->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = WA_LAYOUT
CHANGING
IT_OUTTAB = IT_MATL
IT_FIELDCATALOG = IT_FCAT.
reward point if helpful.
thanks
mrutyun^
10-22-2007 6:20 AM
hi liu,
i am sorry i dont know if this helps or not but... u cannot make changes to text elements in ALV tree... changes to check boxes are allowed but (dynamic)text label changes aren't allowed..
regards,
sagar.
10-22-2007 1:53 PM
hi
good
try this
DATA WA_LAYOUT TYPE LVC_S_LAYO.
WA_LAYOUT-EDIT = 'X'.
WA_LAYOUT-GRID_TITLE = 'GRID CONTAINER FOR MATERIAL DISPLAY - EDITING'.
WA_LAYOUT-NO_TOOLBAR = 'X'.
WA_LAYOUT-ZEBRA = 'X'.
WA_LAYOUT-SEL_MODE ='A'.
CALL METHOD MAIN_ALV->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = WA_LAYOUT
CHANGING
IT_OUTTAB = IT_MATL
IT_FIELDCATALOG = IT_FCAT.
reward point if helpful.
thanks
mrutyun^