2024 Apr 23 1:57 PM - edited 2024 Apr 23 4:19 PM
Hi experts,
I created a behavior definition, and it is working fine properly but after adding the "delete" the program dumped
This is the dump details
Frontend Error: Resource not found for the segment 'Delete_mc'., Service: /SAP/-ZUI_AJ_SD_MAIN2_V2-0001
what does that mean and how can I fix this?
CDS behavior definition
managed;
strict ( 2 );
define behavior for ZI_AJ_SD_VBAK2 alias VBAKBDef
implementation in class ZCL_BP_I_AJ_SD_VBAK2 unique
persistent table VBAK
lock master
authorization master ( instance )
//etag master <field_name>
{
field ( readonly ) SalesOrderID;
create;
// update;
delete;
association _ZI_AJ_SD_LIPS2 { create; }
association _ZI_AJ_SD_VBAP2 { create; }
mapping for vbak {
// CDS field = table field
SalesOrderID = vbeln;
SalesDocType = auart;
DocumentDate = audat;
SalesOrg = vkorg;
DistChnl = vtweg;
Division = spart;
RDD = vdatu;
PurchaseOrder = bstnk;
SalesDocCategory = vbtyp;
}
}
// behavior definition for VBAP and LIPS
2024 Apr 23 8:10 PM - edited 2024 Apr 23 8:10 PM
Hello
I believe you should check your Service "ZUI_AJ_SD_MAIN2_V2" for consistency.
Have you checked, re-generated the Service after having made your changes to the code?
There are a number of SAP-KBA's related to "Resource not found for the segment 'XXXXXX'" that offer more information and a path towards analysis and solution ...
Hope this helps
Nic T.