‎2008 Oct 04 10:34 AM
Hi Experts,
My Requirment is to add Components to a network ( t-code CN22)
To achive this I am using BAPI
BAPI_NETWORK_COMP_ADD
For this BAPI I am passing following parameters
Number = '5680994'.
I_COMPONENTS_ADD-ACTIVITY = 'CC01'.
I_COMPONENTS_ADD-ITEM_NUMBER = '0010'.
I_COMPONENTS_ADD-MATERIAL = '2000679226'.
I_COMPONENTS_ADD-PLANT = 'M011'.
I_COMPONENTS_ADD-ENTRY_QUANTITY = '10'.
I_COMPONENTS_ADD-BASE_UOM = 'M'.
append I_COMPONENTS_ADD to I_COMPONENTS_ADD.
CALL FUNCTION 'BAPI_NETWORK_COMP_ADD'
EXPORTING
number = Number
IMPORTING
RETURN =
tables
i_components_add = I_COMPONENTS_ADD
e_message_table = e_message_table
But it always give the Same error which is
Material 2000679226 not found in plant M011
I checked with this material it exists even I am able to configure this material to the plant through the T-code
I tried with some other material plant combination but it is giving same error.
Can you please guide me where I am missing ........ If there is any other BAPI or FM to add component to Network please let me know
Regards
Bikas
‎2008 Oct 04 10:53 AM
Hi,
There may be the conversion problem for the materail due to internal and external type.
Please use FM 'CONVERSION_EXIT_MATN1_RANGE_I' to converet the field 'I_COMPONENTS_ADD-MATERIAL'.
Please let me know if this helps you.
Regards,
Swapnil
‎2008 Oct 04 10:53 AM
Hi,
There may be the conversion problem for the materail due to internal and external type.
Please use FM 'CONVERSION_EXIT_MATN1_RANGE_I' to converet the field 'I_COMPONENTS_ADD-MATERIAL'.
Please let me know if this helps you.
Regards,
Swapnil
‎2008 Oct 04 11:12 AM
Hi Swapnil,
I used the conversion exit but it is not working I also went to the debug mode and examined the values they are in currect formate.
Please suggest my problem still not solved.
Regards
Bikas
‎2008 Oct 04 11:26 AM
Oh there was problem with the conversion only now my problem solved
thanks a lot to bring this point to my mind
Regards
Bikas