04-13-2018 6:57 AM
I have small issue.
I am confirming the Production order Each operation using Bapi by using the below code.
Normally we can do it by using the tcode co11n. If suppose Production order contains
5 operations like 10 20 30 40 50,
First i need to confirm 10 operation, the conformation has to do, operation wise, otherwise system won't allow.
Below bapi is calling . Operation wise.
First i am calling bapi for operation 10...Completed..
While doing 20th Operation..Now system is showing error like Order 100003381 is already being processed by User means (my user id).So next operations all are failing because 20th operation has not done.
Some time everything is ok, Some times error is coming.Any solution for this.
CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
EXPORTING
post_wrong_entries = '1'
testrun = ''
IMPORTING
return = return
TABLES
timetickets = bapi_pp_timeticket[]
* GOODSMOVEMENTS =
* LINK_CONF_GOODSMOV =
* CHARACTERISTICS_WIPBATCH =
* LINK_CONF_CHAR_WIPBATCH =
* DETAIL_RETURN =
* CHARACTERISTICS_BATCH =
* LINK_GM_CHAR_BATCH =
.
IF sy-subrc EQ 0.
COMMIT WORK.
ENDIF.
04-13-2018 7:30 AM
It means the previous update hasn't completed and is still active in background. Use COMMIT WORK AND WAIT.
Or better still, use BAPI_TRANSACTION_COMMIT with WAIT = abap_true
04-13-2018 7:30 AM
It means the previous update hasn't completed and is still active in background. Use COMMIT WORK AND WAIT.
Or better still, use BAPI_TRANSACTION_COMMIT with WAIT = abap_true
04-13-2018 7:38 AM
04-13-2018 11:17 AM
Hope working. checked with two production orders. Working like a jet speed. Thank you.
08-14-2023 10:04 AM
Hi mike.pokraka Thanks for the input , but not working for us . Kindly provide any alternate solution if available
08-14-2023 10:12 AM
nvkprasad As you can see, Mike answer has solved the OP question, so you are in another context and you should post a new question and explain what you have analyzed, tried, etc.
02-13-2019 2:59 PM
If using the 'COMMIT WORK', how long or where can we check to see what the average commit work time is to verify? When you say sometimes it works and sometimes it does not, how do you go about checking the commit times?