We have a requirement to build a custom Portfolio Item ID e.g. FE.01.2020.001 where
FE = first two letters from Bucket ID,
01 = a sub-bucket ID,
2020 = Calendar Year and 001 = Running number
I know, SAP proposes standard BADI RPM_OBJECT_SERVICES with method GET_NEXT_NUMBER_FOR_EXTID in order to influence the External ID (Item ID). Here, using this BADI we are unable to get Bucket ID (or details).
But, that BADI determines Portfolio item id based on Item type so it is not useful in our case.
The Calendar year and running number can be built easily.
Is there any other BADI or alternative to bring and use Bucket/Sub-bucket ID in determining Portfolio Item ID?