RFC function module
Please help me in developing this RFC function .
A RFC function is required to return the list of consumed components for the specified FG and batch.
I/P parameters : Plant ,Material Number,Batch number of the FG.
O/P:Materail number of the FG ,Materail Number of the component,Material Type,Plant,qty Consumed,Unit of measure of the component.
1.Based on the batch number input ,retrive the production order .
2.Retrieve the list of consumed material under the production order.
3.Check the batch number of the consumed material
If batch number = "WIP" no further processing
If batch number not = "WIP"
repeat steps 1 to 3.
semi finished materail should be included in the RFC output ,
i.e material type is "ROH"(Raw material)
4.reversed consumption qty ,if any should be netted off.
5.list of consumed material will be output of the function.
Thanks in advance.