cancel
Showing results for 
Search instead for 
Did you mean: 

Project Structure creation using IDOC

Former Member

Hello,

We are integrating third part project management software with SAP PS. Projects would be created in third party application and then it would be replicated in SAP.

We intend to use PI as middleware and IDOC approach.

I have few queries-

1. Which IDOC type should be used? Is is PROJECT01?

2. Which is the associated function module? Is it IDOC_INPUT_PROJECT?

3. While using PROJECT01, its giving error-

***   

WBS element: 123.01 . 'SaveReplica' method was not called up via ALE

You tried to create WBS element 123.01 by using BAPI method "SaveReplica".

This method is used for distributing work breakdown structures using ALE and is only intended for internal usage.

***

does this mean, this not an appropriate IDOC type and FM?

4. I read documentation of this IDOC type and it says this would create Project and WBS. Is there anything else to create Network, Activity, Milestone and Material assignments?

Your help is appreciated !

Thanks

Mahesh.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mahesh,

I think you should post this question in ABAP forum for better response. Also consider using BAPI_PROJECT_MAINTAIN instead of idoc.

Regards

Shrikant

Former Member
0 Kudos

Thanks Shrikant for reply.

I have few queries related to BAPI BAPI_PROJECT_MAINTAIN.

Can we use BAPI_PROJECT_MAINTAIN for create as well as change?

Will it be possible to create/maintain all the objects- Project, WBS, Network, Milestone, Activity, Material assignments etc using the same BAPI?

Can we use Z IDOC message type and use it with this BAPI?

In some threads I saw usage of combination of following BAPIs-

1. BAPI_PS_INITIALIZATION

2. BAPI_BUS2001_CREATE

3. BAPI_PS_PRECOMMIT

4. BAPI_TRANSACTION_COMMIT/BAPI_TRANSACTION_ROLLBACK

Is this the case?

I am trying to figure out best approach and more likely along with IDOC for comminication.

Thanks a lot!

Mahesh.

Former Member
0 Kudos

Hi Mahesh,

Yes, you can use the BAPI for create, update & delete project objects.

BAPI documentation says "Each processing unit must be initialized by calling the BAPI "BAPI_PS_INITIALIZATION" once. The processing unit must be finished by calling the BAPIs BAPI_PS_PRECOMMIT and BAPI_TRANSACTION_COMMIT (in that order)."

The 2nd BAPI in your list is for creating project definition only, it wont create other objects.

As I am not technical consultant, I cant comment much on using ZIDOC You can refer to ABAP forums for that.

Hope this helps.

Regards

Shrikant

Former Member
0 Kudos

Thanks Shrikant.