Skip to Content
1
Oct 23, 2019 at 11:47 AM

PPM - Automatic Account Assignment to PS elements using Accounting integration

1120 Views

Hi Experts,

Our requirement is to create automatic project/WBS elements in PS corresponding to PPM project elements using Accounting integration functionality.

We used a standard BADI to influence the PPM project coding mask same as PS project. But, PPM Task coding mask is still different than PS WBS elements coding mask.

The standard BADI “IAOM_ATTRIBUTES” is already used by SAP so we applied another BADI “GCC_PS_PROJECT_DATA “method “MOD_WBS_ELEMENT_DATA_C”.

The below is just a quick and brief program code.

Main Code

LOOP AT itab INTO wa.

ls_wbs-wbs_element = wa-wbs.

ls_wbs-objectclass = 'PA'.

ls_wbs-description = wa-text.

ls_wbs-wbs_up = wa-wbs_up.

ls_wbs-wbs_planning_element= 'X'.

IF wa-task_level NE '1'.

ls_wbs-wbs_account_assignment_element= 'X'.

ls_wbs-wbs_billing_element= 'X'.

ENDIF.

APPEND ls_wbs TO ct_wbs_element.

CLEAR:ls_wbs.

ENDIF.

ENDLOOP.

-----------------

We are able to create automatic WBS elements in PS in corresponding to tasks in PPM. Also, the system is creating new WBS elements on creation of a new task in PPM.

But, we have stuck in implementing Account Assignment functionality. The project elements (Project definition, Phase and Tasks) in PPM are not getting assigned/mapped automatically to corresponding WBS elements in PS as Account assigned (Account Assignment element).

We tried our best but could not find relevant BAPI/BADI to achieve Account Assignment.

Kindly suggest me relevant BAPI/BADI or program code to achieve automatic Account Assignment element functionality.

Regards,