2006 Nov 10 6:23 AM
Hi,
I am trying to include a subscreen in a tabstrip. I have created the subscreen area in the layout within the tabstrip, defined the subscreens, and included the following code in the PBO of the main screen.
CALL SUBSCREEN SUB1 INCLUDING <PROG_NAME> <SUBSCR NO>
It is giving me error as "." or "ID...FIELD" EXPECTED AFTER "SUBSCREEN" .
Please help.
2006 Nov 10 6:26 AM
Hi Abhi, Welcome to SDN,
If you are giving the program name, enclose it withing single codes('SAPMZxxx') or if the subscreen program is same as the main program use SY-CPROG and SY-DYNNR. Hope this solves your problem.
Cheers...
Santosh.
P.S. Mark usefull Answers.
2006 Nov 10 6:46 AM
Hi Santosh,
I am still getting the error. I think there is some problem with SUB1 which I have defined as subscreen area name in the layout. Is SUB1 required to be defined in the ABAP program as well?
2006 Nov 10 6:27 AM
Hi,
Use CALL <b>CUSTOMER-SUBSCREEN</b> SUB1 INCLUDING <PROG_NAME> <SUBSCR NO>..
Regards,
Ram
Reward points if helpful
2006 Nov 10 6:42 AM
Hi Abhi,
Try this logic in your flow diagram,
PROCESS BEFORE OUTPUT.
MODULE prepare_tabstrip.
CALL SUBSCREEN sub1 INCLUDING sy-repid sy-dynnr.
PROCESS AFTER INPUT.
CALL SUBSCREEN sub1.
MODULE handle_user_command.
This worked for me.
Thanks,
Prashanth
2006 Nov 10 10:10 AM
hi
good
go through this link, which ll give you detail idea about the adding of subscreen in a table control.
http://help.sap.com/saphelp_nw2004s/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm
thanks
mrutyun^