GUI_DOWNLOAD with filed heading

Hi Guys,
I have developed a report, which is having selection option to the user to down load the report output in .XLS format
I am display the report in ALV grid format, now user requesting me to the headingu2019s of the each filed, while downloading the report through the selection screen input path.
My report output having 8 fields, do we have any option; where we need to insert the field description while downloading my report?
Thanks,
Gourisankar.

Hi,
You can append your header for the required columns in
one internal table and pass it in the Download function module.
Kindly check the sample code below doing similar functionality,
*Function module to select path for downloading file
Call function 'KD_GET_FILENAME_ON_F4'
Exporting
program_name         = syst-repid
dynpro_number        = syst-dynnr
*       FIELD_NAME          = ' '
*       STATIC               = ' '
*       MASK                 = ' '
Changing
file_name                   = v_path
Exceptions
mask_too_long         = 1
Others                         = 2
If sy-subrc <> 0.
Message id sy-msgid type sy-msgty number sy-msgno
With sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
*Assigning path value to another var to be passed in gui_download function module
v_pathname = v_path.
*If user gives the value in path var then only download will be called
If v_pathname is not initial.
*To concatenate extension with file path name
Concatenate v_pathname '.xls' into v_pathname.
*FM to download header and contents to the given path
Call function 'GUI_DOWNLOAD'
Exporting
write_field_separator = 'X'
Filename              = v_pathname 
Tables
data_tab              = t_head.
Refresh t_head.
Clear t_head.
Call function 'GUI_DOWNLOAD'
Exporting
*   BIN_FILESIZE                                   =
    Filename                                           = v_pathname
    filetype                                              = 'ASC'
    Append                                              = 'X'            u201Cfor appending Heading in the internal table to be downloaded
    write_field_separator                     = 'X'
*   HEADER                                            = '00'
*   TRUNC_TRAILING_BLANKS           = 'X'
*   WRITE_LF                                         = 'X'
*   COL_SELECT                                     = ' '
*   COL_SELECT_MASK                        = ' '
*   DAT_MODE                                      = ' '
*   CONFIRM_OVERWRITE                  = ' '
*   NO_AUTH_CHECK                           = ' '
*   CODEPAGE                                       = ' '
*   IGNORE_CERR                                 = ABAP_TRUE
*   REPLACEMENT                                = '#'
*   WRITE_BOM                                    = ' '
*   TRUNC_TRAILING_BLANKS_EOL  = 'X'
   WK1_N_FORMAT                              = '22'
   WK1_N_SIZE                                      = '18'
*   WK1_T_FORMAT                            = ' '
*   WK1_T_SIZE                                     = ' '
* IMPORTING
*   FILELENGTH                                      =
    Tables
    data_tab                                            = it_final      "final internal table having data to be downloaded with header
*   FIELDNAMES                                   =
  Exceptions
file_write_error                                    = 1
no_batch                                               = 2
gui_refuse_filetransfer                       = 3
invalid_type                                          = 4
no_authority                                        = 5
unknown_error                                   = 6
header_not_allowed                          = 7
separator_not_allowed                     = 8
filesize_not_allowed                          = 9
header_too_long                                = 10
dp_error_create                                 = 11
dp_error_send                                    = 12
dp_error_write                                  = 13
unknown_dp_error                           = 14
access_denied                                   = 15
dp_out_of_memory                         = 16
disk_full                                              = 17
dp_timeout                                    = 18
file_not_found                              = 19
dataprovider_exception              = 20
control_flush_error                      = 21
Others                                             = 22
If sy-subrc <> 0.
Message id sy-msgid type sy-msgty number sy-msgno
With sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endif.
endif.
CLEAR: v_pathname, v_path.
Hope it helps
Regards
Mansi

