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: 

Reg List..

former_member198892
Participant
0 Kudos

Hi All,

Could you tell me about <b>List</b> in Dialog Programming and Diff of <b>List and Screen. </b>How List used in the screen. Please guide me in detail.

Regards,

Thanuskodi T.

3 REPLIES 3

Former Member
0 Kudos

Hi

In Dialog/Module pool programming we always deal with screens and the flow logic connected with the screens

whenever we wants to go to the report program from the Scrren/Module pool programing we use a special command called

LEAVE TO LIST-PROCESSING

see the syntax in the help or program.. and in the program you write the word LEAVE then press F1 you will get the help related to this command see that and use it

<b>Reward points for useful Answers</b>

Regards

Anji

0 Kudos

Hi

A transaction is dialog program that change data objects in a consistant way.

A dialog program must fulfil the following requirements

- A user friendly user interface.

- Format and consistancey checks for the data entered by the user.

- Easy correction of input errors.

- Access to data by storing it in the data bases.

- Screens (Dynpros)

- Each dialog in an SAP system is controlled by dynpros.A dynpros consists of a screen

And its flow logic and controls exactly one dialog step.

- ABAP/4 module Pool.

Each dynpro refers to exactly one ABAP/4 dialog program .Such a dialog program is also called a module pool ,since it consists of interactive modules.

PBO- Process Before Output-It determines the flow logic before displaying the screen.

PAI-Process After Input-It determines the flowlogic after the display of the screen and after receiving inputs from the User.

A dynpro (Dynamic Program) consists of a screen and its flow logic and controls exactly one dialog steps.

- The different components of the dynpro are :

<u><b>Flow Logic:</b></u> calls of the ABAP/4 modules for a screen .

<u><b>Screen layout:</b></u> Positions of the text, fields, pushbuttons and so on for a screen

<u><b>Screen Attributes:</b></u> Number of the screen, number of the subsequent screen, and others

<b>Fields attributes:</b> Definition of the attributes of the individual fields on a screen.

*Each dynpro refers to exactly one ABAP/4 dialog program.Such a dialog program is also called a module pool ,since it consists on interactive modules

*We cannot write field data to the screen using the WRITE statement.The system instead transfers data by comparing screen fields names with ABAP/4 variable names.If both names are the same,it transfers screen fields values to ABAP/4 programs fields and Vice Versa.This happens immediately after displaying the screen.

*The flow control of a dynpro consists os a few statements that syntactically ressemble ABAP/4 statements .However ,we cannot use flow control keywords in ABAP/4 and vice-versa.

The SET SCREEN and LEAVE SCREEN statements controls screen flow.

<b>SUPPRESS DIALOG’</b>

Suppressing of entire screens is possible with this command. This command allows us to perform screen processing “in the background”. Suppresing screens is useful when we are branching to list-mode from a transaction dialog step.

If we don’t use Suppress-Dialog to next screen will be displayed but as empty, when the user presses ENTER, the standard list output is displayed.

<b> producing a list within a transaction</b>

By submitting a separate report.

By using leave to list-processing.

<u><b>use of the statement Leave to List-processing</b></u>

Leave to List-processing statement is used to produce a list from a module pool. Leave to list processing statement allows to switch from dialog-mode to list-mode within a dialog program.

<u><b>More info on dialog program using LIST</b></u>

<b>SUBMIT</b> rep. (Calls the report rep . Leaves the active program and starts the new report rep)

<u><b> Additions</b></u>

1. ... LINE-SIZE col (Prints the report with the line width col)

2. ... LINE-COUNT lin (Prints the report with lin lines (per page).)

3. ... TO SAP-SPOOL

