cancel
Showing results for 
Search instead for 
Did you mean: 

PPM - Custom Portfolio Item ID

former_member301510
Contributor
0 Kudos
593

Hi Experts,

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?

Kindly suggest.

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi, ¨

Below code will give you state of existing object and from here, you may find Bucket as well as parent

DATA(lo_inm_session_state) = cl_inm_session_state=>get_instance( ).
CALL METHOD lo_inm_session_state->get_current_context
IMPORTING
es_context = l_context.

former_member301510
Contributor
0 Kudos

Thanks Kanishak.

My ABAP colleague could able to achieve that.