cancel
Showing results for 
Search instead for 
Did you mean: 

Activate Draft instance on POST call

Shahab2
Explorer
0 Kudos
194

Hi Everyone,

Have built a Managed RAP with draft mode. I am doing a POST service call with Payloads, and it should create entries under the Persistent Custom table. But the issue is it creates entries in Log table and sometimes it doesn't.

Have gone through link Preparing Draft Instances for Activation | SAP Help Portal but I am not sure where I should call below Activate logic so it can activate the draft instances and it can be moved to Persistent Table.  

Shahab2_0-1721232221609.png

Below is the Business definition logic placed.

Shahab2_2-1721232097619.png

Please guide me how It can be achieved. 

Br,

View Entire Topic
DiegoValdivia
Participant
0 Kudos

Hi @Shahab2 

If you want to create entries directly in the persistence table without passing through the Draft table, then you don't need to use the ACTIVATE action or so.

When you call the MODIFY ENTITIES CREATE sentence set:

%is_draft = if_abap_behv=>mk-off