Application Development 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: 

routing fm for assign ing the materials to work center

Former Member
0 Kudos

Hi all ,

I have exploded all the sub components of the BOM of a given material number and plant .

Now i have all the details , now i would like to assign these materials to workcenters available for a finished product in ROUTING process .

Is there any FM to assign the corresponding components to corresponding work centers in the routing process , so that we have to get the finished product in optimized way .....

Please let me know you view....

if there is no FM , let me know you suggestions ...

Regards

Raj

2 REPLIES 2

Former Member
0 Kudos

Hi Raj....

Can you help me exploded all the sub components of the BOM of a given material number and plant .

Please help...........

Or atleast let me know your view......

0 Kudos

this is one the fm's , c_x is X

CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'

EXPORTING

CAPID = 'PP01'

CUOLS = 'X'

DATUV = sy-datum

KNFBA = c_x

KSBVO = c_x

MBWLS = c_x

mehrs = 'X'

mktls = 'X'

  • MKTLS = 'X'

MDMPS = c_x

MTNRV = p_matnr

WERKS = p_werks

IMPORTING

TOPMAT = l_topmat

  • DSTST =

TABLES

STB = it_stb

  • MATCAT =

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

CONVERSION_ERROR = 8 OTHERS = 9.

regards

Raj