on 09-19-2014 8:10 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.