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 - Object Dependency Creation

karthik_rajaspic
Participant
0 Likes
995

hi... my requirement is to develop a report for BOM maintenance.

input: bom number and change number

the report should do the following.

1. delete all the line items using a change number

2. re-create all the items (with same information) using the same change number

3. if the original line item has an object dependency, the new line item should also have the same object dependency.

in my report, i have combined the first two steps using CSAP_MAT_BOM_MAINTAIN and did it successfully. but to maintain the object dependency, i am not able to use the same function module. it is not working for OD part.

instead, i am able to use CSAP_MAT_BOM_OPEN, CSAP_BOM_ITEM_MAINTAIN, CSAP_MAT_BOM_CLOSE successfully. but, here i need to do it individually for all the line items. this is affecting my performance in production system. bcz, for maintaining OD for 30 items, the database is updated 30 times.

is there any function module to maintain object dependencies as a whole? just like, one database update for 30 items.

please help me with your inputs. thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
592

Hi Karthik,

Have you solved the above issue. If so can you please direct how to go about it.

Regards,

Shavindar R.

Edited by: Shavin on Sep 7, 2011 9:44 AM

Read only

sjeevan
Active Contributor
0 Likes
591

I would suggest you try bdc using recording method. Capture KNOBJ from STPO use it in CUOB get KNNUM and use it in CUKN to get the dependency code in the field KNBLK.