Presentation is loading. Please wait.

Presentation is loading. Please wait.

0 UMN 2011 ERP Terapan Dialogs Programming Session # 11.

Similar presentations


Presentation on theme: "0 UMN 2011 ERP Terapan Dialogs Programming Session # 11."— Presentation transcript:

1 0 UMN 2011 ERP Terapan Dialogs Programming Session # 11

2 Overview John Natal 2011 / UMN 1 All windows in user dialog have an interface and a status bar. The screen area can contain a screen, a selection screen, or a list. Error dialogs are another type of user dialog.

3 User Dialogs John Natal 2011 / UMN 2 3 types of screen objects: a)A Lists output data b)Selection screen c)Screens are used for both data entry and data display.

4 LISTS John Natal 2011 / UMN 3

5 LISTs John Natal 2011 / UMN 4 List data can output in the following ways: to the screen to the printer to the Internet/intranet: Automatic conversion to HTML also can save lists in the R/3 System or output them for processing by external commercial software applications like spreadsheet programs

6 List Operation John Natal 2011 / UMN 5

7 Page Header John Natal 2011 / UMN 6 A list header and column header can be created in one of the following ways: from within the Abap Editor using the text element maintenance functions from within the list itself by choosing the menu path System -> List -> List headers. The main advantage of using this method is that the list is still displayed on the screen.

8 Multilingual Capability John Natal 2011 / UMN 7  Titles and headers are part of a program’s text elements that can translate all text elements into other languages.  Text symbols are another kind of text element. These are special text literal data objects and allow to create lists independent of language. - TEXT- (where xxx is a character string three characters long) - 'string' ( ).

9 Colors/Icons/Symbols in Lists John Natal 2011 / UMN 8 At WRITE statement attribute color can be adjusted using the formatting option COLOR. 0 COL_BACKGROUND Backgrounds 1 COL_HEADING Headers 2 COL_NORMAL List entries 3 COL-TOTAL Totals 4 COL_KEY Key columns 5 COL-POSITIVE Positive threshold values 6 COL_NEGATIVE Negative threshold values 7 COL_GROUP Control levels  The addition AS ICON within a WRITE statement allows you to add icons to your list. In order to be able to use AS ICON you must, however, add the include to your program.

10 Lists in Executable Programs John Natal 2011 / UMN 9  statement that generates a list are; WRITE, SKIP and ULINE.  Event blocks are called in a sequence designed for list processing: Prior to sending the selection screen: INITIALIZATION After leaving the selection screen: START-OF-SELECTION

11 Details Lists John Natal 2011 / UMN 10 The event block AT LINE-SELECTION is used to create details lists.  The ABAP runtime system fields: sy-lsind contains the value 0 at Basic List. sy-ucomm when a corresponding user entry is made

12 A Simple Details List John Natal 2011 / UMN 11

13 A Simple Details List: Syntax John Natal 2011 / UMN 12

14 Details List: Example John Natal 2011 / UMN 13

15 HIDE Areas John Natal 2011 / UMN 14 The HIDE area to store certain data from the line that you have selected and then automatically insert where you need it in the corresponding data object for a details list.

16 Line Selection John Natal 2011 / UMN 15

17 Line Selection: Syntax John Natal 2011 / UMN 16

18 Selection Screen John Natal 2011 / UMN 17

19 Selection Screens John Natal 2011 / UMN 18 Selection screens allow users to enter selection criteria required by the program. For example, if you create a list containing data from a very large database table, you can use a selection screen to restrict the amount of that data that is selected. At runtime, the user can enter intervals for one of the key fields, and only data in this interval is read from the database and displayed in the list. This considerably reduces the load on the network

20 The Selection Screen John Natal 2011 / UMN 19

21 Entering Selection John Natal 2011 / UMN 20  Selection screens allow to enter complex selections as well as single-value selections.  Functions of selection options programming include: Setting selection options Entering multiple values or intervals Defining a set of exclusionary criteria for data selection Every selection screen contains an information icon.

22 Search Help John Natal 2011 / UMN 21  If refer an input field to an ABAP Dictionary object to which a search help is assigned, the system automatically provides the corresponding possible values help.  The possible values help can adapt by defining a search help in the ABAP Dictionary.

23 Variants John Natal 2011 / UMN 22  Define and store variants for any selection screen by starting the program and choosing Variants -> Save as variant.  Variants allow you to make selection screens easier to use by end users by: Pre-assigning values to input fields Hiding input fields Saving these settings for reuse A single variant can refer to more than one selection screen. Variants are client specific.

24 Selection Texts John Natal 2011 / UMN 23

25 Recap: PARAMETERS John Natal 2011 / UMN 24  A single PARAMETERS statement is sufficient to generate a standard selection screen.  The PARAMETERS TYPE statement generates a simple input field on the selection screen, and a data object with the type you have specified.  If the user enters a value and chooses 'Execute', that value is placed in the internal data object in the program. The system will only permit entries with the appropriate type.

26 USING Parameters in the SELECT Statement John Natal 2011 / UMN 25  If you have used the PARAMETERS statement to program an input field as a key field for a database table, you can use a WHERE clause at the SELECT statement to limit data selection to this value.

27 SELECT-OPTIONS John Natal 2011 / UMN 26

28 Using Select-Options in the SELECT Statement John Natal 2011 / UMN 27

29 Standard Selection Screens in Executable Programs John Natal 2011 / UMN 28  In an executable program, the ABAP runtime system generates a standard selection screen as long as you have written at least one PARAMETERS or SELECT-OPTIONS statement.  The selection screen is displayed after the event block INITIALIZATION.  The event block AT SELECTION-SCREEN (see following slides) belongs to the selection screen. As soon as the user chooses 'Execute' to leave the selection screen, the runtime system calls the START-OF-SELECTION event block.

30 Standard Selection Screen Processing John Natal 2011 / UMN 29

31 Additional Input Checks John Natal 2011 / UMN 30

32 AT SELECTION-SCREEN John Natal 2011 / UMN 31

33 Example: User-defined Selection Screens John Natal 2011 / UMN 32

34 User-defined Selection Screen John Natal 2011 / UMN 33  Screen 1000 is reserved for the standard selection screen  call the selection screen from any ABAP processing block using the statement CALL SELECTION-SCREEN nnnn.

35 Defining and Calling Selection Screen: Syntax John Natal 2011 / UMN 34

36 User-Defines Selection Screens John Natal 2011 / UMN 35

37 Defining and Calling Selection Screens: Syntax John Natal 2011 / UMN 36


Download ppt "0 UMN 2011 ERP Terapan Dialogs Programming Session # 11."

Similar presentations


Ads by Google