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: 

LEAVE TO LIST-PROCESSING Statment

tharaka_fernando
Contributor
0 Kudos

Dear All Gurus,

I'm using the above statement "LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0 " to output a write statement of my report .

Its working fine. But when the output is generated , System standard "BACK" , "EXIT" , "CANCEL" buttons are disabled. I cant exit from the report.

How do I anble this ? Plz help

might be a basic requirement but I can't figure it out.

Thanks a lot

7 REPLIES 7

Former Member
0 Kudos

Hi

can you please paste your code where exactly you are writing leave to list processing.

its not clear here.

I have used leave to list processing while displaying an error message and wants to stay on that screen for editing.

Like in case of validating some values at input screen.

If sy-subrc <> 0.

message 'data is not valid' type 'S' display like 'E'.

leave to list processing.

endif.

this code will display my error message as error and will keep me on that screen for inputing the correct values.

Leave to screen 0 is basically written in PAI of the screen on click of back or cancel button

It means go back to the previous sceen from where the current screen has been called.

Thanks

Lalit

Former Member
0 Kudos

Hi,

I think it is a problem with pf-status ....

make the line commented for SET pf-status .... I think it will work.

Regards,

Amitava

Former Member
0 Kudos

Hi,

Have you set the GUI status for that screen?

Regards,

Sakshi jain

kesavadas_thekkillath
Active Contributor

Place these statements after leave to list ...


SET PF-STATUS space.
 SUPPRESS DIALOG.

Former Member
0 Kudos

Hi,

You can leave list processing in two ways:

By leaving the basic list using the Back, Exit, or Cancel function.

By using the following statement during list processing:

LEAVE LIST-PROCESSING.

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

can be used to end the current screen sequence and return to the point from which it had originally been called.

write below code:

"LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

SET PF-STATUS space.

SUPPRESS DIALOG."

Thanks

Ram Ganji

Edited by: Rama Krishna. G on Sep 28, 2010 11:22 AM

Former Member
0 Kudos

Refer then demo report :- DEMO_LEAVE_TO_LIST_PROCESSING

Former Member
0 Kudos


Hi,

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

statement immediately exits the list processor.The run time environment continues the processing with the PBO event of the screen from which the list processor was called using LEAVE TO LIST PROCESSING or the screen that was set using the AND RETURN TO SCREEN addition to this statement