ALV - putting itab as header

Hi Guys,
I would like to put the contents of an itab at the start of an ALV output as Element of Type Grid with gridlines.
DATA it_spfli TYPE spfli_tab.
SELECT * FROM spfli INTO TABLE it_spfli.
Just as an example,I would like out put the "carrid" and "connid" fields of the itab as header info.
Is there a way to do it.Is it performant?
The reason why I want to do it is I need to have 2 different outputs on the same screen.
The first one I thought - could be put in as an ALV header (The itab I mentioned above)and
the second one in an ALV itself so that they could both be seen on the same screen.
A sample code for the header itab would be great....
Thanks
P

Hi,
Here is another way to achieve this. This technique will display multiple ALV GRID's in one screen.
1. First define 2 custom containers in your screen and name them accordingly say u201CCONT1u201D and u201CCONT2u201D.
2. In your data declaration defines the variables say as below.
DATA: g_container1 TYPE scrfname VALUE 'CONT1',
                    g_container2 TYPE scrfname VALUE 'CONT2',
                    grid1 TYPE REF TO cl_gui_alv_grid,
                    grid2  TYPE REF TO cl_gui_alv_grid,
                    g_custom_container1 TYPE REF TO cl_gui_custom_container,
                    g_custom_container2 TYPE REF TO cl_gui_custom_container.
3. Now there is one main thing to understand u2013what is the use of the Class cl_gui_custom_container? Actually, the custom objects that one can see in the attached screen shot are two containers, which need to be attached with objects of type ref to cl_gui_custom_container by way of coding. Now on this container object will sit two alv grid containers and the alv grid containers will hold the data.           
4. Follow the below lines of code.
* Create the custom container object and attachwith the screen container u2018CONT1u2019.
     IF g_custom_container1 IS INITIAL.
    CREATE OBJECT g_custom_container1
           EXPORTING container_name = g_container1.
Now create the grid object: -
    CREATE OBJECT grid1
           EXPORTING i_parent = g_custom_container1.
* Now call the method u2018SET_TABLE_FOR_FIRST_DISPLAYu2019 and pass the required parameters.
   CALL METHOD grid1->set_table_for_first_display
      EXPORTING
        i_structure_name = 'MARA'
      CHANGING
        it_outtab        = gt_mara.   u201CThe internal table containing the data
  ENDIF.
* Follow the same procedure for the other custom control also.
IF g_custom_container2 IS INITIAL.
    CREATE OBJECT g_custom_container2
           EXPORTING container_name = g_container2.
    CREATE OBJECT grid2
           EXPORTING i_parent = g_custom_container2.
    CALL METHOD grid2->set_table_for_first_display
      EXPORTING
        i_structure_name = 'MARA'
      CHANGING
        it_outtab        = gt_mara.
  ENDIF.
5. We can create as many grids as we need using the above technique.                                                   
Regards,
Ganga

