‎2007 Nov 19 8:01 AM
hi
in module pool programming, what is the need of calling sub screen in both PBO and PAI.
i think it is necessary to call either in PBO or in PAI. but not in both events.
‎2007 Nov 19 8:03 AM
calling control the sub screen. pbo and pai.
see exa program
demo_dynpro_tabstrip_server.
demo_dynpro_tabstrip_local.
‎2007 Nov 19 8:05 AM
Hi Jyothsna,
Its correct that you require to call subscreen in PAI, because after the PAI you will be willing to move further for other sub screens.
Rohit G
‎2007 Nov 19 8:11 AM
Hi,
To include a subscreen screen in the subscreen area of the main screen and call its PBO flow logic, use the following statement in the PBO event of the main screen:
PROCESS BEFORE OUTPUT.
...
CALL SUBSCREEN <area> INCLUDING [<prog>] <dynp>.
...
This statement assigns the subscreen screen with number <dynp> to the subscreen area called <area>. You can also specify the program in which the subscreen screen is defined (optional). If you do not specify the program explicitly, the system looks for the subscreen screen in the same ABAP program as the main program. If it does not find a corresponding subscreen screen, a
runtime error occurs. The PBO flow logic of the subscreen screen is also included at the same point. This can call PBO modules of the ABAP program in which the subscreen screen is defined. At the end of the subscreen PBO, the global fields from the program are passed to any identically-named screen fields in the subscreen screen. The PBO flow logic of the subscreen screen can itself include further subscreens.
The name <area> of the subscreen area must be entered directly without inverted commas. You can specify the names <prog> and <dynp> either as literals or variables. If you use variables, you must declare and fill identically-named variables in the ABAP program. The screen number <dynp> must be 4 characters long. If you do not assign a subscreen screen to an area, it remains empty.
To call the PAI flow logic of the subscreen screen, use the following statement in the PAI flow logic of the main screen:
PROCESS AFTER INPUT.
...
CALL SUBSCREEN <area>.
...
This statement includes the PAI flow logic of the subscreen screen included in the subscreen area <area> in the PBO event. This can call PAI modules of the ABAP program in which the subscreen screen is defined. Data is transported between identically-named fields in the subscreen screen and the ABAP program either when the PAI event is triggered, or at the corresponding FIELD statements in the PAI flow logic of the subscreen screen.
Regards,
Bhaskar
‎2007 Nov 19 8:14 AM
‎2007 Nov 19 8:16 AM
Hi,
Calling Subscreen is necessary in Both PBO and PAI because we call subscreen by using the screen values so it is necessary in PAI and for the screen attributes it is also necessary in PBO also.
regards if useful,
Mahi.
‎2007 Nov 19 11:29 AM
Hi,
You have to use both pai and pbo.
if u do no call subscreen area in pai how can it display the subscreen placed in it?\
PROCESS BEFORE OUTPUT.
...
CALL SUBSCREEN <area> INCLUDING <prog> <dynp>.
...
This statement assigns the subscreen screen with number <dynp> to the subscreen area called <area>. With <prog> you must specify the ABAP program in which the subscreen screen is defined. If it does not find a corresponding subscreen screen, a runtime error occurs. The PBO flow logic of the subscreen screen is also included at the same point. This can call PBO modules of the ABAP program in which the subscreen screen is defined. <b>At the end of the subscreen PBO, the global fields from the program are passed to any identically-named screen fields in the subscreen screen.</b>
PROCESS AFTER INPUT.
...
CALL SUBSCREEN <area>.
...
This statement includes the PAI flow logic of the subscreen screen included in the subscreen area <area> in the PBO event. This can call PAI modules of the ABAP program in which the subscreen screen is defined. Data is transported between identically-named fields in the subscreen screen and the ABAP program either when the PAI event is triggered, or at the corresponding FIELD statements in the PAI flow logic of the subscreen screen.