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

module pool

Former Member
0 Likes
493

Hi,

What are the events in modules pool.what is their use.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
469

hi there....

In general there are 4 events in module pool programs.Namely

1)PROCESS BEFORE OUTPUT(PBO)

2)PROCESS AFTER INPUT(PAI)

3)PROCESS ON VALUE REQUEST(POV)

4)PROCESS ON HELP REQUEST(POH).

rest the explainination is given above. i think it should be sufficient for you.

still any queries, do get back.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 7, 2008 4:35 PM

3 REPLIES 3
Read only

Former Member
0 Likes
469

PROCESS BEFORE OUTPUT.

Effect

The event PROCESS BEFORE OUTPUT (PBO) is triggered by the runtime environment before the screen of a dynpro is sent to the presentation layer. After processing the related event block, the contents of the global fields of the ABAP program are transported into screen fields of the same name and then the screen is displayed in the window.

PROCESS AFTER INPUT (PAI)

Effect

The event PROCESS AFTER INPUT (PAI) is triggered by a user action on the user interface, which is associated with a function code. At the PAI event or during the processing of the relevant event block, the contents of the screen fields are transported to the data objects with the same names in the corresponding ABAP program. Before executing the relevant event block, automatic input checks are executed, which are defined either in the system or in the ABAP Dictionary. While the event block and the PBO event block of the next dynpro are processed, the screen of the current dynpro remains in the display, but the user interface is inactive. After the PAI processing is finished, the event PBO of the next dynpro is triggered or, if the current dynpro is the last one in its dynpro sequence, the execution returns to the position from which the dynpro sequence was called.

Note

The processing of the event blocks for PAI of the current and PBO of the next screen together form a dialog step.

PROCESS ON HELP-REQUEST.

PROCESS ON VALUE-REQUEST.

The events PROCESS ON HELP-REQUEST (POH) and PROCESS ON VALUE-REQUEST (POV) are triggered by the request for the field help (F1) or the input help (F4) for a screen element of the screen. In the relevant event block, the MODULE statement is executed, which is assiciated with the FIELD statement for the screen field of the selected screen element. If several FIELD statements exist for the same screen field, only the first is executed. The content of the field specified under FIELD is not automatically passed to the called module in the event block at POH or POV. After POH or POV processing is finished, the system returns to processing the screen displayed on the presentation server, without triggering the PBO event.

Note

The specification of the event blocks at POH and POV overrule the field and input helps defined in the system or in the ABAP Dictionary. They must be specified only if the predefined helps are not sufficient.

Read only

Former Member
0 Likes
470

hi there....

In general there are 4 events in module pool programs.Namely

1)PROCESS BEFORE OUTPUT(PBO)

2)PROCESS AFTER INPUT(PAI)

3)PROCESS ON VALUE REQUEST(POV)

4)PROCESS ON HELP REQUEST(POH).

rest the explainination is given above. i think it should be sufficient for you.

still any queries, do get back.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 7, 2008 4:35 PM

Read only

venkat_o
Active Contributor
0 Likes
469

Srinivas Reddy, Modulpool programs can have 4 events in the flow logic. 1. PROCESS BEFORE OUTPUT. (It is also called PBO). This event is triggered before screen is displaye. 2. PROCESS AFTER INPUT. (It is also called PAI). This event is triggered based on user action on screen. 3. PROCESS ON HELP-REQUEST.(It is also called POH). It is triggered when u press F1 on screen for screen element .Calling Help Texts from Dialog Modules. Use below FM to get Help text

CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'
       EXPORTING
            DOKLANGU                      = SY-LANGU
            DOKTITLE                      = TEXT-002
            CALLED_FOR_TAB                = 'DEMOF1HELP'
            CALLED_FOR_FIELD              = 'FIELD1'.
4. PROCESS ON VALUE-REQUEST.(It is also called POV). It is triggered when we press F4 on screen for the screen element. Use below FM to get f4 help for the field.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
       EXPORTING
            TABNAME           = 'DEMOF4HELP'
            FIELDNAME         = 'CARRIER1'
            DYNPPROG          =  PROGNAME
            DYNPNR            =  DYNNUM
            DYNPROFIELD       = 'CARRIER'.
Regards, Venkat.O