Skip to Content
0

Best way to solve the issue already being processed by User.

Apr 13 at 05:57 AM

43

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Mike Pokraka Apr 13 at 06:30 AM
2

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

I will check it.

0

Hope working. checked with two production orders. Working like a jet speed. Thank you.

0