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: 

Need to process PBO and PAI without waiting for user command?

Former Member
0 Kudos
718

Hi all,

I Module pool, the flow would be PBO >> PAI >> PBO >> PAI. After every PBO sap will wait for user input (waits for user to press some button..etc). I dont want to wait after PBO. Immediately after the PBO logic is executed PAI logic should start without waiting for user input.

I have tried using the below method at the end of PBO, but this did not work.

CALL METHOD cl_gui_cfw=>set_new_ok_code

EXPORTING

new_code = 'DUMMY'.

Can anyone tell me how to execute PBO and PAI continuously.

Regards,

Gautham

6 REPLIES 6

Former Member
0 Kudos
154

there is an option

suppress

use it in PBO

Former Member
0 Kudos
154

hi goutham.

i thimk we can't do y means in PAI screen it will work only when user will occur some events. then only it will execute that particular user-command..

<PAI>

case sy-ucomm

when '<user-command>'.

.

.

endcase.

regards

baskaran.

Former Member
0 Kudos
154

Dont you want a screen to be displayed ?

If no..why not just make a normal executable program.

If yes, what will you do on that screen?

varma_narayana
Active Contributor
0 Kudos
154

hI Goutham..

In the PBO module of that Screen use this Statement.

SUPPRESS DIALOG.

This statement process the PBO and PAI without displaying the Screen to user.

<b>reward if Helpful.</b>

Former Member
0 Kudos
154

Hi, Thanks for the response.

I have even tried using SUPPRESS DIALOG, but it will run the dialog in background. I want it in foreground.

I want the screen to be there. It is based on Tcode. Like for my module program there are 2 transaction say T1 and T2.

If i execute T1 then it should work as a normal dialog (wait for user input) and user will enter the required fields and execute the program.

When i execute T2 it should not wait for user Input, i will be populating the required fields in PBO . Hope everyone understood what i said.

Can we forcefully execute PAI. I tried using Suppress dialog. It didnot serve my purpose.

Regards,

Gautham

0 Kudos
154

Have you already solved this problem ?

If not, how about trying this ;

T1 - your normal process.

T2 - write an executable program which has a BDC of transaction T1.

will it help ?

Regards,

Srihari