2015 Nov 18 8:59 AM
Hi Everyone,
Please suggest a BAPI/FM for the transaction CA02 that can update/create/delete the operations, sequences, OD rule and PRT for the given material and plant combination.
2015 Nov 18 9:17 AM
2015 Nov 18 9:49 AM
Hi Swadhin,
The BAPI 'BAPI_ROUTING_CHANGE' is not available in the system.
2015 Nov 18 9:36 AM
Hello Praveen,
The general way to find BAPI for any transaction code is -
1. Run the T-code. In menu, Go to System->Status.
2. Copy the Standard Program name(here SAPLCPDI)
3. Open this program in SE80 and get the Pacakge(here CP)
4. Go to SE37 and Press F4 on Function Module Name(Enter the package CP and function module name as BAPI*).
Result is you will get a list of BAPIs. Now read their documentation and test and use.
BR.
2015 Nov 18 9:52 AM
Hi Ankit,
Thanks for the information but unfortunately this will not serve my purpose. I need a BAPI/FM that cann update change delete the operations, sequences, OD rules and PRT's. I have nothing to do with the routing, I will not be making any changes at the routing level.
2015 Nov 18 10:13 AM
Hi,
I was trying to change the same using EWB programming getting the help from SCN but was unsuccessful, and due to time constraints went back to the BDC program.
There are standard programs RCPTRA01 , which can help you, or do the recording using SHDB as per your requirement.
Hope this helps.
2015 Nov 18 5:15 PM
Hello Praveen,
In that case, give me some time and meanwhile let's wait for input from other experts.
BR.
2015 Nov 18 6:28 PM
2015 Nov 18 9:09 PM
EWB or CEWB function modules are very powerful, but you always need some time at the beginning to figure how they are working, sometimes debugging CEWB is very helpful here. But for sure it will take longer to create what Praveen need if you don't know them than using BDC.
2015 Nov 19 11:45 AM
Hi Lukasz,
I saw your code on ABAPBLOG I understood a little bit of it but I am still not that clear on using the EWB FM's. can you please give me an example of deleting the operation in the sequence
2015 Nov 19 12:05 PM
Sorry but I don't have running example at the moment but for deleting I'd use CP_CC_S_DELETE_BY_OPR, but firstly as in my examples you need to load task list to memory using CP_CC_S_LOAD_COMPLEX_BY_TSK , then you need to get operation data using CP_CC_S_PROVIDE_COM_BY_OPR and then loop on the result table and delete operation(s). At the end CP_CC_S_SAVE.
2015 Nov 19 1:55 PM
Hi Praveen,
Please have a look at SAP Note 488765 'Do-it-yourself EWB programming'.
It's very useful and comes with very clear code examples.
Hope this could help.
Thanks and bye,
Flavio
2015 Nov 19 8:08 PM
Hello Everyone,
Thank you all for the helpful tips. Finally I fixed it by myself using EWB FM's.
Thank you,
Praveen kumar.
2022 Jun 09 11:51 AM