on 09-14-2013 9:53 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
Same BADI that I recommended in tyour other thread: DPR_PLMPS_CUS_FIELD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
3 | |
1 | |
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.