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: 

Reprinting archived data

suryakumar1223
Explorer
0 Kudos
302

Hello,

I'm printing the documents from vbrk for particular date range...in the same date range i need to print the archived data also.

Documents from vbrk I'm printing through BDC recording of VF02 and through call transaction VF02...spool is getting generated and I'm calling one printing include to print document...

But in case of archived documents I made BDC recording of vf31 and calling the transaction vf31.. But that printing include is not getting hitted.. But the Spool is generating...i don't know why I'm not able to print the archived document....please help me on this

4 REPLIES 4

FredericGirod
Active Contributor
0 Kudos
257

Are you sure your print program could catch data from Archiving file ? Most of print program read data from standard tables

suryakumar1223
Explorer
0 Kudos
257

Hi frederic,

Yes I'm fetching archived file from table and

I'm getting archived documents into my internal table in program...

I'm looping through this internal table...inside the loop I'm calling the transaction vf31 and BDC recording

FredericGirod
Active Contributor
0 Kudos
257

Don't use answer to reply to a comment, answer is to propose a solution.

I think to understand what is going on, you have to make a SQL trace using ST05

You will certainly seen the system trying to access to archived data on table VBRK, VBRP, .... and have a number of result = 0

raymond_giuseppi
Active Contributor
0 Kudos
257

I don't think VF31 and the print program know natively how to handle archived documents (I hope I'm wrong, but there is little hope).

  • That is why there is an option to archive reports before archiving documents.
  • Now, you have to adapt the print program to read the invoices from the archive.