Displaying pages in classical report output

Hi all,
I am developing a report. In the report output I am displaying 4 lines. When I click on 1st line then list will display but on the second page after the intial output page and when I click on 2nd line then list will display on the third page after the second page.
My requirement is when I click on each line it will display the related page.
I can get the page and page line  by the syntax:
read line 1 of page sy-index.
But how to display this one.
Suggest.
Thanks
Sanket sethi

hiii
for selecting lines like you gave in example..you can use
AT LINE-SELECTION.
  CASE sy-lilli.
      WHEN '5'.
             logic for display page 2nd.
    WHEN '6'.
             logic for display page 3rd.
    WHEN '7'.
             logic for display page 4th.  
WHEN '8'.
             logic for display page 5th.
  ENDCASE.
regards
twinkal

Similar Messages

  • Download a classical Report output to excel

    Hi All,
    We have a requirement to download the output of a classical report into a Excel sheet and it should be in the same format as the report output.We don't  just want to dump the internal table data into excel but need to display the classical report outputas it is in the excel sheet.
    Regards,
    Ashish

    Hi there,
    I am not sure on your requirement, but if you want to write a program that manipulates Excel, you can choose to use OLE objects. Below is some sample code.
    REPORT  ZTEST_EXCEL.
    INCLUDE ole2incl.
    DATA: application TYPE ole2_object,
    workbook TYPE ole2_object,
    sheet TYPE ole2_object,
    cells TYPE ole2_object.
    CONSTANTS: row_max TYPE i VALUE 256.
    DATA index TYPE i.
    DATA: BEGIN OF itab1 OCCURS 0, first_name(10), END OF itab1.
    DATA: BEGIN OF itab2 OCCURS 0, last_name(10), END OF itab2.
    DATA: BEGIN OF itab3 OCCURS 0, formula(50), END OF itab3.
    *START-OF-SELECTION
    START-OF-SELECTION.
    APPEND: 'Peter' TO itab1, 'Ivanov' TO itab2,
    '=Sheet1!A1 & " " & Sheet2!A1' TO itab3,
    'John' TO itab1, 'Smith' TO itab2,
    '=Sheet1!A2 & " " & Sheet2!A2' TO itab3.
    CREATE OBJECT application 'excel.application'.
    SET PROPERTY OF application 'visible' = 1.
    CALL METHOD OF application 'Workbooks' = workbook.
    CALL METHOD OF workbook 'Add'.
    * Create first Excel Sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 1.
    CALL METHOD OF sheet 'Activate'.
    SET PROPERTY OF sheet 'Name' = 'Sheet1'.
    LOOP AT itab1.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Value' = itab1-first_name.
    ENDLOOP.
    * Create second Excel sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 2.
    SET PROPERTY OF sheet 'Name' = 'Sheet2'.
    CALL METHOD OF sheet 'Activate'.
    LOOP AT itab2.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Value' = itab2-last_name.
    ENDLOOP.
    * Create third Excel sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 3.
    SET PROPERTY OF sheet 'Name' = 'Sheet3'.
    CALL METHOD OF sheet 'Activate'.
    LOOP AT itab3.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Formula' = itab3-formula.
    SET PROPERTY OF cells 'Value' = itab3-formula.
    ENDLOOP.
    * Save excel speadsheet to particular filename
    CALL METHOD OF sheet 'SaveAs'
    EXPORTING #1 = 'c:\temp\exceldoc1.xls' "filename
    #2 = 1. "fileFormat
    * Closes excel window, data is lost if not saved
    * SET PROPERTY OF application 'visible' = 0.
    Edited by: Thung Yuen Yap on Aug 10, 2010 1:52 PM

  • How to set the number of rows displayed in a classical report at runtime?

    Hi,
    Our customer has several standard client hardware configuration and would like to enable end users to choose their 'display profile' at login time. This 'display profile' would contain predefined values for these hardware configurations and supposed to set various paramters that should define the number of rows displayed in a classical report region.
    I tried to provide parameters on the report region but it refused to accept anything but numerical values. Is it possible to do this?
    Regards, Tamas

    The link is to the closest linkable point in the documentation to the description of the Number of Rows (Item) attribute.
    It sounds like you have been trying to enter—unsuccessfully—an item name or substitution string into the Number of Rows attribute. The Number of Rows (Item) attribute is the one that actually allows you to do this. Click on the flashlight icon beside it to get a list of items from the application.

  • FM to display Selection screen on report output??

    Hi Experts,
    Is there an FM to display Selection screen on report output.
    Thanks In Advance.

    Hi Ashwin,
    Refer to below link
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/755b94ca5911d299af5c9604c10e27/content.htm
    or
    The easiest way is to define your selection screen in the TOP include of your module pool.
    Then call the selection screen.
    Selection Screen
    selection-screen begin of screen 1010 as window title text-001.
    selection-screen begin of block b1 with frame title text-002.
    parameters: p_vornr type resb-vornr,
    p_refno(20) type c,
    p_plnid type zplcfg-plnid as listbox visible length 20,
    p_sorts type c as listbox visible length 20.
    selection-screen begin of line.
    selection-screen comment (20) text-004.
    selection-screen position 33.
    parameters: p_order as checkbox default 'X'.
    selection-screen end of line.
    selection-screen end of block b1.
    selection-screen end of screen 1010.
    Now call the selection screen.
    call selection-screen 1010.
    if sy-subrc = 0.
    perform get_production_orders.
    perform process_orders.
    endif.
    Thanks!!

  • Classic report output to image format

    Hi Guru's
    Please Help me out.
    Bussiness users want to convert Classic report output to any of the Image format(e.g. Bitmap, jpg. etc.....) and then store in MIME Repository.
    Please help me in this regards
    Thank you,
    Arbind

    hi arbind,
    u can follow up wd SAP NOTE 1219077 ,
    OR can follow d link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do
    it will gv u idea about the similar problem
    hope it helps u ...
    regards,
    prashanti

  • Displaying radio button on report output

    hi folks,
             how to display radiobuttons on the report output.
           thanks,
           santosh.

    Declare parameter as RADIOBUTTON
    like
    Single radio button
    PARAMETER p_purch RADIOBUTTON.
    Two radio button with same group.
    PARAMETER p_sales RADIOBUTTON GROUP opt.
    PARAMETER p_purch RADIOBUTTON GROUP opt.
    Regards,
    Mahesh
    Edited by: Mahesh Guragol on Jan 23, 2008 4:12 PM

  • Display image in classical report

    Experts,
    Please share how to display image stored in SO10 in to a  classical report??

    Hi
    check this
    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.
    FORM TOP-OF-PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = HEADING[]
    I_LOGO = 'ENJOYSAP_LOGO'
    I_END_OF_LIST_GRID ='GT_LIST_TOP_OF_PAGE'.
    ENDFORM. "TOP-OF-PAGE
    Here 'ENJOYSAP_LOGO' will replace by ur created logo.
    Refer this link
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm
    http://www.sap-img.com/abap/alv-logo.htm
    http://www.sap-img.com/fu002.htm
    Re: Logo on Login screen
    Re: To change image into main menu of sap
    Regards
    Anji

  • How to display page numbers in report

    hi all,
    i would like to know how to display page numbers in this format " 1 of 5" in the report.
    Any help would be much appreciated.
    thanks
    seema

    Hi,
    Check this too...
    Page No. in ALV output
    If you query is solved, kindly close the thread.
    Regards,
    Anjali
    Message was edited by: Anjali Devi Vishwanathan

  • Classical Report Output...

    Hi Experts,
                     I have made one classical report whose output is coming upto 4-5 pages  depending on user input. But when we will take the printout of this, user want that print to be on only single A4 size paper...Please guide me..
                     Thanks in advance...
    Best Regards,
    Vinayak

    Hi, 
        Please go through the below link or else search for Classical report with multiple pages output.
    [http://www.scribd.com/doc/7366175/02-ABAP-Book-Intelli-Reports]
    [Change of Normal Classical Report to ALV Report;
    Regards,
    Vijaya Lakshmi.T

  • Formatting problem when downloading classical report output to excel sheet.

    Dear Experts,
    My classical report o/p looks like:
    SI    Name   ID
    1      xyz     11
    2      abc     22
    3      eet      33
    4      jnc      44
    When I download the same to a excel sheet from List->Save->file->Spreadsheet and save it.
    The formatting looks like this:
    SI   Name   ID
    1     xyz               11
    2     abc               22
    3     eet                33
    4     inc                44
    That is the heading and column entries are in different columns.
    There is no GUI_Download used.
    Kindly help what may be the issue.

    Hi,
    In the report output the formatting looks fine. It is exactly below the heading. But only when I save it to excel, this alignment issue is coming. Even the columns after this column are are properly aligned and there is no issue at all. Only this column in the middle has issue.

  • Page setup in report output

    hi
    I have more than 20 columns in horizontal format.
    How to set the report output including 20 columns

    Dear Rohit
    When I print Arabic content text files from OS
    the Arabic Characters are printing well. Also I have
    the necessary Arabic Fonts. When I reduce the Printing
    column size(for Repeated Frame)
    the Arabic Characters are print. But after
    print one page the junk characters are print. so pls
    reply for this issue.
    Ur's Shahul

  • Display Icon in write report output

    Hi,
    How do I display/write an icon to the screen?
    Thanks,
    John

    Hi,
    If you are looking to in the report output?
    INCLUDE <list>.
    WRITE icon_green_light AS ICON.
    aRs

  • In SAP 4.6c In classical reports output how to change Font size and Font type

    Dear Experts,
    In SAP 4.6c, in classical and interactive reports  output how to change font size and font type.
    Regards,
    Zaker.

    These are HTML formatting questions. Nothing to do with the Oracle SQL and PL/SQL languages.
    With old-style HTML, the font size and family are set using the font tag.
    With modern style HTML, that is done using cascading style sheets (CSS).
    Your favourite search engine will turn up tons of information on both.

  • Excel option is displaying blank Excel in Report output

    Hi All,
    We have created the ALV report and everything is working fine except the Excel icon in the report output screen. When we are clicking on the excel icon it is displaying the blank excel. In our systems MS Office 2007 has been installed.
    Is there any link between MS office version that has been installed in the system and the Excel Icon option in the report output screen.
    Please provide me the solution. Thanks in advance.
    Thanks & Regards,
    Sreelatha Gullapalli.

    Please try the following steps:
    1. Click on Microsoft excel icon on the toolbar from ALV report.
    2. Right click on the toolbar of the excel and select u2018Customize Quick Access Toolbaru2019.
    3. Select Trust Centre -> Trust Centre Settings
    4. Check u2018Trust access to the VBA project access modelu2019 checkbox in Macro Settings.
    5. Save the settings and rerun the report.
    You should now be able to see data in the excel if you click on the Microsoft Excel icon on the toolbar from the ALV report.
    Regards,
    Shayeree

  • Generate Spoool from classical report output

    Hi ,
    I have created a report with classical output.
    for that i want to generate spool.
    is there any FM or other way of generating spool from the output

    Hi,
    Declaration of local constants
      CONSTANTS :  lc_paart LIKE sy-paart VALUE 'X_65_132',  " Paper Format
                   lc_locl  TYPE sypdest VALUE 'LOCL'.       " Destination
    If print option is selected.
      IF p_print IS NOT INITIAL.
        MOVE c_x TO v_print.
      ELSE.
        CLEAR v_print.
      ENDIF.
    Setup the Print Parmaters
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          authority              = space
          immediately            = v_print
          new_list_id            = c_x
          no_dialog              = c_x
          user                   = sy-uname
        IMPORTING
          out_parameters         = v_print_parms
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      IF sy-subrc NE 0.
        CLEAR : v_print_parms.
      ENDIF.
    The printer destination has to be  set up
      IF v_print_parms-pdest = space.
        v_print_parms-pdest = lc_locl.
      ENDIF.
    Explicitly set line width, and output format so that
    the PDF conversion comes out OK
      v_print_parms-linsz = c_linsz.
      v_print_parms-paart = lc_paart.
    Then u need write like this..
      NEW-PAGE PRINT ON PARAMETERS v_print_parms NO DIALOG.
    Perform output_display.
    NEW-PAGE PRINT OFF.
    Regards,
    Nagaraj

Maybe you are looking for

  • How can I restore my old library?

    Hi! I hope this question will make sense and that one of you can help. I lost all my music when I ejected my hard drive incorrectly. I still have, though, my iTunes files corresponding to that music: all the files starting with "iTunes Library" in th

  • HT4914 my ipod mini to music on my home MAC

    I can't seem to put music from my home MAC backed up to the cloud to my office PC to place on a i-pod nano.  It looks like I have to take it home to sync directly with my MAC but I thought with i-tunes store and the cloud I should be able to do it fr

  • Upgrade microSD

    HELLO I need some help please , I have a 32Gb microSD on my Xperia z2 whit some photos and music , but now I want to upgrade my microSD to a 64Gb , its possible to copy the files from the older microSD on my computer to the new ( 64Gb) . When I inser

  • Full Outer Join Help please

    Using : Oracle 11.2.0.1 on Windows XP create table tab40(bno varchar2(1),pno varchar2(7),weight number(3),lineno number(3)); insert into tab40 values ('1','1115027',36,1); insert into tab40 values ('2','1115100',25,2); insert into tab40 values ('3','

  • How do I watch live football game for ipad

    I want to watch the Wisconsin bager game on my iPad tonight.  How do I do this?