2007 Sep 28 12:54 PM
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
2007 Sep 28 12:57 PM
2007 Sep 28 12:59 PM
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.
2007 Sep 28 1:04 PM
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?
2007 Sep 28 1:10 PM
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>
2007 Sep 28 1:16 PM
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
2007 Oct 01 11:29 AM
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