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 for AFS BOM

Former Member
0 Likes
843

Hi all! I am currently working on an interface that requires the creation of AFS sales BOM in SAP. I have seen a BAPI which is used to create BOM, but this doesn't cover AFS requirements. As much as possible, I want to avoid using BDC. So if there is an existing BAPI which I could use, then this would be preferred.

Will appreciate your inputs/suggestions. Thanks in advance for your help!

Hi all! I am currently working on an interface that requires the creation of AFS sales BOM in SAP. I have seen a BAPI which is used to create BOM, but this doesn't cover AFS requirements. As much as possible, I want to avoid using BDC. So if there is an existing BAPI which I could use, then this would be preferred.

Will appreciate your inputs/suggestions. Thanks in advance for your help!

3 REPLIES 3
Read only

Former Member
0 Likes
682

There is no AFS-enabled BAPI. You just can use these function modules:

'CS_BI_BOM_CREATE_BATCH_INPUT',

'CS_BI_BOM_CREATE_BATCH_INPUT1'

'CS_BI_BOM_CREATE_WITH_LONGTEXT'.

Read only

venkata_ramisetti
Active Contributor
0 Likes
682

hI,

may be you can use the following function modules.

BAPI_MATERIAL_BOM_GROUP_CREATE Creation of a material BOM group

BAPI_MAT_BOM_EXISTENCE_CHECK Check whether BOM for material exists

BAPI_BOM_UPLOAD_SAVE

Thanks,

Ramakrishna

Read only

0 Likes
682

Hi! Thanks for your help. I used CS_BI_BOM_CREATE_BATCH_INPUT1 and was able to create the BOMs successfully. My problem now is on the change. I tried using CS_BI_BOM_CHANGE_BATCH_INPUT but I kept running into various errors. I think it has something to do with the fields that I am populating in the structures and tables that are being passed to the BAPI. I tried researching for CS_BI_BOM_CHANGE_BATCH_INPUT but could not find any match. The function module documentation is not available as well. If you have used this FM in the past, will appreciate if you could share some inputs on how you were able to make this work. Thanks a lot!