Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

RAP dump: Frontend Error: Resource not found for the segment 'Delete_mc'.

AJeB
Participant
0 Kudos

Hi experts,

I created a behavior definition, and it is working fine properly but after adding the "delete" the program dumped

AJeB_0-1713876742813.png

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

 

 

 

 

 

1 REPLY 1

NTeunckens
Active Contributor
0 Kudos

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.