on 05-13-2013 11:21 AM
Hi,
I need to release a PM order with the BAPI:
BAPI_ALM_ORDER_MAINTAIN with the table T_METHODS
CLEAR T_METHODS.
T_METHODS-REFNUMBER = 1.
T_METHODS-OBJECTTYPE = 'HEADER'.
T_METHODS-METHOD = 'RELEASE'.
T_METHODS-OBJECTKEY = ORDERID.
APPEND T_METHODS.
CLEAR T_METHODS.
T_METHODS-REFNUMBER = 1.
T_METHODS-OBJECTTYPE = ''.
T_METHODS-METHOD = 'SAVE'.
T_METHODS-OBJECTKEY = ORDERID.
APPEND T_METHODS.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
IT_METHODS = T_METHODS
RETURN = MES.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
In result after COMMIT WORK it occurs error. I received letter in mail(SAP Business workplace) with the text :
"UPDATE_JEST:STATUS_INCONSISTENT: OBJNR: OR003300007364 STATUS: I0115"
Please help me,
regards
Vitaliy
try to call method CALCULATE before RELEASE.
Regards,
Raymond
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try method CALCULATE - same result? don't work.
Thre are all statuses my order:
OBJNR STAT INACT CHGNR
OR003300007364 E0001 001
OR003300007364 I0001 001
OR003300007364 I0016 001
OR003300007364 I0115 X 007
OR003300007364 I0118 X 001
OR003300007364 I0215 001
OR003300007364 I0420 001
OR003300007364 I0485 001
During exec. it required status I0115 (CSER) must be INACT = space
In our system we "hide" operation calculate(disable this operation). In my case I don't have any costs in order? but in tran IW32 when I Release order and press Save I get message
E KL 023 1 1
3300007367
No control record for Activity type 1000/110571-36/S008 in version 000 / 2013 activity planning/qty planning
Can this error affect on operation "Release"?
I suppose it disabled update, you should either reactivate cost calculation, even if constraint with release operation, or change standard customizing of system statuses (start from BS22 for status I0115 "Error in cost calculation" or BS32 for operation REL "Release") but this will be a modification, and can be removed by an upgrade or a SP installation.
Regards,
Raymond
Hi Vitaliy,
I think we'll need more information:
-Are you using any custom development/coding in the order e.g. user-exits/BADIs?
-Are the number ranges for the order okay; check transaction SNRO for object AUFTRAG.
-What is the error message class and number? Is it BS 701?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I think you have issues with your order.
Check the status tabs of the order and confirm if the status is OK(PLOK).
Cheers!
Abhinab
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This problem arise sometimes, two same order can released differently. Error in func module STATUS_UPDATE during the code exec:
LOOP AT jest_ins.
SELECT SINGLE FOR UPDATE *
FROM jest CLIENT SPECIFIED
WHERE mandt = jest_ins-mandt
AND objnr = jest_ins-objnr
AND stat = jest_ins-stat.
IF sy-subrc <> 0.
INSERT jest FROM jest_ins.
IF sy-subrc <> 0.
MESSAGE a700 WITH jest_ins-objnr
jest_ins-stat
jest_ins-inact.
ENDIF.
ELSEIF jest-inact NE jest_ins-inact.
MESSAGE a701 WITH jest_ins-objnr
jest_ins-stat.
ENDIF.
ENDLOOP.
Why compare statuses are different?
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.