Dynamic title bar

Hi
experts , can any body tell me how to create dynamic title bar in interactive report
,i.e, suppose we have 17 pages,every page should contain the same heading,
and i have one more question
what are the mandatory things required in data Dictionary for creating table.

top-of-page triggers after every right statement triggers
in basic list,
top-of-page during line selection triggers after every
secondary list display........
see the simple example code :
REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
HEADING.
*TABLES DECLARATION
TABLES : KNA1, VBAK, VBAP.
*SELECT OPTIONS
SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
*INITIALIZATION
INITIALIZATION.
CUST_NO-LOW = '01'.
CUST_NO-HIGH = '5000'.
CUST_NO-SIGN = 'I'.
CUST_NO-OPTION = 'BT'.
APPEND CUST_NO.
*SELECTION SCREEN VALIDATION
AT SELECTION-SCREEN ON CUST_NO.
IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
MESSAGE E001(ZTJ1).
ENDIF.
*BASIC LIST SELECTION
START-OF-SELECTION.
SELECT KUNNR NAME1 ORT01 LAND1 INTO
(KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
FROM KNA1
WHERE KUNNR IN CUST_NO.
WRITE:/1 SY-VLINE,
KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
KNA1-NAME1 UNDER 'NAME',
61 SY-VLINE,
KNA1-ORT01 UNDER 'CITY',
86 SY-VLINE,
KNA1-LAND1 UNDER 'COUNTRY',
103 SY-VLINE.
HIDE: KNA1-KUNNR.
ENDSELECT.
ULINE.
*SECONDARY LIST ACCESS
AT user-command.
IF SY-UCOMM = 'IONE'.
PERFORM SALES_ORD.
ENDIF.
IF SY-UCOMM = 'ITWO'.
PERFORM ITEM_DET.
ENDIF.
*TOP OF PAGE
TOP-OF-PAGE.
FORMAT COLOR 1.
WRITE : 'CUSTOMER DETAILS'.
FORMAT COLOR 1 OFF.
ULINE.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'NAME',
61 SY-VLINE,
63 'CITY',
86 SY-VLINE,
88 'COUNTRY',
103 SY-VLINE.
ULINE.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR SECONDARY LISTS
TOP-OF-PAGE DURING LINE-SELECTION.
*TOP OF PAGE FOR 1ST SECONDARY LIST
IF SY-UCOMM = 'IONE'.
ULINE.
FORMAT COLOR 1.
WRITE : 'SALES ORDER DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'SALES ORDER NO.',
40 SY-VLINE,
42 'DATE',
60 SY-VLINE,
62 'CREATOR',
85 SY-VLINE,
87 'DOC DATE',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR 2ND SECONDARY LIST
IF SY-UCOMM = 'ITWO'.
ULINE.
FORMAT COLOR 1.
WRITE : 'ITEM DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'SALES ORDER NO.',
40 SY-VLINE,
42 'SALES ITEM NO.',
60 SY-VLINE,
62 'ORDER QUANTITY',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*END OF PAGE
END-OF-PAGE.
ULINE.
WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
SY-PAGNO.
SKIP.
*& Form SALES_ORD
*& FIRST SECONDARY LIST FORM
FORM SALES_ORD .
SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
(VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
FROM VBAK
WHERE KUNNR = KNA1-KUNNR.
WRITE:/1 SY-VLINE,
VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
40 SY-VLINE,
VBAK-ERDAT UNDER 'DATE',
60 SY-VLINE,
VBAK-ERNAM UNDER 'CREATOR',
85 SY-VLINE,
VBAK-AUDAT UNDER 'DOC DATE',
103 SY-VLINE.
HIDE : VBAK-VBELN.
ENDSELECT.
ULINE.
ENDFORM. " SALES_ORD
*& Form ITEM_DET
*& SECOND SECONDARY LIST FORM
FORM ITEM_DET .
SELECT VBELN POSNR KWMENG INTO
(VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
FROM VBAP
WHERE VBELN = VBAK-VBELN.
WRITE : /1 SY-VLINE,
VBAP-VBELN UNDER 'SALES ORDER NO.',
40 SY-VLINE,
VBAP-POSNR UNDER 'SALES ITEM NO.',
60 SY-VLINE,
VBAP-KWMENG UNDER 'ORDER QUANTITY',
103 SY-VLINE.
ENDSELECT.
ULINE.
ENDFORM. " ITEM_DET
REPORT demo_list_at_pf.
START-OF-SELECTION.
WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
AT pf5.
PERFORM out.
AT pf6.
PERFORM out.
AT pf7.
PERFORM out.
AT pf8.
PERFORM out.
FORM out.
WRITE: 'Secondary List by PF-Key Selection',
/ 'SY-LSIND =', sy-lsind,
/ 'SY-UCOMM =', sy-ucomm.
ENDFORM.
After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
Secondary List by PF-Key Selection
SY-LSIND = 14
SY-UCOMM = PF06
Example for AT USER-COMMAND
START-OF-SELECTION.
WRITE: 'Basic List',
/ 'SY-LSIND:', sy-lsind.
TOP-OF-PAGE.
WRITE 'Top-of-Page'.
ULINE.
TOP-OF-PAGE DURING LINE-SELECTION.
CASE sy-pfkey.
WHEN 'TEST'.
WRITE 'Self-defined GUI for Function Codes'.
ULINE.
ENDCASE.
AT LINE-SELECTION.
SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
PERFORM out.
sy-lsind = sy-lsind - 1.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'FC1'.
PERFORM out.
WRITE / 'Button FUN 1 was pressed'.
WHEN 'FC2'.
PERFORM out.
WRITE / 'Button FUN 2 was pressed'.
WHEN 'FC3'.
PERFORM out.
WRITE / 'Button FUN 3 was pressed'.
WHEN 'FC4'.
PERFORM out.
WRITE / 'Button FUN 4 was pressed'.
WHEN 'FC5'.
PERFORM out.
WRITE / 'Button FUN 5 was pressed'.
ENDCASE.
sy-lsind = sy-lsind - 1.
FORM out.
WRITE: 'Secondary List',
/ 'SY-LSIND:', sy-lsind,
/ 'SY-PFKEY:', sy-pfkey.
ENDFORM.
When you run the program, the system displays the following basic list with a the page header defined in the program:
You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
Check with below links :
interactive report
http://www.erpgenie.com/abap/ireports.htm
http://www.erpgenie.com/sap/abap/example_code.htm
Check the below link and it explian about top-of-page during line-selection
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/top_of_p.htm
Mandatory thing for creation of table
1. Description of table
2. Delivery class
3 Table should have atelast one field ,should have one primary key
4. Data class ,size category
Thanks
Seshu

Similar Messages

  • Title Bar with Record No

    hi exprerts!!
    i am working on the TITLE BAR in screen programing. i am entering the record No and displaying the screen. Please let me know how to display the Title bar with the record number which i have enter.
    Plz help

    hi,
    use set title statement for your requirement.
    use the following syntax.
    SET TITLEBAR 'TITLE' WITH text.
    in the text u can pass the value dynamically.
    Note: if you double click on the 'TITLE ' it wil ask you is display the some pop up screen for creating the title.
    In TITLE label u just enter the &.
    Hope this will solve your problem.
    if any questions let me know.

  • Page personalization without page title bar

    Hello,
    we have removed our page title bar in order to save space.
    Is there any way to still personalize a page, e.g. through a direct URL to the personalization of a given page, or do I have to enable the page title bar again?

    I imagine it might be possible if you...
    1. Take the relevant code from the Page Title Bar iView (which does not have the source code - I will leave it up to you how you want to "get" the source - not sure of SAP's stance on decompiling).
    2. Then create a java iView with the relevant code in it that will perform the personalize functionality. Add a link in the page to launch the personalize function. This link will launch the "personalize" page/code (you will see this in the JAR). You can heavily leverage the existing code. FYI, the iView utilizes the abstract portal component instead of a JSP page. If you are not used to using these, it may be a little confusing at first.
    3. Add this iView to a page; then save the page as a template. Then use the template for all of your pages.
    It might take a some effort to make it work with the page. I just don't know. In the default way it works, the page title bar iview is outside the page that it relates to. The option I am suggesting, the iview is within the page.
    I haven't done this, but I have created my own page title bar iview so I could add an additional hyperlink in it. When I added it to the framework page, the back and forward links would not enable/work unless I added it above the already-existing page titlebar iView (in the layout), or removed the already-existing iView.  I did not end up using the modified iView, so I never took the time to figure out why.
    Now that I think about this, the above option would probably "push" down your content visually anyway(thus you lose space) unless you move it to Dynamic Navigation instead of the page template, so it may be better just to add back the original iview to the framework page.

  • Fix colour for title bar

    how to make title bar have a fix colour for every OS platform ?

    I think you can.
    Have a look at
    setDefaultLookAndFeelDecorated() in the
    Javadocs of JFrame and JDialog.
    Regards,
    Timno, using LookAndFeel will make the colour of title bar dynamic, i will have different colour for different OS.
    i want to set a specific colour for title bar in top level container component (JFrame or JDialog), then it will be the colour for every OS and the colour will not change even user set different colour scheme.

  • Moving Modal Panels without Title Bars

    We have custom modal dialog boxes without Title Bars that we want to be able to move around the display by dragging and dropping in the usual way but by left clicking on the panel background rather than the title bar.
    Programmatically I appear to have to re-position the front panel and all of the display/control elements on that panel fo every move step, is this right or is there an easier way?
    Does anyone have any thoughts?
    Regards
    Steve
    There are 10 types of people in the world that understand binary, those that do and those that don't.

    Hi Chris,
    you're answer came close, I modified it a bit to be more accurate. The things I've done are:
    move the location reading into the event structure (it's better correlated, in the time-out you had a lag of 10 ms.)
    set the timeout to -1 when the mouse is inside the pane (mouse-enter and mouse-leave events)
    Then I'd thought wouldn't it be nice if this code can be a sub-vi called on a mouse-down event?
    That worked BUT in the subvi there are no events generated on the pane class, althought dynamic registration worked I can't seem to trigger events...
    So the sub-vi works but only because of the time-out case....
    Sorry but i can't add attachments
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Programmatic Windows Title Bar

    Hello,
    I would like to Programmatically change the display of the windows title bar of my application so that it reads the name of the file I currently have open inside of it. I can not find any documentation for dynamic changes, only static ones using the VI properties window. I know this completely possible because I have used LV programs in the past that do this. Is there a vi property that I am missing or something?
    Thanks,
    Glen D

    Here's a vi that shows one way of doing it.
    Attachments:
    Title_bar.vi ‏15 KB
    Title_bard.png ‏3 KB

  • Title Bar stuck under the Menu bar and I cannot select and move it.

    I often arrange windows around the desktop and sometimes I inadvertently push a window up too far and the title bar gets under the menu bar. Once I let go of the arrow, the title bar is too far under the menu bar and I can no longer reach it to move it down. The only solution is to close out the program and start over. Is there a way unbeknownst to me to select the title bar again and move it?
    Sharon

    My E*Trade streaming watch list was stuck under the Menu Bar also. I tried reseting the screen resolution down to 1280 x 1024, and restarting the MarketTrader. There on the display was the stuck window, out from under. I resized and moved it to a central location, and resized the display back to my normal 1920 setting. And to my relief, the window Bar! Thanks Discussion!

  • Clicking on enclosing folder's icon in the title bar doesn't open Finder

    I create PDF booklet from Mellel document using PDF service. Preview application opens newly created PDF document. I Command+click on its icon in the document window's title bar, move cursor one level lower and click on the encompassing folder's ("temp") icon. I expect new Finder's window to open and show me PDF document selected. However, Finder doesn't open. Disk permissions repaired. One week old clean Leopard installation. When I click on the icon in the TextEdit window's title bar and do the same, encompassing Finder's folder opens in a new window. Word also opens Finder window. ONly Preview doesn't work. It used to work at least one month ago. Where the problem could be?

    Please post the solution so it will help others, and mark this topic as "solved" so it is easier to track the status when browsing the forum.

  • How to replace the icon in the title bar and minimized window

    I am not sure if this is a Swing question. But since nobody answered it in the Java Programming forum, let me place it here:
    I would like to set my own icon in the title bar and in the minimized window of my java application, replacing the java coffee cup icon.
    I am using:
    frame.setIconImage(new ImageIcon("image.gif").getImage())
    as was suggested previously in the Java Programming forum at:
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=5212059
    This does create the icon in both places. However, it only works when I run the program from JBuilder 2006. It doesn't work if I run the program from the .jar or the .exe file.
    How can I make it work for my .jar and .exe file?
    Please help! Thanks!

    It doesn't work if I run the program from the .jar...working example for a .jar
    import javax.swing.*;
    import java.awt.*;
    class Testing
      public void buildGUI()
        JFrame f = new JFrame();
        Image img;
        try
          java.net.URL url = new java.net.URL(getClass().getResource("Save.gif"), "Save.gif");//correct capitalization required
          if (url != null)
            img = javax.imageio.ImageIO.read(url);
            f.setIconImage(img);
        catch(Exception e){}//do nothing - default will display
        f.setSize(200,200);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • Why do I have two title bars - one with the title of the page I'm looking at and another with the new orange drop down menu? Plus I can't get FF4 to save my tabs, even when I go to about:config, why is that?

    I downloaded FF4, thinking that it would merely update from my previous installation, but all my tabs were gone. FF looks really weird - here is a link to a picture of it: http://tinypic.com/r/2mwdus4/7 - I have two title bars, my bookmarks toolbar is missing and the tabs are on the bottom. If I go to view => toolbars and click one of them, suddenly the second title bar (with the orange menu) disappers and my bookmarks toolbar comes back (even if I don't click on it in "view"). I can't get the browser to remember my tabs between sessions even though I set it to remember them in my settings. I even changed the browser.showQuitWarning to true in about:config, but it didn't work. What is going on?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • How to get rid of title bar of a quicktime window?

    The main problem:
    I want to display the title info etc about each track as they play in iTunes. How can I do that on an otherwise black screen (desktop) (I don't want to use the visualizer with its psychedelic patterns).
    Background:
    I want to play music from iTunes (many pieces in a row - for like a full day). While this is happening I want the title etc of the tune to be displayed on the screen, like white smallish text against a black background in the lower right hand corner. At the same time I want slides to be displayed on the screen.
    So, with iPhoto I can run a slide show but only while one piece of music is playing.
    Instead I can have the desktop slowly change (from system preferences) with images from a folder every 5 seconds. That's not too bad. Looks good, actually, except for that annoying menu bar at the top! Well, black tape can hide that one (or a second display and move it over there). Now iTunes can play away all day.
    As to how to get the title etc of the song playing displayed I was thinking about somehow extracting it from iTunes with applescript, then paste it into the text track of a quicktime movie, and display that little movie in a small window. I have figured out how to get rid of the controller from the window. But, I can not figure out how to get the title bar of the quicktime window to go away - that is I want a window with nothing around it, neither controllers nor title bar nor anything. How do I create such a window. Any good ideas out there?
    Or is there a totally different way of obtaining the same effect?
    Thanks.
    G4   Mac OS X (10.4.8)  

    Hi,
    You could try posting at the QuickTime discussion area. There might be an iTunes visualizer that allows you to make a slideshow with track info. It has been a while since I tried making a SMIL file, but I think you could do what you want with that. Not sure how you create a streaming text of track information. I would have to do some reviewing.
    gl,

  • How can I get back the title bar in Thunderbird 38?

    The title bar can be turned on and off in Firefox. In the current version of Thunderbird (31), the title bar is present by default and there is no option to turn it off. In the beta version (38), there is no title bar by default… but I can't believe that there's no way to get it back. So, where is this setting? I can't find it.

    I sure agree that the setting isn't easily discoverable, but that's too late for the 38.0 release given that string freezes went in effect already (the reason being that localizers have to translate all UI elements for their respective language).
    The respective [https://bugzilla.mozilla.org/show_bug.cgi?id=814571 bug report] has been up for more than two years, but thus far not much progress in terms of a solution acceptable by the developers. I don't know if the extension proposed in the last comment was ever developed and posted.

  • Change the colour of title bar of frame

    how can we change the colour of title bar of any frame?

    i want to have control of the title bar.there must be some way out.look & feel gives it colour of that perticular types colour(motif,met,native).but i want my choosen colour for it.if you have any direction to solve it please suggest me that.

  • How can I change the color of a title bar?

    Ok, I have been looking for this answer for over a week now and nobody
    has yet given me an answer that works. So I am going to ask again.
    Here is a piece of code you can run to see what I am trying to do:
    public class RemoteDisplayFrame extends JFrame {
    public static final Color GRAY70 = new Color(179, 179, 179);
    public RemoteDisplayFrame() {
    super();
    public RemoteDisplayFrame(String title) {
    super(title);
         public void setBorderContent() {
    this.setUndecorated(true);
    JRootPane rootPane = this.getRootPane();
    rootPane.setWindowDecorationStyle( JRootPane.PLAIN_DIALOG );
    this.setRootPane( rootPane );
    public static void main( String [] args ) {
    RemoteDisplayFrame frame = new RemoteDisplayFrame( "Test Frame" );
    frame.setBorderContent();
    frame.pack();
    frame.show();
    Run this code and you should get a frame on your screen that has no
    close buttons, minimize buttons, or maximize buttons, and no menu.
    I want to change the title bar's color to a specific color.
    That color is GRAY70:
    public static final Color GRAY70 = new Color(179, 179, 179);
    If you have any idea on how to do this please do tell.

    AFAIK, you can't. I believe the title bar is rendered by the operating system, using the colors the user has chosen, consistently for all windows. Frankly, if your app could, it would annoy me, as I would still want all my windows to look consistent.

  • Change the background color of a title bar

    I'd like to know if it's possible to change the background color of a swing application title bar.
    Thanks in advance.

    In Windows I think you can change the overall look of the desktop - Standard Windows comes with a bluish scheme, but you can change that, say to something like greenish. On NT you do it using right click on desktop > Properties > Apperance > Scheme etc etc.
    So I think Frame title colour is very much a OS specified thing.

Maybe you are looking for

  • Adobe premiere CS6 error The application was unable to start correctly (0xc000007b)

    I've googled this problem and followed instructions that I've found online as far as uninstalling and re-installing I've also cleaned the registry but this problem persists.

  • Linking to a Tab in another page which has 3 tabbed panels

    Hi I have created a page which has three tabbed panels.  The first is a horizontal Tabbed panel with two tabs.  Each of these tabs has a vertical tabbed panel with 4 tabs in each. I want to be able to link from another page to the 2nd horizontal tab

  • JDBC receiver channel problem

    Hi..    I am doing File to JDBC scenario, for that i am using MicrosoftSqlServer. Driver----com.microsoft.jdbc.sqlserver.SQLServerDriver Connection------jdbc:microsoft:sqlserver://172.18.133.91:1433;DatabaseName=LMS While executing, in the JDBC recei

  • How to assign a name to the combobox in a report

    Hey guys! I hope you're fine and still have some energy left for another question!? I have a report with several columns. Column f03 is displayed as a text based on an LOV and linked to the database. Now I need to give that combobox in column f03 a n

  • Adding intensity to 3d parametric graph

    I am trying to find a way to add intensity to a 3d parametric graph. I want to use the newest 3d parametrc graph in labview 8.6. So basically, i have my X, Y, and Z data, but i want to be able to change the color depending on values from a 4th input.