4. ... VIA SELECTION-SCREEN (Displays the selection screen for the user. In this case, the selection screen is redisplayed after return from the report list display - the user's entries are retained)

5. ... AND RETURN (Returns to the calling transaction or program after the called program has been executed. SUBMIT ... AND RETURN creates a new internal mode)

6. ... EXPORTING LIST TO MEMORY (Does not display the output list of the called report, but saves it in SAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. You can read the saved list from SAP memory with the function module 'LIST_FROM_MEMORY' and then (for example) store it in the database with EXPORT . You can process this list further with the function modules 'WRITE_LIST' , 'DISPLAY_LIST' ... of the function group "SLST")

7. ... USER user VIA JOB job NUMBER n (Schedules the specified report in the job specified by the job name job and the job number n . The job runs under the user name user and you can omit the addition USER user . The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT . This addition can only be used with the addition ...AND RETURN)

8. ... Various additions for parameter transfer to rep

9. ... USING SELECTION-SETS OF PROGRAM prog(Uses variants of the program prog when executing the program rep)

<u><b>LEAVE</b></u>

1. LEAVE PROGRAM. (LEAVE PROGRAM always leaves the current program - there is never any processing after LEAVE PROGRAM)

2. LEAVE TO TRANSACTION tcod. (Terminates the current processing and starts the (new) transaction tcod)

3. LEAVE TO SCREEN scr. (Leaves the current screen and processes the screen scr)

4. LEAVE SCREEN. (Leaves the current screen and processes the next screen.)

5. LEAVE TO LIST-PROCESSING. (Switches from "dialog processing" (module pool, screens) of the current transaction to "list processing)

6. LEAVE LIST-PROCESSING. (Returns from list processing and re-processes the return screen (LEAVE TO LIST-PROCESSING))

7. LEAVE.( Leaves the " CALL mode ")

Reward all helpfull answers

Regards

Pavan

Former Member
0 Kudos

Hi,

Refer the below links u can get an idea regarding dialog programing..

Vey useful link:

http://sap.mis.cmich.edu/sap-abap/abap09/index.htm

Other links:

http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2d40358411d1829f0000e829fbfe/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/10/e7dbde82ba11d295a40000e8353423/content.htm

For Screens

http://help.sap.com/saphelp_47x200/helpdata/en/e4/2adbef449911d1949c0000e8353423/content.htm

Screen elements

http://help.sap.com/saphelp_47x200/helpdata/en/47/e07f5f2b9911d2954f0000e8353423/content.htm

Processing Screens

http://help.sap.com/saphelp_47x200/helpdata/en/47/e07f682b9911d2954f0000e8353423/content.htm

Complex Screen elements

http://help.sap.com/saphelp_47x200/helpdata/en/fd/02da2a61d811d295750000e8353423/content.htm

some more...

http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm

http://www.sapdevelopment.co.uk/dialog/dialoghome.htm

http://www.sap-img.com/

http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm

http://www.sapgenie.com/links/abap.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm

http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm

http://www.allsaplinks.com/dialog_programming.html

http://sap.mis.cmich.edu/sap-abap/abap09/

http://www.sapdevelopment.co.uk/dialog/dialoghome.htm

http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm

http://sap.mis.cmich.edu/abap-00/

http://www.allsaplinks.com/files/using_table_in_screen.pdf

http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm

http://www.sapgenie.com/links/abap.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm

http://www.sapdevelopment.co.uk/dialog/dialoghome.htm

http://help.sap.com

http://www.sapgenie.com/abap/example_code.htm

http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm

http://www.allsaplinks.com/dialog_programming.html

http://www.sapbrain.com/TUTORIALS/default.html

http://www.sappoint.com/abap/spmp.pdf

http://sappoint.com/abap.html

http://www.sap-img.com/abap.htm

http://sap.ittoolbox.com/code/archives.asp?i=10&t=450&a=t

http://www.sapdevelopment.co.uk/dialog/dialoghome.htm

http://www.sap-img.com/abap/

http://www.sapdevelopment.co.uk/dialog/dialoghome.htm

http://www.sap-img.com/

http://www.sappoint.com/faq/faqdiapr.pdf

http://www.allsaplinks.com/dialog_programming.html

<b>Reward points</b>

Regards