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_NETWORK_COMP_ADD

Former Member
0 Likes
1,837

Hi,

Can any one explain how to use this bapi to create a material components to a network activity.

I tried to create a material components? it gives an error that "activity does not exist".

Just before calling this BAPI, i created a activity and commit the work.

Any idea why is it giving this error?

I tried standalone testing, that is successful.

NEtwork, activity and components are creating one after other. here only it is giving this error.

any other funciton module to perform that same?

Regards,

Swapna

6 REPLIES 6
Read only

Former Member
0 Likes
1,434

use command commit and wait.

If you are using any of BAPI_BUS**** then u may need

CALL FUNCTION 'BAPI_PS_PRECOMMIT'

&

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

Edited by: vivek amrute on Dec 3, 2008 9:23 AM

Read only

Former Member
0 Likes
1,434

IMPORTANT:without commit, component is not created!!!!!!

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

Read only

tarangini_katta
Active Contributor
0 Likes
1,434

Hi Swapna,

Can you please explain your problem clearly.

So that i can hep you.

Thanks,

tarangini

Read only

Former Member
0 Likes
1,434

Hi,

i am trying to create a material component using the above BAPI.

In my requirement, i'm creating network, activity and material components, one after the other.

i am successful in the creation of network and activity.

When i am creating a material componet, it is giving an error that "Activity does not exist".

When i go and see in CN23 trasaction. i found that activity.

DO you have any idea?

how to resolve?

Regards,

Swapna

Read only

0 Likes
1,434

Hi Swapna,

I am having the same problem as yours. Can you please tell me how you resolved it?

Read only

0 Likes
1,434

I have found the solution now.

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.