Application Development 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: 

Navigation from report

Former Member
0 Kudos

Hi,

I can call my transaction from a button on two reports output or by directly giving transaction.

Now my requirement is that how do I go back to the previous report from where the transaction is called or to the selection screen if it is directly called through transaction when presses back button.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

If you are using selection screen then on at selection screen command write below logic.

at selection-screen.

case sy-ucomm.

when 'STRT'.

leave to screen 0.

endcase.

If back having some other function code, please check in dibugger the value of sy-ucomm.

If you are using module pool then IN PAI of both the reports write below logic

Module exit.

Module exit.

case sy-ucomm.

when 'BACK'.

leave to screen 0.

endcase.

endmodule.

Edited by: UMANGmehta on Oct 8, 2010 2:07 PM

6 REPLIES 6

Former Member
0 Kudos

Hi,

If you are using selection screen then on at selection screen command write below logic.

at selection-screen.

case sy-ucomm.

when 'STRT'.

leave to screen 0.

endcase.

If back having some other function code, please check in dibugger the value of sy-ucomm.

If you are using module pool then IN PAI of both the reports write below logic

Module exit.

Module exit.

case sy-ucomm.

when 'BACK'.

leave to screen 0.

endcase.

endmodule.

Edited by: UMANGmehta on Oct 8, 2010 2:07 PM

Former Member
0 Kudos

hi

You can do it by either by using leave to transaction or use set screen no. This will do for you.. Hope this information is useful to you.

Regards

Vinodh

Former Member
0 Kudos

Hi,

In your transaction write

LEAVE TO SCREEN 0

for back button.

Close the threat if aswered.

THanks,

Anmol.

0 Kudos

Hi Anmol,

Please check answers already given, before giving any reply, as the same answer has already been given, please check.

Umang Mehta

0 Kudos

Hi Umang,

I know the threat is aswered, but not clossed, asking user to close the threat, thats it.

Thanks,

Anmol.

0 Kudos

It's ok Anmol.