‎2007 Mar 19 7:13 AM
Hi
Is every screen will have PBO and PAI ??
In se80 when i checked i can see list of screens on left hand side and i can see module user_command??what is the purpose of it
and when we write pbo and pai?
Asssme i designed 5 screens and i want to integrate.what is the best way and how do we integrate between these screens?
Please help me on this.
Thanks in advance
‎2007 Mar 19 7:25 AM
Hi,
When ever you create a screen by default these events PAI and PBO are created in the flow logic of the screen.
In se80 what you are seeing is the code written in each of these events in the program.
means these events we will see in screen flow logic. we define some Modulees there and double click and the code we write in the program.
PAI is meant ofr all user actions on the screen
PBO is meant for output of the screen elements.
If you create 5 screens, then in each screen there will be attribute NEXT SCREEN, so in that you have to give the next screen number that has to be displayed.
Go through the SAP doc to understand more clearly.
reward if useful.
Regards,
Anji
‎2007 Mar 19 7:22 AM
PBO and PAi are only the events like at line selection and at user command.
in thes events u need to write some modules.
this example will help u more .
REPORT ZBHMOD1 .
DATA:OKCODE1 LIKE SY-UCOMM,
OKCODE2 LIKE SY-UCOMM.
DATA:N1(10) TYPE N,N2(10) TYPE N,RES(12) TYPE N.
MODULE USER_COMMAND_1000 INPUT.
CASE OKCODE1.
WHEN 'NEXT'.
RES = N1 + N2.
SET SCREEN 1001.
WHEN 'CLEA'.
CLEAR:N1,N2.
WHEN 'BACK'.
SET SCREEN '0'.
ENDCASE.
ENDMODULE. " USER_COMMAND_1000 INPUT
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT1'.
ENDMODULE. " STATUS_1000 OUTPUT
MODULE USER_COMMAND_1001 INPUT.
CASE OKCODE2.
WHEN 'BACK'.
SET SCREEN 1000.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 INPUT
MODULE STATUS_1001 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT2'.
ENDMODULE. " STATUS_1001 OUTPUT
FLOW LOGIC:
PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
*
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1000.
PROCESS BEFORE OUTPUT.
MODULE STATUS_1001.
*
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1001.
regards,
bharat.
‎2007 Mar 19 7:23 AM
Next screen be triggered using CALL SCREEN and the number of the screen to be called.
‎2007 Mar 19 7:25 AM
Hi,
When ever you create a screen by default these events PAI and PBO are created in the flow logic of the screen.
In se80 what you are seeing is the code written in each of these events in the program.
means these events we will see in screen flow logic. we define some Modulees there and double click and the code we write in the program.
PAI is meant ofr all user actions on the screen
PBO is meant for output of the screen elements.
If you create 5 screens, then in each screen there will be attribute NEXT SCREEN, so in that you have to give the next screen number that has to be displayed.
Go through the SAP doc to understand more clearly.
reward if useful.
Regards,
Anji
‎2007 Mar 19 7:27 AM
hi
yes every screen has an PAI & PBO...and u remove d astrick and double click on d pai u can write d code with respect to dat screen
vijay