‎2008 Jul 31 11:29 AM
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.
‎2008 Jul 31 6:22 PM
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
‎2008 Aug 05 12:42 PM
hey all
solved by checking the existence of BOM - BAPI_MAT_BOM_EXISTENCE_CHECK - FM
thanks neway
Eyal