Entering content frame

Changes to Database Operations Locate the document in its SAP Library structure

Until now, in an NUP the data is copied to field wa or to table line itab as defined by the structure of the table work area dbtab without taking its structure into consideration. Only the length and alignment are checked.

SELECT * FROM dbtab ... INTO wa ...
SELECT * FROM dbtab ... INTO TABLE itab  ...
SELECT * FROM dbtab ... APPENDING TABLE itab ...

FETCH NEXT CURSOR c ... INTO wa.
FETCH NEXT CURSOR c ... INTO TABLE itab.
FETCH NEXT CURSOR c ... APPENDING TABLE itab.

INSERT INTO dbtab ... FROM wa.
INSERT dbtab ... FROM wa.
INSERT dbtab ... FROM TABLE itab.

UPDATE dbtab ... FROM wa.
UPDATE dbtab ... FROM TABLE itab.

MODIFY dbtab ... FROM wa.
MODIFY dbtab ... FROM TABLE itab.

DELETE dbtab FROM wa.
DELETE dbtab FROM TABLE itab.

The following rules are now valid in a UP:

Only the types C, N, D, T, and flat structures of these types are now valid for the version field in any statement that processes database tables (READ, MODIFY, DELETE, LOOP) and uses the VERSION addition. Otherwise, a warning is triggered in an NUS, and a syntax error in a US.

 

Note Use the categories used in the Dictionary when using these types with Structure Enhancements.

Leaving content frame