Converter STRING em TABELAS data: lv_txt type string. CALL FUNCTION 'SOTR_SERV_STRING_TO_TABLE' EXPORTING text = lv_txt* FLAG_NO_LINE_BREAKS = 'X' LINE_LENGTH = 95* LANGU = SY-LANGU tables text_tab = t_linhas . Dados principais de um usuario.Usar a funcao BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = wa_neg-zcriador IMPORTING ADDRESS = wa_addr tables return = ti_ret ADDSMTP = ti_smtp.Outras informacoes de Endereco, podem ser capturadas atraves da seguinte funcao: CALL FUNCTION 'ADDR_GET_ARRAY' TABLES address_selection = ti_addr1_sel address_value = ti_addr1_val EXCEPTIONS PARAMETER_ERROR = 1 INTERNAL_ERROR = 2 OTHERS = 3 . --JNilson Oliveira Edita tabela*&---------------------------------------------------------------------**& REPORT ZNI_EDITA_TABELA2.*&*&---------------------------------------------------------------------**&*&*&---------------------------------------------------------------------*REPORT ZNI_EDITA_TABELA2.* Hoje vou mostrar como criar um alv orientado a Objeto sem precisar* criar nada na tela, o segredo disso ta na classe cl_gui_docking_container* que irei mostrar abaixo. Vamos la.* Estruturas e tabelas internas*&---------------------------------------------------------------------*DATA : t_out TYPE TABLE OF sflight, t_fcat TYPE TABLE OF lvc_s_fcat, wa_fcat TYPE lvc_s_fcat, st_layout TYPE lvc_s_layo.* Objetos*&---------------------------------------------------------------------*DATA : o_docking TYPE REF TO cl_gui_docking_container, o_alv TYPE REF TO cl_gui_alv_grid.data: oref_doc TYPE REF TO cl_dd_document, oref_html TYPE REF TO cl_gui_html_viewer.data: ok_code type syucomm.** Tabelas ALVDATA: it_fieldcat TYPE lvc_t_fcat.DATA: it_fieldcat_aux TYPE lvc_t_fcat.DATA: wa_fieldcat TYPE lvc_s_fcat.DATA: wa_fieldcat_aux TYPE lvc_s_fcat.DATA: it_interface TYPE REF TO data, it_interface_aux TYPE REF TO data.DATA: it_bkp TYPE REF TO data, it_bkp_aux TYPE REF TO data.DATA: it_del TYPE REF TO data, it_del_aux TYPE REF TO data.* <fs_data> p/ser a tabela dinamicaFIELD-SYMBOLS: <fs_data> TYPE STANDARD TABLE, <fs_bkp> TYPE STANDARD TABLE, <fs_del> TYPE STANDARD TABLE, <fs_data_aux> TYPE STANDARD TABLE,*work-area p/ trabalhar os dados antes de inclui <fs_data> <wa_reg> TYPE ANY, <wa_bkp> TYPE ANY, <wa_del> TYPE ANY, <wa_interface> TYPE any, <wa_interface_aux> TYPE any,*campo que recebera dados e apontara p/ os campos dinamicos da wa. <fs_campo> TYPE any.data: v_campo type c LENGTH 50 , v_del type c, v_erro type c, v_idx type i, v_tit type sytitle, v_titbkp type sytitle.* Campos chavestypes: begin of ty_chaves, campo type c LENGTH 30, end of ty_chaves.data: t_chaves type table of ty_chaves, wa_chaves type ty_chaves.** Tela de selecao* Dados necessariosSELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE t_qdr1.* Nome da tabela SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN POSITION 3. SELECTION-SCREEN COMMENT 3(40) t_tab. PARAMETERS: p_tab TYPE DD02L-TABNAME MEMORY ID AA2 OBLIGATORY. SELECTION-SCREEN END OF LINE.* apenas visualizacao SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN POSITION 3. PARAMETERS: p_ver TYPE c as CHECKBOX DEFAULT 'X'. SELECTION-SCREEN COMMENT 5(40) t_ver. SELECTION-SCREEN END OF LINE.SELECTION-SCREEN END OF BLOCK a1.* InicializacaoINITIALIZATION. t_qdr1 = 'Dados necessarios'. t_tab = 'Nome da tabela'. t_ver = 'Apenas visualizacao'.* Inicio do processo*&---------------------------------------------------------------------*START-OF-SELECTION. v_titbkp = sy-title. v_tit = sy-title. check p_tab(1) = 'Z' or p_tab(1) = 'Y' or p_tab(6) = '/FNTY/' .* Captura a estrutura da tabela PERFORM f_busca_fieldcat USING p_tab.* Cria uma tabela interna com a estrutura da tabela informada PERFORM f_cria_tab_dinamica.* Busca dados da tabela perform f_busca_dados.* Chamada da tela que ira mostrar o ALV CALL SCREEN 9999.*&---------------------------------------------------------------------**& Form F_FCAT_OO*&---------------------------------------------------------------------*FORM f_fcat_oo . DATA : lt_fcat TYPE TABLE OF slis_fieldcat_alv.* Criacao do catalogo de campo para o modo Estruturado. CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = sy-repid i_structure_name = p_tab CHANGING ct_fieldcat = lt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3. IF sy-subrc IS INITIAL.* Conversao Estruturado x OO CALL FUNCTION 'LVC_TRANSFER_FROM_SLIS' EXPORTING it_fieldcat_alv =