Skip to Content

Internal order status update from STATUS_CHANGE_INTERN


I need to update the status of Internal orders (Closed,Teco). I checked FM STATUS_CHANGE_INTERN this looks ok for status update.

The problem with this FM is it updates the status of orders in JEST table but not in database table AUFK or COAS.

When i check the status for Internal orders in KO03 the status is changed but in COAS it is not updating the status, Field PHAS0 to PHAS3 which identofies the statuses created, Released, Teco and Closed are not updating.

I am not sure whether it is correct or not to use this FM in this case. I can see it is being used in many other custom programs also in the same way as i am using in my program.

Does anyone faced the same issue?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Apr 18, 2016 at 03:39 PM

    Please try using STATUS_CHANGE_FOR_ACTIVITY function module, passing the appropriate activity type.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 20, 2016 at 10:10 AM

    ⚠️ KAUF_ORDER_ACTIVITY is not released, so beware, you can mess with the database in case of wrong usage, perform some where-used search, some FM like KAUF_ORDER_SUBSTITUTE or KAUF_ORDER_STORE may be required. Look at a standard report like RKOLIS00 mass update of internal orders

    But, for internal orders, there is an available BAPI: BAPI_INTERNALORDER_SAVEREPLICA which has a table parameter to change statuses.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2016 at 06:52 AM

    Hi Kamlesh,

    The appropriate approach for changing the status of the internal order is to use report RKOLIS00. To have a sample code you could have a look at this report RKOREO01 which created by SAP to set the deletion flag.

    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.