‎2011 Apr 12 4:03 PM
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.
‎2011 Sep 07 8:44 AM
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
‎2011 Sep 07 6:22 PM
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.