‎2008 Jun 30 8:44 PM
Hi,
I have to call a subscreen from the PBO of main screen based on certain conditions.
I am unable to use "CALL SUBSCREEN ... INCLUDING ... statement inside an if condition.
Is there any way to do this?
Thanks.
‎2008 Jun 30 8:49 PM
I think you are writing code directly in PBO I mean first screen and not in a module in PBO.. is it?
Create a module in PBO and then inside that module you can call subscreens withing IF condition.
Is this you are looking for?
thnx,
ags.
‎2008 Jun 30 8:56 PM
hi,
thanks for the reply.
i tried it that way too.
it gives an error
"." or "ID ... FIELD ..." expected after "SUBSCREEN".
Below is the code inside a PBO module.
MODULE CHECK_DIV OUTPUT.
data: gv_abboe(1) type c.
SELECT SINGLE ZZPARAMETER1 ZZPARAMETER2 ZZPARAMETER3
FROM ZSD_OSA_PARAM INTO (wa_abboe-ZZPARAMETER1,
wa_abboe-ZZPARAMETER2, wa_abboe-ZZPARAMETER3 )
WHERE ZZPROGNAME = 'MV45AFZZ'
AND ZZPARANAME = 'SALITMADDBSCR'
AND ZZSEQNUM = '00'.
if sy-subrc eq 0.
if vbak-vkorg = wa_abboe-ZZPARAMETER1 and
vbak-VTWEG = wa_abboe-ZZPARAMETER2 and
vbak-spart = wa_abboe-ZZPARAMETER3.
gv_abboe = 'X'.
endif.
endif.
if gv_abboe = 'X'.
CALL SUBSCREEN ZABBOEHDR INCLUDING 'SAPMV45A' '9001'.
endif.
endmodule.
Regards.
‎2008 Jun 30 11:01 PM
Hi there
CALL SUBSCREEN subscreen_area INCLUDING program screen_number.
A similar call should also exist in PAI of screen.It will also call the PAI modules of the subscreen and will transfer data from subscreen to ABAP program.
CALL SUBSCREEN subscreen_area.
check this [link|http://sap.niraj.tripod.com/id40.html]
‎2008 Jul 01 6:18 AM
hi for subscreens ,
in pbo : use call sub_screen_area using sy-repid.
n in pai also use:
call subcreen_area.
revert back for clarifications