on 04-19-2016 8:10 PM
Hello,
We would like to use several Business Entities to manage our Buildings but we do not want to have a building number repeated in different BEs yet still use Internal Numbering. For example if we create building 100000 in BE 1 then we want the next building created in BE 2 to be assigned 100001, not re-use 100000.
Does anyone know if this can be done? Is there a BAdI that can do this?
Thanks
Krista
Hi Krista,
For non standard numbering of Usage View objects we have got following BAdIs available:
Business entity BADI_REBD_BUSINESS_ENTITY
Land BADI_REBD_PROPERTY
Building BADI_REBD_BUILDING
Rental object BADI_REBD_RENTAL_OBJECT
You have mention about building numbering.
In BAdI: BADI_REBD_BUILDING there is a method: GET_NUMBER available where You should put the logic of building number assignment.
There are parameters:
IO_OBJECT (Importing) for Generic Object Reference
CD_SGENR (Changing) for Number of Building
KR,
Andrzej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andrzej,
sorry for the delayed response.
Thank you, these BAdIs were what I was looking for. They allow us to force a unique building number on a new record.
Unfortunately my ABAP people tell me that there is still a chance of a repeat of numbers if two people are creating for separate BEs at the same time because the program will not check the buffer, just the tables.
Any ideas on getting around this issue?
thanks
Krista
Hi Krista,
If for each building You want to assign unique number, please use transaction SNUM and create the Z-number range.
Then in ABAP for each number assignment: CALL FUNCTION 'NUMBER_GET_NEXT'
recommended is to lock: CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
and unlock: CALL FUNCTION 'NUMBER_RANGE_DEQUEUE' number range.
This will do the job.
KR,
Andrzej
User | Count |
---|---|
6 | |
5 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.