zbusca exit

Download Zbusca Exit

If you can't read please download the document

Upload: fjaimesilva

Post on 16-Sep-2015

214 views

Category:

Documents


0 download

DESCRIPTION

Zbusca Exit abaP

TRANSCRIPT

*&---------------------------------------------------------------------**& Report ZGERALDO002 **& **&---------------------------------------------------------------------**& **& **&---------------------------------------------------------------------*report zgeraldo002 no standard page heading.*------------------------------------------------------------------** ** Autor: jos Ricardo Pinto Ribeiro - Consultor ABAP/4 SAP R/3 ** Local: Goinia - 25/07/2003 ** ** Este programa pesquisa todas as ampliaes e suas respectivas ** funes para modificaes de acordo com sua necessidade. ** Eventualmente, poder haver funes dentro destas ampliaes ** que no atenda o interessado, pois a pesquisa ser efetuada ** levando-se em conta a classe de desenvolvimento. Sabe-se, ** entretanto, que o R3 prima por considerar cada processo dentro ** uma unica classe de desenvolvimento. ** **------------------------------------------------------------------*tables : tstc, " Cdigos transao SAP tstct, " Textos das transaes tadir, " Catlogo de objetos repository trdir, " Programas com seus atributos tfdir, " Mdulos de funes modsapt, " Textos breves ampliaes SAP modsap, tftit, enlfdir. " Atributos adicionais das funesdata: begin of mylist occurs 50. " Internal table hierarchy include structure snodetext.data: end of mylist.data: begin of tp occurs 10, id, nr(8), text(255), len like textpool-length, end of tp.data: txt_report like dokhl-object. "Report name for documentationdata: f15 type c, w_campo(30).data : t_objetos like tadir occurs 0 with header line, v_classe like tadir-devclass, cursor(30).selection-screen begin of block b0 with frame.selection-screen begin of block b1 with frame.selection-screen begin of block b2 with frame.selection-screen begin of block b3 with frame.parameters : p_tcode like tstc-tcode obligatory default 'VA01', p_langu like sy-langu obligatory default 'PT'.selection-screen end of block b3.selection-screen end of block b2.selection-screen end of block b1.selection-screen end of block b0.select single * from tstc where tcode eq p_tcode.start-of-selection. set pf-status 'TELA'. get cursor field cursor. read textpool sy-repid into tp language sy-langu. loop at tp where id = 'R'. set titlebar '001' with tp-text. exit. endloop. perform monta_tabela. perform build_tree. perform draw_tree.top-of-page. format color col_positive intensified off. write:/(19) 'Codigo Transao - ', 20(20) p_tcode, 45(50) tstct-ttext. skip.at line-selection. check cursor(9) eq 'T_OBJETOS'. set parameter id 'MON' field sy-lisel+1(10). call transaction 'SMOD' and skip first screen.*---------------------------------------------------------------------** FORM build_tree **---------------------------------------------------------------------** ........ **---------------------------------------------------------------------*form build_tree. call function 'RS_TREE_CONSTRUCT' tables nodetab = mylist exceptions tree_failure = 1.endform. "build_tree*---------------------------------------------------------------------** FORM draw_tree **---------------------------------------------------------------------** ........ **---------------------------------------------------------------------*form draw_tree. sy-lsind = 0. call function 'RS_TREE_LIST_DISPLAY' exporting callback_program = 'ZGERALDO002' callback_user_command = 'USER_COMMAND' "'NODE_SELECT' importing f15 = f15.endform. "draw_tree*&---------------------------------------------------------------------**& Form monta_tabela*&---------------------------------------------------------------------** text*----------------------------------------------------------------------** --> p1 text*