Application Development and Automation 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: 
Read only

FM ROUTING_MAINTAIN

kurt_beerts
Explorer
0 Likes
13,752

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

1 ACCEPTED SOLUTION
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
9,925

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.

10 REPLIES 10
Read only

former_member227140
Active Participant
0 Likes
9,925

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.

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
9,926

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.

Read only

0 Likes
9,925

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

Read only

9,925

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.

Read only

0 Likes
9,925

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

Read only

0 Likes
9,925

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.

Read only

0 Likes
9,925

lol ... should have replied with my personal account ID instead of the one from work

Read only

0 Likes
9,925

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

Read only

0 Likes
9,925

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!

Read only

0 Likes
9,925

This message was moderated.