09-30-2008 1:49 PM
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
09-30-2008 2:05 PM
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
09-30-2008 1:56 PM
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
09-30-2008 2:01 PM
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
09-30-2008 2:06 PM
Hi,
You have to call it both in PBO and PAI.
Just check the documentation in my previous post.
09-30-2008 1:58 PM
Hi Mahesh
call subscreen<sub name> in program....
write in PBO or in PAI as per ur requirement.
09-30-2008 2:01 PM
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
09-30-2008 2:05 PM
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
09-30-2008 2:07 PM
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
09-30-2008 2:06 PM
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.
09-08-2009 12:41 PM