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

Skip PBO immediately

0 Likes
1,400

Hi,

is it possible to skip the PBO immediately (without processing the rest of the code in the PBO) and jump to the PAI?

Thanks,

Stefan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,163

Dont think so. The PAI is normally triggered only on user input.

Could you explain your requirement in more detail?

Sudha

6 REPLIES 6
Read only

Former Member
0 Likes
1,164

Dont think so. The PAI is normally triggered only on user input.

Could you explain your requirement in more detail?

Sudha

Read only

0 Likes
1,163

Hi Sudha,

here are the details:

My transaction starts with Dynpro 2000.

In the PAI of Dynpro 2000 a FM is called.

This FM calls Dynpro 901.

In the PBO of Dynpro 901 another FM is called.

This FM calls Dynpro 300 (a popup).

If the user clicks 'Cancel' on the popup (Dynpro 300) the FM returns answer = '0'.

Now we return to the PBO of Dynpro 901.

At this point any code in PBO 901 shall be skipped and PAI 901 shall be processed with sy-ucomm = 'BACK' to consistently return to Dynpro 2000.

Regards,

Stefan

Read only

0 Likes
1,163

Can you try coding the remaining portion of PBO 901 in a conditional statement.

Regards,

Read only

0 Likes
1,163

You could try:

IF answer = 0 (when user presses 'Cancel').

SET SCREEN 0.

LEAVE SCREEN.

ENDIF.

Hope this helps.

Sudha

Read only

Former Member
0 Likes
1,163

Hi,

PBO event

if flag = 'X',

module ....

endif.

Regards

amole

Read only

0 Likes
1,163

Hi,

thanks for your answers.

It seems that there is no direct way to skip PBO and jump to PAI. Well, probably this wouldn't be good coding style anyway.

For my special problem I found another solution:

I directly execute the code in PAI901/BACK, which is encapsulated in a form.

Regards,

Stefan