Solution : https://service.sap.com/sap/support/notes/124105 (SAP Service marketplace login required)
Key words :
proposal import index 10 &indexchange flag_schon_gelesen &flag_gelesen spaceexport entries 10export matnr 18 &matnrexport plnal 2 &plnalexport plnnr 8 &plnnrexport plnty 1 &plntyexport stlal 2 &stlalexport stlan 1 &stlanexport stlnr 8 &stlnrexport stlty 1 &stltyexport werk 4 &werks --interface catt #1catt#1, proposal import index 10change flag_schon_gelesen &flag_gelesen spaceexport entries 10 &eintragebomexport matnr 18export plnal 2export plnnr 8export plnty 1export stlal 2export stlan 1export stlnr 8export stlty 1export werk 4 interface cp_ca_get_variant_bom_data #2type parameter, parameter&aennr change number &aennr&matnr material &matnr&plnal group counter &plnal&plnnr key task list group &plnnr&stlal alternative bom &stlal&stlan bom usage &stlan&stlnr bill, parameter&plnnr key task list group &plnnr&plnal group counter &plnal&aennr change number &aennr&matnr material &matnr&werks plant &werks&stlan bom usage &stlan&stlnr bill, fiels/structure entries sy-tabixstlan mast-stlanstlnr mast-stlnrstlal mast-stlalmatnr mapl-matnrwerk mapl-werksplnnr mapl-plnnrplnal mapl-plnalplnty mapl-plntystlty stzu-stltychanging parameter ref, &plnty = 'n'ref cp_kante_calc_sn ca02 change routing ^--interface catt #1 endifif &plnty = 's'ref cp_kante_calc_ss ca12 change reference operation set ^--interface catt #2 endifenddoexit &index > &eintragebomenddodefinition, 999setvar &zaehl2 = &lpcsetvar &index = &zaehl1 '1000'setvar &index = &index + &zaehl2exit &index > &eintragebomfun cp_ca_get_variant_bom_data interface cp_ca_get_variant_bom_data #2, variant bomimport parameter reference field index sy-tabix optionalexport parameters ref, material &stlnr&werks plant &werks --interface catt #2catt#1, material &stlnr&stlal alternative bom &stlal
Related Notes :
123853 | Component allocation routing duplicates |
101281 | CA01: Upgrade problem for component allocation |
82644 | Component allocation of phantom assemblies (routing) |