cancel
Showing results for 
Search instead for 
Did you mean: 

How to use BAPI_PROJECT_MAINTAIN to create network activities under WBS elements ?

kirankerudi
Active Participant
0 Kudos

Hello ABAPers,

I have been using BAPI_PROJECT_MAINTAIN to create Project and WBS elements and I have done them without any errors.

Now I need help on how to create network activities.

Can anyone share on how to pass data to I_NETWORK table and I_ACTIVITY table and a brief description on what they are ?

Thanks in advance,

Kiran

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi K.S.,

Thanks for giving hint to code such a difficult BAPI.

The code you have mentioned is useful when a network is already created, then only you can pass AUFNR, for creation of new activity.

Here I wanna to create Complete project structure, so up to Project/WBS Element/WBS Milestone, BAPI is working fine, but for network and activity creation I am getting following error:

"CN187E- An incorrect object key was entered for object type NetworkActivity"

In I_METHOD_PROJECT :

tried, blank object key for NETWORK, given initial no as 4000001, for activity, tried 0010/40000010010.

It doesn't work.

Please let me know if you have any solution on the same.

former_member188724
Contributor
0 Kudos

Hi Kiran,

Do the following steps

1.pass the following to i_method_project
method_project-refnumber = lv_refnum.
method_project-objecttype = 'NETWORK-ACTIVITY'.
method_project-method = 'UPDATE'.
concatenate aufnr(network nr) vornr(activity) into method_project-objectkey.

2.Into i_activity
activity-network = aufnr.
activity-activity = vornr.

3.i_activity_update

activity_update-network = 'X'.
activity_update-activity = 'X'.

It should work.If not let me know.

Rgds,

K.S.

kirankerudi
Active Participant
0 Kudos

Hi K.S,

Thanks. I would surely try and will let you know.