Top of List event when using class cl_salv_hierseq_table

Hi all,
  I am using above class to display Top of List .
I am to able to display one line at top using following :
gr_hierseq->set_top_of_list( lr_content ).
But i have to display 5 lines in top of list.
Please let me know how can this be achieved.
Thanks and Regards,
Taranam

Wow, that example did suck.  Sorry for that.  I have spent a little time revising the example program into such a form that you can easily see what you need to do.  SO here it is, hope it helps.   Pay close attention to the implementation of the on_top_of_page event handler method.
REPORT zsalv_demo_hierseq_form_events NO STANDARD PAGE HEADING.
TYPES: BEGIN OF g_type_s_master.
INCLUDE TYPE alv_chck.
TYPES:   expand   TYPE char01,
       END OF g_type_s_master,
       BEGIN OF g_type_s_slave.
INCLUDE TYPE alv_t_t2.
TYPES: END   OF g_type_s_slave.
TYPES: BEGIN OF g_type_s_test,
         amount      TYPE i,
         repid       TYPE syrepid,
         top_of_list TYPE i,
         end_of_list TYPE i,
       END OF g_type_s_test.
CONSTANTS: con_master TYPE lvc_fname VALUE 'ALV_CHCK',
           con_slave  TYPE lvc_fname VALUE 'ALV_T_T2'.
*... §5 Definition is later
CLASS lcl_handle_events_hierseq DEFINITION DEFERRED.
DATA: gs_test TYPE g_type_s_test.
DATA: gt_master TYPE STANDARD TABLE OF g_type_s_master,
      gt_slave  TYPE STANDARD TABLE OF alv_t_t2.
DATA: gr_hierseq TYPE REF TO cl_salv_hierseq_table.
*... §5 object for handling the events of cl_salv_table
DATA: gr_events_hierseq TYPE REF TO lcl_handle_events_hierseq.
*       CLASS lcl_handle_events DEFINITION
CLASS lcl_handle_events_hierseq DEFINITION.
  PUBLIC SECTION.
    METHODS:
      on_top_of_page FOR EVENT top_of_page OF cl_salv_events_hierseq
        IMPORTING r_top_of_page page table_index.
ENDCLASS.                    "lcl_handle_events DEFINITION
*       CLASS lcl_handle_events IMPLEMENTATION
CLASS lcl_handle_events_hierseq IMPLEMENTATION.
  METHOD on_top_of_page.
    DATA: lr_content TYPE REF TO cl_salv_form_element.
    DATA: lr_grid   TYPE REF TO cl_salv_form_layout_grid,
           lr_grid_1 TYPE REF TO cl_salv_form_layout_grid,
           lr_grid_2 TYPE REF TO cl_salv_form_layout_grid,
           lr_label  TYPE REF TO cl_salv_form_label,
           lr_text   TYPE REF TO cl_salv_form_text,
           l_text    TYPE string.
*... create a grid
    CREATE OBJECT lr_grid.
*... in the cell [1,1] create header information
    CONCATENATE 'TOP_OF_PAGE' text-h01 INTO l_text SEPARATED BY space.
    lr_grid->create_header_information(
      row    = 1
      column = 1
      text    = l_text
      tooltip = l_text ).
*... add a row to the grid -> row 2
    lr_grid->add_row( ).
*... in the cell [3,1] create a grid
    lr_grid_1 = lr_grid->create_grid(
                  row    = 3
                  column = 1 ).
*... in the cell [1,1] of the second grid create a label
    lr_label = lr_grid_1->create_label(
      row     = 1
      column  = 1
      text    = 'Number of Records'
      tooltip = 'Number of Records' ).
*... in the cell [1,2] of the second grid create a text
    lr_text = lr_grid_1->create_text(
      row     = 1
      column  = 2
      text    = gs_test-amount
      tooltip = gs_test-amount ).
    lr_label->set_label_for( lr_text ).
*... in the cell [2,1] of the second grid create a label
    lr_label = lr_grid_1->create_label(
      row    = 2
      column = 1
      text    = 'Output Tool'
      tooltip = 'Output Tool' ).
*... in the cell [2,2] of the second grid create a text
    lr_text = lr_grid_1->create_text(
      row    = 2
      column = 2
      text    = 'Seq List'
      tooltip = 'Seq List').
    lr_label->set_label_for( lr_text ).
