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

Hi Abapers

Former Member
0 Likes
913

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

7 REPLIES 7
Read only

Former Member
0 Likes
870

Hi Govardhan,

Try using SET SCREEN <scrn no>.

Thanks

Vijay

PLZ reward points if helpful

Read only

paruchuri_nagesh
Active Contributor
0 Likes
870

HI

use

SETSCREEN (it calls required screen dynamically)

thanks&regards

Nagesh.Paruchuri

Read only

0 Likes
870

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

Read only

Former Member
0 Likes
870

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

Read only

0 Likes
870

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

Read only

0 Likes
870

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

Read only

Former Member
0 Likes
870

thanx all