Change planned order operations
Dear guru ,
i must develop an abap program that must change the operations of a planned order.
I can insert or delete the operations of the planned order.
Which best solution (BAPI,user exit ..) can you suggest ?
Thanks
Hi
there is no solution to this answer. you can't change operations in a PLANNED order. planned orders only refer to the master data (BOM, Routing, master recipe, task list, ...).
You have to either change the operations in the routing, recipie, task list, ... (if it is a change for all new orders) or convert the planned order to a PRODUCTION/PROCESS order and manipulate the operations there (if it is a one-off change)
Other options include the use of production versions as setup in MRP-4 of the material.
Björn
Similar Messages
-
BAPI to change planned orders details
Hi Experts,
I need BAPI to change Planned order details,which are created through SNP PPM's.I searched for Bapi and got one 'BAPI_MOSRVAPS_SAVEMULTI3' but this BAPI will change order details if created for PP/DS PPM's.
Kindly suggest will this BAPI only work or someother.
I want to keep the PPM name blank and save the order details through BAPI.
Pls reply asap.
Thanks
surbhiHi Surbhi,
You may please search on google, there are lots of tutorial on BDC, you will surely get the solution... in short BDC is to record a transaction & then use same recording to generate ABAP program & you can play with screen navigations & update the fields you required...
Regards,
Adarsh -
Hi,
What is the function of 'assign version' from the list of 'edit' in MD12 - change planned order.
Is there a way to change the BOM revision level assigned by MRP run?
Currently MRP assign the most recent revision level to a planned order, and I would like to be able to change it to a previsious revision level.
Thanks
Lin-Lin LiHi,
"Assign Version" is like the reading Master data in Planned Order.
Now try this. in your Pl. Order Change Screen, slect Master data Tab pag.
Then try the "Assign Version", your BOM details in the lowerpart of the screen vanishes.
You will get the message saying "Explosion data has changed, please re-explode" if you confirm this by Pressing Enter.
Then the BOM details dat will go off and you can select another PV.
Otherwise directly you can change the PV in the entry screen itself.
Hope this helps..
Regards,
Siva -
BADI For Changing Planned order Qty during MRP Run
Hi,
My requirement is i want to change Planned order qty based on some conditions during MRP run(MD02). Is there any BADI to fullfill my requirement.
Thanks,
KishoreNot sure I understand the situation correctly...You want to delete the planned orders before MRP runs again. WHy do you want to do that ? Are these firmed Planned orders ?
-
Automatic Firmed Planned Order / Mass Change Planned Order
Hi PP Gurus,
My requirement is I want to make all planned order created from planning run will be automatically firmed. I tried several option :
1. MRP type : P1, automatic create firmed planned order within planning time fence but for new requirement, planned order will be created after planning time fence date. Example planning time fence date lies on 20/10/2011
PIR
09/2011 3 pc
10/2011 4 pc
end of planning time fence date
11/2011 5 pc
run MRP
Planned order firmed for month 9 and 10. for 11 is not firmed. But the problem is if PIR on month 10 is change from 4 to 6. the other 2 planned order will be created at end of planning time fence date.
Is it possible for planned order created at appropriate date as requirement date ???
2. Mass Change of Planned Order
I browse the help SAP there is function module : MD_SET_ACTION_PLAF for mass changes of planned orders.
http://help.sap.com/saphelp_46c/helpdata/en/9e/e84226c1c311d3b54a0004ac160649/content.htm
I execute it with SE37 but i don't know what should i do with this function module after the next screen.
In my mind, there will be selection screen for choosing which planned order will be perform firmed action.
Any other idea to solve my requirement is welcome.
Regards,
Arman LieDear Arman,
Use T.Code MD19 for firming the planned orders,also check MDBA for firming the planned order.
For your first question let me check and revert back.
Regards
Mangalraj.S -
Load distribution of a Planned Order Operation
Hi All,
Need help in understanding an issue here.
For a Planned Order, detailed scheduling happened ,and schedule and Cpacity requirements were generated.
This is the case with just 1 operation. The requirement of this operation is of 1 Hour and schedule was created in Planned Order for the date- 01.07.2014.
But when we go for the capacity evaluation, in CM01> It shows load devide over two periods> 30.06.2014 and 01.07.2014.
That is,
For, 30.06.2014 load is-->0.614 hrs. Though, Latest start data and time still is same as in Planned order[01.07.2014]
and for 01.07.2014 load is>0.386 hrs. Latest start data and time still is same as in Planned order[01.07.2014]>Which is normal
That is a total of 1 hour.
Please help me understand what made this happen in Capacity evaluation, why we have different data in Planned Order and in CM01.
Why the load got devided over
Regards,
AvinashHi,
To add further and to more precise, the issue is:
In CM01[or in any capacity evaluation tcode], In a particular maonths load[Period] the opeartion from different month is showing up.
For example: if Period[month] 06 is veiwed of a Workcenter load, a line[load appears], whose earliest date is in 7th month[01.07.2014].
I expected to see, only Workcenters scheduled in 6th month to show up in the load evaluation.
Please look at the screen shot.
Regards,
Avinash -
Change Planned order components
When we change a component in a planned order that is different from the manufacturing BOM, is there a way to distinguish what component was changed.
Hi Ramesh,
There is no transaction available to compare Production Order component list to BOM Component list. You need to create a Z report for yourself.
If it is just comparing 2 BOM's then you can use transaction CS14.
Hope this helps...
Regards,
Prasobh -
BAPI to change Work order operation details
Hi ,
I have a requirement to change the operation work center of the service order . I am using the BAPI_ALM_ORDER_MAINTAIN . Could anyone let me know how the parameters i_methods and i_operation, i_operationup needs to be passed , what values need to be filled in them. Basically I am not sure about how the object key for the i_operations table is built.
Regards,
Prabaharan.GHi,
I used the below function module parameters as below the change operation work center of maintenance order,
CLEAR: I_METHODS[], I_HEADER[], I_HEADERUP[],
I_OPERATION[], I_OPERATIONUP[].
CLEAR: V_OBJKEY.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = P_V_AUFNR
IMPORTING
OUTPUT = P_V_AUFNR.
I_METHODS-REFNUMBER = '000001'.
I_METHODS-OBJECTTYPE = 'OPERATION'.
I_METHODS-METHOD = 'CHANGE'.
I_METHODS-OBJECTKEY = P_V_AUFNR.
APPEND I_METHODS.
I_METHODS-OBJECTTYPE = ' '.
I_METHODS-METHOD = 'SAVE'.
APPEND I_METHODS.
I_OPERATION-ACTIVITY = P_V_VORNR.
I_OPERATION-WORK_CNTR = P_V_WORK_CENTER.
APPEND I_OPERATION.
I_OPERATIONUP-ACTIVITY = 'X'.
I_OPERATIONUP-WORK_CNTR = 'X'.
APPEND I_OPERATIONUP.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
IT_METHODS = I_METHODS
IT_HEADER = I_HEADER
IT_HEADER_UP = I_HEADERUP
IT_HEADER_SRV =
IT_HEADER_SRV_UP =
IT_USERSTATUS =
IT_PARTNER =
IT_PARTNER_UP =
IT_OPERATION = I_OPERATION
IT_OPERATION_UP = I_OPERATIONUP
IT_RELATION =
IT_RELATION_UP =
IT_COMPONENT =
IT_COMPONENT_UP =
IT_TEXT =
IT_TEXT_LINES =
EXTENSION_IN =
RETURN = I_RETURN
ET_NUMBERS =
READ TABLE I_RETURN INTO WA_RETURN WITH KEY TYPE = 'E'.
IF SY-SUBRC NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WAIT UP TO 1 SECONDS.
ELSE.
MOVE P_V_AUFNR TO WA_MSG_LOG-AUFNR.
MOVE P_V_VORNR TO WA_MSG_LOG-VORNR.
MOVE WA_RETURN-MESSAGE TO WA_MSG_LOG-MESSAGE.
APPEND WA_MSG_LOG TO I_MSG_LOG.
CLEAR: WA_MSG_LOG.
ENDIF.
Regards,
Prabaharan.G -
Error on RESB table changing planning order using BAPI_PRODORD_CHANGE
Hallo.
In my custom program ZINTERFACE_ORDER, I use BAPI 'BAPI_PRODORD_CHANGE' to change multiple production order (quantity / start date/ end date).
CALL FUNCTION 'BAPI_PRODORD_CHANGE'
EXPORTING
number = wk_ordine
orderdata = wk_orderdata
orderdatax = wk_orderdatax
IMPORTING
return = bapi_return.
First order change works right, but the second order generate the error:
TYPE: E
ID : CO
NUMBER : 888
MESSAGE: Internal: Error when reading document table RESB
The error is generated by COXT_BAPI_ORDER_CHANGE , called internally from the above BAPI_PRODORD_CHANGE
And I have to exit from my custom report and reprocess the second order to work.
It seems that there is a lock on RESB table.
Could you
help me?
Thanks a lot
GiancarloYou need to find the lock that is being set. After your BAPI Commit, you need to test that the lock is cleared. If not, do a wait for 1 sec and retest.
Unlock (and lock) are queued objects that do not occur until after the commit is complete. Because they are queued, they can get slow. Especially when a background process is going to try to work with multiple in a short period of time.
Neal -
Dear All,
which t code i can use to see the changes done in a planned order?
Please ex[plain.We were asking about this topic before. Actually when planned order is converted to the order production, the planned order is deleted. One option is activating log for tables PLAF (Planned Order Header) RESB (Planned Order Detail) in SE13 tx and set rec/client parameter to "ALL" or the "client number" in system profile (As to BASIS people) where you want activate logs and re-start the system to obtain the history in these tables.
The transaction where you can see the logs about changes (Planned Order Header and Details Changes) is AUT10.
Check with Basis people if there aren't problems with the system performance to activate the logs in this tables, the reason is because the RESB table has a lot of changes with the normal operations in the system in planning.
Regards,
Donald Tatun -
User exit/ badi needed for planned order create/change,collective ATP check
Dear All,
I'm looking for a user exit/ badi which can be used for planned orders at the stage of
mass collective availability check (COMAC tcode) update; or at some other relevant stages of mass update of planned orders.
I need after collective availability check to perform the following:
1) to copy date from "total comitment" field on header tab of planned order and paste it (replace old date) to order finish date on header screen
then
2) to start a scheduling.
Very appreciate your help.
Best Regards,
Andrey
Edited by: Andrey Kruglov on Apr 15, 2010 3:06 PM
Edited by: Andrey Kruglov on Apr 15, 2010 3:07 PMDear,
Use the BAPI : BAPI_PLANNEDORDER_CHANGE
Or use the function module MD_SET_ACTION_PLAF for Schedule planned order.
and the transaction MDAC Execute action for planned order
This function module includes the following actions:
Explode BOM
Explode BOM, check availability
Check availability, only explode BOM in the case of a requirement
Check availability, do not explode BOM
Reset availability
Change planned order data
Schedule planned order
Delete planned order
Assign the key for the respective action control to the materials in the material master (MRP 4 view).
Please refer this thread,
Re: MDVP for collective orders
Regards,
R.Brahmankar -
How to change the components of the planned order? (FM or BAPI)
I need to change the storage(LGORT) in the components.
I found only MD_PLDORD_CHANGE_COMP_ITEMS, but could not get the correct result.
Has anyone used this FM to change the components of the planned order?
Can you please tell how to use it. Or advise an alternative solution.Hi Anton,
There's a BAPI to change planned orders - BAPI_PLANNEDORDER_CHANGE, but it allows to change only header data.
Therefore you'll have to go a bit longer, and use a couple of other BAPIs:
First read the order that you want to change - BAPI_PLANNEDORDER_GET_DETAIL
Second, create a new planned order with the changed data, based on the read planned order - BAPI_PLANNEDORDER_CREATE.
Third, delete the old planned order - BAPI_PLANNEDORDER_DELETE.
Regards,
Mario -
RECORDING CHANGES IN PLANNED ORDER
HOW TO KEEP HISTORY OF CHANGES PLANNED ORDER.
Hi,
As per my knowledge, It is not possible to track history of changes for planned orders.
You can track changes of Production /Process orders in OCM & Master data like BOM,Routing changes in ECM.
Regards,
Tejas -
Planned order scheduling mass update
Hello all,
Is there a way I can change the scheduling dates for the planned orders collectively. (not MD16) ?
ThankyouHi,
check the following
Mass Changes of Planned Orders (Action Control)
Use
You can use this function to execute one or more actions for a large number of planned orders simultaneously. This is possible both within the SAP System and over an interface from an external assembly control system.
Features
SAP supplies the function module MD_SET_ACTION_PLAF for action control.
This function module includes the following actions:
Explode BOM
Explode BOM, check availability
Check availability, only explode BOM in the case of a requirement
Check availability, do not explode BOM
Reset availability
Change planned order data
Schedule planned order
Delete planned order
Confirm planned order (in repetitive manufacturing)
Firm planned order data
Firm planned order components
Print component overview
In connection with an action, you can always change planned order data, for example; order quantity, dates or production version.
The function module also enables you to program further customer-specific actions.
You can execute the actions for several planned orders simultaneously.
You can create action chains, that means, have the system execute several actions in a single operation.
Activities
Define your own actions and program a report that includes these actions. As an example of this, the transaction MDAC Execute action for planned order (MRP ® Planned order ® Execute action) is available.
In this example action, you can use actions only for individual planned orders. Nor can you form action chains, only simple action transitions are possible.
Determine an action key and action controls in Customizing for MRP in the IMG activities Define action key and Define action control. An action key describes the actions that can be executed for a planned order. Action controls determine which actions are allowed and in which sequence they are to be executed.
Assign the key for the respective action control to the materials in the material master (MRP 4 view).
Regards,
nandha -
BAPI for Scheduling Planned Order
Hi,
Please tell me if there are any BAPIs for Scheduling a Pllaned Order and for Deleting a Planned Oredr.
Thankes & Regards,
RahulBAPI_PLANNEDORDER_CHANGE Change planned order
BAPI_PLANNEDORDER_CREATE Create planned order
BAPI_PLANNEDORDER_DELETE Delete planned order
BAPI_PLANNEDORDER_EXIST_CHECK Planned order existence check
BAPI_PLANNEDORDER_GET_DETAIL Get details for planned order
BAPI_PLANNEDORDER_GET_DET_LIST Get detailed planned order list
All bapi's related to planned order processing
BR
Manthan.
Maybe you are looking for
-
Top navigation buttons are not moving in Css
My problem is that my top navigation bar is sticking to a logo picture at the top even after i told it to {clear:both:} but it didnt move.. And i dont know why it isnt moving away, because i also applied it to go from left to right and that worked. i
-
Using Calculation Action in BLS Transaction
I'm trying to pass the values of two tags in a tag query into a calculation action in a BLS transaction and add the two values together. I'm linking the action result property to the expression that does the calculation. When I click on the 'Evalua
-
Problem with WE19 Test tool for idoc process
Hi, I have a idoc in 51 status. This idoc is used for order creation and its an inbound idoc. This idoc has around 2000 line items. On checking the status for this idoc, i find that in a particular line item(223) error is showing. So in WE19, I enter
-
Cannot find edqp.properties file, can I just create it manually?
I would like to establish a connection between my EDQ and EDQP instances, both 11g versions. I understand OEDQ server must be configured first so the EDQP processor will appear in the EDQ Tool Palette section. EDQ Online Help says that the 'edqp.prop
-
I have sent in a report. Is this a known issue? Though the update for HTC One has been out for awhile now.