*... in the cell [2,1] of the second grid create a label
    lr_label = lr_grid_1->create_label(
      row    = 3
      column = 1
      text    = 'Another Label'
      tooltip = 'Another Label' ).
*... in the cell [2,2] of the second grid create a text
    l_text = text-t15.
    lr_text = lr_grid_1->create_text(
      row    = 3
      column = 2
      text    = 'Another Text'
      tooltip = 'Another Text').
    lr_label->set_label_for( lr_text ).
*... content is the top grid
    lr_content = lr_grid.
*... set the content
    r_top_of_page->set_content( lr_content ).
  ENDMETHOD.                    "on_top_of_page
ENDCLASS.                    "lcl_handle_events IMPLEMENTATION
* SELECTION-SCREEN                                                     *
SELECTION-SCREEN BEGIN OF BLOCK gen WITH FRAME.
PARAMETERS:
p_amount TYPE i DEFAULT 30.
SELECTION-SCREEN END OF BLOCK gen.
* START-OF-SELECTION                                                   *
START-OF-SELECTION.
  gs_test-amount = p_amount.
  gs_test-repid = sy-repid.
*... §1 select data into global output table
  PERFORM select_data.
* END-OF-SELECTION                                                     *
END-OF-SELECTION.
  PERFORM display_hierseq.
*&      Form  select_data
* §1 select data into your global output table
FORM select_data.
  FIELD-SYMBOLS: <ls_master> TYPE g_type_s_master.
  DATA: lt_slave TYPE STANDARD TABLE OF g_type_s_slave.
  SELECT * FROM (con_master)
    INTO CORRESPONDING FIELDS OF TABLE gt_master
    UP TO gs_test-amount ROWS.                              "#EC *
  LOOP AT gt_master ASSIGNING <ls_master>.
    SELECT * FROM (con_slave) INTO CORRESPONDING FIELDS
               OF TABLE lt_slave
               UP TO gs_test-amount ROWS
               WHERE carrid EQ <ls_master>-carrid
                 AND connid EQ <ls_master>-connid.          "#EC *
    APPEND LINES OF lt_slave TO gt_slave.
  ENDLOOP.
ENDFORM.                    " select_data
*&      Form  display_hierseq
*       text
FORM display_hierseq.
  DATA:lt_binding TYPE salv_t_hierseq_binding,
       ls_binding TYPE salv_s_hierseq_binding.
  DATA:lr_functions TYPE REF TO cl_salv_functions_list.
  DATA:lr_columns TYPE REF TO cl_salv_columns_hierseq,
       lr_column  TYPE REF TO cl_salv_column_hierseq.
  DATA:lr_level TYPE REF TO cl_salv_hierseq_level.
*... create the binding information between master and slave
  ls_binding-master = 'MANDT'.
  ls_binding-slave  = 'MANDT'.
  APPEND ls_binding TO lt_binding.
  ls_binding-master = 'CARRID'.
  ls_binding-slave  = 'CARRID'.
  APPEND ls_binding TO lt_binding.
  ls_binding-master = 'CONNID'.
  ls_binding-slave  = 'CONNID'.
  APPEND ls_binding TO lt_binding.
*... §2 create an ALV hierseq table
  TRY.
      cl_salv_hierseq_table=>factory(
        EXPORTING
          t_binding_level1_level2 = lt_binding
        IMPORTING
          r_hierseq               = gr_hierseq
        CHANGING
          t_table_level1           = gt_master
          t_table_level2           = gt_slave ).
    CATCH cx_salv_data_error cx_salv_not_found.
  ENDTRY.
*... Functions
*... activate ALV generic Functions
  lr_functions = gr_hierseq->get_functions( ).
  lr_functions->set_all( abap_true ).
*... *** MASTER Settings ***
  TRY.
      lr_columns = gr_hierseq->get_columns( 1 ).
    CATCH cx_salv_not_found.
  ENDTRY.
*... set the columns technical
  TRY.
      lr_column ?= lr_columns->get_column( 'MANDT' ).
      lr_column->set_technical( if_salv_c_bool_sap=>true ).
    CATCH cx_salv_not_found.                            "#EC NO_HANDLER
  ENDTRY.
*... set expand column
  TRY.
      lr_columns->set_expand_column( 'EXPAND' ).
    CATCH cx_salv_data_error.                           "#EC NO_HANDLER
  ENDTRY.
