2012 Dec 07 10:28 AM
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
2012 Dec 07 10:32 AM
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
2012 Dec 07 11:08 AM
2012 Dec 07 11:16 AM
hi ,
you need to call this FM to work with multiple BOM.
hope it helps,
Vinoth
2012 Dec 07 11:29 AM
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 ?
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |