‎2008 Jul 18 6:27 AM
Hi,
I have two screens main screen 100 & subscreen 200. In pbo of screen 100, i am calling the sub screen 200 on to the subscreen area SUB of screen 100 by using statement CALL SUBSCREEN SUB INCLUDING SY-REPID '100'.
And in my report i just wrote CALL SCREEN 100.
But i am getting the error message that PLEASE ENTER THE TRANSACTION CODE.
Plz. help me.
‎2008 Jul 18 8:05 AM
USE CALL SUBSCREEN SUB INCLUDING SY-CPROG '100'
in PBO of 100.
and in PAI.
use
CALL SUBSCREEN SUB
‎2008 Jul 18 8:08 AM
hi
in your program u just write screen number in quotes like '100'.
thanx
‎2008 Jul 18 8:18 AM
Hi,
The statement seemed to be correct. But it is best that you store the value of the system variables in some Global Variables at the beginning of some module in PBO.
Data: sy_repid type sy-repid.
sy_repid = sy-repid.
And now you can call the subscreen using this.
CALL SUBSCREEN SUB INCLUDING SY_REPID '100'.
And don't forget to write the following in the PAI.
CALL SUBSCREEN '100'.
Hope this will resolve your problem.
Thanks,
Samantak.
‎2008 Jul 18 9:15 AM
Hi,
In PBO of screen use 200 instead of 100
CALL SUBSCREEN SUB INCLUDING SY-REPID '200'.
In PAI of screen use
CALL SUBSCREEN SUB.
‎2008 Jul 18 10:40 AM
Hi Vishal,
Use CALL SUBSCREEN SUB INCLUDING SY-REPID '200'.
in PBO of screen 100 since subscreen is defined in screen '200'.
Thanks,
Naveen Kumar.