on 03-02-2020 6:34 AM
namespace XXX;
@Schema: 'XXX'
@Catalog.tableType:#COLUMN
entity ZLOGILITY_FC {
KEY WEEKEND_DATE : LocalDate;
KEY MATNR : String(18);
KEY PLANT : String(4);
LOGLEVEL : String (1);
AUDIT_USER : String(100) DEFAULT CURRENT_USER; // Giving error
AUDIT_TIME : UTCTimestamp default CURRENT_TIMESTAMP ; // This works
};
Please refer the reply in below link.
https://answers.sap.com/questions/11989521/populate-a-column-in-table-with-system-user-by-def.html
As per the thread, CURRENT_USER is no support in Create or Alter statements.
The thread is from year 2015, i believe still the current_user is not supported.
I recreated your code and tried different options and always get the error,
Error: Expressions as constants or default values are not supported yet
Error: Expression is not constant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.