Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to pass correct values to BAPI 'BAPI_PROCORD_COMPLETE_TECH'

Former Member
0 Likes
1,438

Hi Sap gurus,

I have tried to update the DB table by the below way but it is not updating the database...

Technically complete process Order


       CALL FUNCTION 'BAPI_PROCORD_COMPLETE_TECH'
         TABLES

           orders = it_orders
    DETAIL_RETURN = it_messages.


After that I have used the commit BAPI .


           CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

             EXPORTING

               wait   = 'X'.

I am getting the error "Order <Orderno> has the wrong order category for this BAPI".

Can any one tell me what i have missed out ?

Thanks
Raj

Hi Sap gurus,

I have tried to update the DB table by the below way but it is not updating the database...

Technically complete process Order


       CALL FUNCTION 'BAPI_PROCORD_COMPLETE_TECH'
         TABLES

           orders = it_orders
    DETAIL_RETURN = it_messages.


After that I have used the commit BAPI .


           CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

             EXPORTING

               wait   = 'X'.

I am getting the error "Order <Orderno> has the wrong order category for this BAPI".

Can any one tell me what i have missed out ?

Thanks
Raj

3 REPLIES 3
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,081

Hello Raj.

     The error message is very clear. You seem to be passing wrong type of order.

     The BAPI you are using is only for PROCESS ORDERS.

     If it is a production order, you should use BAPI_PRODORD_COMPLETE_TECH .

Regards.

Read only

Rushikesh_Yeole
Contributor
0 Likes
1,081

HI,

Your order and category you passed should be exists in AUFK and AFKO table. Check conversion exits for the order number.

Read only

0 Likes
1,081

Hi Rushikesh,

I have found the route cause of the above issue as the configuration is not been set for process order in my system.

I am actually trying to find out whether do we have BAPI's to set and Unset the deletion flag for the process order. I could find out BAPI's to set the deletion flag but not able to find how to unset the deletion flag.

Can anyone tell me if we have any Bapi's to unset the deletion flag for process order.

Thanks
Raj