‎2008 Dec 09 9:53 AM
Hi,
my main screen number is 1001 and in that screen i have a tabstrip with subscreens 1002,1003,1004,1005,1006.Each tab has an ALV...
When i click on excute button in my main screen 1001 then i need to call all the subscreens and all the ALV's should be displayed.
My coding...
Module user-command 1001.
Case Sy-ucomm.
When 'EXCE'.
CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1002'.
CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1003'.
CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1004'.
CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1005'.
CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1006'.
endcase.
endmodule.
but error is displayed as "," or "ID ... FIELD ..." expected after "SUBSCREEN".
Guys Please let me know if someone knows the solution.
Regards,
Chaithanya.
‎2008 Dec 09 10:01 AM
‎2008 Dec 09 10:06 AM
Hi
You need to call the subscreens this way if it is module pool (screen program)
in PBO the syntax is like this
call subscreen sub including sy-repid dynny
in PAI
call subscreen sub
all the screens you have mentioned must of type SUBSCREEN radio button selected
in top incude declare a variable
DATA : DYNNR TYPE SY-DYNNR value '1002'( this will be called initially)
in a module you can not call subscreen as you did it above
in PAI
module usercommand_1001.
case ok_code
when 'TAB1'
DYNNR = 1001
WHEN 'TAB2'
DYNNR = 1002
etc
endcase.
Best Regards
Ramchander Rao.K
Edited by: Ramchander Krishnamraju on Dec 29, 2008 5:23 AM
‎2008 Dec 09 10:06 AM
‎2008 Dec 26 12:18 PM
Hi,
in PAI we need to declare
Call subscreen <Sub_Screen>.
In PBO
Call subscreen <Sub_screen> including '<PROGRAM IN CAPITALS>' 'MainScreenNumber'.
I think this shld solve your problem.
Regards,
Krishna.