Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
jessica_li
Advisor
Advisor

Dear All,

Have you ever come across error CO 901, saying "Program error (Contact your system administrator)", when you try to TECO a production order?  If you are using industry solution IS-AFS, the root cause may be that inconsistency exists between table RESB and  J_3ABDSI for the production order, and solution is to run report  J_3ACOBD.

Do you want to know how to figure out the the inconsistency data? Here are some debug info about it.

SAPLJ3AU                      / LJ3AUF20

FORM            / ORD_PRE_GET_RESB_BT

CLEAR  RESB_BT.

READ TABLE  RESB_BT  WITH KEY  RSNUM  =  I_RSNUM     <<< you can check the reservation number and counter here.

                                                              RSPOS   =  I_RSPOS

            BINARY SEARCH


IF SY-SUBRC NE 0.

    SELECT SINGLE  *  FROM  RESB           

           WHERE  RSNUM        =  I_RSNUM           

           AND    RSPOS        =  I_RSPOS           

           AND    RSART        =  '  '.

*  RESB in der DB ebenfalls nicht vorhanden --> Abbruch   

     IF  SY-SUBRC  NE  0.     

           MESSAGE  A901(CO).   

     ENDIF.   

     MOVE-CORRESPONDING  RESB  TO  RESB_BT. 

ENDIF.

19                          FORM  ORD_PRE_GET_RESB_BT              SAPLJ3AU

18                          FORM  ORD_PO_PRE_BDSI_PREPARE  SAPLJ3AU

17                          FUNCTION          J_3AU_ORDER_POST_PREPARE                SAPLJ3AU

16                          FUNCTION          CO_BT_ORDER_POST    SAPLCOBT

15                          FUNCTION          CO_BT_ORDER_POST    SAPLCOBT

14                          FORM  ORDER_POST    SAPLCOZV

KBA 2159613(Program error occurs when TECO a production order) also describes this.

best regards,
Jessica Li

2 Comments