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: 

Finding the Routing (any Function module)

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

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