cancel
Showing results for 
Search instead for 
Did you mean: 

Error during action in RAP application

Karan_Chopra_
Active Participant
0 Kudos
1,178

I am trying to update item table duriog action in RAP application. Basically it updates the item table with internal table data. I am getting very generic error as below. 

Karan_Chopra__0-1710772846167.png

 

Below is the statement I am using

    MODIFY  ENTITIES OF Root_entity IN LOCAL MODE ENTITY Root_entity
          CREATE BY \_item
          FROM  VALUE #( (
                         Root_Key  = '1'
                         Root_Key2 = '2'
                         %is_draft = if_abap_behv=>mk-on
                         %target   = VALUE #( FOR
                                            ls_item IN lt_item INDEX INTO
                                            idx ( %cid                     = idx
                                                  %is_draft                = if_abap_behv=>mk-on
                                                  item_key1                = 'value1'
                                                  %control-item_key1       = if_abap_behv=>mk-on
                                                  item_data_field          = 'value2'
                                                  %control-item_data_field = if_abap_behv=>mk-on
                                            ) ) ) )
                                       MAPPED mapped
                                        REPORTED reported
                                        FAILED failed.

 

 

 

 

View Entire Topic
Karan_Chopra_
Active Participant

Issue Resolved.  It was because of below statement incompatibility

%is_draft = if_abap_behv=>mk-on