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

Error message in 'AC_DOCUMENT_RECORD'

Former Member
0 Likes
861

Hello.

In the program the following code is realized:

  loop at p_tb_1 where objnr cp 'OR*' or
                       objnr cp 'KS1*'.
    CLEAR: my_awtyp, my_refbn, my_aworg.
    SELECT SINGLE awtyp refbn aworg
          INTO (my_awtyp, my_refbn, my_aworg)
      FROM cobk
      WHERE kokrs = '1  ' AND
            belnr = p_tb_1-belnr.
    IF NOT my_awtyp IS INITIAL.
      REFRESH t_docs.
      CALL FUNCTION 'AC_DOCUMENT_RECORD'
        EXPORTING
          i_awtyp  = my_awtyp
          i_awref  = my_refbn
          i_aworg  = my_aworg
          x_dialog = space
          i_bukrs  = p_tb_1-bukrs
        TABLES
          t_documents = t_docs.
      IF sy-subrc = 0.
        READ TABLE t_docs WITH KEY awtyp = 'BKPF'.
        IF sy-subrc = 0.
          CLEAR: my_bstat.
          SELECT SINGLE bstat INTO my_bstat FROM bkpf
            WHERE bukrs = t_docs-bukrs AND
                  belnr = t_docs-docnr AND
                  gjahr IN gjahr.
          IF my_bstat = 'V'.
            DELETE p_tb_1.
            CONTINUE.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
    ftab = p_tb_1 .
    append ftab.
    clear ftab.
  endloop. 

My program works in a background mode. The functional module finds documents, but in job log (SM37)

there is error message Q6 504 E

"There is no active info structure for field catalog SAP_FICA_DOC001

Message no. Q6504

Diagnosis

The system wants to access the Archive Information System. It uses the field catalog SAP_FICA_DOC001 to do this. However, there are no active archive information structures for this field catalog.

Procedure

Create an info structure for field catalog SAP_FICA_DOC001 or activate an info structure for this field catalog."

That this error message and that it is necessary to make means that it has disappeared.

Beforehand I thank for the help

2 REPLIES 2
Read only

Former Member
0 Likes
678

Please look at SAP note : 848804 .. this might help U ...

Read only

0 Likes
678

Many thanks, that so have quickly answered my question, but I work on 6 versions

I searched for notes on a site http://www.service.sap.com/, but have found nothing