Application Development 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: 

Where can I find a code to add an existing Item to another existing Item's BOM?

Former Member
0 Kudos

Hi,

I'm beginner in SAP coding, I used to work a lot with Autodesk Inventor. I'm just looking for a code to go in an opened SAP session and add an item to a Bill of materials.

In the best conditions, i'd like to work by outside SAP in VB.NET with Visual Basic Express. But I'm very opened to new ways to work.

I hope one of you have something to introduce me in the SAP coding. Don't be shy to drop an uncomplete answer or a piece of code to give me a point of start.

Thanks a lot!

1 ACCEPTED SOLUTION

mmcisme1
Active Contributor
0 Kudos

To add an item to the bill of material you first must set up your connection to an SAP system. Then you can use VB with .NET to run an SAP function module. For your exact function module try a search for the following on google: sap bom bapi. Make sure the function module is remote enabled.

3 REPLIES 3

mmcisme1
Active Contributor
0 Kudos

To add an item to the bill of material you first must set up your connection to an SAP system. Then you can use VB with .NET to run an SAP function module. For your exact function module try a search for the following on google: sap bom bapi. Make sure the function module is remote enabled.

Former Member
0 Kudos

Thanks a lot to both of you. I appreciate the help. I'll find my way in what you provided to me.

alparvizi
Explorer
0 Kudos

There is a good example on stackoverflow on how to connect to SAP system. It is a long solution so I have to put the link (stackoverflow). Kudos to original poster on stack. As mentioned by Michelle don't forget to make your function module remote enabled otherwise it is not going to work.