Coisinha bobinha mas que toma um tempo quando nao funciona direito......Objeto de Bloqueio com parametro errado pode causar uma dor de cabeca se nao estiver feito a chamada de acordo com a sua necessidade....segue....Atentar parametro _scopeCALL FUNCTION 'ENQUEUE_EZTBCO0029' EXPORTING repid = sy-repid _scope = '1' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3. IF sy-subrc <> 0.* Implement suitable error handling here MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF.segue a fonte: http://scn.sap.com/thread/1974118 / http://scn.sap.com/thread/346975If you have _SCOPE = 1 you can have a COMMIT WORK after each update (or one COMMIT after both updates) and have to DEQUEUE it afterwards; if _SCOPE is 2 or 3 a COMMIT WORK automatically dequeues the lock and in this case you need no DEQUEUE fm before COMMIT WORK.-----------------------------------------------------------------------------------------------------------------------------------------------------------Mais uma opcao.....fiuncao: ENQUEUE_EGMSPPROGRAM* Chama funcao de bloqueio de programa call function 'ENQUEUE_EGMSPPROGRAM' exporting* MODE_GMSPPROGRAM = 'E'* CLIENT = SY-MANDT sponsored_prog = pi_program* X_SPONSORED_PROG = ' '* _SCOPE = '2'* _WAIT = ' '* _COLLECT = ' ' exceptions foreign_lock = 1 system_failure = 2 others = 3. Em bom portugues....gambiarras em geral.....Quer fazer voce mesmo e nao sabe como.....consulte...vale a pena.Instructables - DIY How To Make InstructionsSua auto definicao ja diz tudo....muito legal o site, indico....DEMAIS!!!!"Instructables is a place that lets you explore, document, and share your DIY creations." E necessario aquela alteracao, mas o ambiente nao permite que se faca da maneira correta...por centenas de milhares de motivos ja bem conhecidos....dai voce precisar atualiza aquele campo.....????Como fazer???Eis a solucao dos seus problemas.......SE37 modulo de funcao RSDU_EXEC_SQLSe der Erro....segue o print......abs..... Funcoes que colocam varios alv's no mesmo spool....funciona que e uma beleza.......REUSE_ALV_BLOCK_LIST_INITREUSE_ALV_BLOCK_LIST_APPENDREUSE_ALV_BLOCK_LIST_DISPLAYsegue a font.....link : http://www.saptechnical.com/Tutorials/ALV/BlockedList/DemoPrg.htm Excelente Ferramenta de colaboracao, por um pechincha, e ainda tudo na nuvem.Experimente !!!Google Apps for Workhttps://goo.gl/Ki5bW3 http://help.sap.com/saphelp_glossary/en/Termos/siglas do mundo SAP podem ser consultados no link acima. Pra Nao esquecer nunca mais....ALV OO....e seus eventos.....font: http://www.kerum.pl/infodepot/00006%7Chttp://www.kerum.pl/infodepot/00006PROGRAM zkmalvev.* 1. SE38: create executable program (type 1), use PROGRAM* instead of REPORT because it will have screen and modules** 2. SE80: create screen 0100** 3. Screen Painter: on the screen 0100 create 'Custom control'* CONT1_0100** 4. SE80: for screen 0100 set the variable OK_CODE for the element OK** 5. SE80: create calls to PBO and PAI in the flow logic of screen 0100:** PROCESS BEFORE OUTPUT.* MODULE pbo_0100.* PROCESS AFTER INPUT.* MODULE pai_0100.** 6. SE80: create GUI Status STAT_0100, assign functions EXIT and SAVE* to standard icons, eventually create your own toolbar buttonTYPE-POOLS: slis.CLASS cl_event_receiver DEFINITION DEFERRED.CLASS cl_base_event_receiver DEFINITION DEFERRED.DATA: gt_usr TYPE TABLE OF usr02, gs_usr TYPE usr02.DATA: go_grid TYPE REF TO cl_gui_alv_grid, go_custom_container TYPE REF TO cl_gui_custom_container, go_event_receiver TYPE REF TO cl_event_receiver, go_base_event_receiver TYPE REF TO cl_base_event_receiver, ok_code TYPE sy-ucomm, gt_fcat TYPE lvc_t_fcat.*----------------------------------------------------------------------** CLASS cl_event_receiver DEFINITION*----------------------------------------------------------------------*CLASS cl_event_receiver DEFINITION. PUBLIC SECTION. METHODS handle_right_click " RIGHT_CLICK FOR EVENT right_click OF cl_gui_alv_grid. METHODS handle_left_click_design " LEFT_CLICK_DESIGN FOR EVENT left_click_design OF cl_gui_alv_grid. METHODS handle_move_control " MOVE_CONTROL FOR EVENT move_control OF cl_gui_alv_grid. METHODS handle_size_control " SIZE_CONTROL FOR EVENT size_control OF cl_gui_alv_grid. METHODS handle_left_click_run " LEFT_CLICK_RUN FOR EVENT left_click_run OF cl_gui_alv_grid. METHODS handle_onf1 " ONF1 FOR EVENT onf1 OF cl_gui_alv_grid IMPORTING