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

Subscreen

Former Member
0 Likes
965

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
Read only

Former Member
0 Likes
918

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
Read only

Former Member
0 Likes
918

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

Read only

0 Likes
918

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

Read only

0 Likes
918

Hi,

You have to call it both in PBO and PAI.

Just check the documentation in my previous post.

Read only

Former Member
0 Likes
918

Hi Mahesh

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

write in PBO or in PAI as per ur requirement.

Read only

0 Likes
918

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

Read only

Former Member
0 Likes
919

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

Read only

0 Likes
918

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

Read only

Former Member
0 Likes
918

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.

Read only

Former Member
0 Likes
918

thanks all