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

BAPI/FM For Routing Delete/Change

Former Member
0 Likes
6,198

Hi,

Is there any BAPI or FM for Routing Change/Delete in SAP, I have BAPI for Creating Routing (BAPI_ROUTING_CREATE).

Thanks

Bobby

Edited by: Bobby G on Mar 10, 2008 11:09 AM

Hi,

Is there any BAPI or FM for Routing Change/Delete in SAP, I have BAPI for Creating Routing (BAPI_ROUTING_CREATE).

Thanks

Bobby

Edited by: Bobby G on Mar 10, 2008 11:09 AM

8 REPLIES 8
Read only

Former Member
0 Likes
2,611

Hi,

Check this Function Module.( /SAPMP/BAPI_ROUTING_PROCESS)

Regards,

Dhanush.S.T

Read only

Former Member
0 Likes
2,611

got the solution

Read only

Former Member
0 Likes
2,611

Could you please tell me how did it work for change. For me it says either it already exist or it creates a new one

Read only

Former Member
0 Likes
2,611

Hi Bobby,

Can you please let us know the solution on how you could set the deletion indicator.

Regards,

Read only

Former Member
0 Likes
2,611

Hi,

I have tried the Function Module /SAPMP/BAPI_ROUTING_PROCESS in SE37 but it shows an error the Function Module does not exist. Let me know what will be the problem.

Read only

0 Likes
2,611

Elder brother,

ECC 6.0 have it... 4.7 or below may not integrate with it

Read only

Former Member
0 Likes
2,611

Hi Bobby,

I am new at this, and i am facing this same issue.

It´s been a long time, but, do you remember how did you solved this?

 

Thanks

Read only

Former Member
0 Likes
2,611

I have been working extensively with this.  The method CREATE for the BAPI routing is actually an incorrect naming.  You can update and delete using this method.   Inside the function, it determines what the activity is.  If it doesn't exist, then the activity is create.  If it exists, then the activity is change.  If the del ind is set, then the activity is delete. 

I have found some quirks.  When I used it to add inspection char values to already existing operations,  it wiped out the from and to lot size on the task list header.  It also wiped out the create on and create by in the table.  I need to look at OSS to see if there is a fix for the create date and create on fields.  For the others, I'll just pass what is already there.  

Saying all of this, the actual IDOC I used was /SAPMP/ROUTING.  But when debugging I realized it calls the same function as the standard BAPI.   So all of the above should apply.