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

Calling list from Screen

0 Likes
822

I am new in the field of SAP ABAP. So please tell me how to "call list from screen 100". please give small prg. for this

7 REPLIES 7
Read only

Former Member
0 Likes
782

in the pai.

module fun1.

module fun1 input.

set screen '0100'.

leave to screen 0.

endmodule.

Read only

Former Member
0 Likes
782

Hi,

Check this link,

<u>http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/frameset.htm</u>

Thanks&Regards,

Ruthra.R

Read only

Former Member
0 Likes
782

see below

This section describes how to switch from screen processing to list processing. It contains a short technical introduction, followed by a recommended procedure.

Switching Between Screen and List Processing

Screen processing always involves a screen sequence that you start either using CALL SCREEN or a transaction code. During screen processing, the ABAP program is controlled by the dialog processor. In the ABAP program, the PBO and PAI modules are executed as they are called from the screen flow logic.

To pass control from the dialog processor to the list processor, you must include the following statement in one of the dialog modules:

LEAVE TO LIST-PROCESSING [AND RETURN TO SCREEN <nnnn>].

You can include this statement in either the PBO or the PAI event. Its effect is to start the list processor and display the basic list after the PAI processing of the current screen. The basic list contains any list output from all PBO and PAI modules that have been executed up to that point.

If detail lists are defined in the corresponding event blocks of the ABAP program (AT LINE-SELECTION, AT USER-COMMAND), user actions on the basic list will lead to the detail list, and further interaction will lead to further list levels.

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.

In both cases, control returns from the list processor to the dialog processor. Each time this occurs, the entire list system is initialized. Any subsequent list output statements in PBO and PAI modules apply to an empty basic list.

By default, the dialog processor returns to the PBO processing of the screen from which the list processor was called. The optional addition AND RETURN TO SCREEN allows you to specify a different screen in the current screen sequence at whose PBO event you want to resume processing. In particular, the statement

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.

Read only

Former Member
0 Likes
782

Hi Robin Kapoor,

You can go to screen 100 by using this in your report.

LEAVE TO SCREEN 100.

Hope this helps you.

Regards,

Maheswaran.B.

Read only

Former Member
0 Likes
782

Hi,

Check this link,

<u>http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/frameset.htm</u>

Thanks&Regards,

Ruthra.R

Read only

Former Member
0 Likes
782

Using LEAVE TO LIST-PROCESSING you can achieve this in Module Pool Program..

try that...

Read only

Former Member
0 Likes
782

Hi

You can use LEAVE TO LIST-PROCESSING and return to screen xxxx. After this you can write the reporting commands.

Reggards

Kalpana