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

Former Member
0 Likes
813

Hi all,

i've designed a selection screen in module pool and based on some selction criteria i've to display success and error records.These records should be displayed in the form of list output.

As i'm using module pool i've used LEAVE TO LIST-PROCESSING for displaying these records.As i've designed selection screen the application tool bars are appearing here on the list and no tool bar icon is functioning even though i've declared them in PF STATUS.

Now when i double click on list it has to take me to some t-code say SM35.Where should i write this AT LINE-SELECTION event?

...Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
705

use suppress dialog syntax also.

for more information refer thi sprogram.

DEMO_LEAVE_TO_LIST_PROCESSING

5 REPLIES 5
Read only

Former Member
0 Likes
705

Hi Premraj,

Insted of Leave to list-processing; do write submit to report REPORTNAME. This will come with the standard status bar of the report.

Now you want to write AT LINE-SELECTION. That you write in the report REPORTNAME.

Hope this will help you,

DARSHAN

<i>** Pl. Reward points and motivate</i>

Read only

Former Member
0 Likes
705

Hai,,

You keep the AT-LINE SELECTION in the last only...

For Leave To List Processing ,you will try the following ..

IF SY-UCOMM = 'Your Fn_Code'.

LEAVE SCREEN.

LEAVE TO LIST-PROCESSING.

SELECT * FROM ZTable INTO TABLE ITAB.

LOOP AT ITAB.

WRITE:/ ITAB-ITEMNO.

ENDLOOP.

ENDIF.

Try this ..it will be useful to you..I hope..

reward points if it's useful..

Regards,

Manoj.

Read only

Former Member
0 Likes
705

Hi,

PF STATUS should be the in first stamtment in the PBO event, so that the pf status will be appear in the screen, and

LEAVE TO LIST-PROCESSING shoulb in the PAI event, you can write anywhere in the PAI event, so the list will be generated with this Statment.

Instead of AT LINE-SELECTION, write the code in the PAI event, so that it will trigger that Sm35

Regards

Sudheer

Read only

Former Member
0 Likes
706

use suppress dialog syntax also.

for more information refer thi sprogram.

DEMO_LEAVE_TO_LIST_PROCESSING

Read only

former_member491305
Active Contributor
0 Likes
705

Hi,

You can use at line-selection in module pool to handle list proceesing event.

Give the AT LINE-SELECTION command After the "Program" statement in you module pool program.

Eg:

PROGRAM <program name>.

AT LINE-SELECTION.

if SY-LSIND = 1.

<do some thing>

Endif.