23
0 SAP AG 1999 Creating interfaces using the Menu Painter Titles Menu bars Standard toolbars and Application toolbars Contents: Interfaces (C) SAP AG BC400 10-1

EXP_0010 Interfaces.doc

Embed Size (px)

Citation preview

Page 1: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 123

0

983209 SAP AG 1999

Creating interfaces using the Menu Painter

Titles

Menu bars

Standard toolbars and

Application toolbars

Contents

Interfaces

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 223

02

983209 SAP AG 1999

At the conclusion of this unit you ill be able to

Interfaces nit becti$es

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-2

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 323

0(

983209 SAP AG 1999

$er$ie Screen bects

amplight )aster data dit oto Syste) +elp

Help F1

Choose F2

Back F3

Menu bar

Standard toolbar

Application toolbar

ey settings

GUI title

ST TIT-A n1

GUI status

ST PampSTATS n1

All user interfaces include the following toolsobjects

A title bar containing the title of the screen selection screen or list currently being displayed

A menu bar with expandable menus

Menus containing the executable functions for the current program Menus can also contain

submenus The menus ystem and elp can be found on eery screen in $ and always contain

the same functions either of these menus may be changed or hidden

A standard toolbar containing icons for those functions most often used The $ standard toolbar

always contains the same icons with standard functions assigned to them Those standard functions

that cannot be accessed from a particular interface are grayed out

Function key settings which can be displayed by clicamping on your right mouse button deally you

should be able to execute all menu functions by way of function ampeys as well

An application toolbar containing icons and pushbuttons for those functions most often used on thecurrent screen

(ach program is created with an interface containing all of the objects listed aboe )ifferent iews

of this interface + statuses- are then created for a programs indiidual screens selection screens

and lists

(C) SAP AG BC400 10-3

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 423

03

983209 SAP AG 1999

SAP 4(SAP 4(

ChangeChange flight ti)esflight ti)es

-ist-istamplight )aster data

Print Ctrl5P

Sa$e in PC file Shift5amp6

Sa$e

7it Shift5amp(

amplight )aster data

Print

Sa$e in PC file

Sa$e Ctrl5S

7it

dit oto Syste) +elp

dit oto Syste) +elp

ScreenScreen

08000800

7a)ple Progra) Interface

As a last step an interface will now be defined for the example program The arious statuses will

hae the following characteristics

The same menu bar will be aailable from both the list and the screen nly those menu functions

that can be executed will appear in blacamp

n the standard toolbar only those functions that can be executed will appear in color creen

functionality will not be altered in any way

The application toolbar on the basic list will contain an icon for hoose 0 just as the standard list

status does

The screen will hae its own title

(C) SAP AG BC400 10-4

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 523

09

983209 SAP AG 1999

Menu bars

Menu bars

amplight )aster data

ey settingsey settingsApplication toolbar

Application toolbar

amplight )aster data

Menu bar

ey settings

amplight )aster data

amplight )aster data

dit

oto

Title 800

-ist of ampunctions

PCSAVE

RW PICK

-ist

-ist

functions

BACK PRI EX

P++ P--P+ P-

asic Interface le)ents

All program interfaces include the following sub0objects

A title bar containing the title of the screen selection screen or list currently being displayed

A menu bar with expandable menus

Menus refering to interface functions that can be called using transactions and that all possess self0

explanatory ampeywords ascading menus can be defined by refering to another menu in the menu list

instead of to a function code

Key settings are made up of the function assignments to icons in the standard toolbar and to the

function keys 1 ampeys-

mportant function ampeys can also be assigned to icons and pushbuttons in the application toolbar f

needed more than one application toolbar can be used

Functions for example Replace Find or Cut - are assigned function codes that are used in the

program to ealuate user actions A function list contains all of the functions of a specific interfacetandardi2ed function codes exist for lists

3rograms can hae multiple menu bars ampey settings and application toolbars 1or the example

program only one of each must be created The menu bar should consist of three menus

(C) SAP AG BC400 10-5

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 623

0

983209 SAP AG 1999

Menu bars

amplight )aster data

ey settings

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

-ist

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist

inacti$e

Application toolbar

amplight )aster data

Statuses Interface lties

A status is the actual form that a menu bar a standard toolbar and an application toolbar taampe on for

a particular screen within your program A status determines which functions are active or

executable or inactive and not able to be executed for a particular screen 4ou can change a screens

status at 35 for example the function )isplayhange in the A5A3 (ditor allows you to switch

between different statuses

1rom a technical point of iew a status is always a reference to a particular menu bar standard

toolbar and application toolbar

ow lets define a status for a list

(C) SAP AG BC400 10-6

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 723

0=

983209 SAP AG 1999

CancelNo

Creating I Statuses for -ists

START-OF-SELECTION

SET PF-STATUS -IST

G sas $he sas S$ ampoes no es

o +o an o ceae he oec

es

S$

Sas o lh ls

Poa

Sas

Sas aes

Sho e

Sas +pealo sas

alo o

Cone en

Create Status

Create obect

4ou can create and maintain statuses in one of three different ways

5y using the object list of the bject aigator

5y using forward navigation in the A5A3 (ditor

5y directly using the Menu Painter

6hen creating a status you can either create a new menu bar application toolbar and new ampey

settings yourself top down- or use existing objects for your interface bottom up- or a use

combination of both methods

tatus names can hae a maximum of 78 characters 9etters must be upper0case-

5y choosing a status type you determine whether a status refers to a normal screen or a dialog box

According to what you hae choosen different types of functions are put at your disposal

se the statement SET PF-STATUS ltNAMEgt to set the status of the basic list by programming

it into one of the processing blocamps that are processed before the basic list is sent

(C) SAP AG BC400 10-

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 823

06

983209 SAP AG 1999

Adusting Statuses

Adust status te)plate

BAS

nclampe eplae n

Sas

Sas eplae

s sas

Selecon Sceen

Application toolbar

ey settings

Menu bars

-ine selection list

-ine selection list

-ist dit oto

serriented

gtesign

The Adjust template function found in the Etras menu allows you to include standardi2ed

function codes in your status This function further allows you to include objects from a status of

your choice with the existing status This allows you to choose norms for list statuses and selection

screens or use any other status you want from another A5A3 program

(C) SAP AG BC400 10-7

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 923

0

983209 SAP AG 1999

Application toolbar

Positions 8=

ey settings

Menu bars

amplight )aster data ey settings

amplight )aster data application toolbar

amplight )aster data )enu bar

PIC

eco))end function eys settings

amp2amp3

Shiftamp6

ampreely assigned function eys

amp9

ampamp=

amp6amp

Shiftamp8

Standard toolbar

8BAC ltSA=

PC Choose

P 8SC P-- P-

Creating Statuses ey Settings

4ou assign function codes to function ampeys by entering them into one of the function ampey settings

sections 1or 9ist statuses you can include standardi2ed function codes as well

ey settings can be diided into three areas

tandard toolbar ertain pre0defined function codes are mandatory for the functions ae

5acamp (xit program ancel 3rint and for the croll icons as well as for the (nter pushbutton

imply assign these codes to the standard toolbar icon and they will be automatically assigned

to their corresponding pushbutton

ecommend function keys settings

Freely assigned function keys

4ou can also define buttons on a button bar for those function ampeys that are used most often These

pushbuttons can either be icons or pushbuttons with text

(C) SAP AG BC400 10-9

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1023

080

983209 SAP AG 1999

Menu bars

Application toolbar

amplight )aster data dit oto

ey settings

amplight )aster data application toolbar

amplight )aster data ey settings

amplight )aster data )enu bar

Code Te7t

Print

Sa$e in PC file

Sa$e

7it

PI

PC

SAlt

Code Te7t

Choose

ampind

ampind again

Cancel

PIC

SC

SC5

B

Code Te7t

acAC

Creating Statuses Menu ars

f so desired proposals will be suggested for your menu bar They can howeer be modified

Menu bars can contain up to eight menus 4ou can define up to six of these yourself but the System

and Help menus are added automatically by the system

(C) SAP AG BC400 10-10

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1123

088

983209 SAP AG 1999

Status SCStatus SC

ScreenScreen

08000800

ScreenScreen

08000800

Menu bars

amplight )aster data

ey settings

amplight )aster data

Application toolbar

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

Standard

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist-ist

inacti$e

amplight )aster data

dit

oto

Title 800

7a)ple Progra) Interface

