"
"
"
"
"
"
data:
begin of tp occurs 10,
id,
nr(8),
text(255),
len
like textpool-length,
end of tp.
data: txt_report like dokhl-object.
"build_tree
*---------------------------------------------------------------------*
*
FORM draw_tree
*
*---------------------------------------------------------------------*
*
........
*
*---------------------------------------------------------------------*
form draw_tree.
sy-lsind = 0.
"draw_tree
*&---------------------------------------------------------------------*
*&
Form monta_tabela
*&---------------------------------------------------------------------*
*
text
*----------------------------------------------------------------------*
* --> p1
text
* <-- p2
text
*----------------------------------------------------------------------*
form monta_tabela.
if sy-subrc eq 0.
select single * from tadir
where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move tadir-devclass to v_classe.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir
where pname = tstc-pgmna.
select single * from enlfdir
where funcname = tfdir-funcname.
select single * from tadir
where pgmid
= 'R3TR'
and object = 'FUGR'
and obj_name = enlfdir-area.
move : tadir-devclass to v_classe.
endif.
endif.
select * from tadir into table t_objetos
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_classe.
select single *
from tstct
where sprsl = p_langu
and tcode = p_tcode.
if not t_objetos[] is initial.
mylist-name = 'Ampliaes'.
mylist-color = 6.
mylist-intensiv = '1'.
mylist-text = 'Raiz'.
mylist-tlength = 10.
mylist-tlevel = 1.
mylist-tcolor = 6.
mylist-tintensiv = '1'.
mylist-text1 = 'Ampliaes'.
mylist-tlength1 = 30.
mylist-tcolor1 = 6.
mylist-tintensiv1 = '2'.
append mylist.
loop at t_objetos.
select single * from modsapt
where sprsl = p_langu
and name = t_objetos-obj_name.
mylist-name = 'Ampliaes'.
mylist-color = 4.
mylist-intensiv = '1'.
mylist-text = t_objetos-obj_name.
mylist-tlength = 10.
mylist-tlevel = 2.
mylist-tcolor = 4.
mylist-tintensiv = '1'.
mylist-text1 = modsapt-modtext.
mylist-tlength1 = 50.
mylist-tcolor1 = 4.
mylist-tintensiv1 = '2'.
append mylist.
select * from modsap
where name = t_objetos-obj_name
and typ = 'E'.
select single * from tftit
where spras
= 'PT'
and
funcname = modsap-member.
if sy-subrc ne 0.
tftit-stext = space.
endif.
mylist-name = 'Funes'.
mylist-color = 7.
mylist-intensiv = '1'.
mylist-text = modsap-member.
mylist-tlength = 30.
mylist-tlevel = 3.
mylist-tcolor = 7.
mylist-tintensiv = '1'.
mylist-text1 = tftit-stext.
mylist-tlength1 = 50.
mylist-tcolor1 = 7.
mylist-tintensiv1 = '2'.
append mylist.
endselect.
endloop.
else.
format color col_negative intensified on.
write:/(95) 'No existe ampliaes para esta transao'.
endif.
else.
" monta_tabela
*---------------------------------------------------------------------*
*
FORM node_select
*
*---------------------------------------------------------------------*
form user_command tables knoten structure seucomm
using command
changing exit
list_refresh.
case command.
when 'TRSL'.
"F2 wurde gedrckt
if knoten-name = 'Ampliaes'.
set parameter id 'MON' field knoten-text.
call transaction 'SMOD' and skip first screen.
exit = ' '.
endif.
if knoten-name = 'Funes'.
set parameter id 'LIB' field knoten-text.
call transaction 'SE37'.
exit = ' '.
endif.
endcase.
list_refresh = 'X'.
endform.
"user_command