cancel
Showing results for 
Search instead for 
Did you mean: 

cProject - PS next open PS Number

Former Member
0 Kudos

Hi

We are creating Automatically PS Project using Item cProject - PS route so that Cproject objects are assigned to Top WBS Element.

By default It takes Cproject Project number in PS

I need to have next open number in PS to be used and on saving it should populate the project number in custom field in ppm item.

Would appreciate any expert advice to achieive above - any BADI's

Thanks in advance for this

Regards

atul

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member201206
Active Contributor
0 Kudos

Hi Atul,

the following example codes (made by me for a customer)  should give you some hints, which manipulate the repliecated WBS ID from 24 chars to 21 chars. In your case, you need a rfc function in ERP system, which enable you get the free next number (instead of just cut 3 zeros).  BAdI:  DPR_FIN_GECCO_ATTR methode MODIFY_ATTRIBUTES

   DATA ls_attribute LIKE LINE OF ct_attributes.

   DATA: lv_index like sy-tabix.

    read TABLE ct_attributes with key data_element = 'DPR_TV_PROJECT_ELEMENT_ID_PS'

      into ls_attribute.

    if sy-subrc is INITIAL.

      lv_index = sy-tabix.

      if ls_attribute-value+23(1) is not initial.

        replace first occurrence of '190000' in ls_attribute-value with '190'.

        replace first occurrence of '190000' in ls_attribute-EXT_ATTR_VALUE with '190'.

        MODIFY ct_attributes from ls_attribute index lv_index.

      endif.

    ENDIF.

Kind regards,

Zhenbo

Former Member
0 Kudos

Hi Zhenbo

I need to try the recommended solution however in the interim we used BAdI GCC_PS_PROJECT_LABEL, method GET_WBS_ELEMENT fo rtop WBS Element.

We also want 2nd level WBS linked to Phases however WBS Code (for 2nd level)  we want to be

C-IN.13.001 for Level 1

C-IN.13.001.01 for Level2 correspnding to a phase

C-IN.13.001.02 for Level2 correspnding to a another phase and so on

Not sure how to acheive this?

Lastly PPM Item custom field should be populated with Project definition C-IN.13.001  (project definition) once a project is created

Would appreciate if you can please recommend resolution for the same

Thanks in advance

Regards

atul

former_member201206
Active Contributor
0 Kudos

Hi Atul,

I donot get your last questions.

Using the BAdI DPR_FIN_GECCO_ATTR methode MODIFY_ATTRIBUTES you should be able to  set the WBS ID what you would like.

The question, is the BAdI does not work? (you change the ID in the BAdI, but the PS ignore it)

Or there is difficulty to determine  WBS ID within the BAdI.

Kind regards,

Zhenbo

Former Member
0 Kudos

Same BADI that I recommended in tyour other thread: DPR_PLMPS_CUS_FIELD