cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RAP : Managed with Unmanaged Save with Draft handling Create Mode issue

Snehal_Mjkrs11
Explorer
0 Likes
236

Hi All,
I have created a Managed app with unmanaged save having code to trigger BAPI to save transactional data.  I have added draft functionality to this app and all works find except for create mode. 

I am able to update root and dependent child node details successfully but when a new Document is created  the earlynumbering_create method is triggered twice and MAPPED table is populated twice.

Thus  cl_numberrange_runtime=>number_get returns 1 Doc # in first run [ Draft mode ]and second run [ After Save is Hit ], Next Document number is generated. This leads to issue that when Document is shown to user a Number is shown

Snehal_Mjkrs11_2-1765809854657.png

On Save, next Docuement # is crated by method  earlynumbering_create

Snehal_Mjkrs11_3-1765809908616.png

Could you please suggest if you have came across such issues and solution for the same. 

Thanks !!

Accepted Solutions (0)

Answers (0)