n order to complete our example program interface we must create title and status for the screen in

addition to the basic list status The screen status should refer to the same menu bar application

toolbar and ampey settings as the list status The only difference should be that all standard functions

should be set to inactie except BACK und SAVE

The following objects all can be part of an interface

functions

Menus

Menu bars

ey settings

Application toolbar

tatus

Titles

(C) SAP AG BC400 10-11

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 2: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 223

02

983209 SAP AG 1999

At the conclusion of this unit you ill be able to

Interfaces nit becti$es

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-2

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 323

0(

983209 SAP AG 1999

$er$ie Screen bects

amplight )aster data dit oto Syste) +elp

Help F1

Choose F2

Back F3

Menu bar

Standard toolbar

Application toolbar

ey settings

GUI title

ST TIT-A n1

GUI status

ST PampSTATS n1

All user interfaces include the following toolsobjects

A title bar containing the title of the screen selection screen or list currently being displayed

A menu bar with expandable menus

Menus containing the executable functions for the current program Menus can also contain

submenus The menus ystem and elp can be found on eery screen in $ and always contain

the same functions either of these menus may be changed or hidden

A standard toolbar containing icons for those functions most often used The $ standard toolbar

always contains the same icons with standard functions assigned to them Those standard functions

that cannot be accessed from a particular interface are grayed out

Function key settings which can be displayed by clicamping on your right mouse button deally you

should be able to execute all menu functions by way of function ampeys as well

An application toolbar containing icons and pushbuttons for those functions most often used on thecurrent screen

(ach program is created with an interface containing all of the objects listed aboe )ifferent iews

of this interface + statuses- are then created for a programs indiidual screens selection screens

and lists

(C) SAP AG BC400 10-3

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 423

03

983209 SAP AG 1999

SAP 4(SAP 4(

ChangeChange flight ti)esflight ti)es

-ist-istamplight )aster data

Print Ctrl5P

Sa$e in PC file Shift5amp6

Sa$e

7it Shift5amp(

amplight )aster data

Print

Sa$e in PC file

Sa$e Ctrl5S

7it

dit oto Syste) +elp

dit oto Syste) +elp

ScreenScreen

08000800

7a)ple Progra) Interface

As a last step an interface will now be defined for the example program The arious statuses will

hae the following characteristics

The same menu bar will be aailable from both the list and the screen nly those menu functions

that can be executed will appear in blacamp

n the standard toolbar only those functions that can be executed will appear in color creen

functionality will not be altered in any way

The application toolbar on the basic list will contain an icon for hoose 0 just as the standard list

status does

The screen will hae its own title

(C) SAP AG BC400 10-4

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 523

09

983209 SAP AG 1999

Menu bars

Menu bars

amplight )aster data

ey settingsey settingsApplication toolbar

Application toolbar

amplight )aster data

Menu bar

ey settings

amplight )aster data

amplight )aster data

dit

oto

Title 800

-ist of ampunctions

PCSAVE

RW PICK

-ist

-ist

functions

BACK PRI EX

P++ P--P+ P-

asic Interface le)ents

All program interfaces include the following sub0objects

A title bar containing the title of the screen selection screen or list currently being displayed

A menu bar with expandable menus

Menus refering to interface functions that can be called using transactions and that all possess self0

explanatory ampeywords ascading menus can be defined by refering to another menu in the menu list

instead of to a function code

Key settings are made up of the function assignments to icons in the standard toolbar and to the

function keys 1 ampeys-

mportant function ampeys can also be assigned to icons and pushbuttons in the application toolbar f

needed more than one application toolbar can be used

Functions for example Replace Find or Cut - are assigned function codes that are used in the

program to ealuate user actions A function list contains all of the functions of a specific interfacetandardi2ed function codes exist for lists

3rograms can hae multiple menu bars ampey settings and application toolbars 1or the example

program only one of each must be created The menu bar should consist of three menus

(C) SAP AG BC400 10-5

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 623

0

983209 SAP AG 1999

Menu bars

amplight )aster data

ey settings

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

-ist

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist

inacti$e

Application toolbar

amplight )aster data

Statuses Interface lties

A status is the actual form that a menu bar a standard toolbar and an application toolbar taampe on for

a particular screen within your program A status determines which functions are active or

executable or inactive and not able to be executed for a particular screen 4ou can change a screens

status at 35 for example the function )isplayhange in the A5A3 (ditor allows you to switch

between different statuses

1rom a technical point of iew a status is always a reference to a particular menu bar standard

toolbar and application toolbar

ow lets define a status for a list

(C) SAP AG BC400 10-6

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 723

0=

983209 SAP AG 1999

CancelNo

Creating I Statuses for -ists

START-OF-SELECTION

SET PF-STATUS -IST

G sas $he sas S$ ampoes no es

o +o an o ceae he oec

es

S$

Sas o lh ls

Poa

Sas

Sas aes

Sho e

Sas +pealo sas

alo o

Cone en

Create Status

Create obect

4ou can create and maintain statuses in one of three different ways

5y using the object list of the bject aigator

5y using forward navigation in the A5A3 (ditor

5y directly using the Menu Painter

6hen creating a status you can either create a new menu bar application toolbar and new ampey

settings yourself top down- or use existing objects for your interface bottom up- or a use

combination of both methods

tatus names can hae a maximum of 78 characters 9etters must be upper0case-

5y choosing a status type you determine whether a status refers to a normal screen or a dialog box

According to what you hae choosen different types of functions are put at your disposal

se the statement SET PF-STATUS ltNAMEgt to set the status of the basic list by programming

it into one of the processing blocamps that are processed before the basic list is sent

(C) SAP AG BC400 10-

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 823

06

983209 SAP AG 1999

Adusting Statuses

Adust status te)plate

BAS

nclampe eplae n

Sas

Sas eplae

s sas

Selecon Sceen

Application toolbar

ey settings

Menu bars

-ine selection list

-ine selection list

-ist dit oto

serriented

gtesign

The Adjust template function found in the Etras menu allows you to include standardi2ed

function codes in your status This function further allows you to include objects from a status of

your choice with the existing status This allows you to choose norms for list statuses and selection

screens or use any other status you want from another A5A3 program

(C) SAP AG BC400 10-7

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 923

0

983209 SAP AG 1999

Application toolbar

Positions 8=

ey settings

Menu bars

amplight )aster data ey settings

amplight )aster data application toolbar

amplight )aster data )enu bar

PIC

eco))end function eys settings

amp2amp3

Shiftamp6

ampreely assigned function eys

amp9

ampamp=

amp6amp

Shiftamp8

Standard toolbar

8BAC ltSA=

PC Choose

P 8SC P-- P-

Creating Statuses ey Settings

4ou assign function codes to function ampeys by entering them into one of the function ampey settings

sections 1or 9ist statuses you can include standardi2ed function codes as well

ey settings can be diided into three areas

tandard toolbar ertain pre0defined function codes are mandatory for the functions ae

5acamp (xit program ancel 3rint and for the croll icons as well as for the (nter pushbutton

imply assign these codes to the standard toolbar icon and they will be automatically assigned

to their corresponding pushbutton

ecommend function keys settings

Freely assigned function keys

4ou can also define buttons on a button bar for those function ampeys that are used most often These

pushbuttons can either be icons or pushbuttons with text

(C) SAP AG BC400 10-9

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1023

080

983209 SAP AG 1999

Menu bars

Application toolbar

amplight )aster data dit oto

ey settings

amplight )aster data application toolbar

amplight )aster data ey settings

amplight )aster data )enu bar

Code Te7t

Print

Sa$e in PC file

Sa$e

7it

PI

PC

SAlt

Code Te7t

Choose

ampind

ampind again

Cancel

PIC

SC

SC5

B

Code Te7t

acAC

Creating Statuses Menu ars

f so desired proposals will be suggested for your menu bar They can howeer be modified

Menu bars can contain up to eight menus 4ou can define up to six of these yourself but the System

and Help menus are added automatically by the system

(C) SAP AG BC400 10-10

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1123

088

983209 SAP AG 1999

Status SCStatus SC

ScreenScreen

08000800

ScreenScreen

08000800

Menu bars

amplight )aster data

ey settings

amplight )aster data

Application toolbar

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

Standard

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist-ist

inacti$e

amplight )aster data

dit

oto

Title 800

7a)ple Progra) Interface

n order to complete our example program interface we must create title and status for the screen in

addition to the basic list status The screen status should refer to the same menu bar application