Similar Messages

  • Need to avoid header When using GUI_DOWNLOAD with file type "DBF"

    Hi ,
    I am downloading internal table to excel on the desktop using GUI_DOWNLOAD with file type "DBF".
    Internal table I use do not have any header.
    But I do see the header in the downloaded file.
    It displays 1 row as " F1  F2 F3..ETC" heading for each column.
    Is there any variable we need to set to suppress header.
    Thank you,
    Kumar

    Hello Dilip,
    I tried using GUI_DOWNLOAD with FILE TYPE as "DBF", and i see the problem as mentioned. My question to you is:
    1. Why do you need 'DBF' format?
    2. Is it required to save the file as '.CSV'? Can you not try to save in '.XLS' file?
    Plz revert back.
    BR,
    Suhas

  • Need to remove header When using GUI_DOWNLOAD with file type "DBF"

    Hi ALL,
    I am using GUI_DOWNLOAD function module to downlaod data to csv file . I have taken FILE TYPE as "DBF" . After download , I have found data is downloaded along with a default header . Now how can I avoid Header while downloading.
    Please help me to solve this problem.
    thanks and regards,
    Dilip
    Edited by: dilip kumar on Jun 9, 2009 11:51 AM

    Hello Dilip,
    I tried using GUI_DOWNLOAD with FILE TYPE as "DBF", and i see the problem as mentioned. My question to you is:
    1. Why do you need 'DBF' format?
    2. Is it required to save the file as '.CSV'? Can you not try to save in '.XLS' file?
    Plz revert back.
    BR,
    Suhas

  • Replace FM GUI_DOWNLOAD with CL_GUI_FRONTEND_SERVICES= GUI_DOWNLOAD

    Hi,
    I want to replace FM GUI_DOWNLOAD with CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD in one of our old program, however parameter FIELDNAMES is used, and this parameter is no longer available in CL_GUI_FRONTEND_SERVICES.
    Any idea is there any other parameter for this? HEADER might be, but I don't think so, as it has a different purpose in FM 'GUI_DOWNLOAD' also.
    Thanks in advance,
    Peter

    Hi Peter
       One work around will be to use the method twice,
    first to download the header to file and then in append
    mode to download the data.
    Kind Regards
    Eswar
    Message was edited by: Eswar Rao  Boddeti

  • Download internal table data into excel sheet with column heading and data

    Hi,
      I am having one internal table with column headings and other table with data.
    i want to download the data with these tables into an excel sheet.
    It should ask the user for file name to save it on their own name. They should give the file name in runtime and it should be downloaded into an excel sheet.
    Can anyone tell what is the right function module for downloading these two internal table data with column heading and data.
    what we have to do for storing the file name in runtime.
    Can anyone help me on this.
    Thanks,
    Rose.

    Hi Camila,
        Try this
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = PATH2
       FILETYPE                        = 'XLS'
      TABLES
        DATA_TAB                        = IT_DATA
       FIELDNAMES                      = IT_HEADINGS
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22

  • IPod Touch no longer working with car Head Unit since update

    Hi there, I have a problem with using my iPod Touch with my car's head unit.
    I've been using my iPod Touch with the Alpine IDA X001 Head unit fitted in my car for the last 3 months without any problems, however I installed the latest software update for the Touch (v4.0) and now the head unit connects and then says no USB device. At first I thought it was the cable as the cable supplied with the head unit is pretty fragile, so I've replaced it with a new one but it still doesn't work.
    I've tested with my iPod Nano and it works perfectly so its not a problem with the head unit or lead (I plugged the Touch in and it didn't work, plugged the Nano in and worked perfectly and then plugged the Touch in and didn't work).
    Can anyone help or is it gonna be a case of Restoring the iPod Touch back to factory settings ????

    I was also having this problem with my Kenwood car stereo. I went into the store and they did a complete restore. I didn't think it worked but the next time I plugged it into my usb to connect with my car stereo it worked. So you might try doing a restore.

  • How to download the output of a report along with column header

    Hi,
    Could someone please tell me on how to download the output of a report along with column header to .txt format. A download option needs to be given to the user using physical and logical file names .The report basically contains header details and item details and requirement is to download the same format into an .txt format.

    Hello,
    Try this FM:
    Data: being of itab occurs 0,
    matnr like mara-matnr,
    maktx like makt-maktx,
    end of itab.
    data:begin of fld_tab occurs 0,
    fld_name(20),
    end of fld_tab.
    fld_tab = 'Material'.
    append fld_tab.
    fld_tab = 'Material Desc'.
    append fld_tab.
    CALL FUNCTION 'WS_DOWNLOAD'
       EXPORTING
            BIN_FILESIZE            = ' '
            CODEPAGE                = ' '
             FILENAME                = 'C:\1.txt '
             FILETYPE                = 'DAT'
            MODE                    = ' '
            WK1_N_FORMAT            = ' '
            WK1_N_SIZE              = ' '
            WK1_T_FORMAT            = ' '
            WK1_T_SIZE              = ' '
            COL_SELECT              = ' '
            COL_SELECTMASK          = ' '
            NO_AUTH_CHECK           = ' '
       IMPORTING
            FILELENGTH              =
         TABLES
              DATA_TAB                = itab
              FIELDNAMES              = fld_tab
       EXCEPTIONS
            FILE_OPEN_ERROR         = 1
            FILE_WRITE_ERROR        = 2
            INVALID_FILESIZE        = 3
            INVALID_TYPE            = 4
            NO_BATCH                = 5
            UNKNOWN_ERROR           = 6
            INVALID_TABLE_WIDTH     = 7
            GUI_REFUSE_FILETRANSFER = 8
            CUSTOMER_ERROR          = 9
            OTHERS                  = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Naimesh

  • With header line & with out header line ?

    what is difference between with header line & without header line ?

    When you create an internal table object you can also declare a header line with the same name. You can use the header line as a work area when you process the internal table. The ABAP statements that you use with internal tables have short forms that you can use if your internal table has a header line. These statements automatically assume the header line as an implicit work area. The following table shows the statements that you must use for internal tables without a header line, and the equivalent statements that you can use for internal tables with a header line:
    Operations without header line
    Operations with header line
    Operations for all Table Types
    INSERT <wa> INTO TABLE <itab>.
    INSERT TABLE ITAB.
    COLLECT <wa> INTO <itab>.
    COLLECT <itab>.
    READ TABLE <itab> ... INTO <wa>.
    READ TABLE <itab> ...
    MODIFY TABLE <itab> FROM <wa> ...
    MODIFY TABLE <itab> ...
    MODIFY <itab> FROM <wa> ...WHERE ...
    MODIFY <itab> ... WHERE ...
    DELETE TABLE <itab> FROM <wa>.
    DELETE TABLE <itab>.
    LOOP AT ITAB INTO <wa> ...
    LOOP AT ITAB ...
    Operations for Index Tables
    APPEND <wa> TO <itab>.
    APPEND <itab>.
    INSERT <wa> INTO <itab> ...
    INSERT <itab> ...
    MODIFY <itab> FROM <wa> ...
    MODIFY <itab> ...
    Using the header line as a work area means that you can use shorter statements; however, they are not necessarily easier to understand, since you cannot immediately recognize the origin and target of the assignment. Furthermore, the fact that the table and its header line have the same name can cause confusion in operations with entire internal tables. To avoid confusion, you should use internal tables with differently-named work areas.
    The following example shows two programs with the same function. One uses a header line, the other does not.
    With header line:
    TYPES: BEGIN OF LINE,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF LINE.
    DATA ITAB TYPE HASHED TABLE OF LINE WITH UNIQUE KEY COL1
    WITH HEADER LINE.
    DO 4 TIMES.
    ITAB-COL1 = SY-INDEX.
    ITAB-COL2 = SY-INDEX ** 2.
    INSERT TABLE ITAB.
    ENDDO.
    ITAB-COL1 = 2.
    READ TABLE ITAB FROM ITAB.
    ITAB-COL2 = 100.
    MODIFY TABLE ITAB.
    ITAB-COL1 = 4.
    DELETE TABLE ITAB.
    LOOP AT ITAB.
    WRITE: / ITAB-COL1, ITAB-COL2.
    ENDLOOP.
    Without header line:
    TYPES: BEGIN OF LINE,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF LINE.
    DATA: ITAB TYPE HASHED TABLE OF LINE WITH UNIQUE KEY COL1,
    WA LIKE LINE OF ITAB.
    DO 4 TIMES.
    WA-COL1 = SY-INDEX.
    WA-COL2 = SY-INDEX ** 2.
    INSERT WA INTO TABLE ITAB.
    ENDDO.
    WA-COL1 = 2.
    READ TABLE ITAB FROM WA INTO WA.
    WA-COL2 = 100.
    MODIFY TABLE ITAB FROM WA.
    WA-COL1 = 4.
    DELETE TABLE ITAB FROM WA.
    LOOP AT ITAB INTO WA.
    WRITE: / WA-COL1, WA-COL2.
    ENDLOOP.
    The list, in both cases, appears as follows:
    1 1
    2 100
    3 9
    The statements in the program that does not use a header line are easier to understand. As a further measure, you could have a further work area just to specify the key of the internal table, but to which no other values from the table are assigned.
    Internal table with header line
    you can use anywhere except obkect oriented concept.
    Internal table without header line :
    You should use in Object oriented concept..
    Always try to use without header line,performance point of view it is best..
    Example :
    Without header line.
    Structure
    types : begin of ty_itab ,
    matnr type mara-matnr,
    end of ty_itab.
    Internal table
    data i_itab type standard table of ty_itab .
    Work area
    data wa_itab like line of i_itab
    With header line
    data : begin of i_itab occurs 0,
    matnr like mara-matnr,
    end of i_itab
    itab with header lines are obsolete, anyway it will work but not recommended. instead use work area or more effiecient is field symbols. so donot use itab with header line.
    i will explain use of itab w/o header line.
    Data: itab1 type standard table of mara with header line occurs 0,
            itab2 type standard table of mara,
            wa_itab2 type mara.
    loop at itab1.
    "This will work fine.
    endloop.
    loop at itab2.
    "This will give erro that itabd does not hav workarea
    endloop.
    "so write
    loop at itab2 into wa_itab2.
    "This will work
    endloop.
    <b>The difference between
    whih header line and with out heater line of internal table.
    ex:-
    a) Data : itab like mara occurs 0 with header line.
    b) Data: itab like mara occurs 0.
    -While adding or retrieving records to / from internal table we have to keep the record temporarily.
    -The area where this record is kept is called as work area for the internal table.
    -The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
    -Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
    a) Data : itab like mara occurs 0 with header line.
    table is with header line
    b) Data: itab like mara occurs 0.
    table is without header line</b>
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Calling Web Service with SOAP header from BPEL

    Hi,
    I am calling a web service (with header information) from BPEL. In the Invoke activity, i created a header variable to pass the header information.
    But, when i test the BPEL service, invoke activity fails because the header information is not being passed.
    Below is the error message (copied from clipboard).
    +<messages><input><Invoke_1_getsubinfo_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters"><getsubinfoElement xmlns="http://ws/its/tabs/webservices/SingleRowWS/SingleRowWS.wsdl">+
    +<pSubnoin>+
    +<insubno>12345678</insubno>+
    +</pSubnoin>+
    +</getsubinfoElement>+
    +</part></Invoke_1_getsubinfo_InputVariable></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>exception on JaxRpc invoke:+
    start fault message:+
    Internal Server Error (Caught exception while handling request: javax.xml.rpc.JAXRPCException: Not authenticated user)+
    *:end fault message*</summary>
    +</part></bindingFault></fault></messages>+
    As said, no header information is visible in the Invoke activity.
    Please provide help for the above issue.
    -MJ

    Hello Patrick,
    Thanks for the response. I am using normal assign activity to assign values to the header variable as shown below. HeadMT is the header variable which is passed in the invoke activity.
    +<assign name="Assign_Header">+
    +<copy>+
    +<from expression="'tkl12'"/>+
    +<to query="/ns1:LOGIN_INFO/ns1:USER_NAME" variable="*HeadMT*"+
    part="payload"/>
    +</copy>+
    +<copy>+
    +<from expression="'tkl123'"/>+
    +<to query="/ns1:LOGIN_INFO/ns1:PASSWORD" variable="*HeadMT*"+
    part="payload"/>
    +</copy>+
    +<copy>+
    +<from expression="'TKL'"/>+
    +<to query="/ns1:LOGIN_INFO/ns1:CHANNEL_ID" variable="*HeadMT*"+
    part="payload"/>
    +</copy>+
    +</assign>+
    The expected input by the web service is as below with the header information highlighted.
    +<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ws/webservices/RowWS/RowWS.wsdl">+
    +*<soap:Header>*+
    +*<ns1:LOGIN_INFO>*+
    +*<ns1:USERNAME>tkl12</ns1:USERNAME>*+
    +*<ns1:PASSWORD>tkl123</ns1:PASSWORD>*+
    +*<ns1:CHANNEL_ID>TKL</ns1:CHANNEL_ID>*+
    +*</ns1:LOGIN_INFO>*+
    +*</soap:Header>*+
    +<soap:Body>+
    +<ns1:substatusElement>+
    +<ns1:pInparam>+
    +<ns1:insubno>7674988</ns1:insubno>+
    +</ns1:pInparam>+
    +</ns1:substatusElement>+
    +</soap:Body>+
    +</soap:Envelope>+

  • IPod Touch no longer compatible with Pioneer head unit?

    Recently installed the newest iTouch software. Before the update I had no issues playing songs from my ipod through my car CD player via usb. Pioneer Premier DEH-P400UB is the model I am using.
    Now that I have installed the update, when I plug the ipod in the CD player displays "NO MUSIC." The ipod reads "accessory attached," as it always has.
    Anyone else have this issue with their head units? Any brand.

    I am so frustrated. I have a Pioneer AVH-P3100DVD and my i-pod touch worked pretty much perfectly with it until I clicked to update the OS to 4.1. Now it is a disaster, slow screen changes, constantly cutting out music. What a joke. My stereo and i-pod are basically useless now thanks to that idiotic 4.1 "upgrade". What is Apple doing putting some buggy piece of crap update out there that basically ruins your i-pod touch? Geez.

  • Download alv report output to excel format with out header line

    Hi experts,
    i want to download a alv report output into excel formatt with out the header line but it has to download including field description. as this output will fed into another transaction, the downloaded excel file should be with out header line.
    fro eg:
    Report   : Zabc                      ABAP Development          Page  :     1
    Run Date : 12/14/06                                                     System: UD400 
    Run Time : 08:45:37
    this header details should not be downloaded into the excel file.
    could somebody help me please.
    thanks
    deepu

    hi jayanti,
    thanks for your response.
    i have delclared all the field types as character but still it is not downloading and it 's sy-subrc is 4... the code is as below.
    *field names
      lt_fieldnames-value = 'Material Number'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Plant'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Group'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Description'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'UOM'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Price Unit'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Type'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'X-Plant Status'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Valuation Class'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_avmng.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_avntp.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Latest PO Qty'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Latest PO Cost'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'PO Creation Date'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_fcaqt.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Prev. Yr. Std. Cost'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_stcst.
      APPEND lt_fieldnames.
      CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
        EXPORTING
          file_name                       = 'XLSHEET'
        CREATE_PIVOT                    = 0
        DATA_SHEET_NAME                 = ' '
        PIVOT_SHEET_NAME                = ' '
        PASSWORD                        = ' '
        PASSWORD_OPTION                 = 0
        TABLES
        PIVOT_FIELD_TAB                 =
          data_tab                        = t_output1
          fieldnames                      = lt_fieldnames
        EXCEPTIONS
          file_not_exist                  = 1
          filename_expected               = 2
          communication_error             = 3
          ole_object_method_error         = 4
          ole_object_property_error       = 5
          invalid_pivot_fields            = 6
          download_problem                = 7
          OTHERS                          = 8
      IF sy-subrc <> 0.
        MESSAGE e001 WITH 'Data could not be downloaded'.
      ENDIF.
    ENDFORM.                               " z_dwn_xl
    thanks
    deepu

  • Problems when trying to move a paragraph with a heading to the next page

    When i try to move a paragraph with a heading (generally style 2) to the next page by pressing the enter key, rather than the whole paragraph moving to the top of the next page it moves to pretty well every where but the top. i have attached a video because im sure what i have said doesn't make much sense.
    http://www.youtube.com/watch?v=MrlnsmLIDGk&feature=youtubegdataplayer
    i have talked to an apple technician through apple care and we came to the conclusion after reseting iwork to default settings still with no changes all i could do was completely remove iwork from my computer and try to start over. Or come to the forums to see if there is a work around.

    Hi Jared,
    Without commentary, or other explanation, it's difficult to determine what actions you are taking to produce the results in the video.
    In the first instance, it appears that you have placed the insertion point at the beginning of the line following the header, then pressed and held return. this action pushes that line (and anything below it) down until it crosses the page boundary and jumps to a second page. That's expected behaviour.
    At approximately 0:57, you have deleted the return characters, returning the first and second lines after the header to a position immediately following the header. The insertion point is then moved to the point at the beginning of the header line, and returns are inserted as before. About 1:04, a number of unreadable alert boxes appear. At 1:07, the second line below the heading moves to the second page, followed by the first line, then by the heading itself at about 1:10. Again this is expected behaviour.
    Only after that are there any 'odd' behaviours, and without knowing what actions you are taking to produce those oddities, it's (at least) difficult to say what is causing the results you see.
    Regards,
    Barry

  • Report with no heading descriptions IN ALV OUTPUT

    Report with no heading descriptions and nothing to choose when press "change layout button".
    means when i execute a report of alv no heading comes out in output.

    Hi,
    Give the command in the Report Program name itself.
    For EX : Your Program Name is ZTEST.
    In the first line itself.
    REPORT ZTEST NO STANDARD PAGE HEADING.
    This will solve ur probs

  • Report With Two Heading

    Hi,
    How to create Report With Two Heading
    [http://apex.oracle.com/pls/apex/f?p=267:31:]
    thanks

    See: Re: Two level row header

  • Printing 4 copies with different header in smartform

    Hi Friends,
    I am printing Delivery Note using smartforms, for that i created form by coping SAP`s standard form LE_SHP_DELNOTE with some layout changes.
    Its workin fine., but now user wants that it should print 4 copies of that form with different header, like
    CUSTOMER COPY, WAREHOUSE COPY, GATE COPY, OFFICE COPY
    This is usually done in other companies on carbonated papers, but they want this to print on normal paper.
    Please suggest is it possible, if yes how should i do it...
    Regards,
    Brijesh Soni

    Create a secondary window.Select Window type as u201CCopies Windowu201D.The variable SFSY-COPYCOUNT would provide us count of the copy whether it is a first copy, second copy and others. We would use this field to print the owner of the copy.We would define a string, which would hold the name of the copy (bank copy and others) depending on the value of SFSY-COPYCOUNT. Define a variable in the global definition.
    Now select your Copies window, right click u2013 Select Create à Flow Logic à Program Lines 
    The output parameter is W_TEXT.
    IF SFSY-COPYCOUNT = 001.
    W_TEXT = 'Original'.
    ELSEIF SFSY-COPYCOUNT = 002.
    W_TEXT = 'Duplicate'.
    ELSEIF SFSY-COPYCOUNT = 003.
    W_TEXT = 'Tripilicate'.
    ENDIF.

Maybe you are looking for