How to Add Header and Footer in Flat file

HI All,
I am using ODI 11g.
MY interface is populating data from joining to 2 tables through sql query and Loads in to Flat file.
But i need to add Header and Footer in the Flat file.
In the below 3 lines
The 1st line is header ....2nd line is Data ....3rd line is Footer.
Any ideas how to work on this.
HSB9KT.KTPRTO.EBSDATA.D0000000 20120626020636
CFFE00263 SOLGSR014991340000527894536058173880207SOLNE06242012072420120000009048382650000247MRS
T00000000000000000000
Thanks,
Lony

Hi Drieux,
i am able to add Header and Footer in this.
But i want the header like Its like HSB9KT.KTPRTO.EBSDATA.D0000000 || SYSDATE (YYYYMMDDHHMMSS)
In my Out put i only see header as HSB9KT.KTPRTO.EBSDATA.D0000000 .
I have added a Variable where i am using SELECT to_char(sysdate,'YYYYMMDDHHMMSS') FROM DUAL query.
create header (HSB9KT.KTPRTO.EBSDATA.D0000000 #v_DATE)
/*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=FFT_SOLSNP$CRLOAD_FILE=/home/tarak/FFT_SOL.datSNP$CRFILE_FORMAT=FSNP$CRFILE_SEP_FIELD=0x0009SNP$CRFILE_SEP_LINE=0x000ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=descrSNP$CRTYPE_NAME=STRINGSNP$CRLINE_OFFSET=1SNP$CRLENGTH=994SNP$CRPRECISION=994SNP$CR$$SNPS_END_KEY*/
Any idea why this sysdate part is not showing in Header.

Similar Messages

  • How to add header and footer to a file through ODI?

    hi,
    I want to add header and footer to my file..............footer should contain a counter so that page number can be displayed...................
    Can anyone please guide me .................
    Thanks .............
    Ritika

    what is the utility you are using to create file . Interface or OdiSqlUnload ?
    and what do you want to have Header and Footer as and how are you concluding the File as page 1 and page 2 etc ... ?

  • How to remove Header and Footer from Flat File

    Hi,
    In a scenario , we are going to recieve a flat file which will contains header , footer and data. We have to have to load data in Oracle tables and remove header and footer.
    once the data load is complete , we have to delete flat file from source directory.
    Please help me in solving this issue.
    Thanks,
    Kamlesh

    You have a header parameter in the file datastore. You can provide any number to skip rows from top of the file. For footer you can create a filter in staging area.
    Filter coould be something like this.
    where source_alias.source_column not like '%FOOTER_OR_ANY_VALUE_AS_PER_YOUR_REQ'

  • How to add header and fooder in text file

    Hi,
    i have created simple application for generate report from database into text file.
    But i need to add header and fooder in text file. I dont know is there any API for adding these.
    Can anyone help me to create header and fooder in text file.
    the below text are needs to be print in the header
    name of the table :
    Recorder type :
    file creation time:
    the below text are needs to be print in the footer
    Recorder Number:
    Record Type;
    the actual code is
                           pst = con.prepareStatement("select REQUEST, DOMAIN_NAME, TRUNC(DATE_OF_CONFIGURATION) AS dateofConfig  FROM employee where id=300");
                               rs = pst.executeQuery();
                            while (rs.next()) {
                                 request = rs.getString("REQUEST");
                                    domain_name = rs.getString("DOMAIN_NAME");
                                    dateofconfig = rs.getString("dateofConfig");
                                    System.out.println(request + " " + domain_name + " " + dateofconfig);
                                   data.add(request + " " + domain_name + " " + dateofconfig);
                            System.out.println("before calling method");
                            writeToFile(data, "c:/Employee.txt");
                            System.out.println("file created successfull");
                            rs.close();
                            pst.close();
           private static void writeToFile(List list, String path) {
                    BufferedWriter out = null;
                    try {
                            File file = new File(path);
                            out = new BufferedWriter(new FileWriter(file, true));
                            for (Object obj : list) {
                                String s=  obj.toString(); 
                                 out.write(s);
                                    out.newLine();
                            out.close();
                    } catch (IOException e) {
    }Thanks
    Jasmin
    Edited by: user13836688 on Mar 21, 2011 4:06 AM
    Edited by: user13836688 on Mar 21, 2011 4:07 AM
    Edited by: user13836688 on Mar 21, 2011 4:08 AM

    user13836688 wrote:
    i have created simple application for generate report from database into text file.First off, when posting code, use &#91;code]...&#91;/code]. or '' tags, not '<code>'.
    But i need to add header and fooder in text file. I dont know is there any API for adding these.
    Can anyone help me to create header and fooder in text file.Well you plainly have the code to write the file contents; and furthermore your report seems to be contained in a List called 'data'. Why not just add the header and footer lines to it? I'd also suggest making 'data' a LinkedList. That way you can add the header afterwards with no performance hit, just in case the information it contains isn't available at the start of your report loop.
    Winston                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to add header and footer image in pdf

    Hi,
    I want to add image in header and footer for the pdf generation.
    how I can add this? Following my xsl
    ?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="my-page">
    <fo:region-body margin="1in"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
    <fo:flow flow-name="xsl-region-body">
    <fo:block >
    <xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="*" mode="dump" priority="100">
    <fo:block >
                   <fo:block margin-left="1cm">
                        <xsl:for-each select="@question-text">
                        <xsl:value-of select="."/>=
                        </xsl:for-each>
                        <xsl:if test="string-length(normalize-space(text())) > 0">
                        <xsl:value-of select="text()"/>
                        </xsl:if>
                   </fo:block>
    <xsl:apply-templates mode="dump" select="*"/>
    </fo:block>
    </xsl:template>
    </xsl:stylesheet>
    Edited by: 848231 on Apr 6, 2011 1:42 AM

    Hi,
    Here is one way of putting an image in the header:
    <fo:layout-master-set>
        <fo:simple-page-master master-name="my-page">     
          <fo:region-body margin="1in"/>
          <fo:region-before extent="1in" background-color="silver" />
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="my-page">
         <fo:static-content flow-name="xsl-region-before">
             <fo:block height="150px" width="1024px" background-color="white" >
                 <fo:external-graphic src="http://localhost:9000/web-determinations9000/images/Header.jpg">
                 </fo:external-graphic>
            </fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
        </fo:flow>
      </fo:page-sequence>One good XSL:FO refernce: http://www.learn-xsl-fo-tutorial.com
    Hope this helps.
    Thanks,
    Aakarsh
    Edited by: aakarsh on Apr 6, 2011 6:40 AM

  • How to Add Header and Footer to appear on every page

    Hi,
    I am using Robo Help 7 for generating Help pages. I have to import a wrod document an publish it as online web help html document. I have query as to how added header and footer be configured to reflect on each and every page. I am using Robohelp for first time and tried various options, but am unable to get the above done.
    Thanks,
    Pallavi

    Hi there
    Display your Topic List pod. Press Ctrl+A to select all the topics. Then right-click the selection and choose Properties. From the Properties dialog click the General tab. There you may choose the Template/Master Page. When you click OK all the topics should now be associated with the Template/Master Page.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How delimited by header and footer from Source file in BPEL 11g

    Hi Friends,
    I have source data below like This..
    SOFTWARE COMPONENTS:
    BPEL 11G,
    J DEVELOPER(11.1.1.3)
    FILE READ ADAPTER
    WEB LOGIC EM SERVER(10.3.3.0)
    1|10005|857896|BR |0000 |6544|kantro|54635
    1|10265|69875|.36544|2456112|00000|000000|00000|SE|5456|466554|789745|54.325|KVM|56476.32
    1|10235|JA|5456|4565|56|656|5855|5555|55445|5444|D|45457|0000|KIL|6555|55566|4454544|45669
    1|10235|JA|5456|4565|56|656|5855|5555|55445|5444|D|45457|0000|KIL|6555|55566|4454544|45664
    1|10235|JA|5456|4565|56|656|5855|5555|55445|5444|D|45457|0000|KIL|6555|55776|4454544|45660
    1|10235|JA|5456|4565|56|656|5855|5555|55445|5444|D|45457|0000|KIL|6555|55566|4454544|85668
    1|10235|JA|5456|4565|56|656|5855|5555|55445|5444|D|45457|0000|KIL|6555|55566|4454544|45666
    1|10235|JA|5456|4565|56|656|5855|5555|55445|5444|D|45457|0000|KIL|6555|85876|4454544|45666
    1|10235|JA|5456|4565|56|656|5855|5555|55445|5444|D|45457|0000|KIL|6555|55566|4454544|69848
    1|10235|JA|5456|4565|56|656|5855|5555|55445|5444|D|45457|0000|KIL|6555|69566|4454544|45666
    1|10235|JA|5456|4565|56|656|5855|5555|55445|5444|D|45457|0000|KIL|6555|78966|4454544|85669
    1|10255|km|5653|RJ |00000|5557544|13-08-1998
    But i need to Delimited and insert the data into table ..Here Header data insert into saperate table and
    middlle of the data insert into main table and footer data insert in another table it all happen one attempt by using file read Adapter(11.1.1.1.3)

    You have a header parameter in the file datastore. You can provide any number to skip rows from top of the file. For footer you can create a filter in staging area.
    Filter coould be something like this.
    where source_alias.source_column not like '%FOOTER_OR_ANY_VALUE_AS_PER_YOUR_REQ'

  • How to add specific header and footer to flat file using SSIS 2008

    The SSIS package need to create file  with headers, totals and adds a status to position one of the records.
    Header: "$$ADD ID=ENTK0557 BID='IA   HBZAC14HBZACHRYCORP' PASSWORD='CUSTOMER        ' %AU HBZAC14" is added.
    $$ADD = Static
    ID=ENTK0557 = Static
    BID='IA   HBZAC14HBZACHRYCORP' = "HBZAC14" is the company, "HBZACHRYCORP" is company name
    PASSWORD='CUSTOMER        '  = static
    HBZAC14 = company
    Control Totals:
    T010533343 000050 0002659604 000000 0000000000
    T = Totals
    010533343 = Account Number
    000050 = Total records
    0002659604 = Total checks
    000000 = TBD
    0000000000 = TBD
    Data for the file
    DECLARE
    @T AS
    TABLE
    [BR-ISSUE-VOID-IND] [char]
    (1)
    NULL,
    [BR-ACCT-NBR] [varchar]
    (9)
    NULL,
    [FILLER1] [char]
    (1)
    NULL,
    [BR-SERIAL-NBR] [varchar]
    (8000)
    NULL,
    [BR-CHECK-AMT] [varchar]
    (8000)
    NULL,
    [BR-CK-ISSUE-DATE] [varchar]
    (6)
    NULL
    INSERT
    INTO @T
    [BR-ISSUE-VOID-IND]
    [BR-ACCT-NBR]
    [FILLER1]
    [BR-SERIAL-NBR]
    [BR-CHECK-AMT]
    [BR-CK-ISSUE-DATE]
    SELECT
    'C'
    ,NULL,' ',30090072,2114.39,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30090190,430.58,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30092371,589.93,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30092550,1198.6,100502
    SELECT
    FROM @T
    File SnapShot.

    Using SSIS its difficult unless you use a script task after the data flow to add the header footer bits.
    A much better option in this case would be bcp as you can generate query with values in the order you want and bcp it out
    http://msdn.microsoft.com/en-us/library/ms162802.aspx
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to add header and footer in FM12 WebHelp?

    Hi
    I am evaluating TCS 5 with the trial version.
    In FrameMaker 11, while publishing my book to WebHelp, I could associate the masterpage (.htt) file to get its header/footer in the output.
    However, I don't see that option in FM12. I have looked through the Help and it doesn't seem to offer any solution either. (Some part of TCS 5 help actually contains TCS 4 content. Have logged a bug report on that.)
    If not through the master page, what is the other way to get especially the footer in WebHelp output? Footer contains our copyright information. So, there is no way I can ignore it.
    Can somebody please point me to the right direction?
    Thanks in advance.
    Sreekanth

    We had a meeting with Adobe yesterday and one of the product managers (Kapil Verma or Vikram Verma, I am not sure) confirmed that there is no provision for getting the header/footer information from FrameMaker or RoboHelp while publishing WebHelp from FM12.
    So, unfortunately, we have to stick to the old method of importing FM to RH to get this. It is a pity that they got the browse sequence into FM but removed master page, eventually resulting in an unusable feature.
    Sreekanth

  • How to get Header and footer in PDF file from a report program

    I am generating spool from ALV GRID DISPLAY. Only the body of a report is coming in the SPOOL. I mean content of the TOP_UP_PAGE event is not coming in the SPOOL. Please suggest me.
    Coding I am pasting here.
    * Begin of modification(+) by I080845 ( Prasanta Maiti ) 12/23/2011 Defect# 17821
        IF sy-batch IS NOT INITIAL
    * Begin of modification(+) by I080845 ( Prasanta Maiti ) 01/19/2012 Defect# 18155
        and i_final is NOT INITIAL.
    * End of modification(+) by I080845 ( Prasanta Maiti ) 01/19/2012 Defect# 18155
    * The print parameters are retrived and validate
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
    *           ARCHIVE_TEXT          = c_check
    *           AR_OBJECT             = c_check
    *          ARCHIVE_REPORT         = c_check
    *          COVER_PAGE             = c_check
              in_archive_parameters  = v_arcpar
              in_parameters          = v_pripar
              destination            = 'LOCL'
              layout                 = 'X_65_512/2'"c_layout
              line_count             = '65'  "60
              line_size              = '1024'
              no_dialog              = c_check
            IMPORTING
              out_archive_parameters = v_arcpar
              out_parameters         = v_pripar
              valid                  = v_val
            EXCEPTIONS
              archive_info_not_found = 1
              invalid_print_params   = 2
              invalid_archive_params = 3
              OTHERS                 = 4.
    IF v_val  NE space AND sy-subrc = 0.
            v_pripar-prrel = space.
            v_pripar-primm = space.
            NEW-PAGE PRINT ON NEW-SECTION PARAMETERS v_pripar
            ARCHIVE PARAMETERS v_arcpar NO DIALOG.
            NEW-PAGE.
    **    displaying output in PDF
    *    PERFORM f_show_record.
    *   ALV Display
            PERFORM f_alv_display.
            NEW-PAGE PRINT OFF.
            CALL FUNCTION 'ABAP4_COMMIT_WORK'.
          ENDIF.
          IF NOT sy-spono IS INITIAL.
            "Declarations
            v_spool_id = sy-spono.
    * Checking the flag for too large spool
    *    IF v_too_large IS INITIAL.
            CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
              EXPORTING
                src_spoolid              = v_spool_id
                no_dialog                = space
              IMPORTING
                pdf_bytecount            = v_bytecount
              TABLES
                pdf                      = i_pdf
              EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
    Edited by: Thomas Zloch on Feb 10, 2012

    Hi,
    Try with ALV LIST DISPLAY. I dont thing so its possible with ALV GRID DISPLAY.

  • Need to add Header  and footer in an alv grid display output.

    How can I add header and footer in an alv grid dispay output.
    For the grid display, I am using the function module "REUSE_ALV_GRID_DISPLAY".

    HI,
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'
                i_callback_html_end_of_list = 'END_OF_LIST_HTML'
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
    FORM end_of_list_html USING end TYPE REF TO cl_dd_document.
      DATA: ls_text TYPE sdydo_text_element,
            l_grid     TYPE REF TO cl_gui_alv_grid,
            f(14) TYPE c VALUE 'SET_ROW_HEIGHT'.
      ls_text = 'Footer title'.
    adds and icon (red triangle)
      CALL METHOD end->add_icon
        EXPORTING
          sap_icon = 'IL'.
    adds test (via variable)
      CALL METHOD end->add_text
        EXPORTING
          text         = ls_text
          sap_emphasis = 'strong'.
    adds new line (start new line)
      CALL METHOD end->new_line.
    display text(bold)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Bold text'
          sap_emphasis = 'strong'.
    adds new line (start new line)
      CALL METHOD end->new_line.
    display text(normal)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Nor'.
    adds new line (start new line)
      CALL METHOD end->new_line.
    display text(bold)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Yellow '
          sap_emphasis = 'str'.
    adds and icon (yellow triangle)
      CALL METHOD end->add_icon
        EXPORTING
          sap_icon = 'IC''.
    display text(normal)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Mor'.
    *set height of this section
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = l_grid.
      CALL METHOD l_grid->parent->parent->(f)
        EXPORTING
          id     = 3
          height = 14.
    ENDFORM. "end_of_list_html.
    This will solve  it. Post if you need more help in this.
    Regards,
    Madhu.

  • How to print Header and footer in same page

    Hi All,
    I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
    Regards

    HI
    First of all,
    Unless otherwise you selected some option like page break after/before - both body and header/footer will print on same page in report, so in pdf as well.
    If you have difference on report and PDF that you should look into your setup.
    If you want more help, please be particular on your issue
    james. wrote:
    Hi All,
    I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
    Regards

  • How to change header and footer in login page in oracle apps r12

    Hi all,
    how to change header and footer in login page in oracle apps r12 and login button background color, please help me
    thanks
    saran

    how to change header and footer in login page in oracle apps r12 and login button background color, please help meTips For Personalizing The E-Business Suite R12 Login Page (MainLoginPG) [ID 741459.1]
    How to Personalize Login page in R12? [ID 579917.1]
    R12 Login Page: How to Personalize the Logo ? [ID 849752.1]
    Thanks,
    Hussein

  • How to place header and footer  in OO-ALV program using class

    How to place header and footer  in OO-ALV program using class tell me wat r the class we shold use and their attributes as well

    Hi Venkatesh,
    Take a look at this how to [ABAP Objects - ALV Model - Using Header and Footer|https://wiki.sdn.sap.com/wiki/x/xdw]
    it's explaining how to define the classes and use it for display an ALV with Header and Footer.
    Regards,
    Marcelo Ramos

  • How to print header and footer in SET_TABLE_FOR_FIRST_DISPLAY

    Hello Experts,
             How to print header and footer while using the method SET_TABLE_FOR_FIRST_DISPLAY, any tips from the experts will be appreciated.
    Regards,
    Babu

    Hi,
    there are four events for printing: print_end_of_list, print_top_of_list, print_end_of_page and print_top_of_page. More information about implementing these events is in this bible for ALV:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Cheers

Maybe you are looking for