toolbar and ampey settings as the list status The only difference should be that all standard functions

should be set to inactie except BACK und SAVE

The following objects all can be part of an interface

functions

Menus

Menu bars

ey settings

Application toolbar

tatus

Titles

(C) SAP AG BC400 10-11

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 3: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 323

0(

983209 SAP AG 1999

$er$ie Screen bects

amplight )aster data dit oto Syste) +elp

Help F1

Choose F2

Back F3

Menu bar

Standard toolbar

Application toolbar

ey settings

GUI title

ST TIT-A n1

GUI status

ST PampSTATS n1

All user interfaces include the following toolsobjects

A title bar containing the title of the screen selection screen or list currently being displayed

A menu bar with expandable menus

Menus containing the executable functions for the current program Menus can also contain

submenus The menus ystem and elp can be found on eery screen in $ and always contain

the same functions either of these menus may be changed or hidden

A standard toolbar containing icons for those functions most often used The $ standard toolbar

always contains the same icons with standard functions assigned to them Those standard functions

that cannot be accessed from a particular interface are grayed out

Function key settings which can be displayed by clicamping on your right mouse button deally you

should be able to execute all menu functions by way of function ampeys as well

An application toolbar containing icons and pushbuttons for those functions most often used on thecurrent screen

(ach program is created with an interface containing all of the objects listed aboe )ifferent iews

of this interface + statuses- are then created for a programs indiidual screens selection screens

and lists

(C) SAP AG BC400 10-3

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 423

03

983209 SAP AG 1999

SAP 4(SAP 4(

ChangeChange flight ti)esflight ti)es

-ist-istamplight )aster data

Print Ctrl5P

Sa$e in PC file Shift5amp6

Sa$e

7it Shift5amp(

amplight )aster data

Print

Sa$e in PC file

Sa$e Ctrl5S

7it

dit oto Syste) +elp

dit oto Syste) +elp

ScreenScreen

08000800

7a)ple Progra) Interface

As a last step an interface will now be defined for the example program The arious statuses will

hae the following characteristics

The same menu bar will be aailable from both the list and the screen nly those menu functions

that can be executed will appear in blacamp

n the standard toolbar only those functions that can be executed will appear in color creen

functionality will not be altered in any way

The application toolbar on the basic list will contain an icon for hoose 0 just as the standard list

status does

The screen will hae its own title

(C) SAP AG BC400 10-4

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 523

09

983209 SAP AG 1999

Menu bars

Menu bars

amplight )aster data

ey settingsey settingsApplication toolbar

Application toolbar

amplight )aster data

Menu bar

ey settings

amplight )aster data

amplight )aster data

dit

oto

Title 800

-ist of ampunctions

PCSAVE

RW PICK

-ist

-ist

functions

BACK PRI EX

P++ P--P+ P-

asic Interface le)ents

All program interfaces include the following sub0objects

A title bar containing the title of the screen selection screen or list currently being displayed

A menu bar with expandable menus

Menus refering to interface functions that can be called using transactions and that all possess self0

explanatory ampeywords ascading menus can be defined by refering to another menu in the menu list

instead of to a function code

Key settings are made up of the function assignments to icons in the standard toolbar and to the

function keys 1 ampeys-

mportant function ampeys can also be assigned to icons and pushbuttons in the application toolbar f

needed more than one application toolbar can be used

Functions for example Replace Find or Cut - are assigned function codes that are used in the

program to ealuate user actions A function list contains all of the functions of a specific interfacetandardi2ed function codes exist for lists

3rograms can hae multiple menu bars ampey settings and application toolbars 1or the example

program only one of each must be created The menu bar should consist of three menus

(C) SAP AG BC400 10-5

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 623

0

983209 SAP AG 1999

Menu bars

amplight )aster data

ey settings

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

-ist

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist

inacti$e

Application toolbar

amplight )aster data

Statuses Interface lties

A status is the actual form that a menu bar a standard toolbar and an application toolbar taampe on for

a particular screen within your program A status determines which functions are active or

executable or inactive and not able to be executed for a particular screen 4ou can change a screens

status at 35 for example the function )isplayhange in the A5A3 (ditor allows you to switch

between different statuses

1rom a technical point of iew a status is always a reference to a particular menu bar standard

toolbar and application toolbar

ow lets define a status for a list

(C) SAP AG BC400 10-6

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 723

0=

983209 SAP AG 1999

CancelNo

Creating I Statuses for -ists

START-OF-SELECTION

SET PF-STATUS -IST

G sas $he sas S$ ampoes no es

o +o an o ceae he oec

es

S$

Sas o lh ls

Poa

Sas

Sas aes

Sho e

Sas +pealo sas

alo o

Cone en

Create Status

Create obect

4ou can create and maintain statuses in one of three different ways

5y using the object list of the bject aigator

5y using forward navigation in the A5A3 (ditor

5y directly using the Menu Painter

6hen creating a status you can either create a new menu bar application toolbar and new ampey

settings yourself top down- or use existing objects for your interface bottom up- or a use

combination of both methods

tatus names can hae a maximum of 78 characters 9etters must be upper0case-

5y choosing a status type you determine whether a status refers to a normal screen or a dialog box

According to what you hae choosen different types of functions are put at your disposal

se the statement SET PF-STATUS ltNAMEgt to set the status of the basic list by programming

it into one of the processing blocamps that are processed before the basic list is sent

(C) SAP AG BC400 10-

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 823

06

983209 SAP AG 1999

Adusting Statuses

Adust status te)plate

BAS

nclampe eplae n

Sas

Sas eplae

s sas

Selecon Sceen

Application toolbar

ey settings

Menu bars

-ine selection list

-ine selection list

-ist dit oto

serriented

gtesign

The Adjust template function found in the Etras menu allows you to include standardi2ed

function codes in your status This function further allows you to include objects from a status of

your choice with the existing status This allows you to choose norms for list statuses and selection

screens or use any other status you want from another A5A3 program

(C) SAP AG BC400 10-7

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 923

0

983209 SAP AG 1999

Application toolbar

Positions 8=

ey settings

Menu bars

amplight )aster data ey settings

amplight )aster data application toolbar

amplight )aster data )enu bar

PIC

eco))end function eys settings

amp2amp3

Shiftamp6

ampreely assigned function eys

amp9

ampamp=

amp6amp

Shiftamp8

Standard toolbar

8BAC ltSA=

PC Choose

P 8SC P-- P-

Creating Statuses ey Settings

4ou assign function codes to function ampeys by entering them into one of the function ampey settings

sections 1or 9ist statuses you can include standardi2ed function codes as well

ey settings can be diided into three areas

tandard toolbar ertain pre0defined function codes are mandatory for the functions ae

5acamp (xit program ancel 3rint and for the croll icons as well as for the (nter pushbutton

imply assign these codes to the standard toolbar icon and they will be automatically assigned

to their corresponding pushbutton

ecommend function keys settings

Freely assigned function keys

4ou can also define buttons on a button bar for those function ampeys that are used most often These

pushbuttons can either be icons or pushbuttons with text

(C) SAP AG BC400 10-9

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1023

080

983209 SAP AG 1999

Menu bars

Application toolbar

amplight )aster data dit oto

ey settings

amplight )aster data application toolbar

amplight )aster data ey settings

amplight )aster data )enu bar

Code Te7t

Print

Sa$e in PC file

Sa$e

7it

PI

PC

SAlt

Code Te7t

Choose

ampind

ampind again

Cancel

PIC

SC

SC5

B

Code Te7t

acAC

Creating Statuses Menu ars

f so desired proposals will be suggested for your menu bar They can howeer be modified

Menu bars can contain up to eight menus 4ou can define up to six of these yourself but the System

and Help menus are added automatically by the system

(C) SAP AG BC400 10-10

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1123

088

983209 SAP AG 1999

Status SCStatus SC

ScreenScreen

08000800

ScreenScreen

08000800

Menu bars

amplight )aster data

ey settings

amplight )aster data

Application toolbar

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

Standard

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist-ist

inacti$e

amplight )aster data

dit

oto

Title 800

7a)ple Progra) Interface

n order to complete our example program interface we must create title and status for the screen in

addition to the basic list status The screen status should refer to the same menu bar application

toolbar and ampey settings as the list status The only difference should be that all standard functions

should be set to inactie except BACK und SAVE

The following objects all can be part of an interface

functions

Menus

Menu bars

ey settings

Application toolbar

tatus

