<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error message in 'AC_DOCUMENT_RECORD' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-ac-document-record/m-p/3338182#M800190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please look at SAP note : 848804 .. this might help U ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2008 09:48:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-04T09:48:12Z</dc:date>
    <item>
      <title>Error message in 'AC_DOCUMENT_RECORD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-ac-document-record/m-p/3338181#M800189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;In the program the following code is realized:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  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. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program works in a background mode. The functional module finds documents, but in job log (SM37)&lt;/P&gt;&lt;P&gt;there is error message Q6 504 E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"There is no active info structure for field catalog SAP_FICA_DOC001&lt;/P&gt;&lt;P&gt;Message no. Q6504&lt;/P&gt;&lt;P&gt;Diagnosis&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;Create an info structure for field catalog SAP_FICA_DOC001 or activate an info structure for this field catalog."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That this error message and that it is necessary to make means that it has disappeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beforehand I thank for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 09:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-ac-document-record/m-p/3338181#M800189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T09:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in 'AC_DOCUMENT_RECORD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-ac-document-record/m-p/3338182#M800190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please look at SAP note : 848804 .. this might help U ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 09:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-ac-document-record/m-p/3338182#M800190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T09:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in 'AC_DOCUMENT_RECORD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-ac-document-record/m-p/3338183#M800191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks, that so have quickly answered my question, but I work on 6 versions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched for notes on a site &lt;A href="http://www.service.sap.com/" target="test_blank"&gt;http://www.service.sap.com/&lt;/A&gt;, but have found nothing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 10:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-ac-document-record/m-p/3338183#M800191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T10:00:48Z</dc:date>
    </item>
  </channel>
</rss>

