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

BOM extension/custom fields

Former Member
0 Likes
1,406

Hi all,

I have flat file data coming in that I'm suppose to create a BOM with. The issue is I have extended the STKO and STPO table with z_fields. Is there a BAPI that creates a BOM that allows me to reach the includes CI_STKO and CI_STPO or do I have to use an IDOC?

Hi all,

I have flat file data coming in that I'm suppose to create a BOM with. The issue is I have extended the STKO and STPO table with z_fields. Is there a BAPI that creates a BOM that allows me to reach the includes CI_STKO and CI_STPO or do I have to use an IDOC?

3 REPLIES 3
Read only

Former Member
0 Likes
932

For the most part (there are a few exceptions) BAPI's do not allow for custom fields.

I am not sure if you are using LSMW or writing your own program to accomplish this but you can do a recording to populate those fields.

If you are using LSMW just do a recording of those two fields and after you have created your BOM use the recording to populate the custom fields.

If you are writing your own program, do a recording with TCODE SHDB. After that generate a function module from the recording. Then as you process the BAPI and save the record you can call the FM generated from your recording to populate your custom fields.

Read only

Former Member
0 Likes
932

Hi,

OIn 4.6 you can use the Function module <b>CSAI_BOM_CREATE</b>

If you have later version then use BAPI_MATERIAL_BOM_GROUP_CREATE

Regards

Sudheer

Read only

932

Sudheer, I don't see where I can pass custom fields to this BAPI.

Christopher, although a nice idea, I think the only options for me are BAPI or Idoc.

Thanks for the helpful info though guys.

Message was edited by:

Akeem Lockett