04-06-2006 8:21 AM
Hi,
I need to call a screen from an Include program where I need to pass some
values which will which populate the screen fields.
This is typically concerning the enhancement IWO10018 and the function
modules EXIT_SAPLCOIH_018 & EXIT_SAPLCOIH_019.
Is calling a screen possible from an Include program.IF yes, what is the
procedure ? If No , what could be the alternative solution .
This bcas when I have called the screen from within the FM
EXIT_SAPLCOIH_018, it throws this error:
" Incorrect nesting: Before the statement "MODULE", the structure
introduced by "FUNCTION" must be concluded by "ENDFUNCTION" "
& also
" Incorrect nesting: For the statement "ENDMODULE", there is no open
structure introduced by "MODULE" "
Kindly help
04-06-2006 8:24 AM
Hello,
If you want to call your custom screen, you have to create a Function Module. In FM, create your screen and appropriate code for module pool, and then you can call screen in your Include by calling FM.
Regards,
Naimesh
PS: Reward points, if you find this useful..!
04-06-2006 8:44 AM
How did u call the screen? u can call tcodes which is attached to table control, or dialog. Screen call can happen only for the loaded program.
04-06-2006 2:42 PM
Plz let me know how to declare a subscreen and call it from a function module? I tried to create a subscreen by clicking on the screen type as 'subscreen',and doing all the other necessary for creating a screen,such as making the layout,etc.
But when I called this subscreen from a calling program,I got this error message -
" Screen xxxxxxxx 0200 must not be an Include screen".
Kindly let me know the solution to the above.
Thx...
04-06-2006 2:52 PM
Hello,
What I had did is like,
In, Include : ZXM08U16
CALL FUNCTION 'ZTEST_CHECK'
TABLES
T_ZMM_MIRO = ITAB.
In, FM ZTEST_CHECK
CALL SCREEN 0100 STARTING AT 10 10 ENDING AT 115 22.
100 is normal screen..
Regards,
Naimesh.
Reward points, if it is good..!