‎2006 Jun 01 9:49 AM
hi all
can anyone just help me describing the complete flow in module pool programming
‎2006 Jun 01 9:52 AM
Hi
Please check out this link for dialog or module pool programming
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
Please awards points if helpful
‎2006 Jun 01 10:03 AM
Hi,
Please check transaction ABAPDOCU for sample
examples for dialog programing.
Dialog program consists of
1) process before output-> Event called before
screen is displayed
similar to at selection-
screen output in report
2) Process before input -> Event perform user
action Ex Buton click
3 ) Process on help request-> F1 help
4 process on value request: F4 help
Regards,
Amole
‎2006 Jun 01 10:06 AM
hi
there are four important ecents in modulepool programming
PROCESS BEFOR OUTPUT(PBO)
PROCESS AFTER INPUT(PAI)
PROCESS ON HELP REQUEST
PROCESS ON VALUE REQUEST
when you execute the modulepool program with the help of the transaction
first it will go to the PBO of the first screen then screen will be displayed.
if you press enter or handle any button in that screen it will go to the pai of the screen.
from there if you call another screen it goes to the PBO of the next screen. like that the process repeats.
if there is no next screen it again goes to the same screen pbo.
‎2006 Jun 01 10:06 AM
Hi,
first of all, you have to create a program type module pool program. this can be done in SE80 transaction.
There the program will have 4 includes:
TOP include is use for the declaration of the variables and internal tables.
IN include includes the code written in PAI event.
OO include has the code in PBO event of the screen.
F include for function modules.
These includes improve the modularity of the program.
Once you have create the program, you have to create a screen. There, you have to create the layout for the screen, activate it and in the flow logic you have to write the logic in PBO and PAI event in different modules (IN and OO). After writing the logic, we can create a transaction for running the program.
When a program is executed, first the PBO event of the screen is executed, from there(the flow logic of the screen), the control moves on to the module pool program(different modules in PBO event). Then, when the user does any action, clicks any buttonfor example, then the control goes to the PAI event(same way from the flow logic to the different modules in the module pool program).
This way, the program is executed.
Regards,
Aswin
‎2006 Jun 01 10:11 AM
Screen Flow Logic
You can go to this screen either by
Initial screen of Screen painter  Flow logic
Or
From Screen attribute screen  Flow logic
When transaction is executed, the screen is displayed, user enters few fields, selects few functions. Later the screen is processed and processing of screen is done by flow logic. The events that are associated with screen are as follows:
Process before Output (PBO)
Process after input (PAI)
Process on value request (POV)
Process on help request (POH)
The system automatically displays two very important events or modules in flow logic i.e. PAI and PBO
PBO event
This event is triggered before the screen is displayed. The processing of screen before the display of screen is done in this event. For example, filling in default values in the screen fields.
PAI event
This event is responsible for processing of screen after the user enters the data and clicks the pushbutton. The processing of screen can include displaying another screen, or just displaying list or quitting the transaction itself and many more things. Usually it is displaying another screen. These operations can be carried out in the PAI event. OKCODE plays an important role in this operation.
POV event
Process on value request is triggered when the user clicks F4 key. You can handle this event when the user presses F4 key by writing code for the same in module pool program. Normally when the user presses F4, list of possible values is displayed. The standard list produced by system is adequate for applications you develop yourself. However, you can also have the option of setting up your own documentation and lists of possible values that are more detailed.
POH event
Normally when the user places the cursor on the field and presses F1 function key, the system displays its own Help for that particular field. You can add your own functionality to the Help button by writing code for the same in the POH event.
<b>Please refer the above and award points if found helpful</b>
‎2006 Jun 01 10:14 AM
‎2006 Jun 01 10:27 AM
Hi,
Check This LInk,
DIALOG Programming
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
Mark Helpfull Answers
Regards
‎2006 Jun 01 10:30 AM
Hi,
Refer the links below :
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sapgenie.com/abap/example_code.htm
http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
http://www.allsaplinks.com/dialog_programming.html
http://www.sapbrain.com/TUTORIALS/default.html
http://www.sappoint.com/abap/spmp.pdf
<b>Reward points if it helps.</b>
‎2006 Jun 02 7:40 AM
HI
I DONT FIND ANY PROCESS ON HELP REQUEST OR PROCESS ON VALUE REQUEST IS THT A CUSTOM CREATING PROCESS?
‎2006 Jun 02 7:59 AM
Hi
In a screen there are 4 process:
PBO: Process Before Output
PAI: Process After Input
POV: Process On Value-Request
POH: Process On Help-Request
Only PBO and PAI are mandataries.
So after creating a dynpro, system inserts them in the flow directly.
The POV and POH manage the Search help (F4 event) and Information (F1 help) and you can use them only if it needs to manage by abap code.
Max