Titles

(C) SAP AG BC400 10-11

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 4: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 423

03

983209 SAP AG 1999

SAP 4(SAP 4(

ChangeChange flight ti)esflight ti)es

-ist-istamplight )aster data

Print Ctrl5P

Sa$e in PC file Shift5amp6

Sa$e

7it Shift5amp(

amplight )aster data

Print

Sa$e in PC file

Sa$e Ctrl5S

7it

dit oto Syste) +elp

dit oto Syste) +elp

ScreenScreen

08000800

7a)ple Progra) Interface

As a last step an interface will now be defined for the example program The arious statuses will

hae the following characteristics

The same menu bar will be aailable from both the list and the screen nly those menu functions

that can be executed will appear in blacamp

n the standard toolbar only those functions that can be executed will appear in color creen

functionality will not be altered in any way

The application toolbar on the basic list will contain an icon for hoose 0 just as the standard list

status does

The screen will hae its own title

(C) SAP AG BC400 10-4

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 523

09

983209 SAP AG 1999

Menu bars

Menu bars

amplight )aster data

ey settingsey settingsApplication toolbar

Application toolbar

amplight )aster data

Menu bar

ey settings

amplight )aster data

amplight )aster data

dit

oto

Title 800

-ist of ampunctions

PCSAVE

RW PICK

-ist

-ist

functions

BACK PRI EX

P++ P--P+ P-

asic Interface le)ents

All program interfaces include the following sub0objects

A title bar containing the title of the screen selection screen or list currently being displayed

A menu bar with expandable menus

Menus refering to interface functions that can be called using transactions and that all possess self0

explanatory ampeywords ascading menus can be defined by refering to another menu in the menu list

instead of to a function code

Key settings are made up of the function assignments to icons in the standard toolbar and to the

function keys 1 ampeys-

mportant function ampeys can also be assigned to icons and pushbuttons in the application toolbar f

needed more than one application toolbar can be used

Functions for example Replace Find or Cut - are assigned function codes that are used in the

program to ealuate user actions A function list contains all of the functions of a specific interfacetandardi2ed function codes exist for lists

3rograms can hae multiple menu bars ampey settings and application toolbars 1or the example

program only one of each must be created The menu bar should consist of three menus

(C) SAP AG BC400 10-5

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 623

0

983209 SAP AG 1999

Menu bars

amplight )aster data

ey settings

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

-ist

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist

inacti$e

Application toolbar

amplight )aster data

Statuses Interface lties

A status is the actual form that a menu bar a standard toolbar and an application toolbar taampe on for

a particular screen within your program A status determines which functions are active or

executable or inactive and not able to be executed for a particular screen 4ou can change a screens

status at 35 for example the function )isplayhange in the A5A3 (ditor allows you to switch

between different statuses

1rom a technical point of iew a status is always a reference to a particular menu bar standard

toolbar and application toolbar

ow lets define a status for a list

(C) SAP AG BC400 10-6

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 723

0=

983209 SAP AG 1999

CancelNo

Creating I Statuses for -ists

START-OF-SELECTION

SET PF-STATUS -IST

G sas $he sas S$ ampoes no es

o +o an o ceae he oec

es

S$

Sas o lh ls

Poa

Sas

Sas aes

Sho e

Sas +pealo sas

alo o

Cone en

Create Status

Create obect

4ou can create and maintain statuses in one of three different ways

5y using the object list of the bject aigator

5y using forward navigation in the A5A3 (ditor

5y directly using the Menu Painter

6hen creating a status you can either create a new menu bar application toolbar and new ampey

settings yourself top down- or use existing objects for your interface bottom up- or a use

combination of both methods

tatus names can hae a maximum of 78 characters 9etters must be upper0case-

5y choosing a status type you determine whether a status refers to a normal screen or a dialog box

According to what you hae choosen different types of functions are put at your disposal

se the statement SET PF-STATUS ltNAMEgt to set the status of the basic list by programming

it into one of the processing blocamps that are processed before the basic list is sent

(C) SAP AG BC400 10-

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 823

06

983209 SAP AG 1999

Adusting Statuses

Adust status te)plate

BAS

nclampe eplae n

Sas

Sas eplae

s sas

Selecon Sceen

Application toolbar

ey settings

Menu bars

-ine selection list

-ine selection list

-ist dit oto

serriented

gtesign

The Adjust template function found in the Etras menu allows you to include standardi2ed

function codes in your status This function further allows you to include objects from a status of

your choice with the existing status This allows you to choose norms for list statuses and selection

screens or use any other status you want from another A5A3 program

(C) SAP AG BC400 10-7

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 923

0

983209 SAP AG 1999

Application toolbar

Positions 8=

ey settings

Menu bars

amplight )aster data ey settings

amplight )aster data application toolbar

amplight )aster data )enu bar

PIC

eco))end function eys settings

amp2amp3

Shiftamp6

ampreely assigned function eys

amp9

ampamp=

amp6amp

Shiftamp8

Standard toolbar

8BAC ltSA=

PC Choose

P 8SC P-- P-

Creating Statuses ey Settings

4ou assign function codes to function ampeys by entering them into one of the function ampey settings

sections 1or 9ist statuses you can include standardi2ed function codes as well

ey settings can be diided into three areas

tandard toolbar ertain pre0defined function codes are mandatory for the functions ae

5acamp (xit program ancel 3rint and for the croll icons as well as for the (nter pushbutton

imply assign these codes to the standard toolbar icon and they will be automatically assigned

to their corresponding pushbutton

ecommend function keys settings

Freely assigned function keys

4ou can also define buttons on a button bar for those function ampeys that are used most often These

pushbuttons can either be icons or pushbuttons with text

(C) SAP AG BC400 10-9

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1023

080

983209 SAP AG 1999

Menu bars

Application toolbar

amplight )aster data dit oto

ey settings

amplight )aster data application toolbar

amplight )aster data ey settings

amplight )aster data )enu bar

Code Te7t

Print

Sa$e in PC file

Sa$e

7it

PI

PC

SAlt

Code Te7t

Choose

ampind

ampind again

Cancel

PIC

SC

SC5

B

Code Te7t

acAC

Creating Statuses Menu ars

f so desired proposals will be suggested for your menu bar They can howeer be modified

Menu bars can contain up to eight menus 4ou can define up to six of these yourself but the System

and Help menus are added automatically by the system

(C) SAP AG BC400 10-10

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1123

088

983209 SAP AG 1999

Status SCStatus SC

ScreenScreen

08000800

ScreenScreen

08000800

Menu bars

amplight )aster data

ey settings

amplight )aster data

Application toolbar

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

Standard

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist-ist

inacti$e

amplight )aster data

dit

oto

Title 800

7a)ple Progra) Interface

n order to complete our example program interface we must create title and status for the screen in

addition to the basic list status The screen status should refer to the same menu bar application

toolbar and ampey settings as the list status The only difference should be that all standard functions

should be set to inactie except BACK und SAVE

The following objects all can be part of an interface

functions

Menus

Menu bars

ey settings

Application toolbar

tatus

Titles

(C) SAP AG BC400 10-11

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 5: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 523

09

983209 SAP AG 1999

Menu bars

Menu bars

amplight )aster data

ey settingsey settingsApplication toolbar

Application toolbar

amplight )aster data

Menu bar

ey settings

amplight )aster data

amplight )aster data

dit

oto

Title 800

-ist of ampunctions

PCSAVE

RW PICK

-ist

-ist

functions

BACK PRI EX

P++ P--P+ P-

asic Interface le)ents

All program interfaces include the following sub0objects

A title bar containing the title of the screen selection screen or list currently being displayed

A menu bar with expandable menus

Menus refering to interface functions that can be called using transactions and that all possess self0

explanatory ampeywords ascading menus can be defined by refering to another menu in the menu list

instead of to a function code

Key settings are made up of the function assignments to icons in the standard toolbar and to the

function keys 1 ampeys-

mportant function ampeys can also be assigned to icons and pushbuttons in the application toolbar f

needed more than one application toolbar can be used

Functions for example Replace Find or Cut - are assigned function codes that are used in the

program to ealuate user actions A function list contains all of the functions of a specific interfacetandardi2ed function codes exist for lists

3rograms can hae multiple menu bars ampey settings and application toolbars 1or the example

program only one of each must be created The menu bar should consist of three menus

(C) SAP AG BC400 10-5

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 623

0

983209 SAP AG 1999

Menu bars

