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

Releasing network using BAPI_NETWORK_MAINTAIN

Former Member
0 Likes
1,083

Hey all,

I'm having problems releasing networks that has activities with milestones in them using BAPI_NETWORK_MAINTAIN. I have tried using this BAPI to release these activities first before the network itself, but apparently, milestone functions cannot be run in the background, as per the error message given.

I was under the impression that using the BAPI to release the network would release all activities in it, regardless of whether or not the activities have milestones in them. I have used the BAPI to release such networks before.

Is there something else I have to do to release these networks with milestones? Or do I have to use some other function module for this? Please advise. Thanks in advance, everyone.

2 REPLIES 2
Read only

gopi_narendra
Active Contributor
0 Likes
766

In addition to any BAPI you are always supposed to use the BAPI_TRANSACTION_COMMIT.

Are you using it? If not use the commit BAPI if the return of your BAPI is without errors.

Regards

Gopi

Read only

0 Likes
766

Actually there are errors. I think I should detail how I used the BAPI here:

I_METHOD_PROJECT:

REFNUMBER: 000001

OBJECT : Network

METHOD : Release

OBJECTKEY : NETWORK00001

REFNUMBER:

OBJECT :

METHOD : Save

OBJECTKEY :

I_NETWORK:

NETWORK: NETWORK00001

An example of an error returned from the table E_MESSAGE_TABLE was:

METHOD: SAVE

OBJECT_TYPE: ORDER

INTERNAL_OBJECT_ID : %0000001

MESSAGE_TEXT : "Errors occurred during internal number assignment"