2008 Apr 28 6:05 PM
hi i am using the following code.
loop at i_marc.
clear i_return.
refresh i_return.
CALL FUNCTION 'BAPI_MAT_BOM_EXISTENCE_CHECK'
EXPORTING
MATERIAL = i_marc-matnr
PLANT = i_marc-werks
BOMUSAGE = '1'
VALID_FROM_DATE =
VALID_TO_DATE =
MATERIAL_EVG =
TABLES
RETURN = i_return
.
if i_return[] is initial.
i_marc2-werks = i_marc-werks.
i_marc2-matnr = i_marc-matnr.
append i_marc2.
clear i_marc2.
endif.
what does it mean by
BOMUSAGE = '1' ??
i am looking for data in all levels, is it that, it is restricting only for 1 level,
or what is BOM usage.
please help.
thanks.
hi i am using the following code.
loop at i_marc.
clear i_return.
refresh i_return.
CALL FUNCTION 'BAPI_MAT_BOM_EXISTENCE_CHECK'
EXPORTING
MATERIAL = i_marc-matnr
PLANT = i_marc-werks
BOMUSAGE = '1'
VALID_FROM_DATE =
VALID_TO_DATE =
MATERIAL_EVG =
TABLES
RETURN = i_return
.
if i_return[] is initial.
i_marc2-werks = i_marc-werks.
i_marc2-matnr = i_marc-matnr.
append i_marc2.
clear i_marc2.
endif.
what does it mean by
BOMUSAGE = '1' ??
i am looking for data in all levels, is it that, it is restricting only for 1 level,
or what is BOM usage.
please help.
thanks.
2008 Apr 28 7:27 PM
Please have a look at the domain of BOM_USAGE. That's STLAN, it's value table is T416 and the values:
Usage Usage text
1 Production
2 Engineering/design
3 Universal
4 Plant maintenance
5 Sales and distribution
6 Costing
Each BOM is created with one of these usages. When retreiving a BOM, the BOM usage is an input parameter.
Regards Jack
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |