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
887

Hi Experts,

I am currently using BAPI_NETWORK_MAINTAIN to create a network (with id NETWORK1) on a project. I then need to use BAPI_NETWORK_COMP_ADD to add a material component to this same network.

I have tried to use the id NETWORK1 as the Paremeter, but I get the error

Network NETWORK1 does not exist. I have determined that you require the network internal number to run bapi BAPI_NETWORK_COMP_ADD, but I need both actions to run succesfully before I commit the work. How can I get the correct network number for the newly created network before commit?

Thank you in advance,

Johan Kriek.

3 REPLIES 3
Read only

Former Member
0 Likes
695

Hi once again experts,

Is there a FM that converts an external Network number to an internal network number?

Would this solve my problem?

Read only

0 Likes
695

Hi,

Try this ...

CONVERSION_EXIT_ALPHA_INPUT Conversion exit ALPHA, external->internal

CONVERSION_EXIT_ALPHA_OUTPUT Conversion exit ALPHA, internal->external

Read only

0 Likes
695

Hi Prakash

Thank you for your response

I tried to use these function modules, but the network number remained the same, and BAPI_NETWORK_COMP_ADD still did not execute. Any other suggestions?