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: 

How to hide the list screen

Former Member
0 Kudos
355

HI all,

When i am calling another screen from my report program to display the result. I am Able to display the result on the intended screen but when i click on back the back button it is returing to the list screen first and than next to the selection screen.

I dont want to get the list screen in between but only the selection screen should be displayed when i click on the back button.

How to avoid the display of the list screen.

Thanks in advance.

Regards

Satish.

11 REPLIES 11

Former Member
0 Kudos
140

Hi Satish,

I you don't need to keep what the user has entered on the selection screen, then you can use LEAVE TO TRANSACTION ...

You just need to attach a transaction code to your report.

Cheers,

Brad

0 Kudos
140

user entered value also can be retained (with little bit restriction) with the addition of

<b>MEMORY ID pid</b> to the paramters and select-options .

Regards

Raja

Former Member
0 Kudos
140

Hi,

CASE sy-ucomm.

WHEN 'BACK'.

SET SCREEN 0.

ENDCASE.

Or U can give LEAVE TO SCREEN 0.

0 Kudos
140

hi,

I have the same code on my result screen and when i click the back button it comes to the list screen.

So this case wont work.

Please do suggest some other methods of doing it.

Regards

Satish.

0 Kudos
140

Hi,

Could u plz give the part of code where u get this problem. Need to know whether u r calling a transaction?

Try this

MODULE user_command_9100 INPUT.

CASE sy-ucomm.

WHEN 'EXIT' OR 'CANC'.

LEAVE. " to SCREEN 0.

WHEN 'BACK'.

SET SCREEN '0'.

LEAVE SCREEN.

  • This leaves the program but you may need to re-call the

  • transaction to go back to the original screen

WHEN OTHERS.

ENDCASE.

ENDMODULE. " USER_COMMAND_9100 INPUT

Message was edited by: Judith Jessie Selvi

Former Member
0 Kudos
140

Hi Satish,

Have the leave to screen 0 immediately after your CALL SCREEN (or CALL TRANSACTION) statement.

Something like this -


parameters: p_test.

write 'Test'.

at line-selection.
  call screen 100.
  leave to screen 0.

module pai_screen_100.
  if sy-ucomm eq 'BACK'.
    leave to screen 0.
  endif.
endmodule.

Regards,

Anand Mandalika.

0 Kudos
140

clear sy-lsind for 'BACK' command. that will take care.

0 Kudos
140

Hi Vijay,

Did that work for you ? Because before I gave my reply, I checked that out too. <b>sy-lsind</b> seems to have significance only when we deal with the secondary lists.

Regards,

Anand Mandalika.

0 Kudos
140

hi anand,

thanks for pointing out, i should have read the question properly b4 answering. sy-lsind has no relevance when other screens are called. it will be 0(basic list) unless secondary lists are called. Sorry for the confusion.

Rgds..Vijay

Former Member
0 Kudos
140

Try to Submit (Report name) via selection-screen in the pai event for back function code.

Rehan.

0 Kudos
140

Hi Rehan,

I think that is not a nice way to deal with the solution. SUBMIT will create another internal session and cause the program to be re-loaded into the memory.

Regards,

Anand Mandalika.