PP_BKFLUSH reading archived data
Hi all,
We are using the archiving object PP_BKFLUSH to archiving backflushing document data from Repetitive Manufacturing, and due the audit requirements, the transaction SARA can no longer be accessed by users. Our way of reading the archived data for this object uses the reading program of SARA transaction.
Unlike from PP_ORDER or PR_ORDER, that have access to archived data directly from business transactions, the object PP_BKFLUSH not possess this characteristic.
It is possible create indexes or some infostructure for reading the data? I have found no SAPNote to create the field catalog and info structure to use the transaction SARI for reading of archived data.
Thank you,
Luiz Albanese
Hello Luiz,
You should be able to create your own custom archive information structure for this archive object. Go to SARI -> Customizing -> Environment -> Field Catalogs.
Create your custom Field Catalog and then create a custom Infostructure based on the newly created field catalog.
Hope this helps.
Best Regards,
Karin Tillotson
Similar Messages
-
How to read Archive data??
Hi,
I am developing a program which requires me to retrive the <b>archive</b> data of table BSAK and then fill it into an itam then output the list.
I use T-code 'SARA' to find the object name is 'FI_DOCUMNT'. There u can find that BSAK is contained in it.
And i reference the DEMO programm 'SBOOKR' and coding as belows, but the error message always shows and F1 couldnt help.
[IMG]http://www.designoo.com/files/6678/incorrectInfo.jpg[/IMG]
My code:
* for Read Archive
DATA: handle LIKE sy-tabix,
buffer TYPE arc_buffer,
wa_arc_bsak LIKE bsak,
number_of_records_read TYPE i.
data: LE_DATA(8192) TYPE C,
LE_STRUCTURE LIKE ARC_BUFFER-RNAME.
perform read_archive_bsak.
FORM read_archive_bsak.
* open existing archive files for BSAK
CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ'
EXPORTING
object = 'FI_DOCUMNT'
IMPORTING
archive_handle = handle
EXCEPTIONS
OTHERS = 1.
* IF sy-subrc <> 0.
* WRITE: / 'No file can be accessed'(001).
* EXIT.
* ENDIF.
CLEAR number_of_records_read.
* loop to get the next data object from the archive file(s)
DO.
CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT'
EXPORTING
archive_handle = handle
EXCEPTIONS
end_of_file = 1
OTHERS = 2.
IF sy-subrc <> 0.
EXIT.
ENDIF.
* get data records from the data container
DO.
CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD'
EXPORTING
archive_handle = handle
IMPORTING
record = LE_DATA
record_structure = LE_STRUCTURE
EXCEPTIONS
end_of_object = 1
OTHERS = 2.
IF sy-subrc <> 0.
EXIT.
ENDIF.
CASE buffer-rname.
WHEN 'BSAK'.
wa_arc_bsak = LE_DATA.
move-corresponding wa_arc_bsak to Tab_ARC_bsak.
APPEND Tab_ARC_bsak.
CLEAR: wa_arc_bsak, LE_DATA, Tab_ARC_bsak.
ENDCASE.
ADD 1 TO number_of_records_read.
ENDDO.
ENDDO.
* close the archive session
CALL FUNCTION 'ARCHIVE_CLOSE_FILE'
EXPORTING
archive_handle = handle.
Move-corresponding tab_arc_bsak to tab_bsak.
append tab_bsak.
clear tab_bsak.
ENDFORM. " read_archive_bsak
Anyone helps??
Thanks in advance!!!
Hoo
Message was edited by:
Hoo lalaHi Aditya,
The error msg is 'Incorrect access to an archive.'
Thanks.
Hoo. -
Reading Archived Data Through SAP Query Report
Dear SAP Gurus,
My client archived their SAP data in a particular year range and all the Z reports have to modified to read these archive data. Normal ABAP reports can be modified to read the archive data without no problem.
But there are two Z SAP query reports which should be modified the same way so it will be able to read archive data.
What is the best method for this? Does SAP Query tool provide facility to read archive data? or do I have to append the code?
Thank you in advance for your help
Regards,
Isuru Fernando>
Isuru U Fernando wrote:
> hi Manthan,
>
> Yes I used these FMs and read the data without any problem for normal ABAP reports.
>
> But SAP query report is the problem. Is it advisobale to modify the SAP query generated report source code? since it is a system generated report.
>
> Regards,
> Isuru
No, do not adapt the SAP generated report source. The reason is: every time someone re-generates the query from tx. SQ01 your changes will be lost.
You could add the functionality Manathan gave you to add to the infoset of said query - but to be honest: in my opinion that is shooting nuclear rockets at flies. Also you run the risk that every change of the infoset (add a join/delete a join) requires adjustment of said coding you applied ... and where will you be then? Fancy repairing the same query over and over again? Try talk sense to your client - go for a Z-report here ... -
Reading archived data of different archive objects in Z programs
Hi,
I have Z programs which are getting data from various tables. Now i needt to read archived data of those tables in my Z programs also. i.e. i need to modify those programs so that data archived for those tables should also be extracted. Now for exmple if the program is fetching data from MARA, EKKO, LIKP, KONP tables based on certain selection criteria, then how do i fetch archived data for same criteria as each of these tables may belong to different archive objects ? Please help me. Thanks in advance.Hie Naganath
Using transaction SARA you can identify the archive objects for the tables you want to use.
For material master you can use object MM_MATNR, for Purchasing documents use object MM_EKKO, for conditions use SD_COND and for deliveries use object RV_LIKP.
Retrieve the archive key and offset from table ZARIXMM5 (for Purchasing documents) for your select options and pass the offset and key to function ARCHIVE_READ_OBJECT to get the handle and then pass the handle to function ARCHIVE_GET_TABLE to read the record. Have a look at the below code
select archivekey archiveofs into corresponding fields of table lt_arch_keys
from zarixsd1 "SD Index table for billing documents
where vbeln in s_docrng
and kunrg in s_arc_kn
and fkdat in s_arc_dt
and fkart in s_arc_rt
and vkorg in s_arc_og.
loop at lt_arch_keys assigning <fs_lt_arch_keys>.
*Read information from archive
call function 'ARCHIVE_READ_OBJECT'
exporting
object = 'SD_VBRK'
archivkey = <fs_lt_arch_keys>-archivekey
offset = <fs_lt_arch_keys>-archiveofs
importing
archive_handle = ls_handle
exceptions
others = 1.
*Get the requested header detail data for billing document
call function 'ARCHIVE_GET_TABLE'
exporting
archive_handle = ls_handle
record_structure = 'VBRK'
all_records_of_object = 'X'
automatic_conversion = 'X'
tables
table = lt_vbrk "Header data
exceptions
end_of_object = 1
internal_error = 2
wrong_access_to_archive = 3
others = 4.
*Get the requested line item detail data for billing document
call function 'ARCHIVE_GET_TABLE'
exporting
archive_handle = ls_handle
record_structure = 'VBRP'
all_records_of_object = 'X'
automatic_conversion = 'X'
tables
table = lt_vbrp "Line item data
exceptions
end_of_object = 1
internal_error = 2
wrong_access_to_archive = 3
others = 4.
clear: ls_vbrk.
loop at lt_vbrp assigning <fs_lt_vbrp>.
read table lt_vbrk into ls_vbrk with key vbeln = <fs_lt_vbrp>-vbeln.
move-corresponding <fs_lt_vbrp> to lt_archive_records.
move-corresponding ls_vbrk to lt_archive_records.
append lt_archive_records to gt_archive_records.
endloop.
endloop.
Do the same for your material master and condition records as well.
regards
Isaac Prince -
URGENT!!!! - Reading Archived Data from a Report.
Hi,
The data, prior to 15 months, of some tables (BSEG, BSAK),
used in the report YGF11347 has been archived.
Previously this report YGF11347 was run for vendor payment information for any time frame
through FBL1N. So any vendor line items from 2004, 2005, 2006 and current year,
all data elements were available to be extracted and displayed on the report.
Recently the Check Amount is missing when executing the report for payments made prior to
04/01/2006. This is because of archiving the data prior to 15 months.
My requirement is tht i need to display this archived data also in the report "YGF11347".
Can anyone please help me on this issue.
Regards,
Akratihi
good
check this link, hope this would help you to solve your problem.
http://www.ams.utoronto.ca/Assets/output/assets/ixos_637070.pdf.pdf
thanks
mrutyun^ -
Is it possible to read archive files outside of SAP?
Hi Experts,
I would like to read SAP archived data (*.ARCHIVE.ARCHIVING) with non-SAP application. I already know, that data is automatically compressed (and maybe encrypted?).
My question: Is there some possibility to read archive files outside of SAP? I suppose that would be needed to do some decompress first.
Your help is appreciated. Thank you!
JanHi Stefan,
Thanks for your reply. I found some points with your hint. Some summary for others:
460620 - Migrating archive files:
"Archived data may have to be migrated. One solution is to perform an SLO service archive migration. You can also perform an archive migration for archive files using the Archive Development Kit (ADK)."
153433 - Access to archived data from other logical systems
"For data security reasons, the ADK checks whether an archive file was created in the same system and client where it is to be read. If the client, system or file key do no longer correspond to the meta data that were valid at the time of archiving, you can no longer always access the archive file, particularly for reloading. If only the system ID changes when a new installation due to a system copy is carried out, read accesses are still possible. No solution is provided in the standard system. The access to archive files from other logical systems must be taken into account and carried out in a migration project."
Unfortunately, I still do not know if it is possible to read archived data outside of SAP.
Best Regards,
Jan -
How can we read archived sales order data?
Hi there,
We need information about sales orders, which are already archived (e.g. VBAK, VBAP).
How can we read these data from archive?
Do you know the necessary function modules?
Thanks a lot for help.Hi,
The main transactions that provide access to sales orders data are the following:
VA03 Display Sales Order
ALO1 Document Relationship Browser
Other:
KABP Controlling Documents: Plan
KSB5 Controlling Documents: Actual
KVBI Sales Documents: Actual Line Items
Standard Reports:
S3VBAKAU: Program for sequential reading of archived sales documents
If at least one of the archiving information structures SAP_DRB_VBAK_01- SAP_DRB_VBAK_02 is active, I suggest to use the transaction ALO1.
More info can be found at:
http://help.sap.com/erp2005_ehp_04/helpdata/EN/19/68c149815cfa4997525e0e7d7509bf/content.htm]
Regards,
Andrea -
Changing the default to location of Archiver data
Hi,
Is there any way that we can change the default location of the Archiver data. By default is goes to archives folder, i want it to goto some other folder.
Similarly when u take up the backup of site. i want it also to be stored in some other folder.
is it possible.???For archiver see My Oracle Support Note
How can I move the archive directory? (Doc ID 449054.1)
Not sure what you mean by a back up. There is no built in Disaster recovery tool for UCM. Standard system back ups (file system and DB) for restore should be used. -
How to see archive data for Sales order
Hi all,
I am working on PS , network is created with sales order 10911. the components are added while sales order created, but after that someone deletes the sales order, because now it is showing oder does not found, where i get the entreis for sales order.
Regards,
Khushi.Hi Khushi,
To see the archived data for sales order , go to transaction code SARA.
Choose object name as SD_VBAK.Click READ.
It will show a screen giving a name of program and option to execute in background or foreground.
It will help you to get information about archived sales order data.
Hope it helps you.
Thanks,
Sarita singh Rathour
Edited by: Sarita Rathour on Aug 28, 2009 7:46 AM -
ERROR:Could not read archive file - during Processing Base System Part 2
Hi there,
What I have:
* I have problem with installation of the Mac OS X Panther v10.3 on iMac.
* I have 3 original CDs (black with silver X).
What I did:
* I made new 1 partition and formated disk as Mac OS Extended (Journaled) over the Disk Utility in the first CD as normal without additional options (if I tried to format disk with zero all data and 8 way random write format after 3 days computer freeze)
* I verified disk over this utility - that was ok - HFS volume verifed.
* Then I restarted the computer and ran installation from this first CD
What happened:
* installation did not finish, because there were some problems during installation process.
* i tried to customize installation just for essential work (without other languages support, printers etc), but it was still the same problem
Installation log:
After I choosed installation type, there was first error, but it did not look like important.. - root: bootstraplookup(): unknown error code
Checking your installation disk - OK
Preparing disk - OK
Preparing base 1 and 2 - OK
Other preparing.. - OK
Processing Base System Part 1 - OK
Processing Base System Part 2
==
ERROR:Could not read archive file. - pax: Invalid header, starting valid header search.
ERROR:Could not read archive file. - pax: Invalid header, starting valid header search.
last message repeated 2 times
ERROR:Could not write file. - pax: WARNING! These patterns were not matched:
Some files for Essentials may not have been writen correctly.
root: Installer[108] Exception raised during posting of notification. Ignored. exception: Some files for Essentials may not have been written correctly. (code 1)
Install Failed
Error detected
Name: NSGenericException
Reason: Some files for Essentials may not nave been written correctly. (code 1)
==
It seems like a problem with reading some data from the CD, but during the installation checking of disk was ok.. maybe it can be problem with the cd-rom..? Or problem with data on cd-rom - I mean bad archive file..? But it is original CD.. What do you think??
Thank you!Tomas,
On THIS Page, locate your iMac model.
From the Documents column, click on the appropriate number link.
Using the info in the document that opens, locate the serial number of your iMac.
On THIS Page, in the text field for Search Tech Specs, enter that serial number.
Click on the model of iMac that appears.
Post a link to the page that opens, or post the info requested below.
Exactly which model iMac is it?
What is the Processor speed?
What size is the Hard Drive?
How much Memory is installed?
What type of internal Optical Drive does it have?
Which version of OS, was the original Installed Software?
ali b -
Unable to access Archived data with an ABAP Query
I have an ABAP Query that uses Logical Database KDF (Vendor) for reporting.
KDF is Archive Enabled and I can access archived document via SAP standard programs that used the KDF Logical Database.
the query appears accessing the data but nothing shows on the report.
Has anyone successfully written and ABAP query and included access to the Archived data?
Any help is appreciated.Hi Gena,
I'm facing exactly the same problem as you...
Since this post is an old one, I imagine that you may not remember, but I have to try...
Have you solved it? If yes, could you please tell me how?
I've tried to use CL_ABAP_GZIP and CL_ABAP_UNGZIP_BINARY_STREAM and I'm getting the same error 30 at the IctDecompressStream function.
Tks in advance,
Flavio. -
How to get the functionality of FM 'RV_PRICE_PRINT_ITEM' for archived data
Hi All,
I am trying to print archived billing data using archiving object SD_VBRK. I am able to print all the related information except the pricing.
Apart from reading all the tables archived under the archiving object SD_VBRK, I also need to use the function module 'RV_PRICE_PRINT_ITEM' to print the pricing related information on the SAP form.
However this function module reads the data from standard tables KONV etc., which are archived. Due to this I can not use this function module for printing the pricing related information for archived billing document.
However I need to incorporate similar functionality for the archived data.
Can anyone help me in replacing the FM 'RV_PRICE_PRINT_ITEM' for the archived data.
Thanks and Regards,
SanthoshiPlease use this FM to read information from the Archived mode '/PBS/RV_PRICE_PRINT_ITEM'
Thanks,
Ranjith. -
Change default option to read archive files
Hello all!!
i would like to ask you all a question and maybe someone can help me!!
We have some data archived with fi_documnt and we can read the data from different transactions without problems.
But, i would like to know if there is any possibility to change the default value when we select the data source.
For example, we want to read some data wich is archived. In fbl3n transaction, we click on "data sources" and a pop-up appears.
We select then "archive" and two more options appears.
"Archive information system" and "Select files manually".
The problem is the the option "Select files manually" is marked and default, and we would like to change it to the other option by default.
Is there any way to do that???
Many thanks in advance and best regards,
Gonzalo.Gonzalo,
something else ... I have just tried in another system and here I get a popup in FBL3N which says:
Report RFITEMGL is not intended for archiving object FI_DOCUMNT
Message no. AS_DATASOURCE006
Diagnosis
You want to use report RFITEMGL to read data for the archiving object
FI_DOCUMNT, but report RFITEMGL is not intended to read data for this
archiving object.
System response
Running this report will probably not produce the desired results.
However, this message is merely a warning, because it could still make
sense for you to run the report for an archiving object that is not, or
has not yet been assigned to this report.
Procedure
Use F4 to select an appropriate archiving object. The F4 help list only
contains archiving objects that can be used with this report.
You can also run report RFITEMGL with archiving object FI_DOCUMNT.
However, running the report might produce either no data or incorrect
data.
Procedure for System Administration
If you are sure that running report RFITEMGL together with archiving
object FI_DOCUMNT produces meaningful data, you can enter the combination
in Customizing. Use transaction SM30 to enter the following data into <--------
table ARCH_REPOW: <--------
FI_DOCUMNT RFITEMGL
This will have the following results:
o This message will not appear again.
o Archiving object FI_DOCUMNT appears in the input help list (F4) of the
data source dialog.
o Report RFITEMGL appears in the list of the Archive Administration
(transaction SARA) read program.
The arrows point to the interesting bits. Please check in your system. -
Nearline storage (read 'archive' in look up's)
Hi all,
we need the functionality to read the nearline objects in queries, data loading processes and in look up's. Is there any other customer, who request this functionality?
Regards,
AdrianHi Adrian,
At the moment there is no API available for unified access to archived and non-archived data of an InfoProvider (InfoCube or DataStore Object). But there is an API available to access the nearline part of an InfoProvider. The following code example could be used to achieve a unified access to data from the active table of a DataStore Object and its associated nearline part. This example will always return consistent results with only one exception: during the selective deletion phase of an archiving run. In this phase it could happen that a record is retrieved from nearline and from the database table as well.
If you have further questions, please contact the us (the back office) directly.
Cheers
SAP NetWeaver 2004s Ramp-Up BI Back Office Team
TYPE-POOLS:
rs,
rsd.
DATA:
adjprov TYPE rsadjprov,
infoprov TYPE rsinfoprov,
r_cursor TYPE REF TO if_rsda_cursor,
r_dta TYPE REF TO cl_rsd_dta,
r_nlprov TYPE REF TO cl_rsda_nearline_provider,
r_selset TYPE REF TO cl_rsmds_set,
r_universe TYPE REF TO cl_rsmds_universe,
t_selfields TYPE if_rsdai_nearline_connection=>t_field_selections,
t_data TYPE STANDARD TABLE OF /bic/asbook_d00 WITH DEFAULT KEY,
wherecond TYPE string.
infoprov = 'SBOOK_D'.
wherecond = '/BIC/CARRID = ''LH'' AND /BIC/FLDATE IN (''19940617'',''19960617'',''19980617'',''20000617'')' .
r_dta = cl_rsd_dta=>factory( infoprov ). "create DTA object for InfoProvider
Check if the DS Object has a nearline archive
IF r_dta->has_adjoint_provider( rsd_c_adjprovtype-nearline ) EQ rs_c_true.
Create an instance of the VirtualProvider associated to the nearline archive of the DS Object
CALL METHOD cl_rsd_dta=>build_adjprov_from_infoprov
EXPORTING
i_infoprov = infoprov
i_adjprovtype = rsd_c_adjprovtype-nearline
IMPORTING
e_adjprov = adjprov.
r_nlprov ?= cl_rsda_nearline_provider=>factory( adjprov ).
Prepare where condition and selection clause (field list) for the nearline access
r_universe = r_nlprov->get_universe( ). "This method is available not until SP 8
r_selset = r_universe->create_set_from_string( wherecond ).
CLEAR t_selfields. "request all fields
Create and open a cursor for nearline access
r_cursor = r_nlprov->open_cursor(
i_t_selfields = t_selfields
i_r_selset = r_selset ).
TRY.
Fetch a data package from the nearline table
CALL METHOD r_cursor->fetch_next_package
EXPORTING
i_package_size = 0 "fetch all data at once
IMPORTING
e_t_data = t_data.
r_cursor->close( ).
CATCH cx_rsda_no_more_data.
ENDTRY.
ENDIF.
Now select data from the active table and
append selected records (UNION ALL) to the result set table
SELECT * APPENDING TABLE t_data
FROM /bic/asbook_d00
WHERE (wherecond). -
Read Archive Object direct with Offset
Dear all
i need to access an invoice into the Archive. I know the archivename and the offset.
I open my archive and this works well. Now i have not found a possibility to access directly to the right object with the right offset.
I use now the FM ARCHIVE_GET_NEXT_OBJECT and check the offset, but this takes a long time on big archives. How can I access the object directly with the offset?
HerbertHi Jorge,
If you want to read the data for reporting or
control purposes, you have to write a report, which reads data from the archive files sequentially.
Alternatively, you can also use the Archiving Information System (AS). This tool enables you to define an
InfoStructure, and create reports based on these InfoStructures. The InfoStructures define an index for
the archive file data. At the moment, the archiving process in the BW system does not fill the
InfoStructures during the archiving session automatically. This has to be performed manually when
needed.
Another way of displaying data from the archive file is by using the Extractor checker (TCODE RSA3).
Enter the name of the export DataSource of the respective data target (name of the data target preceded
by 8), and choose the archive files that are to be read. The extractor checker reads the selected archive
files sequentially. Selection conditions can be entered for filtering but have to be entered in in internal
format (e.g. 20011130 for date 30.11.2001).
Anup.
Maybe you are looking for
-
How can I add the logo image for a single item in an RSS feed?
Hello, I am an administrator of iTunes U at the University of Minnesota. Before transitioning new public site, we are trying to figure out how to put a logo image into RSS feeds. We use our server to makes xml codes to create RSS feeds for podcasts.
-
Paid to allow edit text in PDF, and not working
I wanted to 'edit' text in PDF and followed the instructions, it told be to subscribe and pay to do this. I did subscribe and pay, but the functionality is still not working, keeps directing me to subscribe and pay.
-
Proxy Media: Transcode Source File and Export Read File...
Hello, I'm new to FCPX. I have a Panasonic HC-X920. When I shoot things I copy the entire folder tree to my hard drive and import from there, rather than directly from the SD card. I learned that FCPX "re-wraps" the truly original h.264 MTS files to
-
Excluding closed Projects from settlements
Hi, Please help I have created a collective variant to run settlemets for a particular company code. The problem I get is that some of the Projects have closed, therefore I get an error message that says Project closed, I can not run it. I have close
-
Is PSE 8 an 8 bit only editor?
I'm currently using the trial version of PSE 8 for MAC and noticed anything I drag out of Iphoto to edit creates a JPEG @ 8 bit instead of the original raw, I figured out I have to export images to maintain the raw format and then open in PSE 8, it s