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: 

Output Screen Problem.

Former Member
0 Kudos

Hi Gurus,

I am Executing a report,once i got the output (which includes various screens),after my final output screen when i press BACK i am going to actual selection screen

here my problem comes,when i press EXECUTE, basically we need to get initial output screen,but here in my case my control is going to one of the output screens not the initial output screen.how to fix this issue.

Thanks & Regards,

Vijaya.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Vijaya,

How you get back to SELECTION SCREEN?

You should use following code;


  SET SCREEN 0.
  LEAVE SCREEN.

I think you used 'CALL SELECTION-SCREEN XXXX' statement.

Regards,

R.Nagarajan.

-


We can -


8 REPLIES 8

Former Member
0 Kudos

Hi Vijaya,

Here are you talking about a simple Interactive list display.

When you execute it must go to your Basic list. You pls check events END-OF-SELECTION and AT LINE-SELECTION written properly.

Happy coding.

/Kiran

Former Member
0 Kudos

Hi Vijaya,

How you get back to SELECTION SCREEN?

You should use following code;


  SET SCREEN 0.
  LEAVE SCREEN.

I think you used 'CALL SELECTION-SCREEN XXXX' statement.

Regards,

R.Nagarajan.

-


We can -


0 Kudos

Nagaranjan,

You havn't catch my problem,

i am have used set screen and going back to my selection screen,

from there when i press EXECUTE i am not getting the initial output screen.

here the control goes to one of the screen included in my output,but not the intial output screen,

Thanks & Regards,

Vijaya.

Former Member
0 Kudos

Hi,

Could anybody plz help me,how to fix this issue?

Regards,

Vijaya.

0 Kudos

When you hit 'BACK' on your last screen, use leave to transaction (your transaction) instead of leaving the screens. This should reset everything. Hope that helps.

Lamont

Former Member
0 Kudos

Hi Gurus,Problem was Solved.

Solution:

In PBO Module (just at starting)

MODULE tab2_change_tc_attr OUTPUT.

IF ( sy-ucomm = 'BACK' AND sy-lsind = 0 ).

PERFORM refresh_internal_data.

Leave to list-processing.

call transaction 'ZBESTFIT'.(Tcode for our Report Program)

ENDIF.

DESCRIBE TABLE it_horder LINES tab2-lines.

ENDMODULE. "TAB2_change_tc_attr OUTPUT

Edited by: vijaya on Oct 16, 2008 2:07 PM

0 Kudos

Hi Vijaya,

I have come across the same situation as you.

can you please clearly explain me.

Thanks,

Kumar

0 Kudos

Hi Kumar,

i Expect your report has multiple screens,

in your last screen which you have designed

in the PBO module (at starting )

you create module say MODULE tab2_change_tc_attr OUTPUT.

in this module you write this logic

IF ( sy-ucomm = 'BACK' AND sy-lsind = 0 ).

PERFORM refresh_internal_data. "(refresh all of ur itabs)

Leave to list-processing.

call transaction 'ZBESTFIT'.(Tcode for our Report Program)"(U should create tcode else will not work.

ENDIF.

ENDMODULE. "TAB2_change_tc_attr OUTPUT

Regards,

Vijaya.