PM Order - Change status to Technically Complete
Hello experts!
Can anyone let me know how to change the status of an order through a BAPI? We believe the BAPI is bapi_alm_order_maintain but I'm not sure how to use it. If it's that one, can anyone give us what parameters to use? We just want to close the orders through a flag in an ALV report.
Thanks and best regards!
Fernando Montenegro
Found this on Google - not sure if it works:
DATA: it_methods TYPE bapi_alm_order_method OCCURS 0 WITH HEADER LINE,
return TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
et_numbers TYPE bapi_alm_numbers OCCURS 0 WITH HEADER LINE.
DATA: gt_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: gt_return2 LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
it_methods-refnumber = 1.
it_methods-objecttype = 'HEADER'.
it_methods-method = 'TECHNICALCOMPLETE '.
it_methods-objectkey = lv_aufnr. " '000007092118'.
APPEND it_methods.
*IT_METHODS-REFNUMBER = 1.
it_methods-objecttype = ''.
it_methods-method = 'SAVE'.
APPEND it_methods.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES it_methods = it_methods
return = return
et_numbers = et_numbers.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X' IMPORTING
return = lt_return_close_order.
Similar Messages
-
Read orders which are not technical complete in custom report
Hi,
what do you recommend to read all orders which are not from status "technical complete" in a custom report. Is there a function module to acchieve this with good performance or what do you recommend?
Thanks a lot.
Kind regards
Manfred.Hi Manfred,
Since you asked about a function module for use in a custom report, it is likely that you are not looking to use a standard transaction to display the orders.
The phase of a maintenance order can be found from the field AFIH-IPHAS, where the phases are:
0 Outstanding
1 Postponed (currently not used)
2 Released
3 Technically completed
4 Manual deletion indicator set
5 Historical order
6 Completed for business (from 4.6)
So to find non-technical complete - you would select where iphas not equal to 3. If you need to make this selection RFC capable, then you can wrap it in a RFC capable function module
Regards
Andrew -
Deactivate idoc generation for order when status is not completed
Hi Guru,
In CRMD_ORDER when sales order is created it will generate bdoc and for that bdoc idoc is going to create for every status , my requirement is to stop the creation of idoc if status is not completed please provide solution for that.
Regards,
Naveen.Hi Naveen,
As u said u dont want to create idoc on the particular User status(i.e. Not Completed ), in this case u check for u r subcription setting in administration console (txn: SMOEAC) that in which statuses u r idoc get created in field crieteria value, maintain status operator (NE) Not Equal to Not Completed , u r idoc will not get created if u r user status in Not Completed
Regards,
DD's -
How to reset Work Order System Status -NCMP Not completed
Hi Friends,
Please can anyone guide me how do I reset / revert the NCMP (Not completed) System Status of the Work Order. The System Status comes after I have done the Function of "Do Not Execute".
Thanks in Advance.
AnantHi,
1. You cannot reset it back . For future cases ensure to grey out the option using Transaction Variants SHD0 for IW31/IW32 Tcodes
2.Steps to create transaction variant http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40d1443e-0184-2c10-c68d-c612f771fe6f?quicklink=index&overridelayout=true
3.You can also explore user exit :IWO10026 User check on setting status 'Do not perform'
regards
pushpa -
Production order change status report
Dear All,
I created production order in PP. suppose I make changes in production order while confirmation i.e. i change prodn. order qty. 50 to 40 at stage 30(i.e. atrouting stage-- 3rd operation). From where i will get the status of this changes in production order qty ?
I tried in TC: COOIS , but it shows changed qty. 40. I want the diff. 50 -40 = 10 which i have cancelled whilw prodn.confimation.
Pl' reply....we r using strategy '30'. we can not use make to order strategy as our planning has flexibility. So we r creating production orders manually@ 8000 materials from excel to SAP (using BDC program). So there is no linking with sales orders and production orders.
we r uploading material and qty. in mass to create prodn. orders manually.
while prodn. orders confirmation of new plan , sometimes to accomodate spill (pending orders--incomplete orders of last month) we have to cancel some new prodn. orders.
So how to cancel those and from which report i will get change qty. status?
thanks. -
Set Service order and Notification to 'Technical Complete.
Need to set service order and notificatin to teco. Use below logic and it works fine for Service Orders but
it doesn't set the Notification to NOCO.
Can anybody please help?
Thank you very much
Juergen
lit_methods-refnumber ='000001'.
lit_methods-objecttype = 'HEADER'.
lit_methods-method = 'TECHNICALCOMPLETE'.
lit_methods-objectkey = g_order.
APPEND lit_methods. CLEAR lit_methods.
lit_methods-refnumber = '000001'.
lit_methods-objecttype = ' '.
lit_methods-method = 'SAVE'.
lit_methods-objectkey = g_order.
APPEND lit_methods. CLEAR lit_methods.
lit_header-orderid = g_Order.
lit_header-NOTIF_NO = viqmel-qmnum.
lit_header-TECO_REF_DATE = sy-datum.
lit_header-TECO_REF_TIME = sy-uzeit.
APPEND lit_header.
lit_header_up-orderid = 'X'.
lit_header_up-NOTIF_NO = 'X'.
lit_header_up-FINISH_DATE = 'X'.
lit_header_up-BASIC_FIN = 'X'.
APPEND lit_header_up.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = lit_methods
IT_HEADER = lit_header
IT_HEADER_UP = lit_header_up
return = G_return.Hi,
There is no diffrerence between service order and service order notification.
Its better if we can say - IW51 is for Service Order Notification
Generally when request is initiated by the customer or distributor to the retailer then the retailer will create a service order with the detail further process.
Regarding IW31 no proper idea. I have worked in SO notification only.
Regards.
Abinash. -
Process Order technical completion
Hi
whensoever i m trying to technically complete the order, i m getting the Error message no. BS007 i.e. ""Change" is not allowed".
The current status of object 'ORD XXXXXX' prohibits business transaction 'Change'
Current status are as follows :
REL CNF DLV PRC CRFI EXPL EXTS GMPS MANC NTUP PIGN SETC
No status profile is assigned to order.
i have checked in BS22. All the status contains technically completion permission.
Kindly Guide.
Regards
Sachin AhujaDear
Just a re-check
Did you check the User status in COR2 ? Here there will be a Blue I- symbol (Status) as like Production Order -C002 .Select that I symbol and Choose TECO status or REL status , then set TECO from Function -Resstrict Processing and SAVE.
I think it should work based on the User staus which is allowed .
Regards
JH -
Sale order TECO status maintain
Hi SAP Buddy
can any one tell me .. how the restriction can be customized in SAP for an sale order..
Condition ::
Untill unless Production order of a sale order line item ( of MTO scenerio) is not made TECO we were not able to TECO sale order line ITEM..
Thanks In advance
BVHi,
The following actions are executed if an order is set to Technically complete.
The order is not relevant for MRP planning
Reservations are deleted
Capacity requirements are deleted
Purchase requisitions for external operations or non-stock materials are deleted
The order and its operations receive the system status Technically Completed (TECO)
If an order is technically complete, you cannot change it. The fields in the order are displayed but cannot be changed. You can however cancel technical completion, for instance if order data has to be changed.
Regards,
V. Suresh -
Production order current status
Hi All,
Could any one of you let me know where can I know the current status of a produciton order, like if it is in release status or technically completed, I remember the there is function module to read the status but I do not remember it now.
Kindly let me know the FM name or table name or if there is another way out for this.
Thanks,
MarkHi,
You can use FM "WCFS_STTXT_GET" for getting the active status of the production order. Here we need to pass OBJNR from AUFK table.
Regards,
Krishnamurthy.SC
Reward if the answer is useful. -
PP - PI Process order - Technical complete problem
Hi Gurus,
I have created process order and generate Cont.recepie. Then I tecnical complete my PI sheet after report data. when i set technical complete in my process order. system says "It cannot be technical completed because status "CRCR" Contrl recepie created". How i can set status technical complete to my proc.order.
kindly help
MajidHi,
Inorder to TECO or close your order first you have to close the Control Recipe. To do so follow the steps:
1. TCode: CO57
Proc.Message Cat: PI_CRST (Message on control recipe status)
Process Order Number
Control Recipe Number
Control Recipe Status: 00005 or 00004 or 00007
After these entries save the Process Message.
2. TCode C054
Here send the Process message that was created in the above step.
If the message is successful, the status in the order changes from CRCR to either CRAB (if control recipe discarded), CRFI.
Then you can close your order.
Regards
Vinod -
Technically completed production order
Hi Friends,
I am facing one problem in production order. In CO01 i am creating production order and when i try to change the production order in CO02 it is giving error '"Change" is not allowed (ORD .........) . Some times this problem is coming and sometimes this problem is not coming. If i check in debugging i found that the problem is coming becuase of status TECHO, if that status is active then this error is coming. But i do not understand why this problem is coming only for some times. I am creating production order with same details but the problem is coming some times only. Any help will be highly appreciatedd.
Thanks a lot in advance.Hi,
This TECO status is set through CO02 transaction itself.
Goto CO02 if order is already teco, it will show u the msg.press ok button.
after that goto Functions->Restrict Processing->Revoke technical completion.
This way u can undo teco.
May be your user is setting this status as part of his regular exercise.
Regards,
Sunny -
BDC recording not executing last OK code for order technical completion
Hello!
Regarding a QM requirement, I have created a rather simple BDC recording to change the activity type of an order to new ones (based on particular conditions not relevant here) on transaction IW32.
However, if the order is technically complete, I have to cancel the technical completion, change the activity type, and then complete the order technically again (so it remains just the way it was before modification).
The only order types relevant in the requirement are YM01 and YM02. For YM01, the BDC recording works like a charm. But when executing the proper recording for type YM02, the last OK code (i.e. pressing the OK button on the Complete subscreen) is ignored and the process remains incomplete: the orders are never completed technically again.
Here is the recording:
0 T IW32 BS AA X F
SAPLCOIH 101 X
0 BDC_OKCODE /00
0 CAUFVD-AUFNR 80000005
SAPLCOIH 3000 X
0 BDC_OKCODE =WIAR
SAPLCOIH 3000 X
0 BDC_OKCODE /00
0 CAUFVD-ILART 206
SAPLCOIH 3000 X
0 BDC_OKCODE =ARCH
SAPLIWO1 200 X
0 BDC_OKCODE =WTER
0 RIWO1-CLNOT X
Any help would greatly appreciated!
Best regards,
André SantosLeandro, thanks for the answer!
The BDC recording does not work when executed visibly or step by step. After some extensive debugging, I realized that the final screen (the technical complete confirmation screen) is not an actual subscreen, even though it has its own number. That screen is actually generated by an FM, so apparently that's why it's ignored when the BDC is executed.
I found a BAPI to replace that missing step: BAPI_ALM_ORDER_MAINTAIN. However, I'm having a hard time figuring out how to reference the orders I need it to complete. The FM asks for an IT_METHODS table and I couldn't tie the method to the orders:
it_methods-refnumber = ???
it_methods-objecttype = 'HEADER'. "That's what I found on the example, not sure whether this is right or not.
it_methods-method = 'TECHNICALCOMPLETE'.
it_methods-objectkey = ??? "Maybe the order number itself?
APPEND it_methods.
Has anyone used this BAPI before?
Edited by: André Felipe Oliveira dos Santos on Oct 20, 2010 2:18 PM -
Function Module for TECO(technically complete) a maintenance work order
Hi,
Please let me know if there is any FM for TECO(technically complete) a maintenance work order.
Regards,
VimalIs there any BAPI for the same as the FM STATUS_CHANGE_INTERN is doing TECO without considering other statuses which need to be done.
I do technically complete in IW32 by going to ORDER-FUNCTIONS-Complete-Complete(Technically ). Once done Complete(Technically ) will be inactive and Cancel technical Completion will become active. But when i use this FM it does the teco but when i go to ORDER-FUNCTIONS-Complete-Complete(Technically ) it gives me following status information--System Status TECO is active. Also Complete(Technically ) remains active.
Please help.
Regards,
Vimal
Edited by: Vimal kumar on Sep 16, 2008 11:10 AM -
Technical completion of Plant Maintenance Order
When we are trying to do a Technical Completion of a PM order we are getting the error as Error in commitment check (see costing log) with Message no. IW079.
Unable to figure out the missing configs .... kindly help!
Thanx
ShivajiThere might be some open commitments (PO's) against the Order for which you are trying to set this status. Check the commitment report.
This is nothing to do with configuration as this is standard check.To reduce/cancel the commitments set "Delivery completed" indicator in the purchase order which are using this order as account assignment.
Regards
Sreenivas -
How to do order status should be completed even with partial delivery?
Hi,
My requirement is i have sales order for 5 units.
Delivery will be done for 3 units.
I need the sales order status to be completed after delivery.
I have tried with completion rule in item catagery'Item is completed with first reference'
Still the status in document flow is order 'being processed'
Can any body help me out
regards,
ReddyyHi Reddy
If your requirement has to be fulfilled then assign reason for rejection at item level for all line items after doing delivery .Then the item will be closed with 3pcs only .And when you check the document flow then the sales order will be closed
NOTE : No need to change the completion rule at the item category level
Regards
Srinath
Maybe you are looking for
-
"Move Object to Section Master" is not working please help
I am usng Pages 4.3 and when I selction a text box or object and select "Move Object to Section Master" nothing is happening. Like it is not working Anyone else had this problem? Any idea how to fix it? Suggestions would be much appreciated
-
Iphone 5 service worse than a 4 or even razor....???
I have an iphone 5 and when i go to our cottage in gaylord mi mine is the only one that doesnt work all of us have verizon and the other 2 are iphone 4's and ones actually a razor... they can surf web make calls and text but me with the newest phone
-
How to retrieve entire SOAP envolope from WebService
I can only get the xml data embeded in SOAP body from the resultEvent. Is there a way to get entire SOAP Envolope including Header and Body ?
-
System Extension error does anyone know what this means.
Does anyone know what this means. /System/Library/Extension/ATTOExpressRAID_Enabler.kext
-
Best Practice to Recreate Image?
Hi, I have the following image that I want to vectorized (I think this is the right term) into AI. All I really want to do is duplicate the image or remove the the (white) background out of this picture & for the most part, will keep the object i