I am in Learning Journey "Acquiring Core ABAP Skills", Unit 7 "Database Updates Using Business Objects", last exercise "Modifying Data Using EML" (link)
[Update 2023-11-15: without me running anything, just freshly launching Eclipse and ADT, I see the syntax error already. Inserting Screenshot below.]
On execution I receive the following error. Looks like it has nothing to with my code. Is this because on Trial the ABAP Platform instance is shared and sb. could have broken the /DMO/R_AGENCYTYP?
"/DMO/AGENCY_D" is not a suitable draft persistency for "/DMO/R_AGENCY
TP" (there is a type mismatch in field "/DMO/ZZSLOGANZAG").
I use a BTP Trial account in US East (link)
My implementation code looks very similar to the code presented in the demo in that chapter and I cannot see why it should not be working. Here is my implementation.
DATA update_tab TYPE TABLE FOR UPDATE /DMO/R_AgencyTP.
update_tab = VALUE #( ( agencyID = '070002' Name = 'Fligh High Martin' ) ).
MODIFY ENTITIES OF /DMO/R_AgencyTP
UPDATE FIELDS ( name )
out->write( `written to DB. Now check for updates.` ).
Hi @MartinKnechtel ,
This error indicates a mismatch between the CDS view entity /DMO/R_AgencyTP and the related draft table /DMO/AGENCY_D.
Those objects lie in the /DMO/ namespace. They were imported into your BTP trial instance from a git repository and I am sure, the objects were consistent when imported.
The simplest explanation is, that another user changed CDS view entity /DMO/R_AgencyTP (that's what you assumed already). In particular, the user must have changed the type of field ZZSLOGANZAG, which is part of a demo extension of business object /DMO/R_AgencyTP.
Unfortunately, I was not able to access your BTP trial instance myself.
What you can do to try and fix this issue:
Let me know if this fixes the issue.