Application Development 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: 

Module pool

Former Member
0 Kudos

Hello all,

Is there any characteristic differences in showing an error message in PBO and PAI.

Please help.

Rakesh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

we have to give the error messages in PAI only.If u give the error messages in PBO then it wont get triggered.

9 REPLIES 9

Former Member
0 Kudos

hi,

we have to give the error messages in PAI only.If u give the error messages in PBO then it wont get triggered.

Former Member
0 Kudos

Hi

We will do all field validations in PAI only and trigger the messages based on the validation in PAI itself

So trigger them in PAI not in PBO.

Reward points for useful Answers

Regards

Anji

0 Kudos

Hello Anji ,

What will happen if we try to issue an error message in PBO.

Rakesh.

0 Kudos

Hi

IN PBO it will not fire and trigger

The name PROCESS BEFORE OUTPUT itself means that this processed before screen display, so without screen display where it will trigger

so it will not be displayed.

Reward points for useful Answers

Regards

Anji

0 Kudos

Thank you anji for your detailed answer.

rakesh.

Former Member
0 Kudos

Hi ,

If you give an error message then subsequent code including the PBO event will not get excecuted untill the error message condition fails.So for this what you can do is,give the Information message instead of error and clear your internal table of the table control.This will solve your problem.

Regards,

Priyanka.

Former Member
0 Kudos

Hi,

Messages should be displayed only after some user Actions, so always do such work on PAI.

Former Member
0 Kudos

hi

u can write it in PBO also.. but we ususlly give PF status at PBO. in PAI we do all validations.'

so it will be very much accurate if u write it in PAI itself..

lets say i am writing codings for PF status like SAVE BACK etc in PBO, then i can write like

if OK_CODE = 'SAVE'.

insert ...

message ....

endif.

so according to yr need u can decide..

reward if useful.

Former Member
0 Kudos

Hi Rakesh,

Mostly We can Trigger in PAI, but nobody use PBO for Debugging,

PAI

*****

All the validation process are done in PAI only, in PAI we will move all the screen values to internal table.

PBO

******

All the screen purpose is doing in PBO only for example Screen Enable and

Disable, The PBO is used to move Internal table data to Screen.

IF USEFULL REWARD