amplight )aster data

ey settings

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

-ist

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist

inacti$e

Application toolbar

amplight )aster data

Statuses Interface lties

A status is the actual form that a menu bar a standard toolbar and an application toolbar taampe on for

a particular screen within your program A status determines which functions are active or

executable or inactive and not able to be executed for a particular screen 4ou can change a screens

status at 35 for example the function )isplayhange in the A5A3 (ditor allows you to switch

between different statuses

1rom a technical point of iew a status is always a reference to a particular menu bar standard

toolbar and application toolbar

ow lets define a status for a list

(C) SAP AG BC400 10-6

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 723

0=

983209 SAP AG 1999

CancelNo

Creating I Statuses for -ists

START-OF-SELECTION

SET PF-STATUS -IST

G sas $he sas S$ ampoes no es

o +o an o ceae he oec

es

S$

Sas o lh ls

Poa

Sas

Sas aes

Sho e

Sas +pealo sas

alo o

Cone en

Create Status

Create obect

4ou can create and maintain statuses in one of three different ways

5y using the object list of the bject aigator

5y using forward navigation in the A5A3 (ditor

5y directly using the Menu Painter

6hen creating a status you can either create a new menu bar application toolbar and new ampey

settings yourself top down- or use existing objects for your interface bottom up- or a use

combination of both methods

tatus names can hae a maximum of 78 characters 9etters must be upper0case-

5y choosing a status type you determine whether a status refers to a normal screen or a dialog box

According to what you hae choosen different types of functions are put at your disposal

se the statement SET PF-STATUS ltNAMEgt to set the status of the basic list by programming

it into one of the processing blocamps that are processed before the basic list is sent

(C) SAP AG BC400 10-

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 823

06

983209 SAP AG 1999

Adusting Statuses

Adust status te)plate

BAS

nclampe eplae n

Sas

Sas eplae

s sas

Selecon Sceen

Application toolbar

ey settings

Menu bars

-ine selection list

-ine selection list

-ist dit oto

serriented

gtesign

The Adjust template function found in the Etras menu allows you to include standardi2ed

function codes in your status This function further allows you to include objects from a status of

your choice with the existing status This allows you to choose norms for list statuses and selection

screens or use any other status you want from another A5A3 program

(C) SAP AG BC400 10-7

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 923

0

983209 SAP AG 1999

Application toolbar

Positions 8=

ey settings

Menu bars

amplight )aster data ey settings

amplight )aster data application toolbar

amplight )aster data )enu bar

PIC

eco))end function eys settings

amp2amp3

Shiftamp6

ampreely assigned function eys

amp9

ampamp=

amp6amp

Shiftamp8

Standard toolbar

8BAC ltSA=

PC Choose

P 8SC P-- P-

Creating Statuses ey Settings

4ou assign function codes to function ampeys by entering them into one of the function ampey settings

sections 1or 9ist statuses you can include standardi2ed function codes as well

ey settings can be diided into three areas

tandard toolbar ertain pre0defined function codes are mandatory for the functions ae

5acamp (xit program ancel 3rint and for the croll icons as well as for the (nter pushbutton

imply assign these codes to the standard toolbar icon and they will be automatically assigned

to their corresponding pushbutton

ecommend function keys settings

Freely assigned function keys

4ou can also define buttons on a button bar for those function ampeys that are used most often These

pushbuttons can either be icons or pushbuttons with text

(C) SAP AG BC400 10-9

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1023

080

983209 SAP AG 1999

Menu bars

Application toolbar

amplight )aster data dit oto

ey settings

amplight )aster data application toolbar

amplight )aster data ey settings

amplight )aster data )enu bar

Code Te7t

Print

Sa$e in PC file

Sa$e

7it

PI

PC

SAlt

Code Te7t

Choose

ampind

ampind again

Cancel

PIC

SC

SC5

B

Code Te7t

acAC

Creating Statuses Menu ars

f so desired proposals will be suggested for your menu bar They can howeer be modified

Menu bars can contain up to eight menus 4ou can define up to six of these yourself but the System

and Help menus are added automatically by the system

(C) SAP AG BC400 10-10

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1123

088

983209 SAP AG 1999

Status SCStatus SC

ScreenScreen

08000800

ScreenScreen

08000800

Menu bars

amplight )aster data

ey settings

amplight )aster data

Application toolbar

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

Standard

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist-ist

inacti$e

amplight )aster data

dit

oto

Title 800

7a)ple Progra) Interface

n order to complete our example program interface we must create title and status for the screen in

addition to the basic list status The screen status should refer to the same menu bar application

toolbar and ampey settings as the list status The only difference should be that all standard functions

should be set to inactie except BACK und SAVE

The following objects all can be part of an interface

functions

Menus

Menu bars

ey settings

Application toolbar

tatus

Titles

(C) SAP AG BC400 10-11

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 6: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 623

0

983209 SAP AG 1999

Menu bars

amplight )aster data

ey settings

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

-ist

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist

inacti$e

Application toolbar

amplight )aster data

Statuses Interface lties

A status is the actual form that a menu bar a standard toolbar and an application toolbar taampe on for

a particular screen within your program A status determines which functions are active or

executable or inactive and not able to be executed for a particular screen 4ou can change a screens

status at 35 for example the function )isplayhange in the A5A3 (ditor allows you to switch

between different statuses

1rom a technical point of iew a status is always a reference to a particular menu bar standard

toolbar and application toolbar

ow lets define a status for a list

(C) SAP AG BC400 10-6

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 723

0=

983209 SAP AG 1999

CancelNo

Creating I Statuses for -ists

START-OF-SELECTION

SET PF-STATUS -IST

G sas $he sas S$ ampoes no es

o +o an o ceae he oec

es

S$

Sas o lh ls

Poa

Sas

Sas aes

Sho e

Sas +pealo sas

alo o

Cone en

Create Status

Create obect

4ou can create and maintain statuses in one of three different ways

5y using the object list of the bject aigator

5y using forward navigation in the A5A3 (ditor

5y directly using the Menu Painter

6hen creating a status you can either create a new menu bar application toolbar and new ampey

settings yourself top down- or use existing objects for your interface bottom up- or a use

combination of both methods

tatus names can hae a maximum of 78 characters 9etters must be upper0case-

5y choosing a status type you determine whether a status refers to a normal screen or a dialog box

According to what you hae choosen different types of functions are put at your disposal

se the statement SET PF-STATUS ltNAMEgt to set the status of the basic list by programming

it into one of the processing blocamps that are processed before the basic list is sent

(C) SAP AG BC400 10-

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 823

06

983209 SAP AG 1999

Adusting Statuses

Adust status te)plate

BAS

nclampe eplae n

Sas

Sas eplae

s sas

Selecon Sceen

Application toolbar

ey settings

Menu bars

-ine selection list

-ine selection list

-ist dit oto

serriented

gtesign

The Adjust template function found in the Etras menu allows you to include standardi2ed

function codes in your status This function further allows you to include objects from a status of

your choice with the existing status This allows you to choose norms for list statuses and selection

screens or use any other status you want from another A5A3 program

(C) SAP AG BC400 10-7

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 923

0

983209 SAP AG 1999

Application toolbar

Positions 8=

ey settings

Menu bars

amplight )aster data ey settings

amplight )aster data application toolbar

amplight )aster data )enu bar

PIC

eco))end function eys settings

amp2amp3

Shiftamp6

ampreely assigned function eys

amp9

ampamp=

amp6amp

Shiftamp8

Standard toolbar

8BAC ltSA=

PC Choose

P 8SC P-- P-

Creating Statuses ey Settings

4ou assign function codes to function ampeys by entering them into one of the function ampey settings

sections 1or 9ist statuses you can include standardi2ed function codes as well

ey settings can be diided into three areas

tandard toolbar ertain pre0defined function codes are mandatory for the functions ae

5acamp (xit program ancel 3rint and for the croll icons as well as for the (nter pushbutton

imply assign these codes to the standard toolbar icon and they will be automatically assigned

to their corresponding pushbutton

ecommend function keys settings

Freely assigned function keys

4ou can also define buttons on a button bar for those function ampeys that are used most often These

pushbuttons can either be icons or pushbuttons with text

(C) SAP AG BC400 10-9

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1023

080

983209 SAP AG 1999

Menu bars

Application toolbar

amplight )aster data dit oto

ey settings

amplight )aster data application toolbar

amplight )aster data ey settings

amplight )aster data )enu bar

