Application Development 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: 

archieve data issue - BKPF

Former Member
0 Kudos

Hi Experts,

My Z report is picking records from BKPF table and showing in ALV display. There are some document numbers which are archieved and Z report is not picking those. Client has requirement to show archieved records also.

Can anyone help me with the procedure to read archieved records. Other words how to establish link between archieved records.

Thanks in Advance !

Regards,

Mayank

11 REPLIES 11

former_member195402
Active Contributor
0 Kudos

Hi,

you can find a list of archived documents in table ARIX_BKPF.

You can read it from archive with

call function 'FI_DOCUMENT_READ_SINGLE'

This should work upt to SAP Release 4.7.

In ECC there is a new technology. Which SAP Release do you have?

Regards,

Klaus

Edited by: Klaus Babl on Mar 30, 2011 7:50 AM

ThomasZloch
Active Contributor
0 Kudos

That's what standard report RFBUEB00 does, why are you re-inventing the wheel?

Thomas

0 Kudos

I don't know, Thomas, which version of this report you have, but in our systems from 4.6C to ECC 6.0 it's without reading archive documents ...

0 Kudos

In ECC 6.0 I have a button "data sources" on the selection screen, that allows you to select archived documents as well if required.

Thomas

0 Kudos

Hmm, no such button with SAP_APPL 600 SP SAPKH60011 ...

0 Kudos

Maybe that was really added just lately, our version is SAP_APPL 602 SAPKH60207, I don't have previous versions available to check.

OK, please continue

Thomas

0 Kudos

OK, found

Note 1415591 - FB03 - doc. list: Sel. of archive not previously possible

Not available for older releses!

Former Member
0 Kudos

Thanks for reply !

I am using 4.6 version. I want to filter records based on selection criteria provided by user. These records should also fetch archieved records.

Former Member
0 Kudos

Hi Klaus,

I tried checking ARIX_BKPF table but it doesnt have document number I am looking for. Still it does have same year other document number. Is there any possibility of settings where some company code are not stored in this table.

The FM will fetch one record at a time which is not useful in this case as I need to get all the records which are archieved.

any other possibility ?

0 Kudos

Use a custom archive infostructure for a fast read of all fields in a custom program. This increases data storage but storage is cheap these days. You'll need access to the archived records in order to fill the info structure. The records that go into any infostructure can be filtered.

Also, your access to the archived data should be fast with ARIX_BKPF if you have used the correct selection criteria because a pointer will exist in the standard infostructure if it's populated.

Edited by: Brad Bohn on Mar 30, 2011 9:12 AM

Former Member
0 Kudos

Hi Guys,

I discovered that our system using 3rd party software PBS for archieving. We can fetch the records which are archieved by using following method.

CALL FUNCTION '/PBS/SELECT_INTO_TABLE'

EXPORTING

ARCHIV = 'CFI'

OPTION = ''

TABNAME = 'BKPF'

SCHL1_NAME = 'BUKRS'

SCHL1_VON = so_bukrs-low

SCHL1_BIS = so_bukrs-high

SCHL2_NAME = 'BLDAT'

SCHL2_VON = SO_BLDAT-LOW

SCHL2_BIS = SO_BLDAT-HIGH

TABLES

I_TABELLE = ITBKPF

EXCEPTIONS

EOF = 4

OTHERS = 2.

Where as BKPF is table name. ARCHIV is the file name. For FI it will be CFI, for MM CMM etc.