Update Statement
TABLES customers.
SELECT SINGLE * FROM customers
WHERE id = 1.
IF sy-subrc = 0.
customers-name = John.
UPDATE customers.
ENDIF.
Request
Application Server
Store request to
queue 3
Tables customers.
List
Generate
1
11
Screen(List)
Send Request
Send List
Write: / customersname.
Dispatcher
2
10
Request
Queue Send request to
WP4
customers where id =
1.
Search for
free WP
Check Program in
Program
Buffer
6
SAP Buffer
Program
User Context
Area
5
9
Database Server
SQL
Request
customers
Roll in
Load&Gen
Program
D010S
Execute
ABAP
statement
Dialog WP : Report
Dialog Work
Process
Local Memory
User Context
TaskHandler
Memory Space
ABAP Processor
DYNPRO Processor
DB Interface
Database Server
List Buffer
PROGRAM
sapmzex001.
Screen
Generate Dialog
11
Screen
Send Request
INCLUDE .
Application Server
Store request to
queue 3
Send List
Dispatcher
2
10
Request
Queue Send request to
WP4
Search for
free WP
Check Program in
Program
Buffer
6
SAP Buffer
Program
User Context
Area
5
9
Database Server
SQL
Request
customers
Roll in
Load&Gen
Program
D010S
Execute
ABAP
statement
Dialog WP : Dialog
Program
Dialog Work
Process
Local Memory
User Context
TaskHandler
Memory Space
ABAP Processor
DYNPRO Processor
DB Interface
Database Server
Screen Buffer
Dialog Program :
Transaction
Dialog Program
Dialog Program
Screen : 100
(Screen Layout)
PAI
Flow Logic
Screen : 200
(Screen Layout)
PBO
PBO
PAI
Flow Logic
Screen Buffer
ABAP Memory Space
Element List
customers-id
PBO
PAI
customers
id
0000000
ok_code
name
city
Flow Logic
Screen Attribute
Screen Layout
Flow Logic
Element List
Element
List(ok_code field)
Program
Example I
Maintain Customers Data
Screen : 100
Screen : 200
Example I
Example I
Screen 100
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
Example I
Screen 100
MODULE status_0100 OUTPUT.
SET PF-STATUS 0100.
SET TITLEBAR 0100.
CLEAR ok_code.
ENDMODULE.
Example I
Screen 100
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN BACK.
LEAVE PROGRAM. leave to screen 0
WHEN space.
SELECT SINGLE * FROM customers
WHERE id = customers-id.
LEAVE TO SCREEN 200.
ENDCASE.
ENDMODULE.
Example I
Screen 200
PROCESS BEFORE OUTPUT.
MODULE STATUS_0200.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0200.
Example I
Screen 200
MODULE status_0200 OUTPUT.
SET PF-STATUS 0200.
SET TITLEBAR 0200.
CLEAR ok_code.
ENDMODULE.
Example I
Screen 200
Example I
TOP Include
TABLES customers.
DATA ok_code TYPE sy-ucomm.
Exercise
Create Dialog Program :
SAPMZCUST<nn>
Transaction Code : ZCUST<nn>
Exercise : Customers
Maintenance
Screen : 100
Screen : 200
FIELD Statement
Example I