Code Te7t

Print

Sa$e in PC file

Sa$e

7it

PI

PC

SAlt

Code Te7t

Choose

ampind

ampind again

Cancel

PIC

SC

SC5

B

Code Te7t

acAC

Creating Statuses Menu ars

f so desired proposals will be suggested for your menu bar They can howeer be modified

Menu bars can contain up to eight menus 4ou can define up to six of these yourself but the System

and Help menus are added automatically by the system

(C) SAP AG BC400 10-10

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1123

088

983209 SAP AG 1999

Status SCStatus SC

ScreenScreen

08000800

ScreenScreen

08000800

Menu bars

amplight )aster data

ey settings

amplight )aster data

Application toolbar

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

Standard

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist-ist

inacti$e

amplight )aster data

dit

oto

Title 800

7a)ple Progra) Interface

n order to complete our example program interface we must create title and status for the screen in

addition to the basic list status The screen status should refer to the same menu bar application

toolbar and ampey settings as the list status The only difference should be that all standard functions

should be set to inactie except BACK und SAVE

The following objects all can be part of an interface

functions

Menus

Menu bars

ey settings

Application toolbar

tatus

Titles

(C) SAP AG BC400 10-11

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 7: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 723

0=

983209 SAP AG 1999

CancelNo

Creating I Statuses for -ists

START-OF-SELECTION

SET PF-STATUS -IST

G sas $he sas S$ ampoes no es

o +o an o ceae he oec

es

S$

Sas o lh ls

Poa

Sas

Sas aes

Sho e

Sas +pealo sas

alo o

Cone en

Create Status

Create obect

4ou can create and maintain statuses in one of three different ways

5y using the object list of the bject aigator

5y using forward navigation in the A5A3 (ditor

5y directly using the Menu Painter

6hen creating a status you can either create a new menu bar application toolbar and new ampey

settings yourself top down- or use existing objects for your interface bottom up- or a use

combination of both methods

tatus names can hae a maximum of 78 characters 9etters must be upper0case-

5y choosing a status type you determine whether a status refers to a normal screen or a dialog box

According to what you hae choosen different types of functions are put at your disposal

se the statement SET PF-STATUS ltNAMEgt to set the status of the basic list by programming

it into one of the processing blocamps that are processed before the basic list is sent

(C) SAP AG BC400 10-

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 823

06

983209 SAP AG 1999

Adusting Statuses

Adust status te)plate

BAS

nclampe eplae n

Sas

Sas eplae

s sas

Selecon Sceen

Application toolbar

ey settings

Menu bars

-ine selection list

-ine selection list

-ist dit oto

serriented

gtesign

The Adjust template function found in the Etras menu allows you to include standardi2ed

function codes in your status This function further allows you to include objects from a status of

your choice with the existing status This allows you to choose norms for list statuses and selection

screens or use any other status you want from another A5A3 program

(C) SAP AG BC400 10-7

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 923

0

983209 SAP AG 1999

Application toolbar

Positions 8=

ey settings

Menu bars

amplight )aster data ey settings

amplight )aster data application toolbar

amplight )aster data )enu bar

PIC

eco))end function eys settings

amp2amp3

Shiftamp6

ampreely assigned function eys

amp9

ampamp=

amp6amp

Shiftamp8

Standard toolbar

8BAC ltSA=

PC Choose

P 8SC P-- P-

Creating Statuses ey Settings

4ou assign function codes to function ampeys by entering them into one of the function ampey settings

sections 1or 9ist statuses you can include standardi2ed function codes as well

ey settings can be diided into three areas

tandard toolbar ertain pre0defined function codes are mandatory for the functions ae

5acamp (xit program ancel 3rint and for the croll icons as well as for the (nter pushbutton

imply assign these codes to the standard toolbar icon and they will be automatically assigned

to their corresponding pushbutton

ecommend function keys settings

Freely assigned function keys

4ou can also define buttons on a button bar for those function ampeys that are used most often These

pushbuttons can either be icons or pushbuttons with text

(C) SAP AG BC400 10-9

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1023

080

983209 SAP AG 1999

Menu bars

Application toolbar

amplight )aster data dit oto

ey settings

amplight )aster data application toolbar

amplight )aster data ey settings

amplight )aster data )enu bar

Code Te7t

Print

Sa$e in PC file

Sa$e

7it

PI

PC

SAlt

Code Te7t

Choose

ampind

ampind again

Cancel

PIC

SC

SC5

B

Code Te7t

acAC

Creating Statuses Menu ars

f so desired proposals will be suggested for your menu bar They can howeer be modified

Menu bars can contain up to eight menus 4ou can define up to six of these yourself but the System

and Help menus are added automatically by the system

(C) SAP AG BC400 10-10

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1123

088

983209 SAP AG 1999

Status SCStatus SC

ScreenScreen

08000800

ScreenScreen

08000800

Menu bars

amplight )aster data

ey settings

amplight )aster data

Application toolbar

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

Standard

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist-ist

inacti$e

amplight )aster data

dit

oto

Title 800

7a)ple Progra) Interface

n order to complete our example program interface we must create title and status for the screen in

addition to the basic list status The screen status should refer to the same menu bar application

toolbar and ampey settings as the list status The only difference should be that all standard functions

should be set to inactie except BACK und SAVE

The following objects all can be part of an interface

functions

Menus

Menu bars

ey settings

Application toolbar

tatus

Titles

(C) SAP AG BC400 10-11

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 8: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 823

06

983209 SAP AG 1999

Adusting Statuses

Adust status te)plate

BAS

nclampe eplae n

Sas

Sas eplae

s sas

Selecon Sceen

Application toolbar

ey settings

Menu bars

-ine selection list

-ine selection list

-ist dit oto

serriented

gtesign

The Adjust template function found in the Etras menu allows you to include standardi2ed

function codes in your status This function further allows you to include objects from a status of

your choice with the existing status This allows you to choose norms for list statuses and selection

screens or use any other status you want from another A5A3 program

(C) SAP AG BC400 10-7

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 923

0

983209 SAP AG 1999

Application toolbar

Positions 8=

ey settings

Menu bars

amplight )aster data ey settings

amplight )aster data application toolbar

amplight )aster data )enu bar

PIC

eco))end function eys settings

amp2amp3

Shiftamp6

ampreely assigned function eys

amp9

ampamp=

amp6amp

Shiftamp8

Standard toolbar

8BAC ltSA=

PC Choose

P 8SC P-- P-

Creating Statuses ey Settings

4ou assign function codes to function ampeys by entering them into one of the function ampey settings

sections 1or 9ist statuses you can include standardi2ed function codes as well

ey settings can be diided into three areas

tandard toolbar ertain pre0defined function codes are mandatory for the functions ae

5acamp (xit program ancel 3rint and for the croll icons as well as for the (nter pushbutton

imply assign these codes to the standard toolbar icon and they will be automatically assigned

to their corresponding pushbutton

ecommend function keys settings

Freely assigned function keys

4ou can also define buttons on a button bar for those function ampeys that are used most often These

pushbuttons can either be icons or pushbuttons with text

(C) SAP AG BC400 10-9

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1023

080

983209 SAP AG 1999

Menu bars

Application toolbar

amplight )aster data dit oto

ey settings

amplight )aster data application toolbar

amplight )aster data ey settings

amplight )aster data )enu bar

Code Te7t

Print

Sa$e in PC file

Sa$e

7it

PI

PC

SAlt

Code Te7t

Choose

ampind

ampind again

Cancel

PIC

SC

SC5

B

Code Te7t

acAC

Creating Statuses Menu ars

f so desired proposals will be suggested for your menu bar They can howeer be modified

Menu bars can contain up to eight menus 4ou can define up to six of these yourself but the System

and Help menus are added automatically by the system

(C) SAP AG BC400 10-10

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1123

088

983209 SAP AG 1999

Status SCStatus SC

ScreenScreen

08000800

ScreenScreen

08000800

Menu bars

amplight )aster data

ey settings

amplight )aster data

Application toolbar

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

Standard

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist-ist

inacti$e

amplight )aster data

dit

oto

Title 800

7a)ple Progra) Interface

n order to complete our example program interface we must create title and status for the screen in

addition to the basic list status The screen status should refer to the same menu bar application

toolbar and ampey settings as the list status The only difference should be that all standard functions

should be set to inactie except BACK und SAVE

The following objects all can be part of an interface

functions

Menus

Menu bars

