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

in module pool programming

Former Member
0 Likes
630

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.

6 REPLIES 6
Read only

Former Member
0 Likes
578

calling control the sub screen. pbo and pai.

see exa program

demo_dynpro_tabstrip_server.

demo_dynpro_tabstrip_local.

Read only

Former Member
0 Likes
578

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

Read only

Former Member
0 Likes
578

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

Read only

Former Member
0 Likes
578

Hi

It is required to pass information from internal table to table control so we loop it in PBO and to get the updated information back, we loop in PAI and update internal table content.

To get more knowledge on Table controls check these threads -

Hope this helps.

Read only

Former Member
0 Likes
578

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.

Read only

Former Member
0 Likes
578

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.