Skip to Content
0
Jun 05, 2010 at 03:52 AM

how i can call transaction into conteiner

84 Views

hi,

i hope you can help me,

i want call one transaction into the conteiner.

i try everyting but dont working

REPORT Z_IGOR_TESTE2.

DATA: G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.

----


  • CLASS create_report DEFINITION

----


----


CLASS create_report DEFINITION INHERITING FROM cl_gui_alv_grid.

PUBLIC SECTION.

METHODS:

call_transactio.

ENDCLASS. "create_report DEFINITION

----


  • CLASS create_report IMPLEMENTATION

----


----


CLASS create_report IMPLEMENTATION .

METHOD call_transactio.

call transaction 'SM30'.

ENDMETHOD. "

ENDCLASS. "create_report IMPLEMENTATION

START-OF-SELECTION.

call screen 100.

&----


*& Module STATUS_0100 OUTPUT

&----


  • text

----


module STATUS_0100 output.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

data: initial type c,

sm30 type string VALUE 'SM30',

teste TYPE REF TO create_report.

if initial NE 'X'.

CREATE OBJECT G_CUSTOM_CONTAINER

EXPORTING CONTAINER_NAME = 'CC'.

CREATE OBJECT teste

EXPORTING I_PARENT = G_CUSTOM_CONTAINER.

*SET HANDLER: create_report2=>call_transaction FOR create_report.

CALL METHOD teste->call_transactio.

INITIAL = 'X'.

endif.

endmodule.