ey settings

Application toolbar

tatus

Titles

(C) SAP AG BC400 10-11

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 9: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 923

0

983209 SAP AG 1999

Application toolbar

Positions 8=

ey settings

Menu bars

amplight )aster data ey settings

amplight )aster data application toolbar

amplight )aster data )enu bar

PIC

eco))end function eys settings

amp2amp3

Shiftamp6

ampreely assigned function eys

amp9

ampamp=

amp6amp

Shiftamp8

Standard toolbar

8BAC ltSA=

PC Choose

P 8SC P-- P-

Creating Statuses ey Settings

4ou assign function codes to function ampeys by entering them into one of the function ampey settings

sections 1or 9ist statuses you can include standardi2ed function codes as well

ey settings can be diided into three areas

tandard toolbar ertain pre0defined function codes are mandatory for the functions ae

5acamp (xit program ancel 3rint and for the croll icons as well as for the (nter pushbutton

imply assign these codes to the standard toolbar icon and they will be automatically assigned

to their corresponding pushbutton

ecommend function keys settings

Freely assigned function keys

4ou can also define buttons on a button bar for those function ampeys that are used most often These

pushbuttons can either be icons or pushbuttons with text

(C) SAP AG BC400 10-9

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1023

080

983209 SAP AG 1999

Menu bars

Application toolbar

amplight )aster data dit oto

ey settings

amplight )aster data application toolbar

amplight )aster data ey settings

amplight )aster data )enu bar

Code Te7t

Print

Sa$e in PC file

Sa$e

7it

PI

PC

SAlt

Code Te7t

Choose

ampind

ampind again

Cancel

PIC

SC

SC5

B

Code Te7t

acAC

Creating Statuses Menu ars

f so desired proposals will be suggested for your menu bar They can howeer be modified

Menu bars can contain up to eight menus 4ou can define up to six of these yourself but the System

and Help menus are added automatically by the system

(C) SAP AG BC400 10-10

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1123

088

983209 SAP AG 1999

Status SCStatus SC

ScreenScreen

08000800

ScreenScreen

08000800

Menu bars

amplight )aster data

ey settings

amplight )aster data

Application toolbar

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

Standard

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist-ist

inacti$e

amplight )aster data

dit

oto

Title 800

7a)ple Progra) Interface

n order to complete our example program interface we must create title and status for the screen in

addition to the basic list status The screen status should refer to the same menu bar application

toolbar and ampey settings as the list status The only difference should be that all standard functions

should be set to inactie except BACK und SAVE

The following objects all can be part of an interface

functions

Menus

Menu bars

ey settings

Application toolbar

tatus

Titles

(C) SAP AG BC400 10-11

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 10: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1023

080

983209 SAP AG 1999

Menu bars

Application toolbar

amplight )aster data dit oto

ey settings

amplight )aster data application toolbar

amplight )aster data ey settings

amplight )aster data )enu bar

Code Te7t

Print

Sa$e in PC file

Sa$e

7it

PI

PC

SAlt

Code Te7t

Choose

ampind

ampind again

Cancel

PIC

SC

SC5

B

Code Te7t

acAC

Creating Statuses Menu ars

f so desired proposals will be suggested for your menu bar They can howeer be modified

Menu bars can contain up to eight menus 4ou can define up to six of these yourself but the System

and Help menus are added automatically by the system

(C) SAP AG BC400 10-10

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1123

088

983209 SAP AG 1999

Status SCStatus SC

ScreenScreen

08000800

ScreenScreen

08000800

Menu bars

amplight )aster data

ey settings

amplight )aster data

Application toolbar

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

Standard

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist-ist

inacti$e

amplight )aster data

dit

oto

Title 800

7a)ple Progra) Interface

n order to complete our example program interface we must create title and status for the screen in

addition to the basic list status The screen status should refer to the same menu bar application

toolbar and ampey settings as the list status The only difference should be that all standard functions

should be set to inactie except BACK und SAVE

The following objects all can be part of an interface

functions

Menus

Menu bars

ey settings

Application toolbar

tatus

Titles

(C) SAP AG BC400 10-11

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 11: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1123

088

983209 SAP AG 1999

Status SCStatus SC

ScreenScreen

08000800

ScreenScreen

08000800

Menu bars

amplight )aster data

ey settings

amplight )aster data

Application toolbar

amplight )aster data

-ist of ampunctions

PCSAVE

RW PICK

Standard

-ist

functionsBACK

PRI EX

P++ P--P+ P-

Status -ISTStatus -IST

-ist-ist

inacti$e

amplight )aster data

dit

oto

Title 800

7a)ple Progra) Interface

n order to complete our example program interface we must create title and status for the screen in

addition to the basic list status The screen status should refer to the same menu bar application

toolbar and ampey settings as the list status The only difference should be that all standard functions

should be set to inactie except BACK und SAVE

The following objects all can be part of an interface

functions

Menus

Menu bars

ey settings

Application toolbar

tatus

Titles

(C) SAP AG BC400 10-11

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 12: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1223

082

983209 SAP AG 1999

Creating I Titles for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SET TITLEBAR 00

ENDMODULE

Title code

Titles

amplight connections

Sa$e

Poa

$le coampe

$les

Create Title

100

Chane lh es

G sas $le 100 ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es No

800

Conne

4ou can create and maintain titles in one of three different ways

5y using the object list of the epository 5rowser

5y using forward navigation in the A5A3 (ditor

or by directly using the Menu Painter

se the A5A3 statement SET TITLEBAR ltnnngt in a 35 module to set screen titles nnn is

three character number seuence f you create the suggested 35 module status_nnnn using

forward naigation this statement is automatically generated in the module and starred out

Actiate the statement by erasing the star and entering the number of the title The title can

subseuently be created using forward naigation

(C) SAP AG BC400 10-12

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 13: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1323

08(

983209 SAP AG 1999

Creating I Statuses for a Screen

MODULE status_000 OUTPUT

SET PF-STATUS SCREENSET TITLEBAR 00

ENDMODULE

SC

G sas $he sas SCN ampoes no es

o +o an o ceae he oec

Cancel

Create obect

es NoCreate Status

SCN

Sas o lh ls

Poa

Sas

Sas

aes

Sho e

Sas +pealo sas

alo o

Cone en

n order to create a status for a screen

reate a 35 module containing the statement SET PF-STATUS ltNAMEgt AME can

contain up to twenty numbers or capital letters This statement is pre0generated wheneer you create

the module status_nnnn using forward naigation

reate the status using forward naigation

hoose )ialog as your status type

se the 1lt help to display the ampey settings and menu bar and then

et those functions you want to actie n our example these are the functions BACK and

SAVE

These function codes are also ealuated in the 3A module just as a screens pushbutton function

codes f you want to include additional function codes you can expand the 3A module in which

the function codes are ueried n the example USER_COMMAND_000-

(C) SAP AG BC400 10-13

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 14: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1423

083

983209 SAP AG 1999

Including 7isting le)ents

ey settings

Menu bars

SCREEN

SCREEN

SCREEN

-ist of ampunctions

gtisplays e7isting

obects and

allos you

to select the)to beco)e

Application toolbar

The screen status must reference the same menu bar and function ampey assignment as the list status

4ou can display all the menu bars and function ampey assignments that are already defined using the

icon shown aboe The example program shows only one menu bar and one function ampey

assignment which you can choose by double0clicamping

The status contains the same objects as the basic list status but initially all these objects are inactie

Actiate the functions that are to be used in the USER_COMMAND_000 3A module as follows

hoose Change mode by double0clicamping the DisplayChange button

3lace the cursor on the function code you wish to actiate and choose the ActiveInactive icon on

the button bar

(C) SAP AG BC400 10-14

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 15: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1523

089

983209 SAP AG 1999

Dou are no able to

Interfaces nit Su))ary

Create a I title

Create I statuses for lists and screens that

contain the folloing

Menu bars

Standard toolbars

Application toolbars

ampunction ey settings

(C) SAP AG BC400 10-15

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 16: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1623

087ercises

$nit ampnterfaces

At the conclusion of these exercises you will be able to

bull reate user interfaces for a program

bull nclude a + status and + title in a program

