Skip to Content
Author's profile photo Jessica Li

Program error occurs when TECO a production order in t-cd:CO02

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

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi,Jessica,

      it is seems sometime we can come across this kind of error message when do any change on production order Via CO02.
      Our MAN have a Z version program like J_3ACOBD to handle data consistent between RESB and J_3ABDSI.

      can we have a way to simulate this kind of case in QAS or DEV to dig out why data generated in J_3ABDSI own issue ?

      Author's profile photo Former Member
      Former Member

      It is appreciate that with your response,thanks very much. BTW, our MAN's solution is IS-AFS.