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

REGARDING SUBSCREEN

Former Member
0 Likes
541

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.

5 REPLIES 5
Read only

Former Member
0 Likes
505

USE CALL SUBSCREEN SUB INCLUDING SY-CPROG '100'

in PBO of 100.

and in PAI.

use

CALL SUBSCREEN SUB

Read only

Former Member
0 Likes
505

hi

in your program u just write screen number in quotes like '100'.

thanx

Read only

Former Member
0 Likes
505

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.

Read only

Former Member
0 Likes
505

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.

Read only

Former Member
0 Likes
505

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.