Application Development 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: 

Table control (Tabstrip)

Former Member
0 Kudos

I'm working on very basic level of Dynpro programming with Tabstrip.

I looked through the sample program

'DEMO_DYNPRO_TABSTRIP_LOCAL' and made my program almost the same with the sample one.

but everytime I tried to execute, it doesn't even work.

CONTROL_NOT_FOUND error occurs

and the place the error occurs is the second line of CALL SUBSCREEN.

There was no problem with executing the first line but why it happen?

Here is the code for reference.

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

CALL SUBSCREEN: SUB1 INCLUDING SY-REPID '0110',

SUB2 INCLUDING SY-REPID '0120', <-Error

SUB3 INCLUDING SY-REPID '0130'.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

The following way of writing code will cause errors.

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

CALL SUBSCREEN: SUB1 INCLUDING SY-REPID '0110',

SUB2 INCLUDING SY-REPID '0120', <-Error

SUB3 INCLUDING SY-REPID '0130'.

Check the following, it will work.

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

CALL SUBSCREEN SUB1 INCLUDING SY-REPID '0110'.

CALL SUBSCREEN SUB2 INCLUDING SY-REPID '0120'.

CALL SUBSCREEN SUB3 INCLUDING SY-REPID '0130'.

And check whether all the screens are active or not.

Did you gave the correct name for sub screen which you gave in screen painter

name of the tabstrip is same in both program and screen painter

Reward if Helpful

Jagadish

4 REPLIES 4

Former Member
0 Kudos

Hi,

The following way of writing code will cause errors.

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

CALL SUBSCREEN: SUB1 INCLUDING SY-REPID '0110',

SUB2 INCLUDING SY-REPID '0120', <-Error

SUB3 INCLUDING SY-REPID '0130'.

Check the following, it will work.

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

CALL SUBSCREEN SUB1 INCLUDING SY-REPID '0110'.

CALL SUBSCREEN SUB2 INCLUDING SY-REPID '0120'.

CALL SUBSCREEN SUB3 INCLUDING SY-REPID '0130'.

And check whether all the screens are active or not.

Did you gave the correct name for sub screen which you gave in screen painter

name of the tabstrip is same in both program and screen painter

Reward if Helpful

Jagadish

Former Member
0 Kudos

Hi Kim,

That is the Not the process for calling a subscreen try out this this will help you.

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

call subscreen sub1 including sy-repid '0110'.

call subscreen sub2 including sy-repid '0120'.

Reward if Helpfull,

Naresh.

prasanth_kasturi
Active Contributor
0 Kudos

hi

check the following

did you gave the correct name for sub screen which you gave in screen painter

name of the tabstrip is same in both program and screen painter

check whether all screens are active or not

its better to mention call subscreen before the module( note : its not an error)

regards

prasanth

Former Member
0 Kudos

I'm sorry to say the problem was not that.

Actually

CALL SUBSCREEN: SUB1 INCLUDING SY-REPID '0110',

SUB2 INCLUDING SY-REPID '0120',

SUB3 INCLUDING SY-REPID '0130'.

works properly.

You will see that once you see

demo program 'DEMO_DYNPRO_TABSTRIP_LOCAL'.

The problem was that the name of table controller on the program was not the same with the name of TABSTRIP on screen painter (element tab of the main screen).

Some how I got the answer and thanks all.