*... set items expanded
  TRY.
      lr_level = gr_hierseq->get_level( 1 ).
    CATCH cx_salv_not_found.
  ENDTRY.
  lr_level->set_items_expanded( ).
*... *** GENERAL Settings ***
*... register to the events for top-of-page and end-of-page
  DATA: lr_events TYPE REF TO cl_salv_events_hierseq.
  lr_events = gr_hierseq->get_event( ).
  CREATE OBJECT gr_events_hierseq.
  SET HANDLER gr_events_hierseq->on_top_of_page FOR lr_events.
*... display the table
  gr_hierseq->display( ).
ENDFORM.                    "display_hierseq
REgards,
RIch Heilman

Similar Messages

  • Error When Using Class :(

    Hey,
    Class:
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        public class Main extends MovieClip
            public var enemyA:Array = [];
            public var birdA:Array = [];
            public var rowNum:int = 2;
            private var gap:int = 100;
            private var obj_no = 2;
            public var enemy1:mychar = new mychar();
            public var TheBird:BirdChar = new BirdChar();
            public function Main()
                // constructor code
                createEnemyF();
                createBirdF();
                this.addEventListener(Event.ENTER_FRAME,loopF);
            public function createEnemyF()
                for (var i:int = 0; i < rowNum; i++)
                    for (var j:int = 0; j < obj_no; j++)
                        enemy1.x = Math.random() * stage.stageWidth - enemy1.width;
                        enemy1.y = - i * (gap + enemy1.height) - 30.65;
                        enemyA.push(enemy1);
                        addChild(enemy1);
            public function createBirdF() {
                TheBird.x = 270.95;
                TheBird.y = 350.95;
                birdA.push(TheBird);
                addChild(TheBird);
            public function loopF(event:Event) {
                updateEnemyPositionsF();
                updateBirdPositionsF();
                hitTestF();
            public function updateEnemyPositionsF() {
                enemy1.y +=  2;
            public function updateBirdPositionsF() {
                TheBird.x = mouseX;
            public function hitTestF() {
                if(TheBird.hitTestObject(enemy1))
                    gotoAndPlay(5);
                    trace('The Bird Hit Enemy 1');
    This conflicts and causes this error:
    1046: Type was not found or was not a compile-time constant: MouseEvent
    ^ ^ Code repeats to all of my event listeners
    Thanks for your time.

    Thanks, i thought it might be this because of previous problems but i seen i already had : import flash.events.Event; so i thought that would be OK!
    Second Error:
    1180: Call to an undefined method Timer.
    I think this is the same sort of thing but what to import to fix this?
    So far these are my imports:
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.events.TimerEvent;
    Thanks for helping.
    Date: Thu, 3 Nov 2011 05:36:22 -0600
    From: [email protected]
    To: [email protected]
    Subject: Error When Using Class
        Re: Error When Using Class
        created by markerline in Flash Pro - General - View the full discussion
    Looks like you imported events.Event but not events.MouseEvent (or some similar syntax) basically you must import MouseEvents separately from other Events.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4005227#4005227
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4005227#4005227. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Flash Pro - General by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Hi there, i purchased an app called Top Movies. But when using it on my iPhone to buy movies, it gives me the error 'Your request could not be completed'. Please help.

    Hi there, i purchased an app called Top Movies. But when using it on my iPhone to buy movies, it gives me the error 'Your request could not be completed'. Please help.

    Ok.. I see the app now in iTunes.
    Best thing to do is email the developer of that app.
    You can do that here >  http://www.lymobilesoft.com/contact.html
    Make sure and tell them exactly what the error says: 
    it gives me the error 'Your request could not be completed'.
    Instead of using a third party app, you can download movies directly from the iTunes store.

  • ClassNotFoundException when using Class.forName(), thx

    in a study app, i try to use Class.forName() to load any class then get its properties (fields, methods etc. vs reflect).
    the (Frame based) app is in directory:
    c:\app\StudyApp.class
    there is a "Open class" button on the app, click the button, i use FileChooser to open any class file.
    i.e. open a class (assume it is not packaged)
    d:\dir\TheClass.class
    coding in StudyApp.java is:
    Class cls=Class.forName("TheClass");
    now a ClassNotFoundException throws when call Class.forName() above.
    it is easy to understand why throw the exception because i never tell where the class is. it is in directory
    d:\dir
    my question is: how to tell VM the directory.
    the directory d:\dir can not be applied to -classpath when run java.exe StudyApp, because the directory is random one at run-time.
    i tried to change System property (i.e. "java.class.path", 'user.dir" etc. none of them can fix the problem.
    thanks in advance for any help

    This probably does a lot more than you need:
    import java.util.*;
    import java.io.*;
    import java.util.jar.*;
    import java.lang.*;
    public class ClassFileFinder extends ClassLoader
         List cpath = new LinkedList();
         void addFile(File f) {
              if(f.isDirectory() || (f.isFile() && f.canRead() &&
                                          f.getName().endsWith(".jar")))
                   cpath.add(f);
         public byte[] classData(String className)  {
              String cname = className.replace('.', File.separatorChar) + ".class";
              Iterator it = cpath.iterator();
              while(it.hasNext()) {
                   File f = (File)it.next();
                   try {
                        if(f.isDirectory()) {
                             File cFile = new File(f, cname);
                             if(cFile.isFile()) {
                                  byte[] buf = new byte[(int)cFile.length()];
                                  InputStream in = new FileInputStream(cFile);
                                  int off  = 0, l;
                                  while((l = in.read(buf, off, buf.length - off)) > 0) {
                                       off += l;
                                       if(off >= buf.length) break;
                                  in.read(buf);
                                  in.close();
                                  return buf;
                        } else if (f.isFile()) {
                             JarFile jar = new JarFile(f);
                             JarEntry ent = jar.getJarEntry(cname);
                             if(ent != null) {
                                  byte[] buf = new byte[(int)ent.getSize()];
                                  int off = 0, l;
                                  InputStream in = jar.getInputStream(ent);
                                  while((l = in.read(buf, off, buf.length - off)) > 0) {
                                       off += l;
                                       if(off >= buf.length) break;
                                  in.close();
                                  return buf;
                   } catch (IOException e) {
              return null;          
         public Class findClass(String className) throws ClassNotFoundException{
              byte[] data = classData(className);
              if(data == null)
                   return getParent().loadClass(className);
              else
                   return defineClass(className,data,0, data.length);
    }Create an instance, Add directories and/or jar files with addFile then loadClass the class you want.

  • TS3999 can't see times of my icloud calendar events when using month view...

    I use a macbook pro and like to view my icloud calendar using month view so I can see the whole month at a glance.
    It used to be that when I viewed my calendar using Google Chrome, the time of each event would show next to the event name. Recently, this changed and now the month view just shows the events, not the times. This is also true for my macbook ical - month view only shows events, no times.
    Is there an option to allow the times to show when using month view? I looked in preferences and didn't see one.
    Also, as a side note, I tested in Firefox and the times DO show when using month view. I just prefer using my ical or chrome, so would love to figure out a way to fix there.
    thanks for any help!

    I was able to see some posts after I made mine and I found the answer to the macbook ical issue.
    https://discussions.apple.com/message/15378887#15378887
    would still love any input on the google chrome issue. If anyone knows how to show event times in chrome, I'd love to hear how!
    thanks.

  • Is it possible to set default column widths in list view when using a finder window in Mavericks?

    The default 'document' column is way too wide and forces you eye to track all the way across the screen to read info like "date modified', 'kind' or 'size'.
    Tried several times to create a narrower default 'document name' column with no results. Couldn't find anything in preferences or view options. Tried dragging column headers while holding the down the option key with no results. 
    Every time I open a new finder window, all columns except the 'document' column affixed to the right side of the window. Also, when you grab the bottom right corner of a window to resize smaller, the lists become re-affixed to the right side of the window when opening the window back up.
    Experiencing the same problem in Mavericks 10.9.3 on an iMac and Macbook Pro Retina.
    Thanks if you've made it this far:)

    This was a great place for me to start
    Thank you
    I took profdant139's suggestions a bit further as my real goal was to have the "Document column" narrower. The goal to be able to see all the other document info that was usually hidden way out to the right
    To achieve my results I right clicked in the upper bar with the column names and chose from the drop down box "comments" column (as suggested). I then dragged it to the far right. This pushed all the other columns over.
    In the end of the day I ended up adding "Size" and "Date modified" columns as well to get my desired results.
    Remember one can move different columns around to be in the order you need by clicking on the column to get it active and then left click and drag it to where you want
    Another great thing is that by default (Using Mavericks) the date modified, opened,created columns have date and time. One can shrink them down to xx/xx/xx format by manually adjusting the column width like one does in Excel - click on column separator up top and drag
    Once all that is done, at least on my box, I closed it out and opened up a new finder window and everything was as I wanted.
    Thank you for the help  from the above helper to get me here

  • I currently having problems when dialling with my 4S either from the contacts list, or when using the phone through bluetooth to my in-car system. The phone becomes confused regarding what method / route of connection handsfree, normal use or speaker.

    Hi each time i use my 4S phone a dial from the contact list, the phone will not select a communication mode, either normal speaker or handsfree (car), I have to force the phone into speaker mode and the back to normal mode before I can speak to or listen to anyone. The annoying aspect is the recipient of my call can answer but cannot hear me nor I them.
    What am I doing wrong, or is there an issue with the phone. The same situation occurs when the phone is used with bluetooth in my car, the previous iphone worked perfectly can you please advise.

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • Problems with the margin in then top of the page when using subtemplates

    Hi,
    I have a main template (made by Word) where i have in the header section the following statement
    <?choose:?><?when:R_LANG='EN'?> <?call-template:otsikko_EN?> <?end when?><?otherwise:?>
    <?call-template:otsikko_FISE?> <?end otherwise?><?end choose?>
    it works but it makes a different margin in the top of the page depending on which template is called.
    Can anyone help me to solve this problem?
    BR
    Tiina

    When you call subtemplate, it will replace and do what sub-template has to do.
    OPTION 1:
    if its showing diff margin for diff sub-template, then make sure, all sub template have same margin and should look alike in the content and frame.
    OPTION 2:
    if you think there is extra line then use the follwoing to avoid it.
    <?call-template@inlines:TEMPLATE_NAME?>

  • Question about static context when using classes

    hey there.
    i'm pretty new to java an here's my problem:
    public class kreise {
         public static void main (String[] args) {
             //creating the circles
             create a = new create(1,4,3);
             create b = new create(7,2,5);
             System.out.println(a);
             System.out.println(b);
             //diameters...unimportant right now
             getDiameter a_ = new getDiameter(a.radius);
             getDiameter b_ = new getDiameter(b.radius);
             System.out.println(a_);
             System.out.println(b_);
             //moving the circles
             double x = 2;
             double y = 9;
             double z = 3;
             a = create.move();
             System.out.println(a);
    }creating a circle makes use of the class create which looks like this:
    public class create {
        public double k1;
        public double k2;
        public double radius;
        public create(double x,double y,double r) {
            k1 = x;
            k2 = y;
            radius = r;
        public create move() {
            k1 = 1;
            k2 = 1;
            radius = 3;
            return new create (k1,k2,radius);
        public String toString() {
        return "Koordinaten: "+k1+" / "+k2+". Radius: "+radius;
    }now that's all totally fine, but when i try to usw create.move to change the circles coordinates the compiler says that the non-static method move() can't be referenced from a static context. so far i've seen that my main() funktion MUST be static. when declaring the doubles k1, k2, and radius in create() static it works, but then of course when having created the second circle it overwrites the first one.
    i pretty much have the feeling this is very much a standard beginner problem, but searching for the topic never really brought up my problem exactly. thanks in advance!

    You can't access a non-static method from within a static context. So, you have to call move() from outside of the main method. main has to be static because, in short, at least one method has to be static because there haven't been any objects initialized when the program is started. There are more fundamental problems than with just the static context issue.
    I'm confused by your code though. You call create.move(), but this would only be possible if move() was static, and from what I see, it's not. Now that's just one part of it. My second issue is that the logic behind the move() method is very messy. You shouldn't return a newly instantiated object, instead it should just change the fields of the current object. Also as a general rule, instance fields should be private; you have them as public, and this would be problematic because anything can access it.
    Have you heard of getters and setters? That would be what I recommend.
    Now, also, when you are "moving" it, you are basically creating a new circle with completely differently properties; in light of this, I've renamed it change(). Here would be my version of your code:
    public class CircleTester {
        public static void main (String[] args)
             //Bad way to do it, but here's one way around it:
             new CircleTester().moveCircle();
        private void moveCircle()     //really a bad method, but for now, it'll do
            Circle a = new Circle(1,4,3);
            Circle b = new Circle(7,2,5);
            System.out.println(a);
            System.out.println(b);
            //diameters. Don't need to have a new getDiameter class
            double a_ = a.getRadius() * 2;     //Instead of doing * 2 each time, you could have a method that just returns the radius * 2
            double b_ = b.getRadius() * 2;
            System.out.println(a_);
            System.out.println(b_);
            //move the circle
            a.change(2,9,3);
            System.out.println(a);
    public class Circle {
        private double k1;
        private double k2;
        private double radius;
        public Circle(double x,double y,double r)
            k1 = x;
            k2 = y;
            radius = r;
        public void change(int x, int y, int r)
            k1 = x;
            k2 = y;
            radius = r;
        public String toString()
             return "Koordinaten: "+k1+" / "+k2+". Radius: "+radius;
        public double getRadius()
             return radius;
    }On another note, there is already a ellipse class: http://java.sun.com/j2se/1.5.0/docs/api/java/awt/geom/Ellipse2D.html

  • Dimension DATASRC Blank when list, Available when used hierarchy

    Hi gurus,
    We are facing a weird issue in SAP BPC 10 NW.We have created the dimension called DATASRC.When we try listing using the list functionality available at the right hand side of the screen when inside the dimension,it shows blank.however when we use the hierarchy option, it shows the data.
    We are not sure as to why this is happening.Could you please suggest/advise.
    l
    Thanks in advance.
    Thanks & regards,
    Rashmi

    Hi,
    Can you please provide the version of Oracle Client (ex. 11.2.0.3.0 32 bit  etc), Oracle DB and operating system (ex. Windows 7 32 bit   etc..) where Oracle Client and Access are installed to kno more about the issue.
    thanks and regards
    Venkat

  • How to display LOGO in ALV grid when using class CL_GUI_ALV_GRID

    Hello everyone,
    please let me know how to display Company logo as the header part in the report program with the class cl_gui_alv_grid.
    Thanks and regards,
    Padma.

    Hi,
    Got this info from a site.
    http://sap.ittoolbox.com/documents/document.asp?i=3213
    In the transaction OAOR, you should be able to insert your company Logo.
    GOTO - OAOR (Business Document Navigator)
    Give Class Name - PICTURES Class Type - OT..... then Execute
    It will show you the list, then select ENJOYSAP_LOGO.
    On that list, you will find one control with a "create" tab.
    Click std. doc types.
    Select SCREEN and double-click.
    It will push FILE selection screen.
    Select your company logo (.gif) and press OK.
    It will ask for a description- for instance: "company logo".
    It will let you know your doc has been stored successfully.
    You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
    Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
    Try this one.
    Also have a look at this link
    http://www.sap-img.com/fu002.htm
    Message was edited by: Judith Jessie Selvi

  • Error when using class wire in flat sequence

    I tried a search and didn't find anything on this.  I have a VI that I was going evaluate its execution time.  So to be quick about it, I encased the code in a flat sequence box and added a second frame, place a Get Date/Time in seconds in each and found the difference.  When I did this, my program had errors.  It appears that I have to wire the class inputs and output outside of the sequence structure or an error is generated.
    VI is reentrant although I doubt that makes a difference.
    I get the following error:
    Terminal: One or more of the inputs to this tunnel or shift register does not orginate at the dynamic input front panel terminal
    Error case:
    Error is fixed
    Does this seem like expected behavior?
    Randall Pursley

    I would not say it is "expected" behavior but quite possibly it is very correct behavior  (Read as "almost certainly").
    "Wrap-your-head-in-duct-tape" and read message 12 of this thread carefully. Dynamic terminals that are on the connector pane determine which DD vi is actually called at run time.  Unless those terminals are on the root diagram there is a chance they could be conditionally read or even in dead code (imagine the sequence frame was replaced by a case structure since all structures are treated as "structures")  this breaks "inplaceness" and if not resolved, by placeing the terminals on the root diagram, LabVIEW would need to determine at run time wether or not a buffer allocation was required.  Thats not really possible.
    Perhaps R&D will explain it in greater detail?  But, the way to avoid this error is to pay attention to terminal that are on the con pane and alwasy keep them on the root diagram (It's more effecient code in any case).
    Secondly, the first get date time should be moved outside the sequence and wired through frame 1 to force it to execute before any othe code in the frame. 
    Jeff

  • List display for ALV using class and methods

    Hi friends
    I want the list display for the ALV using Class and methods
    which class and methods i can use.
    Here we can't use the REUSE_ALV_LIST_DISPLAY and also GRID
    I was done GRID display using class and methods but i want only list display for using class.
    plz Give me sample code of list display not for grid.
    Thanks
    Nani.

    hi
    please check with this code...
    declare grid and container.
    DATA : o_alvgrid TYPE REF TO cl_gui_alv_grid,
    o_dockingcontainer TYPE REF TO cl_gui_docking_container,
    i_fieldcat TYPE lvc_t_fcat,"fieldcatalogue
    w_layout TYPE lvc_s_layo."layout
    If any events like double click,etc., are needed we have to add additional functionality.
    call the screen in program.
    Then , create the container as follows
    IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    CREATE OBJECT o_dockingcontainer
    EXPORTING
    ratio = '95'
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    others = 6.
    ENDIF.
    CREATE OBJECT o_alvgrid
    EXPORTING
    i_parent = o_dockingcontainer.
    Build the fieldcatalog
    create a output structure in SEll for the ALV output
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
    i_structure_name = <alv output>
    CHANGING
    ct_fieldcat = i_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE i030."Error in building the field catalogue
    LEAVE LIST-PROCESSING.
    ENDIF.
    *If you need to modify the field catalog,modify it using field sysmbols
    *setting the layout
    w_layout-grid_title = title.
    w_layout-zebra = 'X'.
    then displaying the output
    CALL METHOD o_alvgrid->set_table_for_first_display
    EXPORTING
    i_save = 'A'
    is_layout = w_layout
    CHANGING
    it_outtab = i_output[]
    it_fieldcatalog = i_fieldcat[]
    EXCEPTIONS
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE i032 ."Error in Displaying
    LEAVE LIST-PROCESSING.
    ENDIF.
    *After that in PAI of the screen, you need to free the *object while going back from the screen(according to *your requirement)
    MODULE user_command_9001 INPUT.
    CASE sy-ucomm.
    WHEN 'EXIT' OR 'CANC'.
    PERFORM f9600_free_objects:
    USING o_alvgrid 'ALV' text-e02,
    USING o_dockingcontainer 'DOCKING'
    text-e01.
    LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_9001 INPUT
    *in the program, write the follwoing code
    FORM f9600_free_objects USING pobject
    value(ptype)
    value(ptext).
    DATA: l_objectalv TYPE REF TO cl_gui_alv_grid.
    CASE ptype.
    WHEN 'ALV'.
    l_objectalv = pobject.
    IF NOT ( l_objectalv IS INITIAL ).
    CALL METHOD l_objectalv->free
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    OTHERS = 3.
    CLEAR: pobject, l_objectalv.
    PERFORM f9700_error_handle USING ptext.
    ENDIF.
    WHEN 'DOCKING'.
    DATA: lobjectdock TYPE REF TO cl_gui_docking_container.
    lobjectdock = pobject.
    IF NOT ( lobjectdock IS INITIAL ).
    CALL METHOD lobjectdock->free
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    OTHERS = 3.
    CLEAR: pobject, lobjectdock.
    PERFORM f9700_error_handle USING ptext.
    ENDIF.
    WHEN 'CONTAINER'.
    DATA: lobjectcontainer TYPE REF TO cl_gui_container.
    lobjectcontainer = pobject.
    IF NOT ( lobjectcontainer IS INITIAL ).
    CALL METHOD lobjectcontainer->free
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    OTHERS = 3.
    CLEAR: pobject, lobjectcontainer.
    PERFORM f9700_error_handle USING ptext.
    ENDIF.
    WHEN OTHERS.
    sy-subrc = 1.
    PERFORM f9700_error_handle USING
    text-e04.
    ENDCASE.
    ENDFORM. " f9600_free_objects
    FORM f9700_error_handle USING value(ptext).
    IF sy-subrc NE 0.
    CALL FUNCTION 'POPUP_TO_INFORM'
    EXPORTING
    titel = text-e03
    txt2 = sy-subrc
    txt1 = ptext.
    ENDIF.
    endform.
    also check with this
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
    Hope this helps
    if it helped, you can acknowledge the same by rewarding
    regards
    dinesh

  • Massive creation of Top N List with BAPI BAPI_PPR_MAINTAIN

    Hello guys,
    We want to create massively Top N List (with its positions and Target
    Groups) in CRM, all in one step.
    We are using the BAPI BAPI_PPR_MAINTAIN to create a Top N list
    with its products and Bussines Partners by a code program.
    We have already saved a Top N List, however, when we assign the
    products and we indicate Reference Type "1 Product (0)", the system
    doesn´t discriminate the rest of the data by this value. Instead of it,
    the system validates the Reference Type "88 Rule (0) - Rule Product
    (0)". As a consequence, the system asks for a Rule ID which we don´t
    have.
    Finally, we got the message error: "CRM_PRP_CUST 003 Error trying to
    read the Customizing Table CRMC_PRP_RULE_I;RULE_TYPE=PC".
    The same problem is repeated with the Business Partner position. When
    we indicate the name of our Target group, we got the
    error "CRM_PRP_CUST 003 Error trying to read the Customizing Table
    CRMC_PRP_RULE_I; RULE_TYPE = PA".
    We don´t understand why this BAPI behaves wrongly. It mustn´t verify if
    all the fields in the BAPI are filled, because there are data scenarios
    in where is necessary to fill only some fields. Those data entries do
    have be there accordingly to each other.
    Are there possibilities to jump those "extra" verifications? Will this BAPI work
    to create Top N List?
    Do you know another BAPI, function module, program, etc. that we could use in order to create Top N List massively?
    Thank you for your help!
    Andrea

    Hi,
    I think that your WBS hierarchy structure is incorrect.
    Activate error log for BAPI_PROJECT_MAINTAIN using:
    METHOD_PROJECT-OBJECTTYPE = 'Trace'.
    METHOD_PROJECT-METHOD = 'Create'.
    METHOD_PROJECT-OBJECTKEY = FILENAME.
    APPEND METHOD_PROJECT.
    If you would like to see how such hierarchy structure should be coded you can first read hierarchy for existing project using:
    CALL FUNCTION 'BAPI_PROJECT_GETINFO'
    EXPORTING
    PROJECT_DEFINITION = PROJECT_DEFINITION-PROJECT_DEFINITION
    IMPORTING
    RETURN = RETURN
    TABLES
    E_WBS_HIERARCHIE_TABLE = WBS_HIERARCHIE_TABLE.
    Krzys

  • How Do I add or remove any of the top 6 lines at the very top of my screen when I go online with Firefox

    At the top of my screen when using Mozilla Foxfire, I have the following lines
    Line ! starts with the word File
    Line two is the tabs in use, i.e. Google Email and Mozilla Firefox
    The next line down (#3( is a line that has an arrow to the left and shows the current web page on which I am working.
    Line $ is "Most Visited" sites
    Line 6 is ShopAtHome.com
    What do we call these 6 lines and how do i add to them or delete them?

    You can right click a toolbar to open the right-click context menu and set which toolbars to display.
    *View > Toolbars
    *Firefox > Options
    You seem to be having the default toolbars like the Menu Bar (1) and the Tab Bar (2) and the Navigation Toolbar (3) and the Bookmarks Toolbar (4).<br />
    You didn't mention what is on toolbar 5 and toolbar 6 (ShopAtHome) seems to be ad-ware or malware.
    *http://kb.mozillazine.org/Uninstalling_add-ons
    *http://kb.mozillazine.org/Uninstalling_toolbars
    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for

  • Apple TV 1 is no longer showing up on my computer as a device? what do i do???

    My Apple TV 1 worked fine. I'm not sure if it stopped showing up under devices on my iMac before or after I downlaoded iTunes 10 or after I changed my router, but I also have to reset my network on the TV every day or so, as it randomly stops being c

  • Titles won't display in App Store on iPhone

    While iTunes on my computer only cuts off the text on the brief page (still annoying, try downloading Khan Acadam.... out of thousands of videos) it does not cut off the title on the main page, BUT not so on the iPhone. You can be on the description

  • Export to local file-pdf from ALV

    Exporting data including to PDF format .   Moderator message - Please use a meaning subject line in future. Message was edited by: Suhas Saha

  • Combining Files - Controlling Bookmark Magnification

    Application:  Adobe Acrobat X Pro When combining groups of files (usually .doc files) into a single .pdf file, bookmarks are automatically created for the first page of each source file – which is a convenient feature. I frequently combine multi-size

  • Unable to start SOA Server and need to recreate the domain

    Hi, I have been facing this issue and the only work aroud I could do was recreating the domain/purging and recreating the mds schema. When restarting the SOA server getting the following error oracle.mds.exception.MDSException: MDS-00054: The file to