Application Development and Automation 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: 
Read only

Call another Screen from Subscreen

Former Member
0 Likes
774

Hi

How to call next full screen from Subscreen?

I have created custom Subscreen 100 in Module pool program SAPZMMXXXX

and called in MIRO transaction Custom tab.

Now when i click one of the field in custom tab (Subscreen 100),

it should call another screen in full window to display HTML_VIEWER with URL.

My questions is.

1)Should i have to add another dynpro(normal screen 200)inside modulepool SAPZMMXXXX?

and add custom container in that? then code as below

PAI OF 100 screen.

when i double click the KESAI Field in Subscreen 100.

below code gets triggerd.

MODULE CALL_URL INPUT.

GET CURSOR FIELD CURSORFIELD LINE CURSORLINE VALUE CURSORVALUE.

IF NOT CURSORVALUE IS INITIAL.

CASE CURSORFIELD.

WHEN 'WA_TC_LIV-KESAI'.

CALL SCREEN '200' STARTING AT 5 5 ENDING at 40 40.

CALL METHOD html_viewer->show_url

EXPORTING url = url

  • frame = frame

EXCEPTIONS cntl_error = 1.

ENDCASE.

ENDMODULE.

IN screen 200 i have added Custom container.

then in PBO

i wrote below code in status.

IF init is initial.

CREATE OBJECT container

EXPORTING container_name = 'CUSTOM'.

CREATE OBJECT html_viewer

EXPORTING parent = container

EXCEPTIONS cntl_error = 1

cntl_install_error = 2

dp_install_error = 3

dp_error = 4.

IF sy-subrc ne 0.

  • Fehlerbehandlung

ENDIF.

CALL METHOD cl_gui_cfw=>flush

EXCEPTIONS cntl_system_error = 1

cntl_error = 2.

IF sy-subrc ne 0.

  • Fehlerbehandlung

ENDIF.

init = 'X'.

ENDIF.

But when i execute from MIRO transaction its calling SAPLMR1M 200 screen

Not my MOdule pool.

Regards

Hi

How to call next full screen from Subscreen?

I have created custom Subscreen 100 in Module pool program SAPZMMXXXX

and called in MIRO transaction Custom tab.

Now when i click one of the field in custom tab (Subscreen 100),

it should call another screen in full window to display HTML_VIEWER with URL.

My questions is.

1)Should i have to add another dynpro(normal screen 200)inside modulepool SAPZMMXXXX?

and add custom container in that? then code as below

PAI OF 100 screen.

when i double click the KESAI Field in Subscreen 100.

below code gets triggerd.

MODULE CALL_URL INPUT.

GET CURSOR FIELD CURSORFIELD LINE CURSORLINE VALUE CURSORVALUE.

IF NOT CURSORVALUE IS INITIAL.

CASE CURSORFIELD.

WHEN 'WA_TC_LIV-KESAI'.

CALL SCREEN '200' STARTING AT 5 5 ENDING at 40 40.

CALL METHOD html_viewer->show_url

EXPORTING url = url

  • frame = frame

EXCEPTIONS cntl_error = 1.

ENDCASE.

ENDMODULE.

IN screen 200 i have added Custom container.

then in PBO

i wrote below code in status.

IF init is initial.

CREATE OBJECT container

EXPORTING container_name = 'CUSTOM'.

CREATE OBJECT html_viewer

EXPORTING parent = container

EXCEPTIONS cntl_error = 1

cntl_install_error = 2

dp_install_error = 3

dp_error = 4.

IF sy-subrc ne 0.

  • Fehlerbehandlung

ENDIF.

CALL METHOD cl_gui_cfw=>flush

EXCEPTIONS cntl_system_error = 1

cntl_error = 2.

IF sy-subrc ne 0.

  • Fehlerbehandlung

ENDIF.

init = 'X'.

ENDIF.

But when i execute from MIRO transaction its calling SAPLMR1M 200 screen

Not my MOdule pool.

Regards

1 REPLY 1
Read only

Former Member
0 Likes
388

Hi

The problem is the OK-CODE is managed centrally by MIRO, so you should check what happens before triggering PAI of your subscreen: it seems MIRO intercepts the OK-CODE before.

Max