2006 Sep 28 10:21 AM
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
2006 Sep 28 10:23 AM
Dont think so. The PAI is normally triggered only on user input.
Could you explain your requirement in more detail?
Sudha
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
2006 Sep 28 10:23 AM
Dont think so. The PAI is normally triggered only on user input.
Could you explain your requirement in more detail?
Sudha
2006 Sep 28 10:45 AM
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
2006 Sep 28 10:51 AM
Can you try coding the remaining portion of PBO 901 in a conditional statement.
Regards,
2006 Sep 28 10:57 AM
You could try:
IF answer = 0 (when user presses 'Cancel').
SET SCREEN 0.
LEAVE SCREEN.
ENDIF.
Hope this helps.
Sudha
2006 Sep 28 11:46 AM
2006 Sep 29 2:03 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |