BC 414 - Programming Database Changes
BC 414 - Programming Database Changes
BC414
Programming Database Updates
SAP NetWeaver
-- Zhang Ning
OPENDSQL通过应用层数据库接口实现对数据库层数据的数据库无关性操作
OPENSQL命令提供一个返回值sy-subrc
0代表成功其他的代表失败
sy-dbcnt显示了数据库操作实际操作了多少行
MANDT字段代表该数据库表示client-specific的
删除数据库所有行
DELETE FROM <dbtab> WHERE <field> LIKE "%"
加锁是为了避免并发访问异常
E Write lock
S Read lock
X Extended write lock
Step 1: The dialog program receives the data updated by the user and writes it to a
special log table.
Step 2: The dialog program closes the logical data packet (LUW) that was written
to the log table,
Step 3: A basis program reads the data associated with the LUW from the log
table and supplies it to the update program.
Step 4: The update program accepts the data transferred to it and updates the
程序间的数据传递
Unit 6: Appendix
Principle of Creating Change Documents
执行授权检查:
Buffer Types: