Displaying page total on a page with fixed number of lines

Hi ,
My requirement is to have a fixed number of rows per page (say 20) and to have a page total beneath the table containing the data.I am using a RTF template.The columns in the table are
Order
Amount
Page Total : 3000
For including a page-break after 20 lines, i have added the following code.
For - each ______________
<?if:position() mod 20 =0?> <xsl:attribute name="break-before">page</xsl:attribute> <?end if?>
end - for_______________
This limits the no of rows per page to 20.
I have tried 2 ways to display the page total but both don't seem to work Can someone please point what i am missing here?
1) Using add and show-page-total
I added the code (<?add-page-total:at;'Amount'?> to the Amount data column in the template and then used the <?show-page-total:at?> in the page total data column to display the total. But this doesnt work.It doesnt display any value.
2) Using Variables:
I declared a variable (<?xdoxslt:set_variable($_XDOCTX, 'RTotalVar', 0)?>) before the table. Then, i used the (<?xdoxslt:set_variable($_XDOCTX, 'RTotalVar', xdoxslt:get_variable($_XDOCTX,'RTotalVar') +Amount)?>) in the Amount data column to calculate the sum. I then used <?if:position() mod 20 =0?> <?xdoxslt:get_variable($_XDOCTX, 'RTotalVar')?><?end if?> in the data column of the page total. But this doesnt work.  The variable loses its value when it is displayed outside the table. Why is it so? How can i declare a global variable? I am not sure why the variable loses it value when taken out of the table. I would want it hold the value through out the document. Is my understanding correct?
Kindly help me with this issue.
Thanks,
Vidhya

Hi
I have the same issue. could anyone provide the link or template. I searched in the forums but couldnt find related to this post.
please help
Thanks

Similar Messages

  • Replicate data on subsequent page with Fixed Number of Fields in the Layout

    Here is a tricky one. I have a Report that is generating a sort of Master Detail Report. This report prints on a Pre-printed form.
    1. 1/3 of the Page is dedicated to logos and Company information.
    2. Second 1/3 part of the page is dedicated to the Customer information (Name, Address, Phone/Fax details)
    3. Final 1/3 part of the page is the detail which can accommodate up to 4 rows. In this section, there are individual fields for the 4 Lines. The goal is to show up to 4 records in the Detail and if there are more records being fetched in the cursor (More than 4), then I need to print the Header section again since its the same Customer and the Detailed records start from Record Number 9 and then 17 and so on.
    I am populating the Header and the Detail records in a Formula Column and not in the Main Query. The Main Query is pretty simple, it just gets all Customers based on a Zip Code. This is why, there is only one Repeating Group and all the items (Master record) and the Detailed Records (Which are basically individual fields placed one below the other) are part of the same Repeating Group. They are being populated in a Formula Column and not a Query.
    Having said this, is this a very cumbersome way to take this approach? The Report already exists in this state and I need to make some modifications and this feature I am talking about would be a big leap.
    Thanks
    Edited by: Roxyrollers on Aug 2, 2012 3:18 PM
    Edited by: Roxyrollers on Aug 2, 2012 3:41 PM

    I have changed the Report and it has become simpler and more manageable. What I now have are two separate Queries. The Main Query gets all the Customer Information based on Zip Codes and lists all the Personal Information in the middle section (The top section is left blank for the Pre-Printed form). There is now another Query which is linked to the Main Query based on Customer ID. The second Query is retrieving Multiple Records.
    Q_1 = Main Query getting Customer's Personal Information
    Q_2 = Detail Query getting all the Invoices for the Customer with different dates
    Now, is there a way to say that if Number of Records > 5 (Invoice Detail Repeating Group), print the details on the following Page? However when I am doing this, I also want the entire Header section to be replicated on the following Page.
    Example: Customer ID 1001 (David Taylor) has 10 Invoices that need to be displayed. My output should be like below
    Page1
    Name:    Mr David Taylor                  Customer ID: 1001
    Address: 2200 Picket Fences
             Santa Ana, CA 92704              Phone#: (949)555-5555
    Date           Product            Quantity              Price
    ==============================================================
    05/17/2012     Product 1          2                      99.99
    05/22/2012     Product 2          1                      99.99
    06/01/2012     Product 3          3                      99.99
    07/17/2012     Product 4          40                     99.99
    ==============================================================
    Page2
    Name:    Mr David Taylor                  Customer ID: 1001
    Address: 2200 Picket Fences
             Santa Ana, CA 92704              Phone#: (949)555-5555
    Date           Product            Quantity              Price
    ==============================================================
    07/18/2012     Product 5          25                     99.99
    07/22/2012     Product 6          3                      99.99
    07/23/2012     Product 7          1                      99.99
    07/24/2012     Product 8          1                      99.99
    ==============================================================
    Page3
    Name:    Mr David Taylor                  Customer ID: 1001
    Address: 2200 Picket Fences
             Santa Ana, CA 92704              Phone#: (949)555-5555
    Date           Product            Quantity              Price
    ==============================================================
    07/26/2012     Product 9          25                     99.99
    07/29/2012     Product 10         3                      99.99
    ==============================================================Any help is appreciated. I am going to look into creating a Summary Column in Q_2 and going from there. Thanks!

  • How to Create Business Partner with  fix number in t-code :BP

    Dear SIr,
    Normally I will set number range for auto  to create Business Partner. In case , If we would like to crea How to Create Business Partner with  fix number in t-code :BP , howe to do?
    Please kindly advise.
    THnak you and best regards,
    Vimol

    Dear Shobhit,
    How to put the thread as you mentioned.
    Best regards,

  • SAP-Script - Draw Table (Boxes) with variable number of lines

    Hello,
    I want to create a Table with Frames in a SAP-Script Form. First of all I don´t know the position of the table in the window main. It can be page 2 or 3 on top or in the middle. But i have to describe a position like
    POSITION YORIGIN '12.95' CM.  How can i position the table in a variable way?
    And i don´t know the number of lines of the table. How can I manage to draw the correct numbers of boxes as numbers of lines exist?
    Kind Regards
    Carsten Fuchs

    Hi carsten,
    1. Drawing GRID (just like excel, matrix)
       is very cumbersome in sapscript layout.
      (either dynamically, or hardcoded)
    2. Moreover, the final look,
       may or maynot appear as requried,.
      ie. exactly with proper alignment and grid lines.
    3. If the font size is required to change,
      then the dynamic position also changes.
    4. If the grid is supposed to go to the next page,
      again the calculation and logic becomes tougher.
    5. To use grid, its better to use smartform,
       which provided FINE CONTROL of the grid
      and its lines and width, height, style etc.
    6. In sapsctip, at most we can use
       UNDERLINE (_) and PIPE (|)
    regards,
    amit m.

  • Portal Doesn't Display page with text/plain content type

    Hi,
    I created a WSRP portlet with text/plain content type and added it to my page, but I get the following error message:
    Error: Could not get markup. The cookie or session is invalid or there is a runtime exception.
    when I add the portlet to my page.
    It works when I use text/html content, but text/plain doesn't work.
    Any ideas how I can get my portlet to display in the portal?
    Thanks in advance,
    GB

    IE6 cannot display text/plain (support.microsoft.com/kb/329661).
    Does the server know what to do (i.e. how to render) with text/plain?

  • Design View Not Displaying Pages with any Formatting

    I asked this question in another thread and somebody locked it.  The question is not answered.  My Design view is not displaying my files with any formatting.  I can view them in a browser, but not in Design view where I can see my work as I'm working.  While I can upload files to the remote server (host provider) the links got screwed up so files on the remote server don't show any formatting either.  Every link, thousands of links, are off by one word (folder) from where my site was residing on my hard drive.  When I try to make a change to the links manually then I can no longer view them with any formatting in my own browser either.
    On my local broswer on my PC the address line reads: http://localhost/folderNameIneedToDelete/filename.php
    On the live website (for my homepage) the address line reads http://websiteName.com/folderNameIneedToDelete/index.html
    (Here is the text from another thread that was improperly locked)
    I just added a remote server to my site so I could begin uploading files to my host provider.  When I saved the setup I saw a message popup about the cache changing.  Now when I try to view a file in Dreamweaver in Design View it doesn't recognize any of the external style sheets.  It displays with no formating.
    I can still view the pages in a browser and they look appropriate, just not in Design View where I can continue working on the site as I've been doing.
    How do I get Design View to display my pages properly again using the .css pages that apply to each page design?
    Thanks,
    Robert

    Murray, thanks for all your assistance.
    Before I edit thousands of links again I want to confirm I've interpreted all your info correctly.  If I setup everything as follows all my pages should work in Design View, browsers accessed from the "Preview/Debug in browser" icon in Dreamweaver and most importantly in a live environment at a host provider:
    Site Setup
    Site - Site Name:  anything including spaces
    Site - Local Site Folder:  C:\wamp\www\rootfoldername\
    Servers - Testing Server (Testing: checked)
    Server Name:  Testing Server
    Connect Using:  Local/Network
    Server Folder:  C:\wamp\www\rootfoldername\
    Web URL:  http://localhost/rootfoldername/
    Remote Server - Maintain synmchronization information:  checked
    Remote Server - Automatically upload files to server on Save:  unchecked
    Remote Server - Enable file check-out:  unchecked
    Testing Server - Server Model:  PHP My SQL
    Version Control - Access:  None
    Advanced Settings - Local Info - Default Images Folder:  C:\wamp\www\rootfoldername\_images\
    Advanced Settings - Local Info - Links relative to:  Document
    Advanced Settings - Local Info - Web URL:  http://sitename.com/
    Advanced Settings - Local Info - Case-sensitive links checking:  unchecked
    Advanced Settings - Local Info - Enable Cache:  checked
    Advanced Settings - Cloaking - Enable Cloaking:  checked
    Cloak files ending with:  unchecked
    Advanced Settings - Design Notes - Maintain Design Notes:  checked
    Advanced Settings - Design Notes - Enable Upload Design Notes for Sharing:  unchecked
    Advanced Settings - File View Columns - Name:  Built In - Show
    Advanced Settings - File View Columns - Notes:  Built In - Hide
    Advanced Settings - File View Columns - Size:  Built In - Show
    Advanced Settings - File View Columns - Type:  Built In - Show
    Advanced Settings - File View Columns - Modified:  Built In - Show
    Advanced Settings - File View Columns - Checked Out By:  Built In - Show
    Advanced Settings - Contribute - Enable Contribute compatibility:  unchecked
    Advanced Settings - Templates - Don't rewrite relative document paths: checked
    Advanced Settings - Spry - Asset Folder:  C:\wamp\www\rootfoldername\SpryAssets\
    Site File Structure - place files in the following folders:
    C:\wamp\www\rootfoldername
    webpages (html & php)
    _images  - [folder] (there are numerous image folders beginning with _images) containing .jpg and .png files
    _includes - [folder] containing attached .php files for the header, navigation and footer attached to every page
    _scripts - [folder] containing .js script files
    _styles - [folder] containing .css files (external style sheets)
    Connections - [folder] contains one php file (databasename.php)
    SpryAssets - [folder] containing system generated .js files .css files and .gif files
    ZendFramework - [folder] - I have no idea if the files in this folder are necesary and why it was placed here many months ago
    ** Links **
    Remove the leading / from every link in every file
    HTML5 shiv
    using an external link will always reflect the latest changes(Question) - If I link to this .js file externally at google instead of linking to a current copy in my _script folder could future changes to this external .js file cause future problems with the webpages that have this file attached?
    Remote Server
    Setup a remote server using the ftp address settings provided by the host provider.  (Question) Any settings defined for the future Remote Server (the first remote server was deleted when problems occured) will not cause any harm to anything involving the Testing Server such as viewing webpages in Design View, browsers accessed from the "Preview/Debug in browser" icon in Dreamweaver and will not cause any harm to any files eventually put to the host provider via that future Remote Server. Is that correct?
    Murray, thanks again for your help,
    Robert

  • How do we display Pages with drop down one below the other ?

    Hi,
    I am beginner to Financial report 9.3.1 . I have repot mock up where i need to place pages like Time Period , Version etc one below the other with the drop down .
    How should i proceed to achieve the same ?
    Thanks & Regards,
    Vijaya

    Try selecting a grid in the top left corner to highlight it,
    Double check your dimension layout in the properties pane,
    Make sure Grid Point of View is selected.
    Can you be a little more specific as to what kind of report you are trying to create?
    What are your Report layouts Columns, Rows and Page?
    Brian Chow

  • [JS] Export jpg from each page with specified number from database

    Hello,
    I imported a database into InDesign (CS 5 with OS X 10.7.2), so that every product and product number is on a different page in InDesign. Now I need to export each page to a jpg-file. The name of the jpg should be "productnumber.jpg".
    I found the script „PDFExportCropper.jsxbin“, which does what I want but creates pdf-files instead of jpgs.Thereafter, I can convert the pdfs to jpgs automatically with Photoshop.
    But: The script takes hours and hours to create the pdf-files: Right now, more than 8 hours for only 100 pdf-files. The database has 65.000 products!
    Any idea to improve the workflow? Any other script available which I did not find but does what I need?
    As a designer, I have no experiences at all in scripting.
    Thanks for answering!
    Best regards
    Rainer
    from Germany

    I think I fixed it.
    In line 20, I have now the following code:
    var page = myImage[i].parentPage.name;
    Is this the right way, to get the actual page?
    Also I would like to know, how can I export the images cropped to their "box"? How do I have to change my script?
    Thanks

  • AP Check Display check total on all pages

    Hi,
    I am working on AP check report. I need to display Check total on all pages(in case of overflow invoices). Only for the very first OutboundPayment group the check total is populated under PaymentAmount/Value and for rest of all overflow invoices(OutboundPayment group) this value is 0. I need to display the check amount on all pages. I have created a check_total2 variable to capture the check amount but this variable does not get the check amount on the first page. Now I am trying to use decode to display the check total. But when I use decode function, the values not displaying correctly, it is showing some random number/characters.
    Variable defintion - <?xdoxslt:set_variable($_XDOCTX, 'check_total2', PaymentAmount/Value) ?>
    Decode Condition - <?xdofx:decode(PaymentAmount/Value,'0',xdoxslt:get_variable($_XDOCTX, 'check_total2'),PaymentAmount/Value)?>
    Below is the data -
    PaymentAmount/Value check_total2 Using Decode Value Expected
    105050 NULL NULL 105050
    0 105050 709D3D73971C 105050
    0 105050 1004 105050
    0 105050 1006 105050
    0 105050 1008 105050
    Any idea what is wrong here and how can I fix this. Please let me know if you need more information.
    Regards
    Hitesh

    BIPuser,
    Thanks for your help. My problem has been solved. Below is the code which worked for me(all the credit goes to BIPuser).
    Define variable "check_total" at check template level
    Defined another variable "display_total" at check stub template level
    check_total - <?xdoxslt:set_variable($_XDOCTX, 'check_total', PaymentAmount/Value) ?>
    display_total - <?xdoxslt:set_variable($_XDOCTX, 'display_total', xdoxslt:ifelse(PaymentAmount/Value='0', xdoxslt:get_variable($_XDOCTX, 'check_total'),PaymentAmount/Value))?>
    Now the column where I needed to display the total, I used
    USD$<?format-number:xdoxslt:get_variable($_XDOCTX, 'display_total');’999G999D99’?>
    This solved my problem.
    -Hitesh

  • Repeat Group Header On Each Page with Underlay Following Sections

    How to overcome the following problem?
    1. I am using Crystal report 13.0.5.891
    2. I have designed the report with Group Header as [Underlay following section]
    3. I have checked the group to repeat on each page
    4. Number of lines in the group header may vary
    5. Number of lines in details may also vary
    My objective is to print the separator line placed in group footer, after the
    header lines or after the detail lines which one is taking the maximum lines.
    This is not happening, and I am getting the following output, which is not meeting my requirement
    Where the "LINE IN GROUP FOOTER" should appear after "Group 1 Header Line 6" in the second page
    as the report ends there, but in the output, the line is coming just after the end of detail record.
    like following
    As a result of this, the next record of the group is overlapping with the first record and creating a mesh
    ------------------------------------------------------------------------------------------------------------------------------------ PAGE 1 OF 2
    Column Heading 1                       Column Heading 2                      Column Heading 3
    Group 1 Header Line 1                 Detail Record 1 Line 1
    Group 1 Header Line 2                 Detail Record 1 Line 2
    Group 1 Header Line 3                 ----------------------------------------------------------------------------------
    Group 1 Header Line 4                 Detail Record 2 Line 1
    Group 1 Header Line 5                 Detail Record 2 Line 2
    Group 1 Header Line 6                 Detail Record 2 Line 3
                                                      Detail Record 2 Line 4
                                                      Detail Record 2 Line 5
    ======================LINE IN GROUP FOOTER========================
    PAGE BREAK
    ------------------------------------------------------------------------------------------------------------------------------------ PAGE 2 OF 2
    Column Heading 1                       Column Heading 2                      Column Heading 3
    Group 1 Header Line 1                    Detail Record 3 Line 1
    Group 1 Header Line 2                    Detail Record 3 Line 2
    Group 1 Header Line 3                    Detail Record 3 Line 3
    Group 1 Header Line 4                    Detail Record 3 Line 4
    ======================LINE IN GROUP FOOTER========================
    Group 1 Header Line 5
    Group 1 Header Line 6
    Thanks in advance.

    Thanks for you response.
    I have updated the crystal report to 13.0.13.1597.
    Still I am getting the same issue. I am generating the report in PortableDocFormat and exporting the byte array to download from the web browser. The application is developed in ASP.NET 2012 .net version 4.5.
    I am also uploading 2 images of the final pdf that I am getting, for your opinion.
    The report appeared in the first image is ok, where the first group has 2 child records and the second group has 1 child, but whenever I am changing the mapping in the database, where the first group has 1 child and second group has 2 child, my report is not working. as it is clear from the second image
    Also after installing the new version of CR, my existing codes are not working, and giving the following exception in the line where ExportToStream is written.
    Unable to cast object of type 'FileStreamDeleteOnClose' to type 'System.IO.MemoryStream'.
    I have modified the existing code to overcome this exception.

  • Unable to get page with video to validate and need help getting text to display correctly

    I need advice on getting a page to validate that has a video. I didn't make the video, but all other pages vallidate that don't have it.
    Also, when testing viewing on ie with large font view the navigation bar on the left doesn't display correctly. I've tried all fixes I can think of, but none work.
    As always any advice is greatly appreciated.
    page can be viewed at: http://www.lotusvalleydesigns.com/previewpages/services.html

    Eeeeeuuuuu yuck.  You know, I've never used that setting in IE and I don't think I ever will again.
    Look what happens to CNN's website when you do that.
    http://CNN.com
    I think IE sucks and this is another fine example of MS's zeal to pile on user options that no one should use.  If MS made their zoom feature optional the way Firefox does, nobody would ever need this atrocious "accessibility" option.
    Good luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How to display a fixed number of rows in a page when using CL_GUI_ALV_GRID

    Hy experts
    How to display a fixed number of rows in a page when using CL_GUI_ALV_GRID?? lets say 500 ?? because my display table it may contain in some cases 10.000 and evidently I can t see all of them..
    I have a button in my toolbar witch triggers this event
    (display 500 records ) but I don t have the logic to do this only with methods of CL_GUI_ALV_GRID.
    can you tell me a standard method of CL_GUI_ALV_GRID witch can help me do this?? any hint will be good..
    Till now I was used to add a column to my structure witch represents a flag that is a number corresponding to every 500 records (a batch containing 500 records )
    first       500 - flag -> 1
    second  500 - flag -> 2
    etc..but I m convinced that exists a way of doing this more easy..without damaging my structure..
    thanx in advance..don t be shy..reply if you have any hints..

    Hi,
    if method SET_FILTER_CRITERIA doesn´t help, I think that you must work with 2 internal tables, a counter and a loop for filtering the records to be displayed:
    case counter.
      when 1.
         loop at int_table1 from 1 to 500.      "<-- your table with all records
           move int_table1 to int_table2
        endloop.
      when 2.
         loop at int_table1 from 501 to 1000.     
           move int_table1 to int_table2
        endloop.
    etc, etc.
    Call grid-->SET_TABLE_FOR_FIRST_DISPLAY
       exporting
         IT_OUTTAB = int_table2                "<-- instead of your currently table int_table1

  • Total of page with ALV LIST

    Hi,
    I want to display on TOP of PAGE : X page / Total page with ALV LIST.
    here is my code :
    FORM eventtab_build USING lt_events TYPE slis_t_event.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = lt_events.
      READ TABLE lt_events WITH KEY name =  slis_ev_top_of_page
      INTO ls_event.
      IF sy-subrc = 0.
        MOVE gc_formname_top_of_page TO ls_event-form.
        APPEND ls_event TO lt_events.
      ENDIF.
      READ TABLE lt_events WITH KEY name =  slis_ev_end_of_list
                                 INTO ls_event.
      IF sy-subrc = 0.
        MOVE 'END-OF-LIST' TO ls_event-form.
        APPEND ls_event TO lt_events.
      ENDIF.
    ENDFORM.                    "eventtab_build
    FORM top_of_page.
      DATA: t_header TYPE slis_t_listheader,
      wa_header TYPE slis_listheader.
      DATA : lv_desc(15) TYPE c,
             lv_month(2) TYPE c,
             lv_year(4) TYPE c.
      DATA : pageno(2) TYPE c.
      lv_month = sd_augdt-high+4(2).
      lv_year  = sd_augdt-high(4).
      SELECT SINGLE ltx FROM t247 INTO lv_desc WHERE mnr = lv_month
      AND spras = sy-langu.
      WRITE : /1 sd_bukrs-low.
      SKIP 1.
      WRITE : 50 'RELEVE DES ACHATS LIVRAISONS FACONS'.
      WRITE : /52 '& TRAVAUX EFFECTUES AU MAROC'.
      WRITE : /54 'OUVRANT DROIT AU DEDUCTION'.
      SKIP 1.
      WRITE : /1 'IDENTIFIANT FISCAL :', '1234',135 'REGIME : ENCAISSEMENT'.
      SKIP 1.
      IF NOT dtab-mwskz IS INITIAL.
        WRITE : /54 'Code TVA: ',dtab-mwskz.
      ENDIF.
    WRITE : 135 'Page No :', sy-pagno RIGHT-JUSTIFIED.
      WRITE : /2 'MOIS :',lv_desc,20 lv_year.
      SKIP 1.
      pageno = sy-pagno.
      wa_header-typ = 'H'.
      CONCATENATE 'PAGE NO : ' pageno ' of ' '****' INTO
      wa_header-info SEPARATED BY space.
      APPEND wa_header TO t_header.
      CLEAR wa_header.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
         it_list_commentary = gt_list_top_of_page.
        it_list_commentary = t_header.
    ENDFORM.                    "top_of_page
    please, give me a guidance.
    Best regards.

    Hi Please refer this program. You have not written exact problems here. Anyways refer below code:-
    REPORT ZRIL_ALVEVENTS .
    TYPE-POOLS : SLIS.
    DEFINITION OF DATA INTERNAL TABLE
    DATA : IT_SFLIGHT TYPE STANDARD TABLE OF SFLIGHT.
    DEFINITION OF FIELDCATALOG INTERNAL TABLE
    DATA : WA_FCAT TYPE SLIS_FIELDCAT_ALV, "WORK AREA FOR FIELD CATALOG
                 IT_FCAT TYPE SLIS_T_FIELDCAT_ALV.
    DEFINITION FOR EVENT TABLE
    DATA : IT_EVENTS TYPE SLIS_T_EVENT,
                 WA_EVENTS TYPE SLIS_ALV_EVENT. "WORK AREA FOR EVENT"
    DEFINE THE NAME LIST HEADER
      DATA : FORMNAME TYPE SLIS_FORMNAME VALUE 'TOP_OF_LIST'.
    DEFINE THE TABLE FOR LIST OF ACTION ON EVENT SPECIFIED IN LIST HEADER
      DATA : IT_ACTION TYPE SLIS_T_LISTHEADER,
      WA_ACTION TYPE SLIS_LISTHEADER. " WORK AREA FOR LIST OF "
    *POPULATE DATA FROM SFLIGHT TABLE
    SELECT * FROM SFLIGHT INTO TABLE IT_SFLIGHT.
    MAKE THE FIELDCATALOG TABLE FOR SFLIGHT
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    I_PROGRAM_NAME = SY-REPID
    I_INTERNAL_TABNAME =
    I_STRUCTURE_NAME = 'SFLIGHT'
    I_CLIENT_NEVER_DISPLAY = 'X'
    I_INCLNAME =
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE =
    CHANGING
    CT_FIELDCAT = IT_FCAT
    EXCEPTIONS
    INCONSISTENT_INTERFACE = 1
    PROGRAM_ERROR = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    GET THE LIST OF EVENTS IN EVENT INTERNAL TABLE
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
    I_LIST_TYPE = 0
    IMPORTING
    ET_EVENTS = IT_EVENTS
    EXCEPTIONS
    LIST_TYPE_WRONG = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    GET THE NAME OF EVENT (TOP-OF-LIST) FROM LIST OF EVENTS IN EVENT TABLE
    READ TABLE IT_EVENTS
    WITH KEY NAME = SLIS_EV_TOP_OF_LIST
    INTO WA_EVENTS.
    IF READ OPERATION SUCCESSFUL
    MOVE NAME OF LIST HEADER INTO WORK AREA OF EVENTS
    AND APPEND THAT WORK AREA TO EVENTS TABLE THAT CONTAINS LIST OF
    EVENTS
    IF SY-SUBRC = 0.
    MOVE FORMNAME TO WA_EVENTS-FORM.
    APPEND WA_EVENTS TO IT_EVENTS.
    ENDIF.
    SPECIFY ONE ACTON ON EVENT IN WORK AREA AND APPEND THAT ACTION TO
    TABLE OF ACTION
    WA_ACTION-TYP = 'H'.
    WA_ACTION-INFO = TEXT-001.
    APPEND WA_ACTION TO IT_ACTION.
    CLEAR WA_ACTION.
    WA_ACTION-TYP = 'S'.
    WA_ACTION-KEY = TEXT-002.
    WA_ACTION-INFO = TEXT-003.
    APPEND WA_ACTION TO IT_ACTION.
    CALL THE SUBROUTINE TO DISPLAY THE LIST
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = SY-REPID
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
    I_STRUCTURE_NAME =
    IS_LAYOUT =
    IT_FIELDCAT = IT_FCAT
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
    IT_EVENTS = IT_EVENTS
    IT_EVENT_EXIT =
    IS_PRINT =
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    T_OUTTAB = IT_SFLIGHT
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FUNCTION MODULE THAT WILL BE CALLED AUTOMATICALLY WHEN THE
    TOP-OF-LIST EVENT IS TRIGGERED.
    FORM TOP_OF_LIST.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = IT_ACTION
    I_LOGO =
    I_END_OF_LIST_GRID =
    ENDFORM.
    Regards
    Abhii..
    Edited by: Abhii on Nov 10, 2009 1:00 PM

  • Web pages with a .XML extension don't display on IPad 2.

    Web pages with a .XML extension don't display on IPad 2.  No debug error or tip displays. What can I do to fix this?

    Sounds like you'll need to manually substitute a compatible iPad font...

  • My Macbook Pro is frozen on the login page with a white screen and only my login picture. How do I fix this? I can't turn it off and I closed it and let it charge but it's still not working.

    My Macbook Pro is frozen on the login page with a white screen and only my login picture. How do I fix this? I can't turn it off and I closed it and let it charge but it's still not working. It's only 3 months old and was working perfectly fine 30min before this happened.

    Hello Kierasully,
    I would start your troubleshooting with the article below for issues of not being able to log in to your Mac. Start with booting up in to Safe Boot as well as resetting PRAM on your Mac. If that does not work, then verify the hard drive with booting to the Recover HD and go to Disk Utility to verify it.
    Mac OS X: Gray screen appears during startup
    http://support.apple.com/en-us/ts2570
    Regards,
    -Norm G. 

Maybe you are looking for

  • Problems with home button on iPhone 4

    problems with home button on iphone 4

  • Inter-company Sub-contracting

    Dear Experts, I am working on a scenerio where Plant A is sending Components to Plant B. Then In plant B the processing is done on those components and a semifinished material is made. Then the Semifinished Material is recieved back into plant A. I a

  • Macbook w/Apple Display Questions

    Hi, Two questions: 1. Would there be three connections between a Macbook and a Apple Display? a. DVI b. USB c. Firewire 2. How would the Macbook (1 FW 400 and 2 USB 2 ports) treat the 4 USB's and two FW 400 ports on the display? Thanks! Donny

  • Third Party Interface

    Hi Experts. I want some clarification, we are implementing BPM - Solution Manager. I was checking the BPM Monitors Catalog. I didnt find any thirdparty interface monitoring. Our client has SAP and it has got some thirdparty interface such as Vertex,

  • I have a iPod Touch 1st gen, not working.

    I have a iPod Touch 1st gen but it wont turn on or anything and wont do a thing.  How am I to go about this, is it best to take it to an apple shop?