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

BAPI_PROJECT_MAINTAIN

Former Member
0 Likes
2,273

I am trying to create a network, and ia m using BAPI_PROJECT_MAINTAIN, but in the table I_NETWORK when i fill the NETWORK field with a counter, it tells me that the network doesn´t exit, is neccesary to launch before BAPI_BUS2002_ACT_CREATE_MULTI?

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,529

You can create the network along with project definition and WBS element in single call. That's not the problem. Check your I_MEHOD_PROJECT table.

Have you provided the method to create Network in that before you provided the methods to create activities ? Check the return table completely to check all messages ( not only error message). You might find some hint on error. May be some validation failed at network creation which prevented network from being created.

7 REPLIES 7
Read only

Former Member
0 Likes
1,529

Hello,

Before you call the BAPI, can you also make another BAPI call to BAPI_NETWORK_EXISTENCECHECK, to make sure that the network that you're entering exists?

By the way, why do you enter a Network that doesn't exist ?

Regards,

Anand Mandalika.

Read only

venkata_ramisetti
Active Contributor
0 Likes
1,529

Hi,

Have gone though the function module SE37 documentation?

It has very good documentation.

The below is the few parts of the documentation.

Short Text

Edit project including networks

Functionality

With the Maintain BAPI of the WorkBreakdownStruct business object you can edit the objects of a project definition. You can also use all the functions of the Maintain BAPI of the Network business object.

For more information, see Network.Maintain. With WorkBreakdownStruct.Maintain it is possible to edit the project definition, its WBS elements and their hierarchical relationships. The BAPI encapsulates a complete transaction in itself. As a result, several operations on project elements can be processed by only one call. The R/3 Project System determines in which order the operations are to be executed on the objects. The caller can choose the operations in any order.

As a result, processing is very speedy and effective. However, this transaction concept does not include the use and combination of other SAP BAPIs in the same LUW.

Procedure

The WorkBreakdownStruct business object is a facade of the project definition for WBS elements and their hierarchy.

To edit a project object, enter a command for an object type. In addition, enter the object key and a reference to its attributes.

In the table of the IMethodProject parameter enter the object type, the command and the object key. As a reference enter the index of the object data table of the relevant object type. In the object data table enter the information about the object. If necessary, use an update structure for the object. When entering the object type and method in the IMethodProject table remember that the entries are case-sensitive.

To finish the transaction and store the data in the R/3 database, enter the Save command. If you only want to test whether the changes can be carried out, do not use the save command.

In general, you cannot change the keys of objects.

The return parameter Return indicates whether errors occurred during processing. After the call you find the error messages created during processing in the EmessageTable table.

Commands of the Object Types

For the description of the object types Network, NetworkActivity, NetworkActivityElement, ActivityMilestone, and NetworkRelation, see Network.Maintain.

Object type: Project definition

The Maintain BAPI must always refer to one project definition. Therefore, always enter the structure of a project definition in the IProjectDefinition parameter. Use the project definition as a key. The reference to the data part is always 1. Always enter the project definition in upper case.

Command: Create

Enter the project definition and the project profile. The project profile must exist in the R/3 Project System.

Example - Create a Project Definition in the R/3 Project System

Thanks,

Ramakrishna

Read only

Former Member
0 Likes
1,530

You can create the network along with project definition and WBS element in single call. That's not the problem. Check your I_MEHOD_PROJECT table.

Have you provided the method to create Network in that before you provided the methods to create activities ? Check the return table completely to check all messages ( not only error message). You might find some hint on error. May be some validation failed at network creation which prevented network from being created.

Read only

0 Likes
1,529

Before my bapi i don´t have created the network, i want to create them in the same step that the peps with this bapi, but i dont know ìf i need to launch before BAPI_NETWORK_MAINTAIN or can i do it with only this bapi?, and if i can do with this bapi what has i to have to put in i_NETWORK-NETWORK?

Thanks in advance

Read only

0 Likes
1,529

That is small restriction in this BAPI. In order to use this BAPI or network maintain BAPI, the network profile should be assigned to network type which allows external number assignment. You have to live with that.

Read only

0 Likes
1,529

It runs with BAPI_BUS2002_CREATE that creates the networks.

Thanks to everybody for the help

Read only

Former Member
0 Likes
1,529

Hi Carl son,

Now i have the same requirement to create a network and its components,

Can u please tell me

Thanks,

Swapna