09-29-2008 2:42 PM
Hi all ,
I have to find the routing for a given material .
Like i have to know which work centers involve in the production of the product .
Please let me know any standard FM is available .
If FM is not there please let me know the table links ......
I appreciate for any suggestions ..
Regards
Raj
09-29-2008 3:00 PM
Hi ,
Check the below code where the work centre location is drawn
select aufpl from afko into w_aufpl where aufnr = itab_display-aufnr. <---- Production order
endselect.
clear afvc.
select * from afvc where aufpl = w_aufpl
and steus = 'PP03'.
endselect.
clear crhd. <--- work centre header table
select * from crhd where objid = afvc-arbid.
exit.
endselect.
if sy-subrc eq 0.
t_stand = crhd-stand. <---- Production Line
endif.
Regards ,
Vind.
09-29-2008 3:27 PM
Hi vind ,
Thanks for the reply .
I am new to SAP , I do have some questions .....
1) Can we find the routing if we give Material No and Plant . ??
2) Is Production order is a must to find the routing ??
Please let me know .
My requirement is like find the routing process and then check those work centers against any open orders already assigned to that work center so that we can know when we can start production on that workcenter .
So can we find workcenter depeneding on Material no and plant ......
Regards
Raj
09-29-2008 3:39 PM
Hi,
As far as i know the best process is to get through the production order as it is uniqe to get the work centre .
Regards,
Vind