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

Using BAPI_ROUTING_CREATE to copy a routing?

Former Member
0 Likes
1,037

Hi everybody,

I'm currently using this bapi to create new routings. First I upload a few files for the header information and operation information. When succesfully uploaded, I determine the currect taskgroup of this material and select the first free possible number as a counter from the total amount of records that are in the mapl table (max plnal + 1). I do this because if I do not provide a group number it just generated a new groupnumber for the material plant combination.

I call this bapi using this info and it generates a new routing with the provided information.

An other thing I'd like to do is to copy a routing instead of creating a new one.

Lets say I created a routing with number one. The next thing I'd like to do is to copy the first created routing instead of creating a new one. Does someone know how to use this bapi to copy thing routing?

Thanks in advance.

Best wishes

Laurens

1 REPLY 1
Read only

Former Member
0 Likes
583

Well actually that´s almost exactly what my task is as well.

So what i do is:

- reading the headdata of the given routing (the one which is to be copied)

- reading the positiondata of the given routing (the one which is to be copied)

then calling the BAPI_ROUTING_CREATE while exporting the headdata and the positiondata to the BAPI.

It works perfect for the routing itself, but the BAPI doesnt create any operations while it displays a sucess message and NO errormessages.