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

How to create Multiple Material BOM ?

Aisurya
Participant
0 Likes
787

Hi Experts ,

I want to create multiple material boms .Am using 'CSAI_BOM_CREATE' , but its created with the last one always.

Pls help me in this .

Thanks

Aisurya

Hi Experts ,

I want to create multiple material boms .Am using 'CSAI_BOM_CREATE' , but its created with the last one always.

Pls help me in this .

Thanks

Aisurya

4 REPLIES 4
Read only

vinoth_aruldass
Contributor
0 Likes
725

hi,

try this fm 'CS_BOM_EXPL_MAT_V2'.

CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'

       EXPORTING

            capid                 = 'PC01'      " Application ID

            datuv                 = l_datuv     " Validity date

*              emeng                 = p_emeng     " Required quantity

*            MDMPS                 = ' '         " explode phantoms

            mtnrv                 = lt_mast-matnr     " Material

            stlal                 = lt_mast-stlal  " Alternative BOM

            stlan                 = lt_mast-stlan     " BOM usage

            werks                 = lt_mast-werks     " Plant

       IMPORTING

            topmat                = top_mat     " Data for top material

       TABLES

            stb                   = bom_tab     " BOM item data table

       EXCEPTIONS

            alt_not_found         = 1

            call_invalid          = 2

            material_not_found    = 3

            missing_authorization = 4

            no_bom_found          = 5

            no_plant_data         = 6

            no_suitable_bom_found = 7

            OTHERS                = 8.

hope this helps,

Vinoth

Read only

0 Likes
725

Hi ,

Will this work for multiple Material BOM?

Read only

0 Likes
725

hi ,

you need to call this FM to work with multiple BOM.

hope it helps,

Vinoth

Read only

0 Likes
725

I need to loop the FM  and commit after it or i will pass the bulk data it will take care ?

And what would be the Capid for Material ?