Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how i can call transaction into conteiner

igor_vilela
Member
0 Kudos
212

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.

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos
83

The main issue is that you can have only one main dynpro (I don't talk about its possible subscreens) and any number of docking containers (outside the dynpro). But these docking containers must be created from the PBO of the main dynpro.

If it's for SM30, I think it is possible only by a modification of the standard. Note that SM30 already handles docking containers, as you can see when you call a view cluster (SM34, docking container at the left of the dynpro).