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 doesn't work

Former Member
0 Likes
2,229

Hi 2 all!

I have a problem with LEAVE TO LIST-PROCESSING. I have developed a module pool (type M) and screen with the screen painter of type Normal. Now I want to go to the report from my screen with LEAVE TO LIST-PROCESSING, but it doesn't work. I am trying to do this when the button is pressed ( at my application status). The operation is performed but then the Init_screen_xxxx module is called again. Highly appreciate your help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,210

I would normally code just

  suppress dialog.

within the PBO and then in PAI have something like:

leave to list-processing.   
set pf-status 'LIST0001'.
loop at gt_data.
  write / gt_data-value1.
endloop.

etc.. Is this how your code is structured?

Hi 2 all!

I have a problem with LEAVE TO LIST-PROCESSING. I have developed a module pool (type M) and screen with the screen painter of type Normal. Now I want to go to the report from my screen with LEAVE TO LIST-PROCESSING, but it doesn't work. I am trying to do this when the button is pressed ( at my application status). The operation is performed but then the Init_screen_xxxx module is called again. Highly appreciate your help.

3 REPLIES 3
Read only

Former Member
0 Likes
1,211

I would normally code just

  suppress dialog.

within the PBO and then in PAI have something like:

leave to list-processing.   
set pf-status 'LIST0001'.
loop at gt_data.
  write / gt_data-value1.
endloop.

etc.. Is this how your code is structured?

Read only

Former Member
0 Likes
1,210

Hi Nata

Yes U can do it.

We go from module pool program to report program and vice-versa.

1. From report to screen (transaction)

Call transaction

Leave to list-processing and return to screen

2. From screen to list (report)

we can write a report program for fuction key available in the screen.

for example.

case sy-ucomm.

when 'fctcode'.

select .......... from tabl into ..

write:/.........,

.............

endcase.

reward if useful.

Read only

Former Member
0 Likes
1,210

HI

try using LEASE TO LIST PROCESSING AND RETURN

you have to write this code in ur PAI

Thanks

vivekanand