2014 Jan 20 11:42 PM
Hello all,
Did any of you ever used the function module ROUTING_MAINTAIN to update the component allocation of the routing?
I have been trying to get it to update the material within the component allocation, but I keep getting errors.
So my guess is that I'm not filling the right values for the import and tables parameters.
Could anyone help me out filling the right values?
Or is there another function module or BAPI which I could use?
We're trying to avoid using a batch input or call transaction because of the bad performance we get there.
Thanks,
Kurt
2014 Jan 21 5:45 AM
Hello Kurt Beerts.
I don't get your exact requirement.
What function you are trying to do? Which standard tcode is used for your requirement?
Regards.
2014 Jan 21 5:20 AM
Hi,
we had similar scenario wherein we could not manage to use ROUTING_MAINTAIN and later solved issue by creating a Z FM which consists of BDC recording inside.
i dont see any other option than that. but still you can try the said FM by you.
2014 Jan 21 5:45 AM
Hello Kurt Beerts.
I don't get your exact requirement.
What function you are trying to do? Which standard tcode is used for your requirement?
Regards.
2014 Jan 21 10:33 AM
We want to establish the following :
Transaction code CA02 => fill material number and enter => on the next screen (operation overview screen), push the button “ Comp.Alloc”. => in the component allocation screen, I now want to create a new assignment for a non-assigned material or change the current assignment of a material.
However when I create a small ABAP report which calls the function module ROUTING_MAINTAIN, I get some errors. So I probably do not fill the right parameters. And now I'm curious which parameters I forget to fill or I filled with wrong data.
Regards,
Kurt
2014 Apr 25 9:06 AM
Hello Kurt Beerts.
The below example code for assign BOM components to last operation.
Function module: ROUTING_MAINTAIN
Importing Parameter:
KEY_DATE = <Current date>
TASK_LIST_GROUP = <Group>
GROUP_COUNTER = <Counter>
MATERIAL = <Material>
PLANT = <Plant>
Table parameter:
COMPONENT_ALLOCATIONS
MAINTAIN_MODE = 'C'. <M-for modify or D-for delete or C-for create>
FLAG_BAR_POINTER = '0000000001'. (Increase the value for multiple item +1)
SEQUENCE_NO = '000000'.
ACTIVITY = <Operation number>.
BOM_TYPE = <bom type>
BOM_NO = <bom no>
ALTERNATIVE_BOM = <alt.bom>
ITEM_ID = <item id>
ITEM_NO = <item no>
BACKFLUSH = 'X'.
COMPONENT_ALLOCATIONS_X
ACTIVITY = 'X'.
BACKFLUSH = 'X'.
After, calling the FM 'BAPI_TRANSACTION_COMMIT' for commit.
2014 Apr 25 10:02 AM
You can try to play also with EWB FMs to do component allocation like done under this link: ABAP Blog - EWB Components allocation to routing operation (multilevel BOM)
Regards
Łukasz
2014 Apr 26 10:21 PM
Hello Luksz,
Thanks for the link to the blog.
We found the OSS note explaining that same functionality a few weeks ago, but it took us some puzzling to get it actually working. But ever since we got this working, is does run smooth .
But I'm stil going to analyse the ABAP blog, because I noticed they use other function modules (from the same function groups) to get their result.
2014 Apr 26 10:45 PM
lol ... should have replied with my personal account ID instead of the one from work
2015 Feb 18 1:40 PM
Hi Kurt,
Could you please share the OSS Note Number so that we can refer to the same and remediate our program accordingly. We've been trying to call ROUTING_MAINTAIN from a program where we'll be building internal tables and structures with help of file uploads but are unable to do so.
Your help and inputs will highly be appreciated.
Thank you.
Regards,
BGaurav
2015 Feb 18 3:44 PM
Have a look at OSS note 488765.
By the way, the final solution we are using, with reference to the note above, is not using function module ROUTING_MAINTAIN!
2015 Jul 14 5:18 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |