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

Call transaction

Former Member
0 Likes
807

Hi,

I have designed two screens using screen painter one is input screen and another is output screen. I have created transaction for this. My transaction code name is ‘ABC’ if I type ABC then the system first display input screen if I give values and if I press execute then system is displaying second screen. My requirement is if I press back button on the second screen I want to come out of the total transaction and I want to go to first screen with in single step. I mean if I press back button on the second screen instead of first screen directly I want to come out and I want to come to first screen in single shot. I required this because of some clear and refresh problems. For this I have written following logic.

When ‘BACK’.

Set screen 0.

Leave program.

Call transaction ‘ABC’.

But the above piece code Is not working. Please help me how to do the above requirement. Please help me I will give points.

Thanks a lot in advance.

7 REPLIES 7
Read only

Former Member
0 Likes
776

Hi,

try this..

When ‘BACK’.

leave to transaction ‘ABC’.

Thanks

Naren

Read only

amit_khare
Active Contributor
0 Likes
776

When ‘BACK’.

LEAVE to LIST-PROCESSING.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
776

Hi,

U need not do Set Screen 0 and Leave program and then call transaction.

U can simply write on BACK command processing,

Leave to screen <previous screen> or i think even Leave to screen 0 will work.

Try it and let us know.

Regards,

Himanshu

Read only

0 Likes
776

Hi Himanashu,

thanks for your reply. But I don’t want to go to first screen directly because of some clear and refresh problem that system is doing internally. I want to go back to sap easy access and I want to call transaction ‘ABC’ in single shot.

Read only

0 Likes
776

Hi,

That means u require to call the transaction ABC from starting on click of Back button.

If yes , then use LEAVE TO TRANSACTION 'ABC'. This will call the transaction from the beginning clearing and refreshing all the variables used.

Regards,

Himanshu

Read only

0 Likes
776

Thanks a lot.

Read only

Former Member
0 Likes
776

hi,

u can do it many ways

one small doubt for calling second screen from first screen wat statement u used

set screen or call screen

if u used call screen it will automatically comes back to first screen when u click back on second screen. so use set screen in pbo of 1st screen for calling second screen.

n try like dis.

in pbo of 1st screen.

when 'BACK'.

leave to list-processing.

or

leave to screen 0.

or

leave program.

or

exit.

..............

.............

if helpful reward some points.

with regards,

Suresh ALuri.