‎2008 Dec 03 7:55 AM
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
‎2008 Dec 03 8:17 AM
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
‎2008 Dec 03 8:36 AM
IMPORTANT:without commit, component is not created!!!!!!
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
‎2008 Dec 03 8:36 AM
Hi Swapna,
Can you please explain your problem clearly.
So that i can hep you.
Thanks,
tarangini
‎2008 Dec 03 9:06 AM
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
‎2009 Feb 02 9:41 PM
Hi Swapna,
I am having the same problem as yours. Can you please tell me how you resolved it?
‎2009 Feb 02 9:59 PM
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.