Application Development 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: 

Subscreen

Former Member
0 Kudos

hiiii,

how to call a subscreen on condition. actually i need this subscreen to be displayed only if ITAB is initial.

Please let me know.

Mahesh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi mahesh.

In PBO

call subscreen <subsscreen area> including <program> <screen>.

In PAI

call subscreen <subscreenarea>.

here we have to use call subscreen in both pai and pbo otherwise it shows error. Based on ur condition u can call it.

Rgds.,

subash

9 REPLIES 9

Former Member
0 Kudos

Hi,

If itab[] is initial.

call subscreen area.

endif.

Check this link for calling subscreen-

http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm

0 Kudos

hi,

i have to check this condition in PBO of a sub screen and call the screen but when i do as per you suggestion its not taking the CALL SUBSCREEN its giving error to make it call screen and when i do that and process it will give error

plz help me

0 Kudos

Hi,

You have to call it both in PBO and PAI.

Just check the documentation in my previous post.

Former Member
0 Kudos

Hi Mahesh

call subscreen<sub name> in program....

write in PBO or in PAI as per ur requirement.

0 Kudos

hi,

i have to check this condition in PBO of a sub screen and call the screen but when i do as per you suggestion its not taking the CALL SUBSCREEN its giving error to make it call screen and when i do that and process it will give error

plz help me

Former Member
0 Kudos

hi mahesh.

In PBO

call subscreen <subsscreen area> including <program> <screen>.

In PAI

call subscreen <subscreenarea>.

here we have to use call subscreen in both pai and pbo otherwise it shows error. Based on ur condition u can call it.

Rgds.,

subash

0 Kudos

Hi all,

If we do not use

CALL SUBSCREEN <SUB_AREA>

in PAI

the PAI part of subcreen is not processed in PAI of main module pool screen

and no error comes at all!!!

Edited by: Amit Gupta on Sep 30, 2008 3:17 PM

Former Member
0 Kudos

Hi,

Do it like this.

CALL SUBSCREEN <SUB_AREA> INCLUDING <PROGRAM_NAME> G_DYNNR.

here G_DYNNR is a variable having subscreen number to be called.

In the PBO of your modue pool

code:

if itab[] is initial.

G_DYNNR = <subscreen no>

else.

clear G_DYNNR.

endif.

Former Member
0 Kudos

thanks all