Skip to Content
0
Jan 06, 2023 at 04:33 PM

Early Numbering - Unmanaged Draft scenario with Composition relationship

332 Views

Hi All,

I am developing a Purchase order based app and using Draft functionality . This app has Non GUID based logic based on below blog :

https://blogs.sap.com/2022/03/16/how-to-develop-an-unmanaged-draft-enabled-rap-business-object-with-semantic-keys/

I am facing an issue while creating Purchase Order and items :

1. During header Field population, Control comes in method METHOD earlynumbering_create and entry is created in Draft Header table.

2. When I click on Item Create, control fails to come to method earlynumbering_create. ALso, I found that method clean up is the only common method getting triggered while creating items.

Due to this I have blank Item number for PO and from second Line item creation , dump appears.

Kindly suggest .