cancel
Showing results for 
Search instead for 
Did you mean: 

Developing Tree structure using feeder class

Former Member
0 Kudos

Dear Experts,

Can anyone let me know how to develop tree structure using feeder class?...

Thanks

Katrice

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Katrice,

First you need to build a Default structure like parent key, row_key and etc for that use this code in GET_DEFINITION method.

data ls_field_descr TYPE fpmgb_s_treefield_descr,

   ls_field_descr-name = 'PARENT_KEY'.

   ls_field_descr-column_type = if_fpm_guibb_constants=>gc_guibb_tree_columns-parent_key.

   APPEND ls_field_descr TO et_field_description.

   CLEAR ls_field_descr.

   ls_field_descr-name = 'ROW_KEY'.

   ls_field_descr-column_type = if_fpm_guibb_constants=>gc_guibb_tree_columns-row_key.

   APPEND ls_field_descr TO et_field_description.

   CLEAR ls_field_descr.

   ls_field_descr-name = 'TEXT'.

   ls_field_descr-column_type = if_fpm_guibb_constants=>gc_guibb_tree_columns-text.

   APPEND ls_field_descr TO et_field_description.

   CLEAR ls_field_descr.

   ls_field_descr-name = 'EXPANDED'.

   ls_field_descr-column_type = if_fpm_guibb_constants=>gc_guibb_tree_columns-expanded.

   APPEND ls_field_descr TO et_field_description.

   CLEAR ls_field_descr.

   ls_field_descr-name = 'IS_LEAF'.

   ls_field_descr-column_type = if_fpm_guibb_constants=>gc_guibb_tree_columns-is_leaf.

   APPEND ls_field_descr TO et_field_description.

   CLEAR ls_field_descr.

   ls_field_descr-name = 'CHILDREN_LOADED'.

   ls_field_descr-column_type = if_fpm_guibb_constants=>gc_guibb_tree_columns-child_load.

   APPEND ls_field_descr TO et_field_description.

   CLEAR ls_field_descr.

   ls_field_descr-name = 'IMAGE_SRC'.

   ls_field_descr-column_type = if_fpm_guibb_constants=>gc_guibb_tree_columns-img_src.

   APPEND ls_field_descr TO et_field_description.

also go through Package  APB_FPM_TEST-----class------CL_FPMGB_TREE_TEST_SFLIGHT---this is feeder class where you'll find the table type and structure

check this table type fpmgb_t_tree_test_fcat

you need to create your own structure in which

PARENT_KEY

ROW_KEY

EXPANDED

IS_LEAF

TEXT

CHILDREN_LOADED

IMAGE_SRC

should be mandatory.

you can find some examples from the above package.

Regards

Madhukiran.


Former Member
0 Kudos

Thanks Madhu Kiran

It helps me a lot

Thanks

Katrice

Answers (0)