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

Force PBO execution

Former Member
0 Likes
3,719

Hi, is there any way to force the execution of the PBO process??

I've got a screen '2000'. From that screen i'm calling a popup window (4000), but my problem is the following: when i close this pop-up i need the PBO of screen 2000 to be executed, but this PBO is not fired anyway.

How can i do that???

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,316

HI,

We do not have an option to force the PBO, but you can do this way, once you close the Popup screen, then write the next step as CALL SCREEN '2000', so that the PBO will be called again

Regards

Sudheer

3 REPLIES 3
Read only

Former Member
0 Likes
1,317

HI,

We do not have an option to force the PBO, but you can do this way, once you close the Popup screen, then write the next step as CALL SCREEN '2000', so that the PBO will be called again

Regards

Sudheer

Read only

Former Member
0 Likes
1,316

The PBO of screen 2000 will execute right after the PAI of that screen finishes.

Rob

Read only

MarcelloUrbani
Active Contributor
0 Likes
1,316

Fairly old, but since I never remember myself, there's my favorite way ([see here|http://help.sap.com/saphelp_470/helpdata/en/2a/755b94ca5911d299af5c9604c10e27/frameset.htm]):

cl_gui_cfw=>set_new_ok_code( 'Foo' ).

cl_gui_cfw=>flush( ).

This will force a PAI, and the PBO will follow, so pay attention on which okcode you pick.