Multiple line header for ALV

I am using  CL_SALV_TABLE (List_Display = X) to create a ALV report. I am willing to change it to function module REUSE_ALV_LIST_DISPLAY if it serves my requirement.
The header for the report needs to be multiple lines (8 lines). How can I accomplish this?
I looked into the possibility of using TOP_OF_PAGE event but I will have to hard code the vertical positions of the headers and since it is ALV and you can remove columns at will, I dont think this solution will work. Also if the columns are optimized or output length changed by the user, the positioning of the headers will be ruined.
Currently the header can only be of one line, how can we make the header to display a table of contents.
H1-L1          H2-L1          H3-L1
H1-L2          H2-L2          H3-L2
H1-L3          H2-L3          H3-L3
H1-L4          H2-L4          H3-L4
H1-L5          H2-L5          H3-L5
H1-L6          H2-L6          H3-L6
H1-L7          H2-L7          H3-L7
H1-L8          H2-L8          H3-L8
Thank you.

Please guide me hw to put internal table field at report header in ALV.
this is my field catalog.
wa_fieldcat-row_pos = 1.
  wa_fieldcat-col_pos = 1.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'VBELN'.
  wa_fieldcat-seltext_m = 'SalesOrderNo'.
  wa_fieldcat-outputlen = '10'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
Also i wnt to total 4 field at header level and other is detail level.
Please guide me hw to do.
thnks
Bhavesh

