Production order, change/update batch
Hello,
I need to change the batch of a produciton order.
Is there a BAPI that can do the job?
Hi,
try this way..
CALL FUNCTION BAPI_PRODORD_GET_DETAIL'
"is used to get the Production order detials later call the below fm to update the batch
w_poitem-po_item = '0001'.
CONCATENATE 'External Services - Batch-' w_e_7b1_view-batch_number INTO w_poitem-short_text. "here Update Batch
w_poitem-quantity = w_menge.
w_poitem-preq_no = w_banfn. "w_child-trans_doc_id .
w_poitem-preq_item = w_bnfpo. "w_child-trans_line_id.
APPEND w_poitem TO t_poitem.
* Do up to X times only when locking error
DO w_i_retry_count TIMES.
REFRESH t_po_return.
CALL FUNCTION BAPI_PRODORD_CHANGE'
EXPORTING
purchaseorder = w_expProductionOrder
TABLES
return = t_return
poitem = t_poitem
poitemx = t_poitemx.
prabhudas
Similar Messages
-
Producting order settlement and batch
Dear all consultants!
I have an issue. I want to manage value by batch. i use the follow way:
- use batch and valuation type. when good receipt from production order, i identify an certain batch and an valuation type.
- then, about variance, i do execute production order normally . when i see result, amount of variance of production order is be settled to Material (not by batch and valuation type). I run MB52/MB5C to check stock and value of stock, but value is not be changed after executing settlement production order.
The thing i care that how to post variance of production order to correspondent batch/valuation type.
any idea will be appreciated.
Thanks in advanced.Dear Ajay M!
I do test as you said.
- Do the GR and settle the Prod order - Variance is loaded and be settle to Material. But when i check stock and value both at plant level and batch level, i cant find that amount of variance. Value of stock is not change before and after i run execute. I even cant find report to display that amount.
- Do the GR - Consume the Output to a Cost center or Prod order - Then settle the Prod order.. In this case, the variance must not be loaded on other inventory... It should be hit to PRD --> i consume finished product. then i execute settlement, but result is not different with first case.
what should i go continue?
the things i care that i want to control product costing (or actual cost of good manufacture by batch).
Thanks in advance. -
User exit to populate profit center in production order change (CO02)
Hello,
The requirement is to populate the profit center in production order change (Tcode CO02). I know the user exit that can populate profitcenter in CO01 but it's not called in CO02. Ther other user exits that I found are for checking but not for changing
Is there a user exit /BADI that can acheive this requirement?
Thanks a lot for your advise.
JoeHi,
Use the user exit PPCO0007 ,function module EXIT_SAPLCOZV_001
HEADER_EXP-PRCTR
Thanks,
Shailaja Ainala. -
Regarding Production order changes work flows
Hi to all,
I activated WS20000387 work flow template. its regarding the production order changes .
briefly: i created one production order, immediately assigned person will get a message in his SAP inbox.
he has to double click/execute on that mail, then system will take u directly to the production order screen. there is no need to enter that Order no.
but here, after double clicking, system is asking The Order no.
we have clients 300,500 and 700.
i executed same work flow in 300 successfully,
700 is not modifiable. thats y i did all the settings in 500 and copied the request to 700.
i am getting the problem in 700,, i compared all the settings in 300 and 700, but no use,,,all are same,,,but not executing in 700.
anybody can help me in this regard.You Can use below FM to confirm Production order and it is very simple BAPI.
BAPI_PRODORDCONF_CREATE_HDR -> just check in where used list.
Thanks
Seshu -
Assign production order number to batch number automatically
Hi All,
I have been trying to assign production order number to batch number when clicked on create icon in t-code CO02, and successfully assigned Production order number to batch number through EXIT_SAPLV01Z_001
Question:
Now i want to assign same production order number to batch number automatically... is it possible"
If yes, provide me the exit or badi.
Best Regards,
Krishna KHi,
Try to use any enhancement point in below mentioned FORM.
In Program : SAPLCOKO1
Include : LCOKO1F3J
Inside below FORM.
FORM header_update.
DATA: flg_q_upd.
DATA: quan_old LIKE caufvd-gamng.
ENHANCEMENT-POINT header_update_01 SPOTS es_saplcoko1 STATIC.
ENHANCEMENT-POINT HEADER_UPDATE_05 SPOTS ES_SAPLCOKO1 .
BR,
Vijay -
Production Order Changes...
I need the ability to identify changes made to a production order and the user that made the change. There are instances of incorrect changes being made to production orders with no way to identify the user that made the change. As examples, components are being 'final issued' but no one knows who set the 'final issue' indicator. Labor hours are changed with no traceability to the user who made the change.
SAP contains the capability to track changes to material master data, BOM data, and routing data. Is there the same capability for production order data?Dear ,
You need to activate Order Change Managment-SPRO-Shop Floor Control -System Modification in case to trak production order change :
A.Enhancements for Order Maintenance
1.Enhancement for the Display/Change of Order Header Data
2.Check Changes to the Production Order Header
3.Checks Changes to Order Operations
B.Enhancements for Order Change Management (OCM)
1.Check Conflict for Change Step
2.Definition of Comparison Fields for Order Comparison
C.Enhancements for Order Confirmation
Otherwise , from Basis side you can trak by
1.ST03
2.STAD-Provide SAP T-code , user id , Client .Here you can find out what are the changes user did for any production order based on SAP Trxn .
Regards
JH -
Send production order changes to external system IDOC
Hi,
I need to send production order changes to an an external system. I understand that I can trigger idocs using t-code POIT.
but my requirement is when a order is changed, i want to trigger an IDOC to external system with the new PO data...how can I achieve thisHi Swathi,
A very high level idea.
You can use the user exit..."LXCO1U06" and call the transaction POIT in back goround and submit the idoc. This exit is used @ save of TA code CO02. Moreover as the production order can be changed through several transactions like COHV, CO40, COOIS etc....you have to check whether this exit would be applicable for all transaction.
Regards,
Chinna -
Production order Relase status Batch is picked in Delivery
Hi friends,
Presently in system, Production order Relase status Batch is allocated in Delivery due to Availability checking group & rule.Now as per requirement only Confirmed Production order Batch should allocat in delivery,then what setting should be done in Batch search stratergy & Availability checking group & rule so that system will consider only Confirmed Production order Batch in Availability check.?
Please revert ASAP.
Thanks & regards,
NITIN M.PAWARgood analysis
-
AFTER IMPLEMENTING OSS NOTES 390635 HOW TO SEE PRODUCTION ORDER CHANGE
Hi Experts...
Requirement: AFTER IMPLEMENTING OSS NOTES 390635 HOW TO SEE PRODUCTION ORDER CHANGE HISTORY?
I have seen many threads about implementing OSS NOTES 390635, but hardly any one narrated the process in detail as to how to see 'Change History'..
I just would like to know 'how' and 'from where' to find Order Change History in detail (i.e Prod .order Comp. change history, Prod. Ord. Operation Change History, Prod. order header change history etc..)
In general this isssue might sound old one..but 'POST IMPLEMENTING OSS NOTE 390635' is rare one.
Folks need your expert comments and valuable suggestions....
Thank You...
LuckyDear
You should goto CO02-Enter Production Order -Goto -Change Management -Here it will list down all the chages with relevent information .
Refer : Re: Production order changes history
Production orders
Regards
JH -
Deactivating production order changes after 1st operation is confirmed
Hi,
I want to deactivate production order changes after 1st operation is confirmed through CO11n.Ie. production order qty should not be allowed to change after 1st operation is confirmed.
Expecting ur immense help on this.
Regards,
JS KarthiDear ,
PPCO0007
EXIT_SAPLCOZV_001 Exit when saving production order
Provide the restrictions in coding, so that when saving the order check for the order status PCNF or CNF and quantity change.
Check thread
first operation confimed - after system allowed changed order qty
Regards,
Ishwar -
About production order change historic records
The users want to know about production order change historic records.how can I get it, please do me a favour. Thanks.
Hello ,
Look into:
SAP NOTE: 1407961 and
History of production order changes
Please search the forum first for such questions.
- Pushkar
Edited by: Pushkar Patil on Aug 6, 2010 9:56 AM -
Dear All,
I want to restrict the changes made to the order once it is released how can i do it?
VinitDear ,
What are you looking for in production order changes ? Is it qty ? Is it Component ?
I think you don't have to use OCM, you can also use the modification which is provide by SAP in SAP note 390635
I hope you can restrict at user level changes in various screen variant by appling User exit .You need to take the help of ABAPer to utilise the user exit in CO02.
1.You may use user exit EXIT_SAPLCOBT_001 -(PPCO0007).You can make use of the exception NOT_ALLOWED_WITH_ERROR in this exit
2.PPCO0012 Production Order: Display/Change Order Header Data
3.PPCO0018 Check for changes to production order header
4.PPCO0019 Checks for changes to order operations
For farther information , you can goto T code CMOD - Project Managment of SAP Enhancements- Click on Utilities in the menu bar - SAP Enhancements - under Exit name Give * ,remove maximum number of hits value from 500 and execute.Select one which suits to your requirement.
Hope this will be useful to you
Regards
JH -
Production order changes Tracing
dear all,
in the production order how can i find out who make changes like delete materials if there are many people can use co02 , I need to make a tracing to a particular order , is there's any log to do this?
thanks in advance
MiladThere is no std T code available for check the changes made in production order
IF you want you need to activate the OCM or apply the note 390635
please refer below thread
Process Order Change Log history
Re: Production Order Change Management -
Production Order Number and Batch Number same during order creation
Hi All,
I wanted to keep the Production Order number and Batch Number same during creation.
How I can do that during creation of order only. So during creation same number to be get assigned automatically in the background.
One thing I can maintain ; the same number range for both.
But how to activate other functionality.
Regards,
AmitHi SAP2511,
For Production order-
1.You can define a Order type and Mantain the number range same as batch number range (in OPJH transction)
For Batch
1.Activate Automatic internal batch assignment - (OMCZ)
2.Number range for batch - for object - BATCH_CLT - (OMAD)
For batch creation at time of Order creation -
You can create Automatic batch at the time of order creation or order release
1 Create Production scheduler Profile(OPKP) and assign in Work scheduling view of material master for which you want to create batch at the time of order creation or release.(Select automatic batch creation at the time of release or creation in OPKP)
Things to be taken care -
1 . What if you set deleation flag for order?
Regards
Girish
Edited by: girish khobare on Aug 20, 2010 9:31 AM -
User-exit to update material component in a production order with a batch
I am looking for a solution to update a production order material component with a batch number what is stored in the configuration of a sales order. The production order is defined for salesorder related production. How can I update the field RESBD-CHARG in the production order.
Tried already the exits PPCO0001, PPCO0008, PPCO0021. Also looked for a solutions with batch search stratgegies, but I have no idea kind of possiblities I have here. Other problem is that we are stil on release 4.7.
Hopefully some can help me with a solution.
Regards,
Peter GeurtsDear
You have to update the batch in a production order component via RFC Call of BAPI_ALM_ORDER_MAINTAIN.You should also pass operation number to T_COMPONENT and T_COMPONENT_UP
T_COMPONENT-ACTIVITY = Operation Number
You need to pass the following tables
IT_METHODS should have 2 values
Refnum - '000002'
Objecttype - 'COMPONENT'
Method - 'CHANGE'
Objectkey - 300054 (Prefix the zero's)
Append IT_METHODS
Method - 'SAVE'
Append IT_METHODS
T_COMPONENT should have the following values
RESERV_NO - Reservation number ( you can see in production order)
RES_ITEM - Reservation item ( you can see in production order)
BATCH - populate the required value
APPEND T_COMPONENT
T_COMPONENT_UP should have the following values
BATCH - 'X'
APPEND T_COMPONENT_UP
Or else look at BAPI 'BAPI_MATERIAL_GETBATCHES'. This might help you.....
CALL FUNCTION 'BAPI_MATERIAL_GETBATCHES'
EXPORTING
material = MATERIAL
BATCHNUMBER =
plant = PLANT
expirydatefrom = DATE
Hope this will be useful
Regards
JH
Edited by: Jiaul Haque on Sep 12, 2010 11:14 PM
Maybe you are looking for
-
ITunes 7.4 With Windows Vista Error
Ever since the update to iTunes 7.4 and continuing into 7.4.2.4 I get this error before starting iTunes each time. http://i135.photobucket.com/albums/q149/brene/iTunesError.jpg Before this update it worked fine. Thought I should let people know in ca
-
Recommended transition solution for ISP:s with enterprise customers?
What would be the recommended solution(s) for ISP:s with enterprises only as customers? It both needs to support IPv6 and at the same time save IPv4 resources. Thanks in advance!
-
Dual Boot Pre install Windows 7 with oracle linux on a dell laptop
I'm new in linux. want to install oracle linux on my dell aptop. it has existing windows 7. how can i install oracle linux without affecting win 7 files. is oracle linux can be install on laptop.
-
I can no longer delete photos or drag them into the trash unless I am in edit function. Also, when I select a photo to edit, iPhoto jumps to the first picture in my library and opens that one for editing. Then I have to scroll back to the picture I w
-
Slow to open multiple PDF files
Hi We've recognized an issue with the Adobe Reader 10. If a user opens the first PDF file it opens very fast. But if the user opens a 2nd or 3rd PDF documents, it takes a few seconds (up to 15seconds) until the PDF file is open. This was reported fro