Similar Messages

  • Match 2 itab into 1 alv with not identical header.

    Hello experts,
    I have 2 itab:  it_reguh  with 12 fields, and it_regup with 9 fields.
    For all 1 row from it_reguh can be some row correctly in it_regup, and header not identical.
    How can i to join them  to 1 alv  with the header of it_reguh and header of it_regup ?
    For example:  ALV like this:
    IT_REGUH-HEADER.
    IT_REGUH-ROW1.
    IT_REGUP-HEADER.
    IT_REGUP-ROW1.
    IT_REGUP-ROW2.
    IT_REGUH-HEADER.
    IT_REGUH-ROW2.
    IT_REGUP-HEADER.
    IT_REGUP-ROW1.
    IT_REGUP-ROW2.
    Thanks for the help,
    Avi.

    Hi,
    Generally this is the relationship between Header(REGUH) and Item(REGUP)
    **  Getting the item Data REGUP from header table REGUH
        CLEAR : l_regup_data,wa_with_item.
        REFRESH :l_regup_data.
        SELECT *  FROM regup INTO TABLE l_regup_data
                                      WHERE laufd = reguh_data-laufd
                                      AND   laufi = reguh_data-laufi
                                      AND   xvorl = reguh_data-xvorl
                                      AND   zbukr = reguh_data-zbukr
                                      AND   lifnr = reguh_data-lifnr
                                      AND   vblnr = reguh_data-vblnr.
        IF sy-subrc = 0.
        ENDIF.
    so try to create common internal table with Reguh and regup table.
    write the below query
    Loop at regup.
    read table reguh with above key combination.
    If sy-subrc = 0.
         "Append reguh and regup contents to final internal table
    endif.
    ENDloop.
    Prabhudas

  • Report with two ALV grids and a header

    Hi experts,
    I have a report with two ALV grids in the same screen, each one in a separated container. The information displays it correctly. The report has been implemented by using OO Programming.
    My real trouble is in the header. It must have a logo, a title with a specific font and other information.
    I'll attach a capture of my need:
    [Report with two ALV grids and a header|http://picasaweb.google.com/lh/photo/AcQD49QPmm-0L_jL2iMedA?feat=directlink]
    Then, I want to set up the header you can see, with logo, a font with specific features. Obviously, the header you see has taken from another report. But is the same idea.
    I've tried with a third container, using the CL_GUI_CONTAINER and CL_GUI_CONTAINER classes, but it doesn't work.
    Any idea? Would welcome any help you can provide.
    Thanks in advance,
    Jorge Rojas

    Hi, Jorge.
    Should the header be a"attached" to any of the ALV? Or it should be carried alone?
    If first applies, you've given the solution yourself: put the info & logo in first ALV's header and invoke it from the proper method.
    You could use CL_GUI_DOCKING_CONTAINER CLASS to divide screen in several containers and then, in the upper one, I would create another one docking container to divide the screen into two: the written info could be performed with an HTML viewer class and the logo with a CL_GUI_PICTURE element.
    Cheers.

  • How to put the proper header at each column in write to measurement file (.lvm) ?

    Hi,
           i would like to know one thing about the write to measurement file. Can i put the proper header at each column in write to measurement file (.lvm) ? and how can i do for it ? Could you show me a way to make it ?
    i am looking forward your kindly reply.
    thank you so much ..
    best regard,
    roxy

    Hi Mike,
                  Thank you very much for your help. It works .
    By the way, i would like to ask you about setting time interval. In the pic, X_Value column is for time column
    i would like to ask that when i use the write to measurement file, there got the x column that show time inside the excel file. In this column, i would like to set the time interval at every 210ms .The data may come in every msec but i just want to record the data at every 210ms .  for example, 210ms-420ms-630ms ..etc. how can i set it ?
    One more thing .. can i do it in graph as well ?
    i am looking forward your kindly reply.
    Thank you for your time.
    Best Regard,
    Roxy

  • ALV list with 2 header lines

    Dear gurus,
    Need help in displaying ALV list report. the below report is an example of AR aging report. The report output is as below:
    DEC
    NOV
    OCT
    SEP
    0-30
    31-60
    61-90
    90+
    xx
    xx
    xx
    xx
    SUBTOTAL
    The first 2 lines are the list header. While the 'x' is the amount.
    How can i display the above output with 2 header lines? I was thinking of using the  REUSE_ALV_FIELDCATALOG_MERGE function. But it will have 2 lines of body row too. In fact, i only one one row in the body. But if i define the header lines manually, i would not able to do the subtotal at the end of the alv list. I need to have the subtotal too.
    Thanks in advance!

    Hi,
    For this requirement you need to populate the fld catalog using row_pos and col_pos fields specifing proper position.
    See this code snippet ..... this is only possible for ALV list.
    TYPE-POOLS: slis.
    DATA: ld_fieldcat    TYPE slis_fieldcat_alv.
    DATA: t_alv_fieldcat TYPE STANDARD TABLE OF slis_fieldcat_alv.
    DATA : it_fld TYPE slis_t_fieldcat_alv,
           wa_fld TYPE slis_fieldcat_alv.
    data: BEGIN OF itab OCCURS 0,
            carrid    like sflight-carrid,
            connid    like sflight-connid,
            planetype like sflight-planetype,
            seatsmax  like sflight-seatsmax,
          END OF itab.
    START-OF-SELECTION.
    SELECT carrid connid planetype seatsmax
           FROM sflight
           INTO TABLE itab.
      CLEAR: ld_fieldcat.
      ld_fieldcat-row_pos       = '1'.
      ld_fieldcat-col_pos       = '1'.
      ld_fieldcat-tabname       = 'ITAB'.
      ld_fieldcat-fieldname     = 'CARRID'.
      ld_fieldcat-ref_tabname   = 'SFLIGHT'.
      ld_fieldcat-outputlen     = '10'.
      APPEND ld_fieldcat TO t_alv_fieldcat.
      CLEAR ld_fieldcat.
      CLEAR: ld_fieldcat.
      ld_fieldcat-row_pos       = '1'.
      ld_fieldcat-col_pos       = '2'.
      ld_fieldcat-tabname       = 'ITAB'.
      ld_fieldcat-fieldname     = 'CONNID'.
      ld_fieldcat-ref_tabname   = 'SFLIGHT'.
      ld_fieldcat-outputlen     = '10'.
      APPEND ld_fieldcat TO t_alv_fieldcat.
      CLEAR ld_fieldcat.
      CLEAR: ld_fieldcat.
      ld_fieldcat-row_pos       = '2'.
      ld_fieldcat-col_pos       = '1'.
      ld_fieldcat-tabname       = 'ITAB'.
      ld_fieldcat-fieldname     = 'PLANETYPE'.
      ld_fieldcat-ref_tabname   = 'SFLIGHT'.
      ld_fieldcat-outputlen     = '10'.
      APPEND ld_fieldcat TO t_alv_fieldcat.
      CLEAR ld_fieldcat.
      CLEAR: ld_fieldcat.
      ld_fieldcat-row_pos       = '2'.
      ld_fieldcat-col_pos       = '2'.
      ld_fieldcat-tabname       = 'ITAB'.
      ld_fieldcat-fieldname     = 'SEATSMAX'.
      ld_fieldcat-ref_tabname   = 'SFLIGHT'.
      ld_fieldcat-outputlen     = '10'.
      APPEND ld_fieldcat TO t_alv_fieldcat.
      CLEAR ld_fieldcat.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          it_fieldcat        = t_alv_fieldcat[]
        TABLES
          t_outtab           = ITAB. "internal table
      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,
    Amitava

  • OO ALV - using itab to build catalog

    Has anyone got an example of code which allows an OO ALV grid to be displayed based on the field catalog derived from an internal table, where the itab is also the source of the data to be displayed ?. I'm have a lot fun trying to get this to work. It's a piece of cake using data dictionary, but generating a catalog from an internal table causing much grief.
    Any help would much appreciated.
    Gary King

    Please find a sample here,
    Note: You need to declare the with LIKE,
    Display structure
    DATA: BEGIN OF i_object_tab OCCURS 0,
            sele    TYPE c,
            aufnr   LIKE afru-aufnr,
            rueck   LIKE afru-rueck,
            rmzhl   LIKE afru-rmzhl,
            arbpl   LIKE crhd-arbpl,
            grund   LIKE afru-grund,
            ltxa1   LIKE afru-ltxa1,
            isdd    LIKE afru-isdd, "Work Start Date
            isdz    LIKE afru-isdz, "Work Start Time
            iedd    LIKE afru-iedd, "Work End Date
            iedz    LIKE afru-iedz, "Work End Time
            nisdd   LIKE afru-isdd, "New Work Start Date
            nisdz   LIKE afru-isdz, "New Work Start Time
            niedd   LIKE afru-iedd, "New Work End Date
            niedz   LIKE afru-iedz, "New Work End Time
            celltab TYPE lvc_t_styl,
          END OF i_object_tab.
    DATA:       ls_fieldcat TYPE slis_t_fieldcat_alv.
    *&      Form  build_field_catalog
          text
    -->  p1        text
    <--  p2        text
    FORM build_field_catalog .
      DATA: ls_fldcat TYPE lvc_s_fcat.
      CLEAR ls_fieldcat. REFRESH ls_fieldcat.
      CLEAR lt_fcat. REFRESH lt_fcat.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-cprog
          i_inclname             = sy-cprog
          i_internal_tabname     = 'I_OBJECT_TAB'
        CHANGING
          ct_fieldcat            = ls_fieldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      LOOP AT ls_fieldcat.
        CLEAR ls_fldcat.
        ls_fldcat-fieldname = ls_fieldcat-fieldname.     "Fieldname
        ls_fldcat-ref_table = ls_fieldcat-tabname.       "DDIC ref struct
        ls_fldcat-inttype   = ls_fieldcat-inttype.       "Data type
        ls_fldcat-outputlen = ls_fieldcat-outputlen.     "Column width
        ls_fldcat-coltext   = ls_fieldcat-seltext_m.     "Column Header
        ls_fldcat-seltext   = ls_fieldcat-seltext_m.     "Column Desc
        ls_fldcat-ref_field = ls_fieldcat-ref_fieldname. "Reference field
        ls_fldcat-ref_table = ls_fieldcat-ref_tabname.   "Reference table
        CASE ls_fldcat-fieldname.
          WHEN 'SELE'.
            ls_fldcat-col_pos   = '1'.
            ls_fldcat-checkbox  = 'X'.
            ls_fldcat-coltext   = text-002.
            ls_fldcat-seltext   = text-002.
            ls_fldcat-edit      = 'X'.
          WHEN 'AUFNR'.
            ls_fldcat-col_pos   = '2'.
            ls_fldcat-coltext   = text-003.
            ls_fldcat-seltext   = text-003.
            ls_fldcat-fix_column = 'X'.
            ls_fldcat-emphasize = 'C400'.
          WHEN 'RUECK'.
            ls_fldcat-col_pos   = '3'.
            ls_fldcat-coltext   = text-004.
            ls_fldcat-seltext   = text-004.
            ls_fldcat-emphasize = 'C400'.
          WHEN 'RMZHL'.
            ls_fldcat-col_pos   = '4'.
            ls_fldcat-coltext   = text-005.
            ls_fldcat-seltext   = text-005.
            ls_fldcat-emphasize = 'C400'.
          WHEN 'ARBPL'.
            ls_fldcat-col_pos   = '5'.
            ls_fldcat-coltext   = text-006.
            ls_fldcat-seltext   = text-006.
            ls_fldcat-emphasize = 'C600'.
          WHEN 'GRUND'.
            ls_fldcat-col_pos   = '6'.
            ls_fldcat-coltext   = text-007.
            ls_fldcat-seltext   = text-007.
            ls_fldcat-emphasize = 'C600'.
          WHEN 'LTXA1'.
            ls_fldcat-col_pos   = '7'.
            ls_fldcat-coltext   = text-008.
            ls_fldcat-seltext   = text-008.
            ls_fldcat-emphasize = 'C600'.
          WHEN 'ISDD'.
            ls_fldcat-col_pos   = '8'.
            ls_fldcat-coltext   = text-009.
            ls_fldcat-seltext   = text-009.
            ls_fldcat-emphasize = 'C500'.
          WHEN 'ISDZ'.
            ls_fldcat-col_pos   = '9'.
            ls_fldcat-coltext   = text-010.
            ls_fldcat-seltext   = text-010.
            ls_fldcat-emphasize = 'C500'.
          WHEN 'IEDD'.
            ls_fldcat-col_pos   = '10'.
            ls_fldcat-coltext   = text-011.
            ls_fldcat-seltext   = text-011.
            ls_fldcat-emphasize = 'C500'.
          WHEN 'IEDZ'.
            ls_fldcat-col_pos   = '11'.
            ls_fldcat-coltext   = text-012.
            ls_fldcat-seltext   = text-012.
            ls_fldcat-emphasize = 'C500'.
          WHEN 'NISDD'.
            ls_fldcat-col_pos   = '12'.
            ls_fldcat-coltext   = text-013.
            ls_fldcat-seltext   = text-013.
            ls_fldcat-edit      = 'X'.
          WHEN 'NISDZ'.
            ls_fldcat-col_pos   = '13'.
            ls_fldcat-coltext   = text-014.
            ls_fldcat-seltext   = text-014.
            ls_fldcat-edit      = 'X'.
          WHEN 'NIEDD'.
            ls_fldcat-col_pos   = '14'.
            ls_fldcat-coltext   = text-015.
            ls_fldcat-seltext   = text-015.
            ls_fldcat-edit      = 'X'.
          WHEN 'NIEDZ'.
            ls_fldcat-col_pos   = '15'.
            ls_fldcat-coltext   = text-016.
            ls_fldcat-seltext   = text-016.
            ls_fldcat-edit      = 'X'.
        ENDCASE.
        APPEND ls_fldcat TO lt_fcat.
        CLEAR ls_fldcat.
      ENDLOOP.
    ENDFORM.                    " build_field_catalog
    Regards
    Kathirvel

  • ALV top of page - heading depending upon list output

    Hi All,
    My alv grid report shows the report containing vendor account group and some other details.
    My requirement is to get the page break for every new vendor account group and also print the vendor account group description at the top of the list (in header section).
    I have achieved this by using * in sort table for page break and in top of page , I am reading the vendor acct grp desc table to print the header based on index sy-pagno.
    But this solution is only working in print preview mode. If I print the output, actual page breaks are getting applied and I am not getting the desired output as logic using sy-pagno is giving wrong output.
    My question is is there any way to get the current list in the top of page event? So that depending upon the displayed vendor acct grp per page, I will print its description?
    OR is there any other way to achieve this functionality?

    Any suggestions?

  • Tree OOPS ALV - Need to display header & items of the sales order in oops

    HI,
        I need to display some of the header fields of the sales order & items in the oops alv, could you please let me know how to achieve this. I know FM - 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' but how to achieve this through oops alv.
    Thanks

    it is not possible with that function in OO .
    you can try with class cl_salv_hierseq_table
    Just check this Rich's article
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0f03986-046c-2910-a5aa-e5364e96ea2c
    if you don't want that then you may have to use ALV tree.

  • Retrieve the message put in message header using variable substitution

    hi,
    i am using dynamic configuration to put some information in the message header.is it possible to retrieve the message using variable substitution and if it is possible then how it be done using variable substitution.
    regards,
    Meenakshi

    Variable Substitution does not allow you to read all the messaeg header elements only some of them can be read/ access....for more info on how to read the message header elements refer: /people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean
    From the above blog:
    When using Variable Substitution, only certain standard message header attributes can be used/accessed (e.g. sender_party,
    sender_service, receiver_party, receiver_service, interface_name, interface_namespace, message_id)
    Better use Dynamic Configuration to read the parameters.
    I am wondering why you need to read the message header parameters when you are putting them using Dynamic Configuration.....cant you just get the details from the dynamic configuration UDF itself?
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Dec 10, 2009 1:18 PM

  • OO ALV grid with a header line is this possible?

    Howdy!
    I have a requirement where I need to produce an ALV grid with the following format:
    <b>Text 1     Text 2  Text 3                  Text 4
                              Text 6
    Col_1 Col_2 Col_3 Col_4 Col_5 Col_6 Col_7 Col_8 Col_9 
    Cell conents -
    Cell conents -
    Cell conents -
    Cell conents -
    Cell conents -
    </b>
    Anyone got any idea on how to get the 'TEXT' fields into the ALV grid? These are dynamic texts that would basically display details of data entered in the selection screen.
    The ALV title line is limited to 70 characters and I can't think of another way of doing this.
    The texts need to appear on the ALV grid becasue the user would like to download them to Excel in addition to the ALV cell contents using the standard ALV functionality.
    Any ideas would be appreciated!
    Message was edited by: Robert

    I'm thinking that this may not work because it is not a full screen grid and the grid container does not care about the container on top of it so, it most likely would not print it.   Implement this example program, you can see how this would work for you if you were using the FM.
    report zrich_0001
           no standard page heading.
    * Global ALV Data Declarations
    type-pools slis.
    data: begin of i_alv occurs 0,
          matnr type mara-matnr,
          end of i_alv.
    * Miscellanous Data Declarations
    data: fieldcat type slis_t_fieldcat_alv,
          events   type slis_t_event,
          list_top_of_page type slis_t_listheader,
          top_of_page  type slis_formname value 'TOP_OF_PAGE'.
    start-of-selection.
      perform initialization.
      perform get_data.
      perform call_alv.
    end-of-selection.
    *  Form  Initialization
    form initialization.
      clear i_alv.       refresh i_alv.
      perform eventtab_build using events[].
    endform.
    *  Form  Get_Data
    form  get_data.
      select matnr into table i_alv
                  from mara up to 100 rows.
    endform.
    *  CALL_ALV
    form call_alv.
      data: variant type  disvariant.
      data: repid type sy-repid.
      repid = sy-repid.
      variant-report = sy-repid.
      variant-username = sy-uname.
      perform build_field_catalog.
      perform comment_build using list_top_of_page[].
    * Call ABAP List Viewer (ALV)
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                it_fieldcat        = fieldcat
                i_callback_program = repid
                is_variant         = variant
                it_events          = events[]
                i_save             = 'U'
           tables
                t_outtab           = i_alv.
    endform.
    * EVENTTAB_BUILD
    form eventtab_build using events type slis_t_event.
    * Registration of events to happen during list display
      data: tmp_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = events.
      read table events with key name = slis_ev_top_of_page
                               into tmp_event.
      if sy-subrc = 0.
        move top_of_page to tmp_event-form.
        append tmp_event to events.
      endif.
    endform.
    * BUILD_FIELD_CATALOG
    form build_field_catalog.
      clear: fieldcat. refresh: fieldcat.
      data: tmp_fc type slis_fieldcat_alv.
      tmp_fc-reptext_ddic = 'Material'.
      tmp_fc-fieldname    = 'MATNR'.
      tmp_fc-tabname      = 'I_ALV'.
      tmp_fc-outputlen    = 18.
      append tmp_fc to fieldcat.
    endform.
    * COMMENT_BUILD
    form comment_build using list_top_of_page type
                                            slis_t_listheader.
      data: tmp_line type slis_listheader.
      clear tmp_line.
      tmp_line-typ  = 'H'.
      tmp_line-info = 'Here is a line of text'.
      append tmp_line to list_top_of_page.
      clear tmp_line.
      tmp_line-typ  = 'S'.
      tmp_line-key  = 'Key1'.
      tmp_line-info = 'Here is a value'.
      append tmp_line to list_top_of_page.
      clear tmp_line.
      tmp_line-typ  = 'S'.
      tmp_line-key  = 'Key2'.
      tmp_line-info = 'Here is another value'.
      append tmp_line to list_top_of_page.
    endform.
    * TOP_OF_PAGE
    form top_of_page.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                i_logo             = 'ENJOYSAP_LOGO'
                it_list_commentary = list_top_of_page.
    endform.
    Regards,
    Rich Heilman

  • Pages in ALV grid output and header on everypage

    Hi,
    My report output is displayed in a ALV grid. The output has around 100 records.
    Now , my requirement is to display the output in pages, say 25 records per page and I also want to have the header details for every page.
    How  can I do it?
    Thanks, Shivaa.....

    see following:
    alv grid page break
    ALV Page break?
    how to give a page break in alv grid display after 65 lines are displayed?

  • Check box in ALV only in the header

    Hi,
    This is my requirement:
    I display a list thru ALV_LIST_DISPLAY. I need Check boxes only at certain entries. Suppose i have a sold-to-party and all the ship-to parties(5 entries) associated to it, i need the check box only in the first entry.similarly in the first entry of the next sold-to-party.
    Can this be done thru LIST_DISPLAY, if not thru any other way?
    Thanx in ADV.

    Hi Priya,
    it is possible to provide checkboxes to all the lines (header lines) of the ALV report. But in your case you wanna have checkboxes in peculiar cases and that is not possible.
    If you would like to have check boxes for all the headers then you could very well do that. If you want to have a sample code... write back.
    Reward points if this helps,
    Kiran

  • Put Date Before Header Line in Receiver FCC

    Hi,
    I have to create a csv file with format :
    Date : dd/mm/yyyy to dd/mm/yyyy
    PRODUCT_CODE,NAME,ADDRESS
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    How should i achieve putting the date before header line?
    What should be my target structure format?
    What parameters to enter in receiver FCC?

    Hi,
    have you tried..
    Have you tried:
    (http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm)
    ● NameA.enclosureSign
    Specify a string that acts as a text delimiter.
    Text enclosed by such delimiters is transferred to the target structure unchanged, although the default setting is to remove all text delimiters. Separators within such texts are ignored.
    This parameter is optional. The default setting is an empty value (no text delimiter).
    ● NameA.enclosureSignEnd
    If the text delimiters for the beginning and end of the text are different, specify the text delimiter for the end of the text here.
    If you do not make an entry here, the entry from NameA.enclosureSign is used.
    ● NameA.enclosureSignEscape
    Specify a string that replaces the text delimiter if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSign .
    ● NameA.enclosureSignEndEscape
    Specify a string that replaces the text delimiter for the end of the text if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSignEnd.
    ● NameA.enclosureConversion
    To remove the delimiter upon transfer, or to replace it with escape characters, enter YES. This is the default value.
    To transfer the characters unchanged enter NO.
    Note
    If you specify xml.enclosureSign=“ and xml.enclosureSignEsc=““, text enclosed in quotation marks is transferred unchanged and the quotation marks are removed.
    If the escape character for a quotation mark (““) occurs in the text itself, it is replaced by the quotation mark during the transfer.
    Thanks,
    Vijaya.

  • File adapter PUT operation with header row.

    i have schema generated in the below format.
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
                xmlns:tns="http://TargetNamespace.com/InboundService"
                targetNamespace="http://TargetNamespace.com/InboundService"
                elementFormDefault="qualified"
                attributeFormDefault="unqualified"
                nxsd:version="NXSD"
                nxsd:stream="chars"
                nxsd:encoding="US-ASCII"
                nxsd:hasHeader="true"
                nxsd:headerLines="1"
                nxsd:headerLinesTerminatedBy="${eol}"
    >
      <xsd:element name="Root-Element">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="Record" minOccurs="1" maxOccurs="unbounded">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element name="typdoc" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="~" />
                  <xsd:element name="datdoc" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="~" />
                  <xsd:element name="nomdoc" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="~" />
    but the above schema do not write the header line in the FTP file.
    Each of the element name should work as header row.
    Below is the JCA configuration of the FTP
    <adapter-config name="Payment_Details_FTP" adapter="FTP Adapter" wsdlLocation="Payment_Details_FTP.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
      <connection-factory location="outbound/ftp/test1"/>
      <endpoint-interaction portType="Put_ptt" operation="Put">
        <interaction-spec className="oracle.tip.adapter.ftp.outbound.FTPInteractionSpec">
          <property name="PhysicalDirectory" value="Test"/>
          <property name="FileType" value="ascii"/>
          <property name="Append" value="false"/>
          <property name="FileNamingConvention" value="1C_Extract.out%yyMMddHHmmss%"/>
        </interaction-spec>
      </endpoint-interaction>
    </adapter-config>
    Please let me know if i'm missing some configuration here.
    Regards
    sujan

    Remove "header" related attributes from the "schema" tag.
    ===================================
    nxsd:hasHeader="true"
                nxsd:headerLines="1"
                nxsd:headerLinesTerminatedBy="${eol}"
    ===================================
    And then, define another element like "Record" to read the header data.
    http://docs.oracle.com/cd/E15523_01/integration.1111/e10231/nfb.htm#CHDBECJI

  • Convert ALV to .XLSX including HEAD of ALV

    Hello Guru's
    I have an ALV with columnheaders AND also als a header above with some info and a logo (on screen).
    When i translate this to a XLSX-spreadsheet (CNTRL-SHIFT-F7). There is an .XLSX made
    with data lines, column headers, BUT NO header and NO logo.
    i use the good old:
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM     = GD_REPID
        I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE' "see FORM
        IS_LAYOUT              = GD_LAYOUT
        IT_FIELDCAT            = FIELDCATALOG[]
        I_SAVE                 = 'X'
      TABLES
        T_OUTTAB               = IT_EKKO
      EXCEPTIONS
        PROGRAM_ERROR          = 1
        OTHERS                 = 2.
    in FORM TOP-OF-PAGE
    i fill some data in
    FORM TOP-OF-PAGE.
    *ALV Header declarations
    DATA: T_HEADER TYPE SLIS_T_LISTHEADER,
    fill t_header .......
    and ending this form with
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        IT_LIST_COMMENTARY = T_HEADER.
        I_LOGO = 'Z_LOGO'.
    ENDFORM.   "TOP-OF-PAGE
    Does anyone know what i have to do to get also the header into XLSX.
    Thanx in advance

    Hi  Sreekanth,
    Thanx for testing this.
    Did you test this with your methods or with the methods described in the link of Simone?

Maybe you are looking for

  • IF - THEN - ELSE in RTF Template in MSWord

    I have an adjustment column that I am trying to calculate. <?xdofx:if AC_EARNINGS[REPORTING_NAME='Regular'and RATE_MUL is NULL] then CURRENT_AMOUNT else 0 end if?> When I use this I do not get any errors but do get zeros where I would expect a value.

  • ORA-01031: insufficient privileges and shared memory realm does not exist

    Hi all, I came to a dead end to start oracle 10.2 database. I have searched on google and this forum, none of these solutions work for me. PS, I have installed 11g on my machine too. I have set up ORACLE_SID,ORACLE_HOME to 10.2 database based on the

  • Server Sizing Tool

    Oracle used to have a nice spreadsheet where you could fill in all the information on the size of the data and the number and type of users and it would suggest server configurations. We are planning on upgrading from 8i to 10g with a new server and

  • Envelope Distort Issue

    I'm using envelope distort option under the objects file menu to put some text on a roof top shape but the top of the text is distorting badly. (See attached image) Anyone know why this happen and how to solve this? Any help would be greatly apprecia

  • Infomercials

    I continue to have an infomercial start playing and can find no way to stop it without logging off and logging back in. Whatever it is it doesn't use itunes or any of my running programs. How can I get rid of this problem?