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

Question Related Dynamic Screen ....

Former Member
0 Likes
460

Dear Sirs/Madams...

Recently i saw a statement in module pool...

CALL SUBSCREEN SCREEN.

by double clicking onto SCREEN ... it doesnt navigate to anywhere....

But when i started debugging it navigates to one screen... now i am confused with this statement...

While debugging standard program i also used to see same like statements which works dynamically.... but in actual program it navigates to nowhere....

Would anyone like explain me ...

<b>"HOWS THIS CAN BE POSSIBLE"</b>...

Waiting for ur explainamatory reply...

Warm Regards,

Nirav Parekh

Dear Sirs/Madams...

Recently i saw a statement in module pool...

CALL SUBSCREEN SCREEN.

by double clicking onto SCREEN ... it doesnt navigate to anywhere....

But when i started debugging it navigates to one screen... now i am confused with this statement...

While debugging standard program i also used to see same like statements which works dynamically.... but in actual program it navigates to nowhere....

Would anyone like explain me ...

<b>"HOWS THIS CAN BE POSSIBLE"</b>...

Waiting for ur explainamatory reply...

Warm Regards,

Nirav Parekh

2 REPLIES 2
Read only

Former Member
0 Likes
443

the syntax is

CALL SUBSCREEN <SCREEN_NO>.

in ur case the SCREEN may be a variable which will hold some value

Read only

Former Member
0 Likes
443

Hi,

ur program may be like this.

see this example.

PROGRAM ZBHTSTRIP.

DATA:OKCODE LIKE SY-UCOMM.

DATA: N1 TYPE I, N2 TYPE I, R1 TYPE I, R2 TYPE I.

<b>DATA SCRNO(4) TYPE N VALUE 2001.</b>

CONTROLS TABS TYPE TABSTRIP.

MODULE USER_COMMAND_1001 INPUT.

CASE OKCODE.

WHEN 'ADD'.

R1 = N1 + N2.

<b> SCRNO = 2001.</b>

TABS-ACTIVETAB = OKCODE.

WHEN 'MUL'.

R2 = N1 * N2.

<b> SCRNO = 2002.</b>

TABS-ACTIVETAB = OKCODE.

WHEN 'BACK'.

SET SCREEN 0.

WHEN 'CLEA'.

CLEAR: N1,N2.

ENDCASE.

ENDMODULE. " USER_COMMAND_1001 INPUT

MODULE STATUS_1001 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

SET TITLEBAR 'TIT1001'.

ENDMODULE. " STATUS_1001 OUTPUT

<u>

FLOW LOGIC:</u>

PROCESS BEFORE OUTPUT.

MODULE STATUS_1001.

CALL SUBSCREEN SUBA INCLUDING 'ZBHTSTRIP' SCRNO.

*

PROCESS AFTER INPUT.

MODULE USER_COMMAND_1001.

  • CALL SUBSCREEN SUBA.

PROCESS BEFORE OUTPUT.

  • MODULE STATUS_2001.

*

PROCESS AFTER INPUT.

  • MODULE USER_COMMAND_2001.

PROCESS BEFORE OUTPUT.

  • MODULE STATUS_2002.

*

PROCESS AFTER INPUT.

  • MODULE USER_COMMAND_2002.

rgds,

bharat.