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: 

BAPI to copy BOM object dependencies

Former Member
0 Kudos

Hi experts,

I've had to create a program to copy (or extend) BOMs to other plants, like CS01 transactions.

I Used CSAP_MAT_BOM_READ and CSAP_MAT_BOM_CREATE FM's. But the problem is that this functions cannot handle object dependencies. (field STPO-KNOBJ )

Please help me on that.

Thanks,

Ashok.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

Thanks to all for giving quick reply.

I got the solution there are 3 parameters that I have to pass while creating

Identifier ,Object_id = '2' and make dep_inter empty in dependency structure.

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

AFAIK CSAP_MAT_BOM_CREATE or BAPI_MATERIAL_BOM_GROUP_CREATE don't handle object dependencies (cf. 545676 - FAQ BOM data transfer)

" Note that the function module can create only material BOMs without object dependencies.The interface of BAPI_MATERIAL_BOM_GROUP_CREATE does  not contain any structure in which object dependencies can be assigned since the EWB modules called to create the BOMS cannot handle object dependencies.

However you may have to rely on good old FM of group CSBI and CSBC...

iftah_peretz
Active Contributor
0 Kudos

I second raymond.giuseppi with FM of group CSBI and CSBC. If you want some extra functionality and don't want to use "non-released" FMs, couldn't find the functionality you need (in classes, FMs) or to dig into SAP code, as a final way out you can use transaction SHDB.

Flavio
Active Contributor

Hi Ashok,

A possibility is to use FM's in the CUKD function group (for instance, CUKD_HAS_RELATIONS and CUKD_COPY_ALLOCATION).
Moreover, BoM and routing should better be created / changed following the OSS note 488765 - 'Do it yourself EWB programming'.

Thank you and bye,

Flavio

Former Member
0 Kudos

Hi ,

Thanks to all for giving quick reply.

I got the solution there are 3 parameters that I have to pass while creating

Identifier ,Object_id = '2' and make dep_inter empty in dependency structure.