Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create Activity using BAPI_PROJECT_MAINTAIN !!!

Former Member
0 Likes
676

All,

I have been working to create the PD, WBS Elements, Networks & Activities using the FM BAPI_PROJECT_MAINTAIN.

I am able to create the PD, WBS Elements & Networks.

Now when I am trying to create the Activities, I am unable to find what OBJECTKEY needs to be given in the I_METHOD_PROJECT Table of the FM.

OBJECTTYPE = NETWORKACTIVITY

METHOD = CREATE

OBJECTKEY = ????

I get an Error as - "An incorrect object key was entered for object type NetworkActivity" - when I give the OBJECTKEY as the Network Number for which I want to create the Activity.

I have serached everywhere I could but unable to get the solution.

Please advise - I have literally given up now.

Regards,

Pankaj Agarwal.

2 REPLIES 2
Read only

Former Member
0 Likes
475

Project Definition needs to be passed in OBJECTKEY, if OBJECTTYPE = 'PROJECTDEFINITION'.

Edited by: Poorna Chandrasekhar on Jan 29, 2009 5:12 PM

Read only

Former Member
0 Likes
475

I found out by debugging the FM.

We need pad ht enetwork Number to make it to 12 Digits.