Bapi to dispatch an operation
Hello ,
We need to dispatch an operation in the production order using a BAPI .
Could some let me us know the name of the BAPI to dispatch an operation
Thanks
Abhijeet
Hi Abhijeet,
Please refer to the thread http://scn.sap.com/thread/1036249
Regards
Tao
Similar Messages
-
Dispatch an operation of a PM order
Hi Experts,
Could you tell me if a BAPI, FM, Method or anything else can be used to dispatch an operation of a PM order?
Here is the need:
Our customer uses the Planing Board (CM25) to dispatch operations of PM orders.
When the related work can't be executed on field, corresponding operations need to be dispatched a second time (at another time and day).
Currently we simply add a constraint on the StartPoint date/time and change the status of the operation to DSPT. But this doesn't take into account the workcenter capacity. So it can result to workcenter capacity overload.
For that pupose I'm looking for a standard FM or BAPI or ... that can do the job.
I think the following information should be sufficient to make the dispatching: Order nr, Workcenter, operation, day, time.
I found some threads about his on SDN forums but none answer my question.
Thanks a lot.
Regards,
Philippe
Edited by: Philippe Tsalos on Jan 18, 2010 9:33 AMHi Philippe,
So you want to reschedule considering available capacity. That is exactly what dispatching in the planning table does.
If you were to re-dispatch the operation dependent upon the availability of capacity, it may not end up at day + 2. It may be shifted to some other time in the future, assuming you have search in the forward direction as your strategy. So is your intent simply to "throw" it forward somewhere or is it a hard requirement that it is re-scheduled for today + 2? I presume you know how to change the operation details programatically.
For the sake of the following, I presume that the order operations to be re-scheduled were once dispatched in the planning table.
So why don't you explore the following:
Why don't you collect all the order operations together and undispatch (deallocate) them with Transaction CM40 in background? and then after you have changed their dates to day + 2, reschedule them, then dispatch them with CM40 again in background?
By using an appropriate profile, you can specify the appropriate work centres and the order operations belonging to them that need dispatching. say profile SAPPM_G006 - define the plant and workcentre on the first screen, then the orders on the filter screen.
If you feel like a little more of a challenge, you can review the coding of RCCYMAB2, particularly the subroutine EXECUTE_MASS_DISPATCHING, which shows all the details. Unless you are really confident, I'd stick with the transaction CM40 if I were you and set the objects and filter according the definition of your overall profile to define the order operations you wish to dispatch / undispatch.
I should point out that CM40 is designed to let the system do a first cut dispatch for all the requirements on a workcentre prioritised according to the strategy sort key. In your case you don't want (I don't think you want) to deallocate and then dispatch all non-dispatched requirements - just those of the particularl order operations. That is why the filter is necessary to further restrict which order operations are to be processed. You could also use the selection schema as well, selecting those with user status NOEX.
Is that helpful?
Edited by: Andrew Barnard on Jan 26, 2010 11:05 PM -
BAPI to create an operation in the productin order
Hi,
can any one help me in finding a BAPI that creates an operation in a production order, my functionality is to add a last operation to the production that indicated where the part has to be moved to.
This function should be triggered when the production order is released (i found the BADI to do this, only thing left is the BAPI that creates an operation.)
Thanks
RichHI
try this
BAPI_PRODORDCONF_CREATE_HDR
BAPI_PRODORDCONF_CREATE_TE
BAPI_PRODORDCONF_CREATE_TT
Reward if usefull
V.balaji -
BAPI to dispatch Process order Operation
Hi PP experts,
We need to build interface with External production execution system and SAP
Which BAPI can be used to dispatch the process order start and times in SAP by passing the time values from external system. A custom BAPI can be built using standard BAPIs which do the task
Thanks in advance
VikramYou can use the RFC CLOI_CHANGES_UPL_31.
See the recommendations of OSS Note 184471. I send you a example of how we've filled the internal table IT_CLOIOPERU:
Line AUFNR EXTAUFNR APLFL VORNR FIELD VALUE
1 000001008294 000000 0100 FSAVD 20081023
2 000001008294 000000 0100 SSAVZ 000000
3 000001008294 000000 0100 METHOD DISPATCH
4 000001008294 000000 0100 SSEDD 20081125
5 000001008294 000000 0100 SSEDZ 000000
6 000001008294 000000 0100 METHOD DISPATCH
7 000001008294 000000 0102 FSAVD 20081023
8 000001008294 000000 0102 SSAVZ 000000
9 000001008294 000000 0102 METHOD DISPATCH
10 000001008294 000000 0102 SSEDD 20081120
11 000001008294 000000 0102 SSEDZ 183524
12 000001008294 000000 0102 METHOD DISPATCH
I hope help you.
JMota -
Bapi to change Routing Operations
Hi Gurus,
Could you please tell me whether this Bapi Can be used to do Mass Change for an operation.
I have found this Bapi : /SAPMP/BAPI_ROUTING_PROCESS
But it is throwing exception Routing Entry is missing.
I have filled only operations table and the importing parameters.
Do I have to fill any other table.
Please help me in the same.
Best Regards,
Navin Fernandes.NAVIN FERNANDES wrote:
Hi Amber,
>
> I have created an LSMW and filled respective values with mapping but it giving me error saying
> ****************************************************************************
> "Data Transfer of Routings via Direct Input
>
> Error_di_exp From To Obj Index Plnnr
>
> E 1 1 M 0000000001
>
> E 1 1 M 0000000001
>
> C\ 045 V
> You cannot edit the task list object with activity type V
> *******************************************************************************
> Could you please help me in the same.
> I want to change the standard values in the operation.
>
> Best Regards,
> Navin Fernandes.
this looks to be a functional error. Can you check again with your functional consultant. -
BAPI to update Routing operations
Hi
I want to update inspection characterstics in routing operations,
can you plz suggest any BAPI to update.
Regards,
krantiHi Dhirendra,
I want to update Char.number,Material Insp characterstics,method and sampling Procedure.
as u mentioned in that BAPI, BAPI_QPMK_SAVEREPLICA,i have found,Material Insp characterstics,method these two parameters,
so how can i uplopad Characterstic no and sampling procedure?
Regards,
Kranti -
Function module/BDC/BAPI for Component allocation operation wise
Dear Experts,
I need your help on Component allocation in Routing (CA02) per opertion wise.
Currently we are assigning the Component individually per operation manually
The problem is if a BOM is having 500 Components/Materials and there are 10 operations then we need to assign these 500 components to that particular operation manually which is tedious job & killing a lot of time.
I need your help if any Function module or BAPI or BDC is there to allocate these components per operation wise.
Or any other process which can done easily on this component allocation operation wise
rgds
gscHello GSC, (and of course anyone able to help me)
taking account of the date of the message (2008) i think you have finally encountered a solution to your issue ?
Well, now i have got the same problem than you before.
My requirement is to modify the component allocation in a routing by using change document.
I found the bapi /SAPMP/BAPI_ROUTING_PROCESS. I have spend few days to make it work without success.
Iam still facing error message. Futhermore i have read trough a SAP note that this BAPI could not work properly in some case.
Considering that Iam trying to study other solutions (BDC ?).
Please, i would appreciate if you give me some advice on this problem.
Thank you very much.
Best regards,
C.S -
Is there a Bapi for F-65 operation?
Hi,
I need to use bapi for F-65 (transaction).
Is there a bapi for it?
ThanksHello,
You may try with these:
MRM_PARKED_INVOICE_POST
FM_PARKED_DOC_POST
BAPI_INCOMINGINVOICE_PARK
Thanks,
Ravi -
Operations dispatch and employee capacity blocking
Hi Gurus,
I have some simple requirement on employee scheduling.
Step 1: Create work center for production and assign employees to the same. Employees are from HR with schedule maintained (daily schedule, leave etc) in HR infotype. Capacity should be considered of employees.
Step 2: Production order is created.
Step 3: Check the graphical planning screen (CM30) and based on the employee availability drag n drop the operations of the order.
Requirement:
1. I do not want the automatic scheduling to happen.
2. The operations have to be dispatched and the earliest start date, time, end date, time should get updated after we assign the employees using transaction code CM30.
3. The employees capacity has to be blocked once the operations have been dispatched.
How:
1. How do we achieve this?
2. What should be the work center category ...should it be 0003 - labor?
3. How to dispatch the operations?
4. In which SAP table can we find the link of employees capacity? We want to see employee wise time schedule during which he is blocked and when he is free.
I know there are many questions.. But please help me out.
Regards,
SmartHi,
You can refer the link : PP - Work Centers - SAP Library, which explains linking logistics with different objects in HR.
The below links also could be of help:
Transferring Data from SAP Logistics - Personnel Time Management (PT) - SAP Library
Work Center Integration - ALE/EDI Business Processes - SAP Library
Thanks
Prem -
What is Operation dispatching and deallocation.
hi,
Dispatching:
While doing th capacity planning for the order you dispatch the operation. Dispatching operations is the main function of capacity leveling. Operations are dispatched to the time when there is sufficient capacity for them to be executed. You can also dispatch sub-operations and work elements.
Depending on whether finite scheduling is to be carried out, operations can be dispatched based on unlimited available capacity or existing available capacity. Existing available capacity is calculated as the difference between the available capacity maintained in the capacity and the requirements already dispatched.
Deallocating operation:
By dragging and dropping an operation from the work center chart onto any line in the pool you can deallocate individual operations.
To deallocate one or more operations, proceed as follows:
Select the desired operations.
Choose Functions - Deallocate.
The system deallocates the operations. That means that they are put back into the pool.
regards,
Lodhi.S -
Dispatching of Orders same as in CM25
Hi ,
I have a requirement to develop a custom report to DISPATCH the prod/planned orders same as it is done in CM25. Can anybody please let me know the logic behind the same or any FM or BAPIs or any related information .
I did Debugging but could not understand the logic.
Thanks in advance.
Adar.You can change the details of operation by using table parameter 'CLOI_ORD_OPRU_IMP'. you will put data as
DATA: li_ord_opru_imp TYPE TABLE OF CLOIOPERU WITH HEADER LINE.
** if you want to change execution start date
li_ord_opru_imp-aufnr = orderid.
li_ord_opru_imp-aplfl = sequence.
li_ord_opru_imp-vornr = operation.
li_ord_opru_imp-field = 'SSAVD'.
li_ord_opru_imp-value = EXEC_START_DATE.
APPEND li_ord_opru_imp.
** if you want to change execution start time
li_ord_opru_imp-aufnr = orderid.
li_ord_opru_imp-aplfl = sequence.
li_ord_opru_imp-vornr = operation.
li_ord_opru_imp-field = 'SSAVZ'.
li_ord_opru_imp-value = EXEC_START_TIME.
APPEND li_ord_opru_imp.
** if you want to change work center
li_ord_opru_imp-aufnr = orderid.
li_ord_opru_imp-aplfl = sequence.
li_ord_opru_imp-vornr = operation.
li_ord_opru_imp-field = 'ARBPL'.
li_ord_opru_imp-value = WORK_CENTER.
APPEND li_ord_opru_imp.
** if you want to dispatch this operation
li_ord_opru_imp-aufnr = orderid.
li_ord_opru_imp-aplfl = sequence.
li_ord_opru_imp-vornr = operation.
li_ord_opru_imp-field = 'METHOD'.
li_ord_opru_imp-value = 'DISPATCH'.
APPEND li_ord_opru_imp.
** Please specify data in CLOI_IF_PAR [Interface Parameters]
DATA: lv_cloi_if_par LIKE CLOIIFPAR.
lv_cloi_if_par-commitflg = 'C'.
lv_cloi_if_par-r3_version = '46'.
lv_cloi_if_par-metlog_req = 'X'.
lv_cloi_if_par-msglog_req = 'X'.
lv_cloi_if_par-msgobj_req = 'X'.
lv_cloi_if_par-ord_req = 'X'.
lv_cloi_if_par-ordseq_req = 'X'.
lv_cloi_if_par-ordopr_req = 'X'.
lv_cloi_if_par-plord_req = 'X'.
** in this example, i call this function by pattern.
data: lv_ret_val LIKE CLOIRETVAL.
CALL FUNCTION 'CLOI_CHANGES_UPL_31'
EXPORTING
CLOI_IF_PAR = lv_cloi_if_par
IMPORTING
CLOI_RET_VAL = CLOI_RET_VAL
TABLES
CLOI_ORD_OPRU_IMP = li_ord_opru_imp
CLOI_MAP_EXP = CLOI_MAP_EXP
CLOI_METHOD_LOG_EXP = CLOI_METHOD_LOG_EXP
CLOI_MESSAGE_LOG_EXP = CLOI_MESSAGE_LOG_EXP
CLOI_MSG_OBJ_LOG_EXP = CLOI_MSG_OBJ_LOG_EXP
CLOI_PLORD_EXP = CLOI_PLORD_EXP
CLOI_ORD_EXP = CLOI_ORD_EXP
CLOI_PLORD_OPR_EXP = CLOI_PLORD_OPR_EXP
CLOI_ORD_OPR_EXP = CLOI_ORD_OPR_EXP
CLOI_ORD_SEQ_EXP = CLOI_ORD_SEQ_EXP
Regards,
Thitima -
HI,
Does anyone knows the Function Module or BAPI for performing the operation dispatch CM21. I am using a program to simulate the Operation Dispatch process for Production Orders. The BAPI should return the proposed Start and End time for the production order just like Transaction Code CM21.
If there is no such BAPI or Function Modules, does anyone know how to get the current data from the Planning Table : SAPSFCG001.
Thanks in advance.Dear
FM /BAPI for CM21 :
BAP_PLANNEDORDER_CREATE
CYPP0005.
CLOI_CHANGES_UPL_31 : http://abaplog.wordpress.com/2007/05/
EXIT_SAPLCYPP02_001
BAPI_PRODORDCONF_GETDETAIL
Refer : Re: How to create additional column in CM21, CM25
Hope this will help you .
Regards
JH -
BAPI to create Transfer order(WMS) from Material document
Dears,
We have activited WMS and we have not found any BAPI to generate TO in WMS from Material document to post GR to a specific bin. Is there any BAPI available for particular operation?
Can anyone tell me about name of BAPI?
Regards,
FRTry with Function Module L_TO_CREATE_TR
also try
Use this function module to create TO (transaction LT01) L_TO_CREATE_SINGLE
CALL FUNCTION 'L_TO_CREATE_SINGLE'
EXPORTING
i_lgnum = ti_lqua-lgnum
i_bwlvs = l_bwlvs
i_matnr = zwwmugeori-matnr
i_werks = ti_lqua-werks
i_lgort = ti_lqua-lgort
i_bestq = l_bestq
i_letyp = l_letyp
i_anfme = l_anfme
i_altme = l_altme
i_vlpla = l_vlpla
i_vlenr = l_vlenr
i_nlpla = l_nlpla
i_nlenr = l_nlenr
i_commit_work = space
IMPORTING
e_tanum = l_tanum.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 13, 2008 11:33 AM -
Iw72 service order + Link b/w operations and PRTs
Hello Friends,
So here is my problem. In transctin iw72 ( service order ) there is a tab called "operations". In tab operatinos I can attatch Resourse / tool ( table AFFH ( PRT assignment data for the work order ) and structure AFFHD (Structure of the PRTs in orders). So I can do this all manually, and after pressing save, the PRTs is attatched to the operation. ( pls note I want to attatch a documet as PRTs to the operations)
Now I want to do this via any FM or BAPI, but unfortunatelly I was not able to find any such bapi, ( I mean, I have find bapi to create the operation, and I also find the bapi to create the document, and now I have to find the bapi which store the PRTs ( in my case document ) to that operation ( or order ).
In table AFFH, I have reference to the order, but not to the operation, so actually using this table I can attatch the PRTs to one order, but my req is to attatch to the operation.
So I debug the standard code, to find out how they are doing, but could not find much, any tip how I can make it more simple to find out, what is going on in starndard code.
Regards,
Message was edited by:
Shah H
Message was edited by:
Shah Hhi,
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm
For debugging tutorial:
http://help.sap.com/saphelp_erp2005vp/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
http://www.sapdevelopment.co.uk/tips/debug/debughome.htm
http://www.sap-basis-abap.com/sapab002.htm
System Debugging
If you set this option, the Debugger is also activated for system programs
(programs with status S in their program attributes). When you save breakpoints, the System Debugging setting is also saved.
Update Debugging
Update function modules do not run in the same user session as the program that is currently running in the ABAP Debugger.
These function modules are therefore not included in debugging.
Only if you select the Update Debugging option can you display and debug them after the COMMIT WORK.
Normal Debugging
Normal debugging is the one we do it by the normal dynamic break points or by /H or by using stattic break points.
You can switch to diffferent debuggin modes while processing.
Regards
Reshma -
BDC for CM25 tcode or a function module to dispatch planned orders
Please suggest a way for BDC of CM25 tcode as the selection of planned/process order in the tcode is not captured in recording.
or provide FM/BAPI for dispatch of planned orders.
Moderator message - Cross post locked
Edited by: Rob Burbank on Oct 23, 2009 11:27 AMreposting it
Maybe you are looking for
-
Sensor does not work after hitting tablet Z
What to do? fell at an angle plate - stopped working sensor. Case-warranty and repair costs money unreal. Someone tell me - what can I do?
-
Possibility to restrict interest calculation on open items only
Hello All, How to restrict calculation to Open Items only via configuration when the system calculates interest on arrears. I have checked the options for interest on arrears and there is no option to restrict via customizing.Ofcourse, there is an op
-
I use openbox WM with compton and when I move tab in google-chrome, I see ugly shadow: How to remove shadows from this? Last edited by LinX (2012-12-11 20:28:16)
-
HT1338 why do i lose wi-fi internet connection on iMac when computer wakes from sleep
Everytime my imac wakes from sleep I lose internet connection and have to go into network and reconnect. I am using OS X Mountain Lion software. Please help!
-
1. what is the functionality of Adapters in XI? 2. How these adapters involve in to Transfering the data from one server to another? 3. could u please explain all the FILE and RFC adapters in detail?