2011 Oct 14 8:16 AM
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
2011 Oct 14 8:32 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |