天天看点

Annotation @Environment.systemField

The below view declares two argument langauge and system user. The view is used to retrieve product id with description via inner join.

Annotation @Environment.systemField

When we locally preview the view, we are asked to provide the value for these two argument.

Annotation @Environment.systemField

In productive use, it is this @Environment.systemField annotation which takes effect. In open SQL we do not need to explicitly pass value to these two parameters.

See following ABAP code: all products created by Jerry are fetched, although no parameter for user name is passed.

Annotation @Environment.systemField
Annotation @Environment.systemField

You can verify via ST05 that ABAP runtime automatically fills these two parameter for you:

Annotation @Environment.systemField