‎2009 Sep 23 5:55 AM
Hi Friends,
Thanks in Advance..
I am using 'cl_gui_list_tree' Class for generating Tree Model.
Below is my Structure..
--Root
-
Child01
-
Create " Where user will Enter Data
-
Change " Where user will Change the Data
-
Display " Displays the Data
-
Delete " Delete perticular Line Item
-
Child02
-
Create
-
Change
-
Display
-
Delete
So finally i am Having two Child Node under Root.
and Pair of 4 Nodes under each Child.
This structure i have build and executing perfectly...
I build a DB Table ZTABLE and created a Table Maintaince Generator with a T.Code ZTABLE.
Now my requirement is when the User Presses Create Node under Child01 Node...
My Table Maintance Generator will switch over to Create Mode.
If the user Presses Change Node under Child01 Node...
Same Table Maintance Generator should switch over to Change Mode.
Simillarly for the Display & Delete also should work.
is this Possible...
Regards:
Sridhar.J
‎2009 Sep 23 6:06 AM
Perhaps you can achieve what you want by registering events for the tree on double click (see demo program: TLIST_TREE_CONTROL_DEMOCL1) and using func. module VIEW_MAINTENANCE_CALL to call your table maintenance in Create / Change or Display mode.
Thanks,
Aabhas
‎2009 Sep 23 6:06 AM
Perhaps you can achieve what you want by registering events for the tree on double click (see demo program: TLIST_TREE_CONTROL_DEMOCL1) and using func. module VIEW_MAINTENANCE_CALL to call your table maintenance in Create / Change or Display mode.
Thanks,
Aabhas
‎2009 Sep 23 7:37 AM
Hi Aabhas, Thanks for ur answer. will you tell me the functionality of the Function Module VIEW_MAINTENANCE_CALL. Regards: Sridhar.J
‎2009 Sep 23 7:50 AM
Go to SE37 for VIEW_MAINTENANCE_CALL and click display.
Then click "Function Module Documentation" you will find the answer to your question.
Example:
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = gv_action
view_name = gv_viewname
TABLES
dba_sellist = gt_dbasel
EXCEPTIONS
CLIENT_REFERENCE = 1
FOREIGN_LOCK = 2
INVALID_ACTION = 3
NO_CLIENTINDEPENDENT_AUTH = 4
NO_DATABASE_FUNCTION = 5
NO_EDITOR_FUNCTION = 6
NO_SHOW_AUTH = 7
NO_TVDIR_ENTRY = 8
NO_UPD_AUTH = 9
ONLY_SHOW_ALLOWED = 10
SYSTEM_FAILURE = 11
UNKNOWN_FIELD_IN_DBA_SELLIST = 12
VIEW_NOT_FOUND = 13
MAINTENANCE_PROHIBITED = 14
OTHERS = 15.dba_sellist is used to prepopulate the value in the view (generally key fields) before calling it.