04-21-2008 10:13 AM
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'.
04-21-2008 10:17 AM
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
04-21-2008 10:17 AM
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
04-21-2008 10:23 AM
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.
04-21-2008 10:29 AM
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
04-22-2008 2:05 AM
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.