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

function module to get BOM

Former Member
0 Likes
3,817

Friends,

Is there any FM to get BOM(Bill of Material) when Material Number and Alternative BOM Text (stko-stktx) is given/known?

thnx.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,683

Hi Sey,

Try FM: CSAP_MAT_BOM_READ

Regards,

Lanka ow

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,683

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

Read only

Former Member
0 Likes
1,684

Hi Sey,

Try FM: CSAP_MAT_BOM_READ

Regards,

Lanka ow

Read only

0 Likes
1,683

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.

Read only

0 Likes
1,683

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

Read only

0 Likes
1,683

Hi Sey,

Is your issue been resolved. If so then please close the post.

Regards,

Lanka