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

Calling subscreen in tabstrip

Former Member
0 Likes
809

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.

5 REPLIES 5
Read only

Former Member
0 Likes
760

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.

Read only

0 Likes
760

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?

Read only

Former Member
0 Likes
760

Hi,

Use CALL <b>CUSTOMER-SUBSCREEN</b> SUB1 INCLUDING <PROG_NAME> <SUBSCR NO>..

Regards,

Ram

Reward points if helpful

Read only

Former Member
0 Likes
760

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

Read only

Former Member
0 Likes
760

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^