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

material BOM existence

Former Member
0 Likes
589

hello experts

i need to know whether there is a BOM for a specific material before calling any FM that gives me that BOM such as:

CS_BOM_EXPL_MAT_V2

CSAP_MAT_BOM_READ

thats because i cannot have any exception thrown by this FM - its initialize my global variables (im using it in a BADI implementation - IF_EX_BOM_UPDATE-CHANGE_AT_SAVE)

i know that there is a table - 'MAST' that holds the BOM - but my guess is that it is not the only one...

my solution will be :

check BOM existence -

YES - call FM and get the BOM and repeat process on the answer

NO - return the material.

thanks ahead.

Eyal.

2 REPLIES 2
Read only

Former Member
0 Likes
468

Hi,

Check the table STKO for BOM as Check table. then you trying checking the STPO then the MAST table.

Also try to check the Tcode -CEWB for the material and BOM linkage.

Regards

Chandralekha

Read only

Former Member
0 Likes
468

hey all

solved by checking the existence of BOM - BAPI_MAT_BOM_EXISTENCE_CHECK - FM

thanks neway

Eyal