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

Changing assigned work centers in rate routing via function module

Former Member
0 Likes
3,796

I'm searching for a function module to change a rate routing in a WebDynpro,especially the assigned work centers in each operation.

The FM "Maintain_Routing" seems to work only for normal routings, not for rate routings. Is there any alternative? I wasn't able to find one.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,534

Hello Thomas,

Unfortunately, there is NO BAPI, standard BDC or direct input programs available for rate routings and reference rate routings.

You cannot use BAPI_ROUTING_CREATE OR CHANGE for rate routings  or reference rate routing because in the BAPI_ROUTING_CREATE/CHANGE the task list type (field PLNTY) is 'N" in which is Routing and not 'R' (rate routing).

You need to create your own program to meet your needs.

Regards

Amber

Hello Thomas,

Unfortunately, there is NO BAPI, standard BDC or direct input programs available for rate routings and reference rate routings.

You cannot use BAPI_ROUTING_CREATE OR CHANGE for rate routings  or reference rate routing because in the BAPI_ROUTING_CREATE/CHANGE the task list type (field PLNTY) is 'N" in which is Routing and not 'R' (rate routing).

You need to create your own program to meet your needs.

Regards

Amber

9 REPLIES 9
Read only

Former Member
0 Likes
3,535

Hello Thomas,

Unfortunately, there is NO BAPI, standard BDC or direct input programs available for rate routings and reference rate routings.

You cannot use BAPI_ROUTING_CREATE OR CHANGE for rate routings  or reference rate routing because in the BAPI_ROUTING_CREATE/CHANGE the task list type (field PLNTY) is 'N" in which is Routing and not 'R' (rate routing).

You need to create your own program to meet your needs.

Regards

Amber

Read only

0 Likes
3,534

Hallo Amber,

thanks for your answer. I will try the "own program" way.

The program only needs to change the work center (ARBID) in an operation. Is there any other way than handeling the locks by myself and change the field ARBID directly in the table PLPO? Because I'm trying to avoid direct manipulation of standard SAP tables.

Kind regards,

Thomas

Read only

0 Likes
3,534

Hello Thomas,

Does it have to be program ? As you can use transaction CA85 to replace workcentres.

REgards

Amber

Read only

0 Likes
3,534

Hello Amber,

unfortunately it has to be a program. The idea is one transaction where the user can change work centers in operations similar to LDD2 (Line Balance).

CA85 doesn't work because I want to change only the work center of one operation (which is determined by the program) and not for a whole routing.

Kind regards,

Thomas

Read only

0 Likes
3,534

Unfortunately, there isnt any program... Internal programming is used for rate routings. I can guide you with all the tables that are used if you want ?

Read only

0 Likes
3,534

That would be great. So for my understanding: The only way to fulfill my requirements is to directly manipulate the database tables?

Read only

0 Likes
3,534

Read only

0 Likes
3,534

Hello Thomas,

Yes, You will need to create your own program for rate routings. Tables are the same it is only the type of the routing so you need to be very carefull with the programing. I have attached the data model for your help.

Regards

Amber

Read only

0 Likes
3,534

Hello Amber,

big thanks for your help and the data model. Think it can be a good help to get my program running.

Regards

Thomas