‎2006 Feb 21 11:14 PM
Friends,
Is there any FM to get BOM(Bill of Material) when Material Number and Alternative BOM Text (stko-stktx) is given/known?
thnx.
‎2006 Feb 21 11:18 PM
‎2006 Feb 21 11:16 PM
Have a look at function modules GET_STKO and GET_STPO. There are others, but I can't think of them right now, and don't have a system in front of me. Do a search in SE37 for BOM You will probably get some hits. Usually I get this information directly from the tables, MAST, STKO, STPO.
Regards,
Rich Heilman
‎2006 Feb 21 11:18 PM
‎2006 Feb 21 11:39 PM
murthy,
thnx much....tht works for me.
it takes <b>mat.no, plant and bom usage</b> parameters.
but could you please tell me " i need those BOMs only whose Alternate BOM Text = 'UNRESTRICTED'.
How would i check this condition?
thnx a lot.
‎2006 Feb 21 11:50 PM
Hi Sey,
After Calling the function module. Please check the table T_STKO and check the filed ALT_TEXT Eq 'UNRESTRICTED' and delete all other records.
Hope this may help you.
Please award points for all useful answers.
Regards,
Lanka
Hi Sey,
Please note that you have to delete T_STPO records also when you are checking at T_STKO.
Step1:
Check T_STKO -->filed ALT_TEXT Eq 'UNRESTRICTED' .
Get T_STKO-BOM_NO
Delete T_STKO IF ALT_TEXT NE 'UNRESTRICTED' .
Step2:
Delete T_STPO records For T_STKO-BOM_NO = T_STPO-BOM_NO.
Regards,
Lanka
Message was edited by: Lanka Murthy
‎2006 Feb 22 2:07 AM
Hi Sey,
Is your issue been resolved. If so then please close the post.
Regards,
Lanka