on 11-23-2015 9:47 AM
Hello everyone,
My requirment is to make internal numbering for architectural objects.
Number (AONR) and ID (PARTAOID) of object should be the same and must be chosen from some internal number range, e.g. 1 - 9999, in increasing order.
I found out that BADI_REBD_AO_NUMBER could help me with that, but I don't now how exactly, because I'm new to ABAP.
Will be gratefull for any sugestions. Thanks.
Hello Yury,
I will have to also implement badi for numer assignment so let's share witch our knowledge.
Before You start It is better to read at lest some topics about how to implement BADI at all
In SE18 type BADI_RE_BD_AO and You well get a list of AO BADIs.
The one that You will have to implement is: BADI_REBD_AO_NUMBER.
Unfortunately there is no class example but we can deal with it.
There is an interface: IF_EX_REBD_AO_NUMBER with methods assigned:
GET_NUMBER
IS_INT_NUMBER_ASSIGNMENT
When You click on each method parameters list You will get:
IO_OBJECT Importing
CD_AONR Changing
CD_PARTAOID Changing
CD_PARTSEPARATOR Changing
for method GET_NUMBER and
IO_OBJECT Importing
CD_ISINTERNAL Changing
for IS_INT_NUMBER_ASSIGNMENT.
So it is fine.
You have to create Z-CLASS so what I have done I copied an example:
CL_EXM_IM_REBD_AO_AOID to ZCL_EXM_IM_REBD_AO_NUMBER
and assigned the interfaces:
IF_BADI_INTERFACE
IF_EX_REBD_AO_NUMBER
Once is done You will have to create BADI implementation. It will look like this:
In the method IS_INT_NUMBER_ASSIGNMENT You will have to assign:
CD_ISINTERNAL = ABAP_TRUE.
and in the method GET_NUMBER number assignment for:
CD_AONR
CD_PARTAOID
I believe that for internal number range You can use SNRO.
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramanouski,
Read the IMG activity documentation for the node "Implement Enhancements (BAdI): Number Assignment".
It has sufficient inputs for the developers.
Regards,
Amar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
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.