(xtend your program $BC00_ampamp_ SCREEN The system displays the texts that belong to the list and screen in the title

bar 4ou must specify the correct status for the list and screen

Program $BC00_ampamp_DNPRO

Model solution SAPBC00UDS_DNPRO_

=0= (xtend your program $BC00_ampamp_DNPRO or copy the releant model solution

SAPBC00UDS_DNPRO_( and gie it the name $BC00_ampamp_DNPRO_

Assign your program to the deelopment class $BC00_ampamp and to the transport

reuest for this project 5lt88gt replacing with your group number-

=07 1irst define a status for the list reate the status type dialog status- using forward

naigation nclude the appropriate A5A3 statement in the erarbeitungsblocamp

START-OF-SELECTION processing blocamp

The status you create must correspond to the standard list status To create yourfunction ampey assignment button bar and menu bar choose Extras -gt Adust

template-gt ist status and add your function codes hange the name of the left

menu list from 9ist to 3ostings

Add the function code SAVE The user should be able to trigger this by choosing

the ave icon in the standard toolbar or by choosing Postings in the menu

eactivate the SAVE function code in this status

=0$ Assign a status type dialog status- to the screen n the PROCESS BEFORE

OUTPUT eent call a module which includes the appropriate A5A3 statement

)o not create a new function ampey assignment button bar or menu bar nsteadreference them to the objects you created in the last exercise =07-

Actiate the function codes SAVE and BACK ae the interface

(C) SAP AG BC400 10-16

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 17: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1723

=0lt Assign a + title to the basic list and screen using forward naigation- and

generate the interface

(C) SAP AG BC400 10-1

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 18: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1823

08=Solutions

$nit ampnterfaces

=07 n the program source text add the SET PF-STATUS LIST statement to the START-

OF-SELECTION eent

ote Text between the two apostrophes must be in upper case-

bull n the program line SET PF-STATUS LIST double0clicamp the LIST status name

The system displays a dialog box containing the words he $I interace

status ampIS d(es n(t exist) D( y(u ant t( create it B

(hoose to confirm)

Enter a sh(rt text

(hoose the Dial(g status status type

bull hoose Extras Adjust template List status

bull Adapt the name of the menu bar and function ampey assignment to your own needs

bull )ouble0clicamp the menu bar hoose Change mode hange the name of the menu list to +(stings

hoose to leae the dialog box

bull )ouble0clicamp the function0ampey assignment (nter the function code SAVE in the standard toolbar

beside the icon

bull To maampe the function aailable in the +(stings menu

bull oubleclick +(stings

bull reate a new line in the menu

bull (nter the code SAVE

bull onfirm your entries

bull

hoose to leae the dialog boxbull 3lace the cursor on the SAVE function code and deactiate the function using

bull Actiate the status

=0$ )isplay screen =88 in change mode by selecting the screen number in the

program object list and using the alternate mouse button- n the flow logic of the PROCESS

BEFORE OUTPUT eent add the statement

MODULE s)t_status_000

bull reate the module using forward naigation )ouble0clicamp the name of the moduleC choose

es to confirm the settings in the dialog box n the next dialog box choose ain pr(gram

and add the following source text

----------------------------------------

Mu$ SET_STATUS_000 OUTPUT

(C) SAP AG BC400 10-17

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 19: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 1923

----------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

ENDMODULE

bull reate the status using forward naigation )ouble0clicamp DNPRO in the SET PF-

STATUS DNPRO statement

bull hoose es to confirm the settings in the dialog box

bull n the next dialog box that appears enter a short text and choose Dial(g status

bull 3lace the cursor on the menu bar and choose the icon reate the reference to the

existing menu bar by double0clicamping

bull 3lace the cursor on the function ampey and choose the icon reate the reference to the

existing function ampey assignment by double0clicamping

bull Actiate the two functions SAVE and BACK by placing the cursor on the function code in

the menu or on the function ampey assignment and choosing

bull ae your entries and actiate the status

bull Actiate the screen

(C) SAP AG BC400 10-19

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 20: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2023

=0lt (xtend the program source text in theSTART-OF- SELECTIONamp

SET PF-STATUS LIST

SET TITLEBAR LIST

reate the title using forward naigation and enter the text in the dialog box thatappears

(xtend the source text of the SET_STATUS_000 module

------------------------------------------

Mu$ SET_STATUS_000 OUTPUT

------------------------------------------

MODULE s$t_status_000 OUTPUT

SET PF-STATUS DNPRO

SET TITLEBAR DNPRO

ENDMODULE

reate the title using forward naigation and enter the text in the dialog box that

appears

Actiate the status and the program

ource tet for the program SAPBC00UDS_DNPRO_(--------------------------------------------------------------

( R$)t SAPBC+00UDS_DNPRO_+

(

(--------------------------------------------------------------

REPORT sa)+00us_n)_

CONSTANTSamp att_1s)a TPE at1_aut2 VALUE 03

att_2an4$ TPE at1_aut2 VALUE 05

TABLESamp sn_6

PARAMETERSamp )a_a4nu7 TPE s_a4nnu7

DATAamp 8a_ust TPE s+00ust3

1t_ust TPE s+00_t_s+00ust

DATAamp 8a_s6 TPE s6

DATAamp 6_$ LIKE s-u773 sa$_6 LIKE 6_$

(C) SAP AG BC400 10-20

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 21: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2123

START-OF-SELECTION

SELECT 1 na7$ FROM sust7 INTO TABLE 1t_ust

SELECT a1 nn1 9at$ 61 ust71

FROM s6 INTO CORRESPONDIN FIELDS OF 8a_s6

ERE a4$nnu7 = )a_a4nu7

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_1s)a

IF s-su = 0

READ TABLE 1t_ust INTO 8a_ust

IT TABLE KE 1 = 8a_s6-ust71

RITEamp 8a_s6-a1 COLOR COL_KE3

8a_s6-nn1 COLOR COL_KE3

8a_s6-9at$ COLOR COL_KE3

8a_s6-61 COLOR COL_KE3

8a_ust-na7$ COLOR COL_KE

1$ 6$ 91$s 9 ataas$ ta$ SBOOK an ust7$ na7$

IDEamp 8a_s6-a13 8a_s6-nn13 8a_s6-9at$3

8a_s6-613 8a_ust-na7$ ENDIF

ENDSELECT

S)t tt) a status st

s)t tt)1a2 LIST 3t4 5a_a6u7

s)t 5-status LIST

CLEAR 8a_s6

AT LINE-SELECTION

IF s-s1n =

AUTORIT-CECK OBECT S_CARRID

ID CARRID FIELD 8a_s6-a1

ID ACTVT FIELD att_2an4$

IF s-su = 0

SELECT SINLE FROM s6 INTO 8a_s6

ERE a1 = 8a_s6-a1 AND nn1 = 8a_s6-nn1

AND 9at$ = 8a_s6-9at$

(C) SAP AG BC400 10-21

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 22: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2223

AND 61 = 8a_s6-61

IF s-su ltgt 0

MESSAE 1+00

ELSE

MOVE-CORRESPONDIN 8a_s6 TO sn_6

MOVE 8a_sust-na7$ TO sn_6-na7$

CALL SCREEN 00

ENDIF

ELSE

MESSAE s0++00 IT 8a_s6-a1

ENDIF

ENDIF

CLEAR 8a_s6

-------------------------------------------------------

Mu) SET_STATUS_000 OUTPUT

-------------------------------------------------------

7u) s)t_status_000 ut5ut

s)t tt) a status s82)) 00 s)t tt)1a2 DNPRO

s)t 5-status DNPRO

)7u) 9 SET_STATUS_000 OUTPUT

(-------------------------------------------------------

( Mu$ USER_COMMAND_000 INPUT

(------------------------------------------------------- na71a s$$n 98 $)$n1n4 n us$ at1n

--------------------------------------------------------

(C) SAP AG BC400 10-22

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT

Page 23: EXP_0010 Interfaces.doc

8162019 EXP_0010 Interfacesdoc

httpslidepdfcomreaderfullexp0010-interfacesdoc 2323

MODULE us$_77an_000 INPUT

sa$_6 = 6_$

C$a OK-C$ F1$ 1n $ t 2a$ 1t 1n1t1a1$ n n$t s$$n

CLEAR 6_$

CASE sa$_6

EN BACK

SET SCREEN 0

EN SAVE

MOVE-CORRESPONDIN sn_6 TO 8a_s6

Sa1n4 t2$ 2an4$ atas$t 81 $ 17)$7$nt$ at$

7$ssa4$ 100+00

SET SCREEN 0

EN OTERS

SET SCREEN 00

ENDCASE

ENDMODULE USER_COMMAND_000 INPUT