Skip to Content

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

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Apr 13, 2018 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 13, 2019 at 02: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?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.