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

LEAVE TO LIST-PROCESSING Statment

tharu
Contributor
0 Likes
4,612

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

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
Read only

Former Member
0 Likes
1,591

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

Read only

Former Member
0 Likes
1,591

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

Read only

Former Member
0 Likes
1,591

Hi,

Have you set the GUI status for that screen?

Regards,

Sakshi jain

Read only

kesavadas_thekkillath
Active Contributor
1,591

Place these statements after leave to list ...


SET PF-STATUS space.
 SUPPRESS DIALOG.

Read only

Former Member
0 Likes
1,591

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

Read only

Former Member
0 Likes
1,591

Refer then demo report :- DEMO_LEAVE_TO_LIST_PROCESSING

Read only

Former Member
0 Likes
1,591


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