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: 

Identify parent and child BOM

Former Member
0 Kudos
534

Hi!!!

I need to identify who's the parent item and the child item after use 'CS_BOM_EXPL_MAT_V2'.

I know how view this through transactions like IE03 or CS03. But I want save this information in an internal table.

Please give me a code example. I saw similar post but I didn't understand it.

Thanks a lot.

1 REPLY 1

Former Member
0 Kudos
140

Hi,

Use this function module

CALL FUNCTION 'CSAP_MAT_BOM_READ' EXPORTING material = p_assy plant = p_plant bom_usage = p_usage change_no = p_chgnm TABLES t_stpo = t_bom t_dep_data = t_dep_data EXCEPTIONS error = 1 OTHERS = 2. IF sy-subrc <> 0 OR t_dep_data[] IS INITIAL. RETURN. ENDIF.

Regards

Krishna