Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem With BAPI to add component to Network

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

Tags:
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question