Skip to Content
-1

Exception occurred No_Plant_Data in cs_bom_expl_mat_v2

Jan 25, 2017 at 04:14 AM

74

avatar image

Hi,

i am created one zprogram in that i am using this CS_BOM_EXPL_MAT_V2 by using this function material and Plant am getting this error {material not maintain in plant}.

Please help me to solve this problem.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

abid ali Jan 25, 2017 at 04:38 AM
0

Have you checked your table if the plant is available for the corresponding material...

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Plant is avilable for that material

0
Praveen Kumar Bommireddy

share the code here

0

Hi Abid ali

Program contains Moore line once check the screen shot .In my selection screen the plant value is 9001 .In debugging this function module CS_BOM_EXPLOSION the plant values are changed .

CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
* AUMGB = 'X'
capid = 'PP01'
datuv = sy-datum
ehndl = '1'
emeng = '1'
mktls = 'X'
mehrs = 'X'
mmory = '1'
mtnrv = gs_mat-matnr " Material Number : 547
stlal = '1'
svwvo = 'X'
werks = s_werks " Plant : 9000
vrsvo = 'X'
TABLES
stb = stb
matcat = matcat.

I am passing these parameters in Function module i am getting error message

Material 547 not maintain in Plant 9003

4puta.png (181.0 kB)
0
Praveen Kumar Bommireddy

CS_BOM_EXPLOSION...in this fm what parameters r u passing..how come the WERKS is changing?

CALL FUNCTION 'CS_BOM_EXPLOSION'
EXPORTING
AUMNG = 0
CAPID = ' '
DATUV = DATVAL "valid-from date
EHNDL = '1'
MKTLS = 'X'
MEHRS = 'X'
MMORY = '1'
MTNRV = MATNR
STLAL = LAL "like mast-stlal default '1'
STLAN = LAN "like mast-stlan default '2'
SVWVO = 'X'
VRSVO = 'X'
WERKS = WERKS
mmaps = 'X'
IMPORTING
TOPMAT = STARTMAT "includes structure CSTMAT
TABLES
STBD = TBD "includes structure CSXDOC
STBE = TBE "includes structure CSXEQUI
STBK = TBK "includes structure CSXKLA
STBM = TBM "includes structure CSXMAT
STBP = TBP "includes structure CSXGEN
STBT = TBT "includes structure CSXTDL
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MISSING_AUTHORIZATION = 3
NO_BOM_FOUND = 4
NO_PLANT_DATA = 5
NO_SUITABLE_BOM_FOUND = 6
OBJECT_NOT_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.

according to the type of BOM (material master, equipment etc ...) one of
the appropriate tables STBD ... STBT is filled with the details of all
positions of the given BOM number (MATNR). STARTMAT contains the details
about the start material after the function call. Hope this helps.

0