Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to make a alv tree item editable?

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 .

Former Member
Former Member replied

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^

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question