Similar Messages

  • Multiple Lines Header and Records in ALV List

    Dear All,
    I am faced with a wierd user requirement to print multiple line header in ALV. Currently we have a classical report where we are displaying a huge text for example 400 characters in a single cell of a column of the report.
    Now we will have to convert this to ALV report where I need to show that data in a single cell. I am wondering how is it possible in ALV list/grid. Please let me know if you guys have any clue.
    Regards,
    Bikramjit

    Hi,
    Did you find a solution for this?, I am also having a similar requirement.
    If you have any work around please share.
    Thanks.

  • Showing header for ALV tree

    Hi Friends,
    I want to show header for ALV tree.
    Can anybody help me?
    Thanks,
    Rohit

    Hi,
    Go through this code sample:
    U  should give form name in i_callback_top_of_page pararameter of function:
    gd_repid = sy-repid.
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
    i_callback_program = gd_repid
    i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
    i_callback_html_end_of_list = 'END_OF_LIST_HTML'
    i_grid_title = outtext
    is_layout = gd_layout
    it_fieldcat = fieldcatalog[]
    and create a form like this :
    wa_header-typ = 'S'.
    wa_header-key = 'Report '.
    Concatenate sy-repid 'Date : '
    v_date into wa_header-info
    SEPARATED BY CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
    wa_header-info = sy-repid.
    append wa_header to t_header.
    clear wa_header.
    wa_header-typ = 'S'.
    wa_header-key = 'Report Des '.
    wa_header-info = 'ABAP Report templet'.
    append wa_header to t_header.
    clear wa_header.
    wa_header-typ = 'S'.
    wa_header-key = 'SYS ID : '.
    wa_header-info = sy-sysid.
    append wa_header to t_header.
    clear wa_header.
    wa_header-typ = 'S'.
    wa_header-key = 'Client '.
    wa_header-info = sy-mandt.
    append wa_header to t_header.
    clear wa_header.
    Date
    wa_header-typ = 'S'.
    wa_header-key = 'Date '.
    CONCATENATE sy-datum+6(2) '.'
    sy-datum+4(2) '.'
    sy-datum(4) INTO wa_header-info. "todays date
    append wa_header to t_header.
    clear: wa_header.
    wa_header-typ = 'S'.
    wa_header-key = 'Run Time '.
    CONCATENATE sy-uzeit(2) '.'
    sy-uzeit+4(2) '.'
    sy-uzeit+2(2) INTO wa_header-info.
    append wa_header to t_header.
    clear wa_header.
    wa_header-typ = 'S'.
    wa_header-key = 'User ID '.
    wa_header-info = sy-uname.
    append wa_header to t_header.
    clear wa_header.
    Total No. of Records Selected
    describe table it_marav lines ld_lines.
    ld_linesc = ld_lines.
    concatenate 'Total No. of Records Selected: ' ld_linesc
    into t_line separated by space.
    wa_header-typ = 'A'.
    wa_header-info = t_line.
    append wa_header to t_header.
    clear: wa_header, t_line.
    call function 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = t_header
    i_logo = 'logo.gif'.
    endform. "top-of-page
    note : this is populated using FM REUSE_ALV_COMMENTARY_WRITE.
    Hope this will he;lp u.
    Jogdand M B

  • Same material can exist on multiple line items for the same order.

    Hi
    Is there any specific customising setting or web shop setting through which we can restrict user to add same material on multiple line items for the same order ?
    Regards

    No.
    But if this is a must requirement, you can do an elaborate check during order save in ORDER_SAVE BAdI and return error. So, it will be only during order save.
    Eawar Ram
    http://www.parxlns.com

  • F-44  ZBAPI MULTIPLE LINE SELECTIONS FOR WEB SERVICES

    HI TO ALL,
              I HAVE WRITTEN ZBAPI FOR POSTING MULTIPLE LINE SELECTIONS FOR TCODE F-44, THE ZBAPI  CONSIST OF BDC PROGRAM, WHICH IS WORKING IN SAP SYSTEM PERFECTLY BUT WHEN I AM USING IT IN WEB SERVICES IT IS THROWING A  ERROR MESSAGE.
                     PLEASE CAN ANY ONE TELL ME DOES THIS PROCESS WILL WORK OR NOT, IF YES HOW IS IT POSSIBLE

    Hi Gabriel,
    Let me try to answer some of your questions:
    1) The "Requires Secure Access" attribute of a resource handler controls whether this handler must be accessed/consumed only over SSL (HTTPS). Oracle Database Cloud Schema Service is only offered over SSL, so this attribute does not have any effect on RESTful services deployed in this environment (because secure access is always required and there is no other way). That said, if you want to access such web service from your own APEX instance, your instance must have Oracle Wallet configured with appropriate SSL certificate.
    2) The URI parameters are not required. If your web service returns data for many entities (for example, list of employees in employees/), you may not need a parameter. If your web service returns data for one specific entity (for example, details of one employee in employees/{id}), you may want to identify that entity with a URI parameter.
    3) You can have many URI parameters, for example: customers/{id}/orders/{order_id}.
    4) Yes, these are the same HTTP methods/verbs you would use from PHP.
    5) If you are trying this POST example from your own APEX instance (not Oracle Database Cloud Schema Service) and you are trying to access a web service over SSL, then it is likely that the Oracle Wallet used by your instance does not include the required SSL certificate(s), or the Oracle Wallet is not configured at all.
    6) I recommend to check RESTful Web Services for the Oracle Database Cloud white paper and Oracle REST Data Services Developers Guide. Oracle REST Data Services is the technology that enables RESTful services in the Oracle Database Cloud Schema Service.
    You can certainly create your own web services in the Oracle Database Cloud Schema Service and consume them from the same environment.
    Vlad

  • Multiple line selection for RRI  in WAD

    Is it possible to select multiple lines from 1 query and do a RRI to the receiver query. Eg : Select multiple POs and then go to PO details query which shows PO details of multiple POs in WAD and both the results shown in the same web report?
    I tried the below solution, but all I get is the display of the entire Master data dump and not the filtered values. Any suggestion?????
    Rao  
    Posts: 135
    Registered: 6/24/04
    Forum Points: 8 
       Re: Multiple line selection for RRI   
    Posted: Feb 4, 2008 2:22 PM    in response to: LAKSHMI HARINDRAN           Reply 
    Yes. You can do this. You create web template with ANALYSIS web item. In the item parameters of ANALYSIS web item, you can set a property, single line or multiple for the runtime selection. Once you do this, you create a button option or context selection menu option to jump target. In the button (RRI button) in the command sequence, the first command should be SET_SELECTION_STATE_BY_BINDING and then, the RRI command to jump to the target. Hope it will help.
    Venny.

    Hi, Do you have any solution on this. please suggest. Thanks

  • Production order from sales order with multiple line item(for one material)

    Dear Gurus,
    I am working in MTO scenarios. If there is several line item in a sales order for one material, multiple production order( same as no. of sales order line item) is getting created against each of the line item.My requirement is,since the material code is same in each line item and sales order is one, one production order should be generated for all line item. please tell me how to do it.
    (Here for one material, multiple line item is required for some specific reason)
    Regards
    Rajib Pathak

    Hi,
    This is not possible.
    In Std SAP will create one production order for one sales order. The stock is also allocated to thet particular sales order only. Because each and every sales order may vary in any one of the parameters. Considering this, SAP has designed like this.
    Regards,
    V. Suresh

  • List header for alv grid using abap objects

    Hai all,
          I have displayed alv grid in container control using abap objects i.e. using method set_table_for_first_display.
    now i need to display list header for this alv grid.
    please help me how to create with a sample coding.
    Thanks and regards,
    Prabu S.

    Create a splitter using CL_GUI_EASY_SPLITTER_CONTAINER with a top and bottom half.  Put the alv grid in the bottom half.  Use cl_dd_document (documented in help.sap.com )  to build the header in the top half.  Use events on CL_GUI_ALV_GRID to handle the top-of-list printing.
    Or, if available, use CL_SALV_TABLE, and read the documentation on that.  When I needed a header for my report, that's what I did.  There's plenty of good documentation about if you'll search for it.
    matt

  • URGENT: Delivery with multiple line items for a STO

    Hi Gurus,
    We ar ecreating deliveries using VL10b for a STO. Teh TSO has 40 - 50 line items. But the delivery is created with one line item only an dit creates a delivery for each line item. How cna we allow the inclusion of multiple line items in delivery?
    We are using delivery type NL an ditem categor is NLN.
    Geratly appreciate any help in that.
    Thanks,
    KHAN

    The problem you face is called 'Delivery split'.
    For the STO scenario, one common cause is different delivery dates (in the past) in the STO line items. If so, then you should refer to SAP Note 377501 (from where I quote below):
    You can implement the source code specified in the correction instructions in copy routine 301 (or a copy of this routine in the customer namespace). This correction ensures that when you transfer data form the preceding document, backlogged delivery dates or goods issue dates are set to the current date. This prevents the system form performing a delivery split.
    Then a rescheduling of the delivery occurs. Since forward scheduling occurs for backlogged delivery items (that is, the picking date or the transportation planning date is set to the current date), the manipulation of the delivery date or goods issue date in the copy routine does not affect the result of the scheduling.
    If the dates are not the problem, then this Note refers to other Notes which deal with this problem, and should definitely solve your problem.
    Regards
    Nikhilesh

  • Header for alv block list

    Hi experts,
    im trying to build an alv report with block, and after some hours i finally get how it works but the report has 5 blocks .. and 1 header for all the report...and 1 title for each block
    the thing is that for each block theres are their events.. so if i use the TOP OF PAGE that good for each block title, but how can i put a general HEADER for all the report
    its something like this
    Report 0001              DATE
    title 1(top of page)
    alv_list1
    title 2(top of page)
    alv_list2
    title 3(top of page)
    alv_list3
    so... guys im kinda a noobie in alvs so i apreciated any ideas...
    thans in advance

    thx darek,
    but im working with alv LIST blocks .. and each block has top of page and top of list...
    im looking  for a top of list , for say, of all the report, of all the blocks...
    anyone?
    thanks in advance

  • Multiple line header

    Hi gurus
    Apart from normal header with fields..my requirement is to pass the one header section from report which consist of 3-4 lines ..
    then header as usual with fields and data ..
    detail----
    detail--detail--
    detail
    f1              f2                f3
    row1----
    row2----
    please help..
    regards

    I don't think it is possible... You can either have it or don't...
    Anyway, if you do that then do share with us...
    You can disable the default header by setting slis_layout_alv-no_colhead = 'X', then use your own code in TOP-OF-PAGE event to build customize header... that can be multiple line...

  • Multiple line selection for RRI

    Is it possible to select multiple lines  from 1 query and do a RRI to the receiver query. Eg : Select multiple POs and then go to PO details query which shows PO details of multiple POs.
    Also when you do a RRI from 1 q to other , does the filter criteria of 2nd query pop up to the user ?
    thanks in advance ,
    LH

    Hi Lakshmi,
    Yes, it is possible to select multiple lines from one query. It means as you said, if you select multiple PO's i.e., Po's belong to a customer. If 10 PO's belong to single customer, then if you select that customer and Goto RRI in the report, you will get the details of all those 10 PO's in the RRI report. This is done in RSBBS tcode>After creating RRI>Assignment details-->Map the required fields of sender to the reciever queries according to the need.
    When you use RRI, the reciver query, i.e., the second query will contain the filter selection as usual in the normal report when executed.
    Hope this helps u...
    Regards,
    KK.

  • Displaying Multiple Row Header for Matrix...

    Hi
           Can you please tell me, whether we can display Multiple row headers for the Matrix object same as that in the Posting Period SAP Form...
    Please check the Link: http://img198.imageshack.us/img198/3491/postingperiodform.jpg..
    Thanking you in advance...
    Thanks
    Hari

    I am extremly sorry...Please check the following link...
    Link Address : http://www.freeimagehosting.net/image.php?d499726589.jpg
    Edited by: hari angamaly on Jun 17, 2009 1:20 PM
    Edited by: hari angamaly on Jun 17, 2009 1:21 PM

  • Multiple column heading for sql that returns single column

    Hi All,
    I have just started using APEX and my apex version is 3.2.0.00.27.
    We have a report that displays the output from a query similar to the below one. We are using borderless template and removed the "before each row" and "after each row" values to allow the output displayed in table format.
    Now we wanted to include heading for each column displayed in table. We wanted to include headings from a derived value, Example for column1 , heading need to display the sysdate and column2 heading should be sysdate-1 and so on.  But the column attribute tab is having only one column My_rep. Not sure how to se pl/sql type column heading in this case. Could someone please help me to achieve this?
    Please let me know if I have missed to provide any other details. Thanks in advance.
    select '<tr>
        <td>' || column1    || '</td>' ||
        <td>' || column2    || '</td>' ||
        <td>' || column3    || '</td>' ||
        <td>' || column4    || '</td>' ||
        || '</tr>' My_rep
    from mytable

    22335813-cfb0-46c4-9bef-b61a46f0de67 wrote:
    Please update your forum profile with a real handle instead of "22335813-cfb0-46c4-9bef-b61a46f0de67"
    I have just started using APEX and my apex version is 3.2.0.00.27.
    Upgrading from this unsupported version to the current 4.2 release is recommended.
    When you post a question, always include the following information in addition to the full APEX version number:
    Full database version, edition and host OS
    Web server architecture (EPG, OHS or APEX listener), server platform, and host OS
    Browser(s)/version(s) used
    UI/Theme
    Templates
    Region type (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. To get a detailed answer then it's appropriate for the questioner to take on a significant part of the effort by reproducing the problem on apex.oracle.com before asking for assistance with specific issues, which can then be seen at first hand in a real APEX environment.
    we wanted to get a report in Apex with the below format. and we wanted to change background color of each cell depends on the combination of code||status
    Heading        sysdate             sysdate-1              sysdate-2                              ...(sysdate-30
    ======        ======          ========               =======
    name         code||status                                   code||status
    name                                  code||status
    we are using the below query to get this table format. But heading is the issue we are facing now
    select '<tr>
        <td>' || name    || '</td>' ||
        '<td style=background-color:' || case when sysdate0='0C' then 'Green' when sysdate0='0I' then 'Red'     when (substr(sysdate0,1,1)!='0' and substr(sysdate0,1,1)='I') then 'Orange'  else 'Yellow' end || '>  &nbsp'  || sysdate0 || '  &nbsp</td>'  ||
        || '</tr>' repcolumn
    from
      (select
            a.name,
            max(decode(trunc(a.ardate),trunc(sysdate), a.code||a.STATUS , '' ))   sysdate0,
            max(decode(trunc(a.ardate),trunc(sysdate-30), a.code||a.STATUS , '' )) sysdate30
    from
            mytab a
    where
            a.ardate>=sysdate-30
    group by a.name)
    See Re: Matrix report for a custom report template-based solution to a similar problem, with dynamically generated column headings.

  • Multiple line items for the same POs in MD04

    Hi,
    There is Purchase Order created for a material with other 5 line items.
    When checking MD04 for a material it is showing multiple records with the same Purchase Order and the corresponding item number in the Purchase Order correctly, but with different quantities in each line in MD04 randomly.
    I am unable to understand the reason for this strange behaviour.
    Thanks
    Ramakanth
    Edited by: Ramakanth Y. on Jan 20, 2009 4:04 PM

    No.
    But if this is a must requirement, you can do an elaborate check during order save in ORDER_SAVE BAdI and return error. So, it will be only during order save.
    Eawar Ram
    http://www.parxlns.com

Maybe you are looking for

  • Deleting Sales Order in CRM and connected R/3 - Help needed

    I have a sales order created from the E-commerce scenario in CRM and has reflected in the R/3 system also. Now I want to delete thi sales order from the systems. I had cancelled this sales order from the webshop and thus the status in shown as comple

  • Use of Timezone and method inDaylightTime

    I'm trying to find date and time for DST start for a timezone. I use Java classes TimeZone and GregorianCalendar. To find out which date and time is DST I use the method timeZone.inDaylightTime(date). The code that is shown below finds the correct da

  • ODI 10.1.3.6 Import Issue. Help Needed

    I have old back up of ODI 10.1.3.6 (Master and Work Repository) and want to import these into new install of ODI 10.1.3.6 on my PC. I have successfully imported the Master Repository. But I forgor the password of work repository so I can not import t

  • Generic component in a List

    I would like to know how I can insert a generic component (like a Canvas whit image and label) in a List visual component. Is it possible or there's another way for to do a list of component ?

  • How to disable image previews

    In the Windows client there is an option to disable image previews with Tools -> Options -> IM settings -> Show advanced options. Uncheck the option: "Show images in conversations". In the Mac client there is no such option. How to disable image prev