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

BAPI_MAT_BOM_EXISTENCE_CHECK

Former Member
0 Likes
833

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.

1 REPLY 1
Read only

JackGraus
Active Contributor
0 Likes
532

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