on 01-10-2013 12:52 PM
hi,
We have recently upgraded our system from 4.6c to ECC EHP6.0.
We have have custom program to issue permits and TECO the maintenance order (IW32, IW33) , similar to IPM2 in 4.6c system .
The change to order is done using BAPI - BAPI_ALM_ORDER_MAINTAIN .
The functionality to change the order from REL to TECO works fine in 4.6c but not in ECC.
the BAPI call BAPI_ALM_ORDER_MAINTAIN does not change the status to TECO.
Can you please help me out on this , as this paused entire PM functionality -
* Change the status Work Order to TECO.
CLEAR: it_methods, it_header, it_return.
REFRESH: it_methods, it_header, it_return.
it_methods-refnumber = 1.
it_methods-method = 'TECHNICALCOMPLETE'.
it_methods-objecttype = 'HEADER'.
it_methods-objectkey = t_permit_logs-objnr+2(12).
APPEND it_methods.
clear it_methods.
it_methods-refnumber = 1.
it_methods-method = 'SAVE'.
it_methods-objectkey = t_permit_logs-objnr+2(12).
APPEND it_methods.
it_header-orderid = t_permit_logs-objnr+2(12).
APPEND it_header.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = it_methods
IT_HEADER = it_header
RETURN = it_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
Regards,
Chandan.
Did you
Regards,
Raymond
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Raymond,
thanks for the reply, i implemented the note but still same.
i checked BS23 and BS33, it is the same in 4.6c and ECC -
the retrun meesage of BAPI says
Iw 654 - Order completion refused as the permits are still missing.
System statuses influencing the process:
I0001 CRTD Created permits
I0002 REL Released permits
I0009 CNF Confirmed permits
I0012 DLV Delivered permits
I0013 DLT Deletion indicator permits
I0015 NCMP Not completed prohibited
I0042 PREL Partially released permits
I0043 LKD Locked prohibited
I0045 TECO Technically completed prohibited
I0046 CLSD Closed permits
I0065 MDLK Master data locked prohibited
I0076 DLFL Deletion flag prohibited
I0181 CRAB Control recipe discarded permits
I0235 NoMP No make-to-order prod. prohibited
I0241 CRCR Control recipe created prohibited
I0267 CRFI Control recipe finished permits
I0320 INAK Object deactivated prohibited
I0391 NOCH Changes forbidden prohibited
I0393 MADJ Manual adjustment necessary prohibited
I0430 BLTC Block technical completion prohibited
Strange, that looks like an old bug as of R3 46c Note 379182 - Permit: Unwanted message when order is released
The system displays an unwanted message when the order is released or the order is completed.
...
If an order is released in the background, an unwanted message with regard to the permit determination can occur.
Check for the correction instructions in this note and its prerequisite (Note 375710 - Update of the PM/CS permits), and cross those with actions executed during SPAU. Were the notes manually implemented in 46c, and wrongly applied in SPAU during upgrade ?
Regards,
Raymond
No keep it, If there has been no inadvertence during the SPAU, the cause of the error is still to find...
Regards,
Raymond
Not able to replicate the problem, you could raise an OSS http://service.sap.com/message if not already done.
(They should be allowed to connect to your system)
Regards,
Raymond
User | Count |
---|---|
96 | |
8 | |
7 | |
5 | |
5 | |
4 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.