2007 Nov 19 5:03 AM
Thanx in Advance and will giv points for the helpfull answers,
Iam in One transaction say ZVA1. From that if i press GoTo, i will get 5 more transactions and i can go to any trasaction by clicking on it. Now from the child trasaction i want to come back to ZVA1 by clicking back button. Iam writing LEAVE TO SCREEN 0. but it is coming to the SAP initial screen since that program name is different. Ican use CALL TRANSACTION 'ZVA1'. but it will display initial screen of ZVA1 without any data.Please help me out from this situation.
Please suggest me
Thanx in Advance and will giv points for the helpfull answers,
Iam in One transaction say ZVA1. From that if i press GoTo, i will get 5 more transactions and i can go to any trasaction by clicking on it. Now from the child trasaction i want to come back to ZVA1 by clicking back button. Iam writing LEAVE TO SCREEN 0. but it is coming to the SAP initial screen since that program name is different. Ican use CALL TRANSACTION 'ZVA1'. but it will display initial screen of ZVA1 without any data.Please help me out from this situation.
Please suggest me
2007 Nov 19 5:34 AM
Hi Govardhan,
Try using SET SCREEN <scrn no>.
Thanks
Vijay
PLZ reward points if helpful
2007 Nov 19 5:37 AM
HI
use
SETSCREEN (it calls required screen dynamically)
thanks®ards
Nagesh.Paruchuri
2007 Nov 19 5:40 AM
Hi Vijay i can use SET screen but my child transaction is having differnt program and main transaction is with different program. It is not subscreen. Pleasew suggest me
2007 Nov 19 6:28 AM
Can you clarify your call sequence - I read it as:
Start with transaction ZVA1 screen "X"
Press enter
Get list of 5 options in ZVA1 screen "Y"
User selects an option
ABAP in PAI of screen "Y":
"Call Transaction 'Z???'. " ??? value depends on option chosen.
User presses "BACK'.
ABAP in PAI of called transaction
Leave to screen 0.This "leave to screen 0" should simply return you to the line after the "Call transaction" in the PAI of screen "Y" of ZVA1, so set a break-point here and watch where the logic takes you. To stay on screen "Y" your code in screen "Y" needs to do nothing after the "call transaction", and this will then just loop back into the PBO of screen "Y".
Jonathan
2007 Nov 19 7:23 AM
Hi Jonathan,
I will explain you clearly the problem. The scenario u have given is absolutely write . But my point is i used CALL TRANSACTION 'XXX' from ZVA1. but that XXX transaction has different program and not the subscreen of the screen which i used for ZVA1.so from the transaction 'XXX' if i used
1) SET SCREEN 0. Leave screen. it is taking to the SAP initial screen and not to the ZVA1.
2) Call transaction 'ZVA1' . It is giving the initial screen of ZVA1 with no data. But i need the customer no which i entered bfore coming to 'XXX'.
Please suggest me
2007 Nov 19 7:32 AM
I'd suggest you set a break-point before the "Call Transaction" and step through because there should be no reason the overall logic structure doesn't work... but I'd also suggest you use just:
leave to screen 0.
exit.in the PAI of the called transaction to get out of the screen flow. You should then be returned to the line after the "call transaction" in the "Y" screen with global memory still intact i.e. customer number etc still available to you.
Jonathan
2007 Nov 23 7:22 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |