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

Problem With BAPI to add component to Network

Former Member
0 Likes
1,502

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
948

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

3 REPLIES 3
Read only

Former Member
0 Likes
949

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

Read only

0 Likes
948

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

Read only

0 Likes
948

Oh there was problem with the conversion only now my problem solved

thanks a lot to bring this point to my mind

Regards

Bikas