Tables in header and trailer subforms
I'm trying to create a form which would generate a report containing assets from our ERP system. The very first version is in attachment. The output of report should be splitted to individual pages according to change in column "asset class" of imported assets. I achieved this successfully by creating conditional breaks. So now I have report which generates for every asset class collection of subforms: heading + n x body + trailer. Each heading appears on new page.
The problem occurs when I try to insert table into heading or trailer subform. This leads to strange behavior visible in PDF attached. The table has 2 rows and 3 columns. In the last trailer subform it is displayed fine. In all other trailer subforms generated after conditional break all rows and columns are rendered on the same X and Y coordinates so they cover themselves. The same occurs in heading subform. I want the tables to be shown correctly.
I would appreciate any suggestion and help...
Hi Prashant
You can use a combination of external table and multi table insert. In ODI 11g there is a Oracle Multi Table Insert IKM. You will have to have one interface which has the source as the file and the target is a temporary target. The LKM will use LKM File to External Table, the IKM will use Oracle Multi Table IKM, and it will set DEFINE_QUERY. Also the LKM should set DELETE_TEMPORARY_OBJECTS to false. Then define 2 interfaces to load your 2 targets for example. The first target loading interface will use the 1st interface as a source and the MTI IKM again will use the MTI IKM and set IS_TARGET_TABLE to true and execute to false. Then the second target loading interface will use the 1st interface as a source and the MTI IKM again wil set IS_TARGET_TABLE to true and execute to true.
Cheers
David
Similar Messages
-
How to generate Header and Trailer for a file
Hi Guru
How can we generate header and Trailer for a file
EX:
i want to generate header with date and trailer with record count from table.
Sample file :
20120120
fwsfs
adfwsfd
adff
afsadf
afdwsg
adgsg
adgsgg
asgdsag
sdgasgdaf
sdfsagfadf
10Hi ,
1.Create an interface to load data from oracle to file and set generate header as false option in IKM .
2.Create variable get_current_date of alphanumeric datatype and implement logic SELECT to_Char(SYSDATE,'yyyymmdd') FROM DUAL under refreshing tab
3.Create variable get_record_count of numeric datatype and implement logic SELECT '<%=odiRef.getPrevStepLog("INSERT_COUNT")%>' FROM DUAL under refreshing tab
4.Create a package
Drag the get_current_date variable ,
Drag odioutfile and paste the below logic OdiOutFile "-FILE=D:\ODI_TEST\emp.txt" "-CHARSET_ENCODING=ISO8859_1" "-XROW_SEP=0D0A" #GET_current_date in command tab
Drag the interface
Drag another variable get_Record_count
Drag the odioutfile and paste the below logic OdiOutFile "-FILE=D:\ODI_TEST\emp.txt" -APPEND "-CHARSET_ENCODING=ISO8859_1" "-XROW_SEP=0D0A"
#GET_RECORD_COUNT in command tab
Link all these in sequence,save and run the package.
OR Modify the IKM SQL to File Append to achieve same functionality.
Thanks,
Anuradha -
Spooling data with Header and trailer
Hi everyone,
I have a problem in spooling the data.
I get a .dat file to load into db .That .dat file will be having header,records,trailer.While loading into the db i load only the records .
I load the .dat file into table using sqlldr with direct= true and parallel=true.
I load data into one table.header and trailer into one table(Loading into two different tables using three control file each for header,records,trailer to load from same .dat file).But while spooling the data out after some modifications to the table.i need to spool it with the header and trailer.I am able to spool only the records but not header and trailer.
That header and trailer are in standard form,everytime i get the .dat file.
Help me how to spool data from a table with the HEADER & TRAILER in the spool file.
ThanksSome may argue this is not the right forum - database general might have been a little been than downloads - but now the thread is here I'll try an answer.
As I see it It depends on your spooling tool.
Lets assume you are using sqlplus.
I that case the sql prompt command may serve your purpose
Alternatively
select 'header' from dual
union all
select field1||','||field2||','field3 .... /*must single string expression but may concatentate field */ from somtable
union all
select 'trailer' from dual;may suit.
However I fear either I have not understood the question or if I have understood the question that you may have difficulties implementing this.
Edited by: bigdelboy on 19-Apr-2009 14:32 -
Suppressing Header and Trailer
Can I suppress the Header and Trailer per runtime paremeter? How?
Thanx!Hi Prashant
You can use a combination of external table and multi table insert. In ODI 11g there is a Oracle Multi Table Insert IKM. You will have to have one interface which has the source as the file and the target is a temporary target. The LKM will use LKM File to External Table, the IKM will use Oracle Multi Table IKM, and it will set DEFINE_QUERY. Also the LKM should set DELETE_TEMPORARY_OBJECTS to false. Then define 2 interfaces to load your 2 targets for example. The first target loading interface will use the 1st interface as a source and the MTI IKM again will use the MTI IKM and set IS_TARGET_TABLE to true and execute to false. Then the second target loading interface will use the 1st interface as a source and the MTI IKM again wil set IS_TARGET_TABLE to true and execute to true.
Cheers
David -
Header and trailer pages in report templates
Hi:
I wonder how can i make header and trailer pages in the tamplate reports , so that the objects in the template header & footer report would be inherited to the generated reports. I use Oracle reports 6.0.8 and there is no header section, niether Trailer section in the Template Editor, I've read in the reports online help :"You can use the margin and body of the Header and Trailer sections to create a Header and Trailer page as in earlier releases. In future releases, you will be able to add and delete sections.", is there any method i can use to make header&trailer pages in the template.I have the same question. This is what I found on Metalink.
goal: How To Define A Header/Trailer Section In A Reports Template Definition File (TDF)
fact: Oracle Reports Developer
fix: It is not possible to have a HEADER/TRAILER section in a Reports Template Definition File (TDF). Templates do not need to have a HEADER/TRAILER section, infact there is no sectioning in a template. They just define the visual layout when applied against a report section.
This did not answer my question! -
How to do the header and trailer validation in the input file?
hi,
what are the ways we can validate whether header and trailer record exists in the input file?
how to do that?
regards
RubanFile to Proxy Validation
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/99593f86-0601-0010-059d-d2dd39dceaa0
/people/swaroopa.vishwanath/blog/2005/06/24/generic-approach-for-validating-incoming-flat-file-in-sap-xi--part-1
/people/swaroopa.vishwanath/blog/2005/06/29/generic-approach-for-validating-incoming-flat-file-in-sap-xi--part-ii
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy -
Generating Header and trailer sections in reports..
Hi all.
I want to generate reports, that has both a header- and a trailer section page.
Usually this was part of the template report, but in Designer 9, the generator first converts the template report (.rdf) to a template report (.tdf), and is then using this template.
But where is the header- and trailer page? You can't see them in the reports builder, when looking at templates, and the generated report does not contain any header- nor trailer pages.
Have I missed something?
Any replies welcome...
Benny AlbrechtsenI have the same question. This is what I found on Metalink.
goal: How To Define A Header/Trailer Section In A Reports Template Definition File (TDF)
fact: Oracle Reports Developer
fix: It is not possible to have a HEADER/TRAILER section in a Reports Template Definition File (TDF). Templates do not need to have a HEADER/TRAILER section, infact there is no sectioning in a template. They just define the visual layout when applied against a report section.
This did not answer my question! -
RESTORE - Kernel Bad page - header and trailer not matching
Hello,
I have a Problem with the recover of my backup.
When i want to make a restore of the Database this error is shown in Logfile KNLDIAGERR
2008-11-26 21:20:38 --- Starting GMT 2008-11-26 20:20:38 7.5.0 Build 032-123-111-699
2008-11-26 21:26:57 0xE0C ERR 20005 Kernel Bad page - header and trailer not matching
2008-11-26 21:26:57 0xE0C ERR 20006 Kernel Header [ 5277032 - data - tab - checksumData - empty ]
2008-11-26 21:26:57 0xE0C ERR 20007 Kernel Trailer[ 0 - data - nil - chckNil - empty ]
2008-11-26 21:26:57 0xE0C ERR 52015 RESTORE write/check count mismatch 5277032
2008-11-26 21:26:57 0xDFC ERR 52012 RESTORE error occured, basis_err 300
2008-11-26 21:26:57 0xDFC ERR 51080 SYSERROR -9026 BD Bad datapage
any Help ?
thanks a lot
StevenHi Steven,
the database kernel checks with every read the header trailer. If it got a mismatch during read the error message you got is logged.
The same checkes will be executed when you create a backup. You told us that the backup could be executed without any errors and that the system where you created the backup is ok as well -> you executed a Check data?
Now everything looks like the error is in the backup and happened during writies to the external backup medium. Or the backup is ok and then the error happens during read from the external medium.
To get closer to the reason where the problem is located I need to have some more information.
1. You did the restore several times?
2. Did the bad Data Page shappens always on the same page -> Check knldiag.err
3. Did you do your backup on tape?
4. Did you try to create a backup into a file?
5. Does the restore from file got the error as well?
Regards, Christiane Hienger -
Receiver FCC Structure For Header and Trailer
Hi Guys ,
I need to go for receiver FCC for header and trailer in PI .How the FCC in communication channel needs to be configured if I am taking a separate node for header and trailer in mapping .Output of the file should be as the file attached.
Thanks.
Regards.Hi,
If you are using File communication channel as a reciver you can go with FCC.
Use record set structure as : Header,detail,trailer.
https://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Otherwise if you are going for SFTP to create the file ... follow the Indrajit suggestion..
Still facing any issue.. Please let us know..
Thanks,
Sreenivas... -
Extracting body with header and trailer multiple times from a multirow file
Hello Everyone,
I am new to OSB and currently working on a project where I need to extract data from a flat file containing multiple rows of body and a single header and trailer in the following fashion:
Original File:
<Header></Header>
<Details></Details>
<Details></Details>
<Trailer></Trailer>
Desired format using OSB:
<Header></Header>
<Details></Details>
<Trailer></Trailer> ... in a single file, multiple times
Please help me in carrying out this functionality. It's really urgent and important.
Thanks,
SaurabhSome may argue this is not the right forum - database general might have been a little been than downloads - but now the thread is here I'll try an answer.
As I see it It depends on your spooling tool.
Lets assume you are using sqlplus.
I that case the sql prompt command may serve your purpose
Alternatively
select 'header' from dual
union all
select field1||','||field2||','field3 .... /*must single string expression but may concatentate field */ from somtable
union all
select 'trailer' from dual;may suit.
However I fear either I have not understood the question or if I have understood the question that you may have difficulties implementing this.
Edited by: bigdelboy on 19-Apr-2009 14:32 -
Open Hub Header and Trailer Record.
Hi,
For the Open Hub Destination
Destination Type is File,
Application server.
Type of File Name: 2 Logical File name.
How to to the get the Header and Trailer Record which will contain Creation Date, Creation Time and Total number of records.
Header record Layput :
Creation Date (YYYYMMDD)
Creation Time (HHMMSS)
Total record Count
Trailer record Layout:
Total number of Records in the file and
XXXX( Key Figure ) Total.
Thanks in advance.
Regards,
Adhvi.Hi Venkat,
write a UDF in following way...
pass the first parameter as the detail node (cache the whole queue) to the UDF pass the second parameter as the trailer countto the UDF
now loop through the detail records get the count with a counter variable
check the counter against the trailer count outside the loop
if it doesnot match trigger the alert from the UDF itself
Check the below link for triggering alert from an UDF
/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function -
Supress Header and Trailer from being generated and printed
I am using oracle 9i Reports Builder.
Is there a way to supress the header and trailer pages from being generated and printed.Increase the marigin size to zero size header and trailer in the layout editor and then run the report.
-
Unix Flat File: Remove header and trailer and put in another file.
Hi,
I have Source Flat File placed on Unix Box with header and trailer.
I want to remove Header and Trailer and put in some other file and Data in another file.
I tried following command in unix its working.But not getting Header and Trailer in another file.
sed '1d;$d' input_source.txt > output_data.txt
also How will i use OS command for it in ODI.
Guide me.
Thanks
AshwiniHi Ashwini,
You can run OS commands in a package using an ODI Tool: OdiOSCommand.
It is also possible to execute OS commands in an ODI procedure using the Operating System or Jython technologies.
There should be some articles about this on metalink (http://metalink.oracle.com).
Thanks,
Julien -
Can I copy header and trailer definitions of one report to another?
Thanks
MiniHope this will help
make a template file ( XXX.tdf) and use this
in your report using Report Wizard selecting
TEMPLATE FILE OPTION in template tab.
This way you are copy header and trailer section to any report -
Header and Trailer record handling in ODI
Hi All,
I have a delimited file which I am trying to load into Oracle DB using Oracle Data Integrator. We are using SQLLDR LKM for this. Since we have header, trailer have different format than the data records, so we have another interface which loads data. Since we have the requirement to load the data into another control table for audit purpose we have another interface.
What happens when we load the file, because of two interfaces the file scan happens 2 twice. This increases the overall turnaround time. Please note these interfaces work on filter basis for a field called record_type. 0,1,2 are the values for this field which mean header, data and trailer respectively. What we are looking for is how to restrict this double scanning of file for header-trailer and data records. What are the options which can be used here.
Regards,
PrashantHi Prashant
You can use a combination of external table and multi table insert. In ODI 11g there is a Oracle Multi Table Insert IKM. You will have to have one interface which has the source as the file and the target is a temporary target. The LKM will use LKM File to External Table, the IKM will use Oracle Multi Table IKM, and it will set DEFINE_QUERY. Also the LKM should set DELETE_TEMPORARY_OBJECTS to false. Then define 2 interfaces to load your 2 targets for example. The first target loading interface will use the 1st interface as a source and the MTI IKM again will use the MTI IKM and set IS_TARGET_TABLE to true and execute to false. Then the second target loading interface will use the 1st interface as a source and the MTI IKM again wil set IS_TARGET_TABLE to true and execute to true.
Cheers
David
Maybe you are looking for
-
my hp 9300 all in one elite hp touchsmart. it had win 7 prof and now has win 7 ultimute and says drivers are there but i cant find them please help! thanks
-
Images will not display, please help
Hi, I have built a couple of sites, one with tables one CSS where my banners will not display on my screen when I view the site online. The sites are: www.gnewt.co.uk & www.getouthavefun.co.uk The banners are visible on some other computers online, b
-
Makepkg.conf and compilation problem
Hi! In my makepkg.conf I have: CARCH="x86_64" CHOST="x86_64-unknown-linux-gnu" #-- Exclusive: will only run on -march=x86-64 # -march (or -mcpu) builds exclusively for an architecture # -mtune optimizes for an architecture, but builds for whole proce
-
I have installed Visual Studio 2013 Community Edition on a brand new Windows 7 machine and registered with a new Microsoft account. This was for testing purpose to see how well the new Community Edition would work in comparison to the Professional Ed
-
How to make real time chat in ios
Hi , I want to implement real time chat in ios app.