HI experts small dout in classical report

Hi
good day to all.
here in my selection screen i have  3 radio buttons
      1. customer
       2 sales
       3 vendor
i want to write to provide headings by top of page nad end of page, what is the logic req
thanks in advance
Regards
Suresh

HI,
to write something in top of page u need to use TOP-OF-PAGE event.
to write something in end of page u need to use END-OF-PAGE event. but in this case u need to specify the no of lines per page & the no of line allocated for end of page in the REPORT statement as...
REPORT ZTEST LINE-COUNT 60(5).
here 60 is the no of lines per page & 5 is the no of lines for end of page.
if you want to write according to the radio-button selected on the selection screen use this code....
TOP-OF-PAGE.
  IF RAD1 = 'X'.
      WRITE: ................
  ELSEIF RAD2 = 'X'.
      WRITE: ................
  ELSEIF RAD3 = 'X'.
      WRITE: ................
  ENDIF.
Reward if useful
Regards
ANUPAM

Similar Messages

  • Triggering END_OF_PAGE IN CLASSIC REPORT

    Hi Experts,
                          I have one classical reporting in that END_OF_PAGE is not Triggered At last Page due to Less No of Records in last Page,can anyone
    tell me how to trigger END_OF_PAGE  . i want to display the page total for every page but for last page i cant display Page total Due To Less
    No Of Records can any one suggest how  to solve this problem.
                                                                                                                                                                      Thanks in advance.

    Hello,
    If you read F1 help, it is mention as below.
    Effect
    This statement defines an event block that is raised by the ABAP-runtime during creation of a basic list, if there is a line reservation in the addition LINE-COUNT of the initiating statement for a page footer, which was reached while writing to this page. A list output that takes place in the event block, is placed in this area. Output statements that exceed the reserved area will be ignored.

  • Classical Report

    Hi Experts,
    I have developed classical report.in my internal table, i have 24 records.
    my question is, in ALV report,we can display colors as zebra color autometically by function module.
    but in classical report.how can we set zebra color for my 24 records.
    Thanks in advance.
    Regards.
    Sudheer.
    Moderator message: very basic, please search for available information before asking, please use more descriptive subject lines when posting.
    locked by: Thomas Zloch on Sep 2, 2010 11:03 AM

    Hi,
         Use FORMAT command.  Look for F1 on Format.
    Regards,
    Srini.

  • Footer problem in classical report

    Hi experts,
    I devloped a classical report but i want to display a footer deatail in all of my page.
    But in my last page it doesn't come......
    NOTE : i have reservered 12(2) line for each page. but total record is 100.
    Regards
    skmohanty

    Hi,
    I am hope this answer is very helpfull to u..
    Declare one variable like
    DATA: V.
    V =  sy-linct - sy-linno - 2.
    skip V.
    plz this code write after the endloop and before the end-of-selection
    Thanks&Regards
    Hari..

  • Classical Report Screen with lost frame and headers

    Hi Experts,
    I have one classical report , which is having Refresh button ,
    before executing refresh button all the page header information come correctly but one you have executed the Refresh the page header will be not  displayed until you page up to top of page.
    Refresh logic :
    Under user command :
    I am making sy-lsind = 1 .
    and retrieve all the updated data and display again .
    End of  logic.
    Please guide me how to keep page header as it is even if user command got executed.
    Thanks.
    Raj

    Hi,
    Sy-LSIND for primary list is 0 not 1
    try that change.
    santhosh

  • "Character String Buffer too small" Classic Report Apex 3.2.1

    Hello Everyone,
    I know it is very old version I am discussing here but that is what we have in our environment, would really appreciate if anyone can help out.
    I have a classic report with the below query, in this I have added a filter using a select list item (P70_GROUP).
    SELECT vws.ServerID AS Display_ID,       vws.ServerID AS ID,       vws.Hostname,       vws.ServerStatus,       vws.SiteName AS Site,       vws.Client,       vws.CoreHours,       vws.Patch_Notes,       vws.PATCH_DEP,       vws.Patch_Day,       vws.PATCH_GROUPID,       vws.PATCH_TIMEID AS Time     FROM VW_Live_Support vws LEFT JOIN W_Patch_Groups wpg     ON (vws.Patch_GroupID = wpg.ID) WHERE vws.Deleteable      = 'N'   AND NVL(wpg.Ignore, 'N') = 'N'   AND ((:P70_GROUP > 1 AND vws.PATCH_GROUPID = :P70_GROUP) OR         (:P70_GROUP = 1 AND vws.Patch_GroupID IS NULL)      OR         (NVL(:P70_GROUP,0) = 0))   AND ( INSTR(UPPER(vws.HostName),    UPPER(NVL(:P70_SEARCH,vws.HostName)))    > 0 OR INSTR(UPPER(vws.ServerStatus), UPPER(NVL(:P70_SEARCH,vws.ServerStatus))) > 0 OR INSTR(UPPER(vws.SiteName),    UPPER(NVL(:P70_SEARCH,vws.SiteName)))    > 0 OR INSTR(UPPER(vws.Client),      UPPER(NVL(:P70_SEARCH,vws.Client)))      > 0 OR INSTR(UPPER(vws.CoreHours),    UPPER(NVL(:P70_SEARCH,vws.CoreHours)))    > 0 OR INSTR(UPPER(vws.Patch_Notes),  UPPER(NVL(:P70_SEARCH,vws.Patch_Notes)))  > 0       )
    Issue is when i select a group from the list I am getting
    "report error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small".
    one unusual thing I have noticed here is when I select "All Groups" which returns 0, it is running fine and returning 3700 rows but when I select any group which returns some 10-20 rows I am getting the above error.
    can't understand why this is, please help me out.
    Regards,
    Tauceef

    Tauceef wrote:
    Thanks alot for your prompt response
    Let me add some more into the issue I forgot to add.
    It is somewhat similar to what Michael has mentioned in his first post.
    Above said report is a Tabular form and there are 3 select lists in it out of which one list is too long (Group list), when I hide it report works for all the groups.
    That should have been made clear in the original post. Reports and tabular forms are not the same thing. There's much more that can go wrong on tabular forms, including hitting the LOV size limit of 32KB for a select list item. (Obviously if you hit this limit for a single item then you've automatically hit it the report row limit as well.)
    I have explained them about the LOV that when we remove that LOV it works fine but they need that list because it is a updatable value.
    As suggested by Michael, I have tried Substr, which also works fine for all the groups.
    I would suggest client to have a short name of the groups and use it as a temporary solution.
    You should use a Pop-up LOV control for large lists of options. Purely as a usability consideration—irrespective of APEX implementation limits—select lists should only be used in cases where there are a maximum of around 200 options.
    Regarding Debugging: I am not getting that option when I run the application as a developer, checked the application properties Debugging option is selected as Yes, don't know why it is not available.
    That's not connected to this problem. Open a new thread on that topic if you want to investigate and fix it.
    One more confirmation from you guys please, I have also suggested them to upgrate the environment to the latest version, hoping this will resolve the issue, please confirm?
    In the latest version also we have same size (32KB) limit or it has been increased?
    The 32KB limits for select lists and report rows are not documented but are still present in APEX 4.2 (and in APEX 5.0 to the best of my current knowledge).

  • Is there any ROUTINE in any SAP prog. to get small classical report?

    Hi,
    I need to develop a report, like classical report. I mean, as below, if u go FB50, eneter good adat , press SIMULATE button, then we can get a classical report showing the details in next screen........so, as i am posting FB50 from Z prog., and there is a simulate check box, so, i need to hv the same similar report to get to user, so, when i debugged this fb50+simulate, i found that, its coming from SAPLF064, include LF064F01 at routine form kopf_anzeige........but, its does not hv any IMPORT parameters........so, is there any other routine in any other sap prog. so that, i can pass my parameters, so that, sap will write this report for me, any clue?
    tahnq

    sorry, looks like my psoting is confusing u guys,
    i am posting a doc from my Z prog by using bapi_acc_document_post.......in my selection screen, i put SIMULATE ckeck box, so, if the user want to check the input data before posting, he will check the simulate check box, then, i need to show the data (inteneded to post) in next screen......so, as we know writing a classical report cumbursuom, so, am looking for a reday made routines in sap prog. so that, will pass my data, so sap write the report for me in next screen,..functional guy want to hv same like FB50+SIMULATE report as i said in my posting....so, am looking for it. thanq

  • 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

  • Download classical report to MS word with OLE

    hi experts,
       I have a Classical HR Report that contains profile information of the employee.Now I have to Download the Report to Ms word through OLE . I tried some threads but they were just displaying the static text.I have to download the data for the following format.could some one help me on this?
    WRITE : 'Salary Information '.
    SKIP 1.
    WRITE : 1 SY-ULINE(83).
    WRITE : /1'|',2 'Period Ending On 31ST',25'|',26'Rating(If Any)',42'|',43'Basic Salary',57'|',58'Gpm',70'|',71'CTC',83'|'.
    WRITE : /1 SY-ULINE(83).
    CLEAR YEARSAL.CLEAR CURRENT.
    CLEAR GROSS.CLEAR GROSS1.CLEAR CTC1.
    LOOP AT ISAL INTO WSAL WHERE PERNR = WP01-PERNR AND ENDDA = '99991231' ."AND CURRENT BETWEEN WSAL-BEGDA AND WSAL-ENDDA.
      GROSS = WSAL-BET01 + WSAL-BET02 + WSAL-BET03 + WSAL-BET04.
      GROSS1 = GROSS.CONDENSE GROSS1.
      CTC1 = WSAL-BET10.CONDENSE CTC1.
    WRITE : /1'|',2 'Current' ,25'|',26 WSAL-RTEXT,42'|',43 WSAL-BET01 ,57'|',58 GROSS1,70'|',71 CTC1,83'|'.
    WRITE : /1 SY-ULINE(83).
    ENDLOOP.
    "need to download such information as above to ms word
    "ole format
    CREATE OBJECT gs_word 'WORD.APPLICATION' .
    IF sy-subrc NE 0 .
    MESSAGE s000(su) WITH 'Error while creating OLE object!'.
    LEAVE PROGRAM .
    ENDIF .
    *--Setting object's visibility property
    SET PROPERTY OF gs_word 'Visible' = '1' .
    *--Opening a new document
    GET PROPERTY OF gs_word 'Documents' = gs_documents .
    CALL METHOD OF GS_DOCUMENTS 'ADD' = V_DOCUMENTS.
      CALL METHOD OF gs_selection 'TypeText'
    EXPORTING
    #1 = 'Overview Of The Employee'.
    "the output format would be like this .
    pernr    |   year   |    salary | .......
    Edited by: SYED_ibbu on Feb 23, 2011 11:07 AM
    Edited by: SYED_ibbu on Feb 24, 2011 5:57 AM

    hi experts,
    i Have to display multiple tables in the word document . i am displaying the first table but when i try to display the second table it is getting displayed inside the first table. When i debugged , i found that that the cursor is still in the first row of the first table even after the first table is displayed and the second table is displayed from that cursor position. How to get the cursor position after the end of the table ie outside the table to the main document.could some one help me on this. Below is the code i have used.
    GET PROPERTY OF GS_WORD 'ActiveDocument' = gs_actdoc.
    GET PROPERTY OF gs_actdoc 'Tables' = gs_tables .
    GET PROPERTY OF gs_selection 'Range' = gs_range .
    CALL METHOD OF gs_tables 'Add' = gs_table
    EXPORTING
    #1 = gs_range
    #2 = LINES
    #3 = '7'.
    GET PROPERTY OF gs_table 'Borders' = gs_table_border .
    SET PROPERTY OF gs_table_border 'Enable' = '1' .
    GET PROPERTY OF gs_cell 'Range' = gs_range .
    SET PROPERTY OF gs_range 'Text' = value .
    CALL METHOD OF gs_table 'Cell' = gs_cell
    EXPORTING
    #1 = P_TABIX1
    #2 = CNT.
    GET PROPERTY OF GS_WORD 'ActiveDocument' = gs_actdoc1.
    GET PROPERTY OF gs_actdoc1 'Tables' = gs_tables1 .
    GET PROPERTY OF gs_selection 'Range' = gs_range1 .
    CALL METHOD OF gs_tables1 'Add' = gs_table1
    EXPORTING
    #1 = gs_range1
    #2 = '2'
    #3 = '4'.
    with thanks in advance,
    syed
    Edited by: SYED_ibbu on Feb 25, 2011 5:39 AM

  • Highligh current row not working for classic report in 4.1

    Hello experts,
    One of our customers is migrating applications from APEX 3.0 to 4.1.
    All their applications use classic reports because interactive reports didn't exist in 3.0.
    The end users of the applications like the row color changing when they hover there mouse over the rows (highlight current row) and they insist on keeping this "functionality" in the applications.
    For some reason, this "functionality" doesn't work anymore after the migration to APEX 4.1.
    I thought it was something theme related so I created a new application with a classic report, tried some APEX built-in themes, and with none of them, I manage to get the highlight current row working.
    For interactive reports it is not an issue.
    Is this an undocumented no-longer-available feature of APEX 4.x or has there changed something which caused this functionality to stop working??
    Regards,
    Bart

    Hi,
    I created a service request for this issue, and the support analyst that helped me confirmed that this is a bug:
    "I have created the bug :
    Bug 13584762 - ROW HIGHLIGHTING NO MORE WORKS IN CLASSIC REPORT IN APEX 4.1
    While working on the problem , I have found the following solution in order to make the Row HighLightng work in APEX 4.1
    In the apex_4_1.min.js (file located in images\javascript ) , Search for :
    function setRowHighlight(a){apex.jQuery("#report_"+a+" .highlight-row").live("hover",function(b)
    and replace "hover" by "mouseover mouseout" :
    After the modification :
    function setRowHighlight(a){apex.jQuery("#report_"+a+" .highlight-row").live("mouseover mouseout",function(b)
    A refresh in the browser may be necessary in order to "reload" the file apex_4_1.min.js"
    I implemented the suggested workaround and this solved the problem!
    HTH,
    Matthias Hoys

  • Classic Report with a two-line row, the second one as a drop down?

    Hi,
    Using APEX 4.0 is it possible to make a classic report layout that has row items sorted in 2 rows? The first row for each SQL record set row looks like the classic report 'normal' row, while the second one contains just one single column value. This second row is supposed to be hidden and should be displayable by clicking a small '+' sign at the beginning of the row.
    I remember having seen this done, but I simply seem not to be able to formulate my query correctly to let Google display me the expected result. Although I am not sure if was APEX+jQuery or ExtJs. I hope though it is not ExtJS, since I do not plan to use that one.
    Thank you in advance.
    Tamas

    Is this for Verizon landline internet? If so, you should ask your question in the Verizon Residential forums. http://forums.verizon.com

  • Increasing Font in Classical Report

    Hi friends,
    I need a small help.
    Can we increase the font size of ABAP Classical Report ?
    I have tried the PRINT-CONTROL FUNCTION 'SF000'.
    But,of no use.
    Can we really increase the font size of ABAP Classical Report ?
    Regards,
    Imran.

    Be aware that the PRINT-CONTROL is not supported in SAP Enterprise 4.7
    For your information, SAP cannot provide any support to error caused by print control command (see SAP OSS notes 66478). * Parameters for function below should be taken from your printer
    configuration in SAP - check SPAD transaction -
    standard print control
    print-control position 1 function: 'CI006', 'SF015'.
    Submitted by : SAP Basis, ABAP Programming and Other IMG Stuff
    http://www.sap-img.com
    REPORT ZFONT NO STANDARD PAGE HEADING LINE-SIZE 80 LINE-COUNT 65.
    Start of print-control
    NEW-PAGE PRINT ON.
    PRINT-CONTROL FUNCTION 'SF000'.
    WRITE: / 'This is CPI 20'.
    SKIP.
    PRINT-CONTROL FUNCTION 'SF020'.
    WRITE: / 'This is CPI 6'.
    SKIP.
    PRINT-CONTROL FUNCTION 'SF008'.
    WRITE: / 'This is CPI 12'.
    Depending on your SAP printer device, this may also work
    PRINT-CONTROL FONT 1 LPI 6.
    you can try to change font and LPI numbers
    WRITE: / 'font 1 lpi 6'.
    PRINT-CONTROL FONT 2 LPI 6.
    WRITE: / 'font 2 lpi 6'.
    PRINT-CONTROL FONT 3 LPI 6.
    WRITE: / 'font 3 lpi 6'.
    End of print-control
    NEW-PAGE PRINT OFF.*--- End of Program
    Reward points if helpful
    Message was edited by:
            taranam dhindsa

  • How to insert a Grpahics logo in Classical report?

    Hi Experts,
    I need to insert a graphics logo in a classical report without using split screen or graphics control. The size of the logo is normal Company logo we use in Smartform. The difference here is : I need to print the logo in a classical report.
    Regards,
    Anid
    Reward Points Guaranteed.

    Hi..
    It is possbile only when u create ALV report. In normal report we cannot insert Logos.
    In case of ALV:
    Inserting Logo:
    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.
    <b>Reward if Helpful.</b>

  • Apex 4.0.1 classic report export

    Hello once again all you Application Express experts.
    I am having some difficulty getting an apex classic report to export the results of the report grid.
    This is a classic report being run, not interactive.
    It is also as an SQL Query (PL/SQL function body returning sql query) for the report identification type.
    The function body is of decent size, maybe 200 lines at most, but i have narrowed it down a couple of problematic lines.
    The report runs perfectly when I take out the follow line from the function...
    v_return := v_return || 'AND instr('':'' || ''' || :p3_status || ''' || '':'','':'' || xel.employment_status || '':'') > 0 ';
    So :p3_status is a checkbox item on the page, with three options: Active, Terminated, Retired.
    In the repeatable failure scenario :p3_status = 'Active'.
    One of the interesting parts is the report grid always returns the right results to the screen, it is just the report export that fails.
    It never errors, it just returns a no data response to the file being exported.
    This is Application Express v 4.0.1 running on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit.
    Any thoughts or any troubleshooting hints anyone can provide?
    Thanks,
    Hayden

    Hayden,
    Why do u need to append the item value in the PLSQL function body when apex will take of that(using its bind value).
    Your predicate is actually a static one since only the item value changes (and that can be handled by its bind value). So avoid concatenating it in the function body to build the clause(which has the additional problem of passing in the item value to the function)
    Change it to
    v_return := v_return || q'!AND INSTR(':'||:p3_status||':',xel.employment_status) > 0!';
    Notice that the :p3_status item evaluation happens only in the apex page
    Also making use of the q function to escape quotes, it makes life much more easier in these cases.

  • Regarding classical report

    Hi Experts,
    I have made a classical report having delivery no, sales order no and shipment no and many other details. Now I want to make three hot keys in this i.e
    Delivery no (VBELN)
    Sales order no (VBELV)
    and Shipment no (TKNUM)
    I did coding like this
    at LINE-SELECTION.
      DATA: l_vbeln TYPE VBELN_VL,
            l_vbelv type VBELV,
            l_tknum type TKNUM.
      get CURSOR FIELD likp-vbeln VALUE l_vbeln.
      set PARAMETER ID 'VL' FIELD l_vbeln.
      CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
    get CURSOR FIELD lips-vbelv VALUE l_vbelv.
      set PARAMETER ID 'AUN' FIELD l_vbeln.
      CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
    get CURSOR FIELD vttp-tknum VALUE l_tknum.
      set PARAMETER ID 'TNR' FIELD l_tknum.
      CALL TRANSACTION 'VT03N' AND SKIP FIRST SCREEN.
    But I am facing a probelm in this:
    Whichever hot key i am clicking,it's opening all the transaction with that key for exam say I am clicking vbeln with value 'A' it's first opening VL03N. After this when i am clicking back, It's opening VAL0 with same key A (It's shoing Invalid Sales order no) and after that it's opeing VT03N with the same key.
    Please tell me how I can open only the trancation for which user is clicking.
    Thanks a lot
    Regards
    Krishan

    Hi,
    Pl. check this sample code..may be it will help u.
    *& Report  Z_DEMO_JG
    *& Download graphics from BDS
    REPORT  z_demo_jg.
    data: i_mara type standard table of mara.
    data: w_mara type mara.
    data: i_vbak type standard table of vbak.
    data: w_vbak type vbak.
    start-of-selection.
    select * from mara
    into table i_mara
    up to 10 rows.
    select * from vbak
    into table i_vbak
    up to 10 rows.
    loop at i_mara into w_mara.
    write : / w_mara-matnr.
    hide w_mara-matnr.
    endloop.
    loop at i_vbak into w_vbak.
    write : / w_vbak-vbeln.
    hide w_vbak-vbeln.
    endloop.
    clear : w_vbak,
            w_mara.
    at LINE-SELECTION.
    if not w_vbak-vbeln is initial.
    set PARAMETER ID 'VL' FIELD w_vbak-vbeln.
    CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
    clear w_vbak-vbeln.
    endif.
    if not w_mara-matnr is initial.
    set PARAMETER ID 'MAT' FIELD w_mara-matnr.
    CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
    clear w_mara-matnr.
    endif.
    Regards,
    JOy.

Maybe you are looking for

  • Report Parameters behaving strangely

    Hello, I just completed my report in the designer provided with visual studio 2008, it's a relatively complex report with 6 subreports and has multiple detail sections. The parent report has one parameter which is used in a Database command. The repo

  • ICloud forcing sign in and can't access settings to turn data on

    My wife's iPhone 5s has data switched off while overseas.  When accessing the camera, the phone started to ask her to sign in to iCloud. As data is off, it will not accept the password (incorrect Apple ID password). When you press cancel it immediate

  • Problem with Java scrolling text window on Mac OS

    The Java scrolling text window created by AWT "TextArea" scrolls in the normal way from the top on Windows, whereas it scrolls from the bottom on the Mac OS. That is, the text file is first displayed from the bottom on Mac, so that the user has to sc

  • Change the amount & its corresponding values in Billing conditions

    HI,            i need solution for changes in amount & its corresponding values in Billing conditions . i have a contract & it hv a 3 line items . in 1st  line item i hv sm condition value at the time of contract creation . but i want to change this

  • InDesign won't open. Photoshop

    InDesign won't open. Photoshop & Illustrator do. I tried to register my product (Adobe Creative Suite 6 Design & Web Premium) but it won't take my code.