cancel
Showing results for 
Search instead for 
Did you mean: 

EML Modify Update of entity failed with no error message

Mikhail_Minakov
Explorer
0 Kudos

Dear colleagues,

I am trying to update my BO from outside from a function with background task using following EML statement:

        MODIFY ENTITIES OF zi_dm_csorder_root
ENTITY CSOrder
UPDATE FIELDS ( MaintenanceOrder status )
WITH VALUE #( ( guid = entity_data-guid
" %is_draft = if_abap_behv=>mk-off
status = entity_data-status
MaintenanceOrder = entity_data-MaintenanceOrder
%control = VALUE #( MaintenanceOrder = if_abap_behv=>mk-on
status = if_abap_behv=>mk-on )
)
)
FAILED DATA(failed)
REPORTED DATA(reported).

It fails without any error and the only one thing I can see in failed data that the CAUSE is set to DISABLED. Reported is empty.

By debugging I see that only instance feature control and authorisation control (is not implemented) are called during modify statement.

TRY CATCH also did not catch any error.

What may be the reason for this failure?

Is there any way to get reasonable error message in EML?

View Entire Topic
inesmartins
Participant
0 Kudos

Hello,

How did you solve it??

I have the same problem.

Thanks,
Inês Martins

Mikhail_Minakov
Explorer
In my case the problem was in one of my determinations. There was an exception which was not catched and written in reported/failed. You can set a breakpoints at every determination and instance feature in your model and look in debugger what happends there.
Mikhail_Minakov
Explorer
0 Kudos
Also check if the fields you are updating are not read only and if there is any precheck implemented.