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,
Akrati
hi
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^
Similar Messages
-
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 ... -
Download data from interactive report
Hi all. I'm on apex 3.1.1.00.09.
I have this problem: when I download data from interactive report I can download only in CSV and PDF. If I try to download into pdf it creates a file of only 1 KB.
I would know if I must configure my apex in order to download correctly in pdf and if I must configure it in order to download in doc and xls format.
Thanks all for collaboration,
FabrizioThank you for your reply.
I am able to download the csv file, but my problem is: I don't want the column headings to show.
Is it possible to download only the data, not the column headings? -
How to exctract data from a report to use it in a process
Hi! I would like to know how to exctract data from a report to use it in a process. Let's say that I have a report which have following fields: id_person, name_person. And then, I want to make a process which introduce the id_person (from report) into an associative tabel. How can I reffer to the fields from my report?
I was thinking about something like that( this should be the code from my process)
insert into associative_table(id_person)
values(id_person) or
insert into associative_table(id_person)
values(Report_name.id_person) but it doesn't work....
Thank you very much.Another option, use collections.
Create an on load process that loads all the rows you would have in your report into a collection:
begin
HTMLDB_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION(
p_collection_name => 'ASSIGNED_CALENDAR_CONTACTS' );
for x in (SELECT CONTACT_ID, CONTACT_FNAME, CONTACT_LNAME
FROM CONTACT
WHERE InStr( pkg_CalendarMgr.f_FetchContactIDsForDay( TO_DATE( :P3_CALENDAR_DT, 'YYYYMMDD' ), 'OF' ), CONTACT_ID ) > 0 )
loop
htmldb_collection.add_member(p_collection_name => 'ASSIGNED_CALENDAR_CONTACTS',
p_c001 => x.CONTACT_ID,
p_c002 => x.CONTACT_FNAME,
p_c003 => x.CONTACT_LNAME);
end loop;
end;
Then, instead of your report selecting from the table, have it select from the collection, this way your display will match what's in the collection:
SELECT c001, c002 || Chr(32) || c003 CONTACT_NAME, 'Remove' remove
FROM htmldb_collections
WHERE collection_name = 'ASSIGNED_CALENDAR_CONTACTS'
ORDER BY c003, c002
Then you can have a button on the form that steps through the collection, one element at a time and does whatever you want it to. -
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. -
TO Read the data from the I/P payload of the proxy
I want to know is there any function module or report available to read the data from the
payload of the proxy. As we can see the data in the input payload for the prticular
message in sxmb_moni tcode.Is there any table where this data will be stored.
And also I have to update one Ztable with XML Message ID,Sender Interface Namespace,
Sender Interface Name as and when this proxy is triggered. For this I will have to implement the
class for the interface in the sproxy tcode and in this implementation i will update this
ztable but my problem is how will i get this values there.
In debugging I found one report rsxmb_display_msg_vers_new is submitted in sxmb_moni to show ll these details but
looking specially foe the paylod data.
Your help is highly appreciated.
Thanks.Hello PawanG ,
It is very simple to find out all DB tables involved in the rsxmb_display_msg_vers_new . Steps below:
1. run tcode SE30
2. click "program" radio box, input RSXMB_DISPLAY_MSG_VERS_NEW as program name, click "Execute" button.
3. input an valid message uuid in the "Message GUID" field and execute.
4. go back to SE30,click "Evaluate" tab
5. click "DB tables".
Then all DB table name and description are listed there. I am sure you can find what you need. Good luck!
Best Regards,
Jerry -
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 -
I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
Attachments:
try2.txt 2 KB
read_array.vi 21 KBThe problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
Here are some of your choices to fix your problem.
1. Change the source file to a tab delimited file. Your VI will then run as is.
2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does. -
Exporting data from ALV Report...
Dear All,
While I am exporting data from ALV report to any other Format (Excel, Txt, HTML) it only export the data of last column, but the heading is comming properly and also the column heading is displaying properly.
So how to rectify it. (the report is Object Oriented).
Regards,
DahrmeshHi Davabap,
Refer this sample program "BCALV_GRID_VERIFY" . I hope it is problem with structure mismatching.
Otherwise can you paste your code ?
Regards,
Vicky
PS: Award points if helpful -
How to read a data from USB port using JAVA
hi all,
i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
Advance Thanks!!You can do this. Please use this link
[http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
What research did you do of your own? Have you done some testing application and tried yourself?? -
How to read the data from Excel file and Store in XML file using java
Hi All,
I got a problem with Excel file.
My problem is how to read the data from Excel file and Store in XML file using java excel api.
For getting the data from Excel file what are all the steps i need to follow to get the correct result.
Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
Thanks & Regards,
Sreenu,
[email protected],
india,If you want someone to do your work, please have the courtesy to provide payment.
http://www.rentacoder.com -
How to read the data from excel file and store into the table?
Hi All,
I have table with BLOB datatype contains a excel file. I have to read that data from excel and store into one table with all the fields in excel.
All the excel fields and my table columns are same.
Can you share with me how can acheive this using LOB's?
ThanksHi OraSuirya,
you can try with external tables .
syntax as follows
create table ext_table_csv (
i Number,
n Varchar2(20),
m Varchar2(20)
organization external (
type oracle_loader
default directory ext_dir
access parameters (
records delimited by newline
fields terminated by ','
missing field values are null
location ('file.csv')
reject limit unlimited;
For this you need to create directory
Directory Creation syntax:
create or replace directory ext_dir as 'D:\oracle\user_dir\ext_dir';
grant read, write on directory ext_dir to <User>;
please paste the excel file in the particular directory .
I hope this will help you.
Please correct me if I am wrong anywhere .
Thanks,
Tippu. -
Regarding reading the data from spool
Hi Experts,
How can i read the data from spool?
I need to read the data from the spool and should display on the screen?
Is there any FM to read the data from spool?
Sruthi.hi please use this..
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
rqident = v_spool
TABLES
buffer = it_spool
EXCEPTIONS
no_such_job = 1
not_abap_list = 2
job_contains_no_data = 3
selection_empty = 4
no_permission = 5
can_not_access = 6
read_error = 7 -
Regarding reading the data from the files without using Stremas
hai to all of u...
here i have a problem where i have to read the data from the files without using any streams.
please guide me how to do this one,if possible by giving with an example
Thanks & Regard
M.RamakrishnaSimply put, you can't.
By why do you need to? -
Reading aggregated data from a cube/multiprovider
Hi BI people
My project is currently looking for a functionmodule that reads aggregated data from a cube/multiprovider.
I already have a functionmodule that reads data from a cube and returns it in a flat format. I have debugged this, but have not found any flags that can enable the OLAP functionality needed to perform the aggregation. The functionmodule is "RSDRI_INFOPROV_READ_RFC".
The situation is that I need to apply the aggregation logic of a profit center hierrarchy to the data I read from RSDRI_INFOPROV_READ_RFC, this means manually replicating the the OLAP engine functionality (keyfigure aggregation exception, ect.) and this is not an option with the available time/budget.
Please have a look at the example below:
Say that I have a profit center hierarchy as displayed below (with postable nodes).
PC1 - $10
|---- PC2 - $30
|---- PC3 - $20
The data I'm getting back from the functionmodule RSDRI_INFOPROV_READ_RFC looks like this:
PC1 $10
PC2 $30
PC3 $20
But I need the data aggregated. An aggregation utilizing the hierarchy above will make the data look like this:
PC1 $60
PC2 $30
PC3 $20
Instead of building an aggregation program, it would be usefull if it was possible to extract aggregated data.
Any comments appreciated.
Regards
MartinThx Olivier,
The problem is that I need a functionmodule that can apply the OLAP aggregation for a hierarchy to the data outpu from RSDRI_INFOPROV_READ_RFC.
... or the best alternative would be if there were a fm/class that could provide me with the hierarchy aggregation of the data.
/Martin
Maybe you are looking for
-
MBAM 2.5 with SCCM Integration
Hi I've installed MBAM 2.5 and now need to roll back the changes as I didn't specify the -SsrsServer value and this is hosted on a different server. When I try to run Disable-MbamCMIntegration I'm getting the following error Disable-MbamCMIntegration
-
Help! I have a mac now and cleaned out and dismantled my PC. I have logged on to iTunes on my mac and my library is EMPTY! how can I access all of my purchased music? Is it gone forever? I appreciate any help!
-
Dynamic columns in Internal Table
Hi Experts, We have client requirments where clients want to see the report of certain no of wage types. The no. of wage types is variable, they can select any no. of wage type (30-50). Is there any way of dynamically declaring the no of fields in in
-
Cascading List of Values & Query Panel
Hello all! ADF BC JDev 11 I should use Cascading List of Values in Search Query Panel. I build CLOV like in this sample http://www.oracle.com/technology/obe/obe11jdev/11/adfbc_new_features/adfbc.html . But when i use it in Search Query Panel it does
-
Hi, can you guide me on SAP Std. Message no. SY499? "Invalid combination of material XXXXXX and Document Type XXXX in Co.Cd XXXX" I am getting this error at the time of creating a PO. I do not understand how materil and Doc Tpes are linked in the sys