on 2025 Sep 10 4:39 PM
Hi All,
On creation of Service Binding in Eclipse ADT - I Checked the underlying Views and Behavior Definition. It is not showing any Problem.
Error during compilation - See next line for details. Error in entity 'ZS4T1_C_KUNDE(CDS)': Behavior definition for 'ZS4T1_C_KUNDE' has syntax errors.
Behavior Definition - As follows
managed implementation in class zbp_s4t1_r_kunden unique;
strict ( 2 );
define behavior for ZS4T1_R_KUNDEN alias customers
persistent table zs4t1_kunde
lock master
authorization master ( instance )
//etag master <field_name>
early numbering
{
create( authorization : global );
update;
delete;
field ( readonly ) Kunnr;
association _Orders { create; }
mapping for zs4t1_kunde
{
Kunnr = kunnr;
Name = name;
Vorname = vorname;
Firma = firma;
Str = str;
Stadt = stadt;
Land = land;
Pstl = pstl;
Sperre = sperre;
Adatum = adatum;
Fax = fax;
Telefon = telefon;
Email = email;
Url = url;
Sprache = sprache;
Bname = bname;
Passwort = passwort;
MemoTxt = memo_txt;
CurrencyCode = currency_code;
ZzumsatzZec = zzumsatz_zec;
ZzbcountZec = zzbcount_zec;
createdBy = created_by;
createdAt = created_at;
lastchangedBy = last_changed_by;
lastchangedAt = last_changed_at;
changedAt = changed_at;
}
}
define behavior for ZS4T1_R_PORDERS alias Orders
persistent table zs4t1_puroders
lock dependent by _kunde
authorization dependent by _kunde
//etag master <field_name>
{
update;
delete;
field ( readonly ) Kunnr, Orderid;
association _kunde;
mapping for zs4t1_puroders
{
Kunnr = kunnr;
Orderid = orderid;
Bdatum = bdatum;
Bsumme = bsumme;
CurrencyCode = currency_code;
Rabatt = rabatt;
Bstatus = bstatus;
Info = info;
createdBy = created_by;
createdAt = created_at;
LastChangedBy = last_changed_by;
LastChangedAt = last_changed_at;
changedAt = changed_at;
}
}
Regards
Shobhan
Request clarification before answering.
Can you try activating the behavior definition to see if any error occurs?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.