Display a dynamic header

Dear Vinod,
IMHO i don't think this is a spec dumping. I did try to search and even tried hands on it. Unfortunately i didn't get any luck with that.
Morever i'm not asking for any spoon feeding...It's just about some pointer's or any ideas that would help me.
Hope that clarifies much better.
Thanks in advance,
My selection screen has a parameter P_WEEK.
Suppose if user enter's a week no for ex: 5. My ALV header should display as
Week5  Week6  Week7  Week8  Week9  Week10
i.e. Up to next 5 weeks. How to design a ALV that would display a dynamic header?
Any ideas or suggestion would be of great help.
Moderator message : Search for available information. Moved to basic(points-free) forum.
Edited by: Vinod Kumar on Oct 19, 2011 3:37 PM
Edited by: arya.soumya on Oct 19, 2011 12:22 PM
Edited by: Suhas Saha on Oct 19, 2011 4:08 PM

you just try to write below logic in TOP-OF-PAGE routine in your program.
parameter: p_week(3) type c.
Form top_of_page .
do p_week times.
pass the required data to your internal table and append it.

Similar Messages

  • How to display dynamic header title in the report?

    I have a req to display dynamic header title in the report.
    When a id is entered in the prompt text, it will display the user data based on that user_id.
    so similarly....the header title should vary each time when you select different user_id.
    How can we implement this?

    Zack H wrote:
    > Lazaro,
    > It depends on what you want displayed in the heading for each id.
    > Please elaborate.
    > Thanks,
    > Zack H.
    Zack..I have several projects listed under several project id's...
    so when a user selects project id 00164 then it should display something like "Project document for Jon Doe"
    again when the user selects project id as 00192 then it should display something like "project document for Zimmerman"
    Did you get it??

  • Dynamic date display as a heading in module pool

    Dynamic date display as a heading in module pool from a ztable
    the ZTABLE contain the date from which the date value is to be printed as a heading like

    Hi Sreekanth,
    Simply follow below steps:
    1. Create a Input/Output field in screen layout.
    2. Double click on it and 'Attributes' window will get opened.
    3. Give a 'Name' to it (Ex: Text) and under 'Display' tab, tick 2D display and As label on left
    4. Save and Activate.
    5. In PBO, use below code,
    MODULE status_2000 OUTPUT.
      SET PF-STATUS 'DEMO'.        " PF status
      DATA: l_f_date TYPE sy-datum.
      SELECT SINGLE zdate FROM ztable  INTO l_f_date.         " Select Date from ur ZTABLE
      CONCATENATE text l_f_date INTO text SEPARATED BY spce.
    ENDMODULE.                 " STATUS_2000  OUTPUT
    6. In TOP include,
    DATA:  TEXT type string.     " Same name given to  Input/Output field in screen layout.
    7. Save & Activate.

  • Dynamic header in oo alv print_top_of_page based on current line

    I would expect this to be a common problem with the solution easily to google/find, but somehow...
    dynamic header generation during alv print_top_of_page:
    - i print an oo alv grid, sorted by kunnr
    - for each new kunnr a new page
    -> now I want during print-out to: at each top of page, read the first (or any) line of the current page, i.e. the current kunnr, and select data on basis of that kunnr to be written to the header.
    My problem is that sy-tabix is not being filled correctly (always 1).
    Strange thing is that in another report with a non-dynamic itab to display, sy-tabix is actuall being filled more or less correctly. (with the minor drawback that on the first page the tabix might not be 1 but more likely to be 2; but that's easy to fix and for the next pages sy-tabix is correct)
    Kind regards, A

    In the handle_print_top_of_page method, use :
    FIELD-SYMBOLS : <lv_line> TYPE ANY.
    ASSIGN ('(SAPLKKBL)G_INDEX') TO <lv_line>.
    if <lv_line> = 0. "First time, G_INDEX is equal to zero
       <lv_line> = 1.
    So in <lv_line> you will always have the good index of your table.

  • SSRS 2008 R2 - Dynamic header data stays the same when exporting

    I have a SSRS 2008 R2 report with a single Tablix.
    The data is grouped by InvoiceID, with each appearing on a separate page.
    I'm displaying some of the detail data in the group header row using Expressions similar to the following:
    ="Invoice # "  & ReportItems!InvoiceID.Value"
    The data referred to by my ReportItems statements are all hidden in the detail row (Advanced Mode, the Hidden Value for the Static Row Group is set to false).
    When I Preview the report in Visual Studio, everything looks as it should - the dynamic header data changes correctly with each group.
    However, whenever I export the results (I've tried all the formats), the header data is the same for every group - its taking the values from the first group and using it in all the groups.
    I've copied the same expressions into my Totals row, and the data is correct when exported; its only happening in my header rows.
    Any help in resolving this is greatly appreciated, thank you.

    Hi Alex,
    According to your description, you have a header with expression contains ReportItems. Now you find it shows incorrect result when exporting to a file. Right?
    In Reporting Services, it has reported some similar issue that the ReportItem returns unexpected result when exporting.  In this scenario, since you just want to show the group name in each page as a header for detail rows. So you can make the
    detail rows group on the Group. Then delete the Group column but still keep the group. After that add a row above detail row (Out side of group) and put in "=Fields!InvoiceID.Value". Now it will show the corresponding Group name
    when you set page break between each group instance. We have tested this case in our local environment. Here are screenshots for your reference:
    field expressions using ReportItem refrences have unexpected results when exporting
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Variable Text not working as dynamic header in Crystal report

    Dear Experts,
    I'm working Crystal report that connected to Query BEX SAP BW trough SAP integration kit,
    currently i have case that need report dynamic header using variable text from BEX query, but seem the variable text not working in Crystal reports. the header in Crystal report shown as Desription\technical name, not result from the variable text in Query BEX in SAP.
    In https://wiki.sdn.sap.com/wiki/display/BOBJ/Crystal%20Reports%20and%20BW%20query%20elements stated that the "Text variable" with "replacement path" is supported, but i don't know in my query is not working.
    i already set in Database -> options->  table and fields -> Show Both, but the text variable still not working.
    can you help me
    Crystal Reports 2008
    SAP Integration KIT

    Post your question BEX and B1 and classic SAP data source issues to the Integration Kit forum

  • Dynamic Header for a website.    DOUBLE POINTS FOR ANSWER!!

    I don't even know where to start with this one, let me try explain this:
    I am looking for ideas on how to create some sort of dynamic header for an affiliate website, we have launched a new affiliate program for http://www.africancures.com/ the affiliate program is done through 1shoppingcart.com and each affiliate is given an ID like:
    Once the affiliate signs up they choose their own website URL like: mikeshealth.com, then we point the affiliate URL mikeshealth.com to http://www.1shoppingcart.com/app/?af=812264 which in turn comes to our main website: http://www.africancures.com/ now here is where the problem comes in, how do I make the website display Mikes Health instead of African Cures .
    I hope I was able to explain this well enough as it seems to be a bit confusing to me when I write it down. I really hope there is someone out there who has worked on something like this before or if there is someone who thinks they know how to do this.
    Thank you
    So here is something else I was thinking of, but I am not much of a programmer anymore:
    Have a list of all the affiliate ids and their corresponding website names, eg:
    Affiliate ID=812264 Website name= Mikes Health, then when someone comes to the site the jave works out which affiliate id sent them to the site, eg
    Get(AffiliateID)from Refering.URL then Display.Header(AffiliateID) on main page, do you think you could help me now Sabre150?

    I'm still trying to see what this has to do with Java. Each host name such as mikeshealth.com will need to be registered with name servers with the IP address of www.1shoppingcart.com. Your web server will then need to be configured to perform perform any mapping.
    Again, what has this to do with Java?

  • Section Break conflicts with Dynamic Header in RTF which loads XML data

    I have dynamic header in my rtf file which loads data from XML generated by rdf file.
    I have section break on start group of body. but it does not display dynamic header value. If i remove section break then it display dynamic header.
    I have to display dynamic header and section break is also required there.
    Please give me solution of this issue.
    Edited by: user8849418 on Jun 27, 2012 12:05 AM

    flyeminent wrote:
    However in my particular case, the dynamic list is not known until the user choose to view a table. Then move the call from the getter to the bean's action method.

  • Dynamic Header (OBI report)

    I have just started working on OBIE. Need some suggestions. Is there a way to put a dynamic header in the report.
    Eg: I want to display a text in the header as "Sales Report for Alabama" where Alabama is the state coming from the State prompt.
    I dont find any formula editor in the edit Title view. Where can i write a formula to display this text.
    I would appreciate any suggestions.
    Thank You

    You have successfully created your presentation variable in the prompt? I guess it will be something as 'State'
    Now you go to your report and you edit the title view of your report;
    In the title you put @{State} (the name of your presentation variable is case sensitive!)
    Save your report and put it together with the prompt on the dashboard. Once you select a state in the prompt, the report title should change automatically.

  • Dynamic header in oo-alv

    I have a requirement to display  Dynamical  header in ALV.
    I am displaying the SUM of my list in ALV header . This I am able to do , as I can calculate before displaying ALV for the first time.
    But when the user filters the list the SUM should change according to the new entries displayed after filtering .
    How can i do this .
    Line: -
    All the helpful answers will be rewarded for sure.

             fieldname type slis_fieldname,
             tabname type slis_tabname,
             decimals like dfies-decimals,
             intlen like dfies-intlen,
             convexit like dfies-convexit,
             edit_mask type slis_edit_mask,
             lowercase like dfies-lowercase,
             inttype like dfies-inttype,
             datatype like dfies-datatype,
             exception(1) type c,
             no_sign(1) type c,
             or(1) type c,
             order type order,
             cqvalue(5) type c,
             ref_fieldname like dfies-fieldname,
             ref_tabname like dfies-tabname,
             ddic_outputlen like dfies-outputlen,
    The following are the example code for filter settings.
              lv_filter-fieldname = u2018FIELDNAMEu2019.
              lv_filter-valuf_int =  u2018VALUEu2019.
              lv_filter-sign0     = u2018SIGNu2019.
              lv_filter-optio     = u2018OPTIONu2019.
              APPEND lv_filter TO gt_filter_list.
    Where gt_filter_list is of type slis_t_filter_alv.
    This populated internal table is then passed as the import parameter u2018it_filteru2019 of the display ALV FM.
    I hope this help u...!

  • Bex dynamic header problem

    Hi All,
    I have 2 problems..
    1) I have to print the vendor statement of account for 1 year. Now for each vendor the vendor code name and address comes followed by other columns of account information related to it. My requirement is that i want the vendor code name and address to appear in header line and then all other information for that vendor comes beneath it. Meaning the vendor name and address comes in 1st line , and from 2nd line all account information related to that vendor comes. then say on 60th line another vendor name and address comes...and from 61st line accoutn information of the 2nd vendor comes.
    How to do it???
    2) i want to ghet dynamic header in the bex report based on the iunformation filled in the selection option. Eg: if user entered a posting date then that posting date should appear in the report header.
    both these are urgent requirements....Plz help soon
    Thanks & regards

    Hi , thanks for ur reply but the Report designer is not working , givng me error
    RFC destination NOT_CONFIGURED.
    The main problem is i have to display the name and address of Vendor in a separate row i.e. vendor name and address shud appear in the row and then in following rows the other details.
    11000 Shashi Kapoor  Jaipur         31.12.2006     doc no type etc
    12000 Kamla Verma    Mumbai      12.10.2006    doc no type etc
    Now final putput will be like
    Shashi Kapoor
    31.12.2006    .................................
    Kamla Verma
    Thanks .

  • ALV Dynamic header

    Program Title
    Client Name     Run Date/Time :
    Program            : Program Name
    User ID              : Page                  : X of Y
    IC Number:
    RBAF / Reference Number:
    Sub Unit:
    No.|  Position| Leave Taken| From|Leave Taken To| Type of Leave|
    Leave Entitlement| No. Of Leave Taken|     Present Balance of Leave|
    Please help to program dynamic alv header for above format. I have used page break on Pernr but the header is not coming according to pernr. Though I managed
    dynamic header when we press Print Preview. But that is not a solution.

    I did something very similar to your requirement.
    There is a predefined event for Reuse_alv_list_display called 'BEFORE_LINE_OUTPUT'. In the event table, you have to specify the <event>-name = 'BEFORE_LINE_OUTPUT' and the <event>-form = 'ALV_BEFORE_LINE_OUTPUT'.
    Then you need a form like
    FORM alv_before_line_output
      USING ps_lineinfo TYPE kkblo_lineinfo.                    "#EC CALLED
        <prot> TYPE typ_prot.
      READ TABLE gt_prot INDEX ps_lineinfo-tabindex
        ASSIGNING <prot>.
      CHECK g_file_no <> <prot>-file_no.
      g_file_no = <prot>-file_no.
    ENDFORM.                    "alv_before_line_output
    In my program the global table displayed in ALV was gt_prot (of line type typ_prot) and the requirement was to start a new page for each file processed. The form stores the file processed in
    g_file_no. If a new file is processed, a NEW-PAGE will trigger the TOP_OF_PAGE event of the alv. I will not copy the form here because we also issued some statistical values, system and user informations and so on.
    But I hope you get it done.
    The only remaining issue may be that the before_line_output event will cost some time because it is triggered for every output line. But my report was still quite fast.

  • Dynamic Columns with dynamic header colspans

    Hi All,
    Our project requires creation of dynamic data table at runtime. Following are the requirements.
    1.The number of columns and column headers should be dynamic. Basically the column headers are the Month names.
    2.Some or All of the above displayed months can be further split into 3 columns based on further values selected by the user. The months to be split into 3 columns will be identified only at runtime based on some calculations. When this happens, that particular month header should span 3 columns and an additional header for the 3 split columns have to be displayed. Check the screen shot below.
    Year: 2008 | Year: 2009 |
    |Current Month | | |
    Sep | Oct | Nov | Dec | Year Total| Jan |
    | | |2008 |2009 |Total| | |
    Old |New |Total|Old |New |Total | | | | | | |
    Value|Value | |Value|Value| | | | | | | |
    xx | xx | xx | xx | xx | xx | xx | xx | xx | xx | xx | xx |
    -------------------------------------------------------------------------------------------------Points to be noted:
    1.The colspan for the Year header is dynamic based on the months displayed for the previous, current, next year.
    2.The &lsquo;Current Month&rsquo; header is dynamic based on the month selected in the drop-down.
    3.The colspan for the month is dynamic based on whether it is displaying single column or 3 columns
    4.The header for the 3-column split is dynamic based on which are the months to be displayed with 3-column split.
    5. Irrespective of the month selected, DEC is always split into 3 columns.
    Is this achievable in JSF? Please let me know if anyone has worked on a similar requirement.
    Thanks and Regards,

    Hi charishma/Raymond,
    Thanks for your response.
    I checked the link you provided and the code in that page. For me it looks like the colspan and rowspan are set by the user. Can it be done dynamically? I am still not in the development phase. I am still evaluating the possibilities. So it would be great if you can tell me if my requirements will be met with rich faces.
    I am still in the evalution phase of whether this requirement is possible or not?
    In short, my requirement is to display columns dynamically. Based on certain conditions, each of the column can be further split to 3 more columns with 3 sub-headers below the main header. There are 4-5 rows of headers available for which the colspan has to be calculated dynamically depending on the total number of columns.
    The columns should be editable. i.e., the columns contain textboxes where the user can enter data. Again, the editable columns and non-editable columns are determined at run-time based on certain calculations.
    Is this possible? If not, i need reasoning as to why it is not acheivable.
    If it is not at all posible then the client is ready to compromise on the editing part. That is, data entry can be in a pop-up whereas, the the datatable should just display the data dynamically so as to print it for a report.
    Please let me know the possibility of this requirement.
    Thanks and Regards,

  • Displaying Plant dynamically in PI sheet

    I am working on displaying Plant dynamically in PI sheet. In teh SAP provided header, Plant is fixed value. I am working on creating process instruction for displaying plant dynamically depending on teh process order. I dont see a characteristic value for plant. Please advice on how to achieve this.
    Thank You,

    It is PP-PI, Process Instruction sheet

  • Dynamic Header help in PDF Portfolio

    Need some help please, to create and load a Dynamic Header when creating a PDF Portfolio in LiveCycle ES2.  Have input parameter of a [name] and an [image file] to place in the Header.  Process flowing out of Assembler (PDF Generator).  Currently other PDFs being inserted within the Portfolio, and Navigation parameter being received ok, and setting up custom navigation.  Any help w/ creating Dynamic Header is very much appreciated.

    By "Dynamic Header" do you mean the PDF cover page, or the interactive portfolio navigator?
    If its the cover page then it should be a fairly easy thing to do.  You can create a form (XDP or PDF template) with a field for the name and one for the image.  Then you would use something like LC Forms or Form Data Integration to merge the data (image and name) with the template.
    The one thing you would have to do is to put the image and data into an XML format before you merge it with the form. That means you will need to convert the image to a base64 encoded format.  Fortunately there is a built in function for doing the conversion in a SetValue operation (its under Document Object Functions).
    If you are talking about the Navigator (portfolio shell) then it gets a bit more tricky.  The navigator is actually a Flex application and not a PDF.  You'll have to code a new one using Flash Builder, then import the resulting .nav file into your LiveCycle application. Merging the data with it is not something I've done before, but it should be possible (the LiveCycle Interactive Statement Solution Accelerator does something similar).
    If it is new navigator you need, check out some of the following links:
    http://acrobatusers.com/navigator-contest-faq  (for the development software links)

Maybe you are looking for