cancel
Showing results for 
Search instead for 
Did you mean: 

Error in BAPI BAPI_NETWORK_COMP_ADD

Former Member
0 Kudos

Hi all,

I'm trying to use the BAPI BAPI_NETWORK_COMP_ADD to create material components, soon after to create the network and activities.

I am filling the NUMBER with the value of temporary network created by bapi BAPI_BUS2002_CREATE.

When I run the bapi BAPI BAPI_NETWORK_COMP_ADD, I get the message 00 058 saying that this network does not exist in table AUFK.

Someone had this problem and know what is the solution?

Thank's very much,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You should fill the component BAPI with the permanent network number and not the temporary number. Permanent number is returned by create BAPi after commit.

Regards

rodrigo_paisante3
Active Contributor
0 Kudos

Hi,

If you solve your problem, please let me know.

Here we have the same problem, we did like the expert said, executing the bapi after the commit but when we tried to execute the BAPI BAPI_NETWORK_COMP_ADD, is showing error Activity not exist...

Thanks

RP

Former Member

For those who are still looking for the solution of this problem - refer to note 672750. As per this note you need to do some initialization. So just put a statement before BAPI_NETWORK_COMP_ADD call:

CALL FUNCTION 'CO_ZF_DATA_RESET_COMPLETE'.

and the problem will be solved.

Former Member
0 Kudos

Try maintaining the valuation category ( in accounting view of the material) and then execute the BAPI

Regards

Sreenivas