Using DAO for reports or lists?

Kind of a dumb question, but I'm trying to improve (read that start) the MVC isolation in a web application using JSP.
I have created DAO's for the common business objects, but when it comes to reporting, what's the best way to do this?
For example, a Contact will have a ContactDAO, and will represent a specific thing. But if I want a list of contacts added this month, what's the "best practice" way of getting those?
It seems horribly inefficient to return an array of Contacts.
We're hard-coding the query into the page - which I know is a bad idea. But it's fast.
Any thoughts would be appreciated.

Same query as will be executed by the DAO. Only
difference is that you're iterating through a
ResultSet instead of a List. What's so much better?Yes, we're returning a ResultSet which the calling page scrolls through. Just requires the programmer to close the connection when they're done. This works, and is fast, I just wasn't sure it was in line with "best practices".
If you're saying that it's inefficient to get one DAO
at a time instead of SELECTing them all at once, I
agree. It'd be better to provide an interface that
would bring all those Contacts back in one query.
(That's the object-relational impedence mismatch,
writ large.) Write a finder that can bring back one
or many Contacts, depending on the criteria. I'd
just overload the find() method.So that does actually fall in line with current thinking then? Good. I was going to reject returning a collection of Contacts.
Thanks for the response. And 4 and a half years! Wow. We really HAVE been busy.... (actually my last 3 years have been at a M$ shop - I'm slowly "converting" them to power, beauty and speed of J2EE).

Similar Messages

  • Generate spool req number for report output list

    Hi,
    How to generate spool request number for report output list while executing the report.Please provide if you have any sample code.
    Thanks and Regards,
    BSR.

    HI srinivas,
    welcome to sdn.
    Exporting the Contents of a Spool Request
    Use
    You want to export the content of a spool request in one of the following ways:
    ·        As a text file to the SAP GUI working directory
    ·        Unconverted or as a table, RTF, or HTML to a directory of your choice
    ·        As a PDF file to a directory of your choice
    Procedure
    Follow the procedure below:
    Exporting to the SAP GUI Working Directory
    If you are exporting large quantities of data, downloading the spool request as a text file to the SAP GUI working directory is a good solution.
    Choose Spool Request ® Forward® Export as Text.
    The entire text is stored in your SAP GUI working directory in ASCII format.
    A file of this type is named using the following pattern:
    .txt
    Example: ABC0000004327.txt
    You require appropriate authorization for this function from your administrator.
    Exporting Unconverted or as a table, RTF, or HTML to a Directory of Your Choice
    With this method of exporting a spool request, the content of the spool request is first displayed, and you then download the content in the format of your choice to a directory of your choice.
           1.      Select the spool request to be exported and choose  Display Contents.
           2.      In the case of SAPscript/Smart Forms documents, activate list display by choosing Goto.
           3.      Choose System ® List ® Save ® Local File.
           4.      Choose one of the available formats and confirm your choice.
           5.      Choose a directory and save the spool request.
    By default, only the first 10 pages of a spool request are saved in a file. You can increase the number of pages to be saved by choosing Goto ® Display Requests ® Settings and making the desired entries in the Display Area group box.
    Exporting as a PDF File
    You want to export the contents of a spool request as a PDF file to a directory of your choice, and print the file as required. The PDF file contains the print data in the format in which it would be output by the printer.
    The following procedure is irrelevant for the printing of PDF-based forms, since a PDF file is already returned with this method. See also Displaying and Printing PDF-Based Forms.
    You also require authorization from your administrator to run this report.
    The PDF file is generated as follows with report RSTXPDFT4:
           1.      Generate a spool request from the document to be printed.
           2.      In transaction SE38, start report rstxpdft4.
           3.      In the displayed window, enter the spool request number and the directory in which the PDF file is to be stored.
    Leave the Download PDF File option selected.
    Choose  Execute.
           4.      In the next window, you can confirm or change the path in which the file is be stored.
    Save your entries.
           5.      The system displays a log from which you can see whether the report was successfully performed.
    You can then open the file from the directory and print it as required.
    Restrictions for Exporting as a PDF File
    ·        The PDF conversion only supports true bar codes for Smart Forms, which were generated with the new bar code technology as of SAP NetWeaver 04. In all other cases, the bar code is only simulated.
    ·        PDF conversion, especially of ABAP lists, is slower and is therefore not suitable for mass printing. However, you can speed up the conversion to PDF using the FASTLISTCONV option in report RSTXPDF3.
    ·        The font selection for ABAP lists is predefined in the PDF converter and cannot be changed.
    For more information about constraints, see SAP Note 323736 in the SAP Service Marketplace
    see this links
    http://help.sap.com/saphelp_40b/helpdata/en/d9/4a98f351ea11d189570000e829fbbd/content.htm
    http://web.mit.edu/SAPR3/docs/webdocs/reports/rpRFprint.html
    regards
    shankar
    reward me if usefull

  • Last Used status for Reports, Transactions, Tables ??

    Dear all,
    Kindly let me know how to find the last used status for
    Reports, Transactions, Tables ??
    This is very urgent, Please do the needful.
    Waiting for the responses..
    Cheers,
    Virendra.

    Here the issue is same.
    STAT transaction is asking for the time which is the main hurdle.
    I am hanging around with STAT transaction but not finding
    how to getover the time specification.
    if i dont specify the time i takes by default the 2 or minutes back from the current time.
    which is not useful for me at all.
    My main requirement is that my seniors want to know what are all reports or transaction or tables which are not used at what last time ?
    so if i have to specify the time wont be so useful for me.
    And writing a report 'll not gain anything coz internal SAP report is take time as main parameter.
    Regards,
    Virendra.

  • XML to Flat File DB Table So I and Others Can Use SSRS for Reporting

    I'm using a program called Orbeon Forms to quickly create and distribute forms on the local network.
    The program just recently got updated to Version 4.6 so as to use SQL Server DB as a backend. (I was using MySQL in a lower versions)
    The data created when you submit a form into the database is held in  xml fomat in one of the columns. (see below).
    I am trying to create a separate table, to pull that data from the xml column (for that particular form) and place it in to a seperate table using the xml tags as columns.
    I have no idea where to start or how to do this. Please keep in mind I'm a novice when it comes to sql server (but I do know how to do select statements :-)....
    Is this very difficult to do? If it is (for me at least) where can I go to get someone to do it for me along with the documentation to do it?  I was also thinking of a way to create a trigger on the Orbeon table (this is how it is setup currently in
    the MySQL database) to automagically insert any saved form data to the new form data table. Is this also difficult to do? And can I have a trigger for each form I create on the table?
    If anyone can help, I'd appreciate it. Thanks.
    I would eventually like to add the form data from the old MySQL database table into this new Orbeon table but it appears the upgrade also added two extra columns. I figuring once in the Orbeon table then I will have to run whatever statements to place into
    the separate table so I can use the data.
    Randy Marrero

    Erland thanks for the reply. Even after reviewing the link you sent I'm still having problems. Guess that is why I'm not a programmer. Anyway I've create a test data form xml I've created and it is copy and pasted below.
    Again I'm only really interested seeing if I can get the information out of the xml and create it in its own flat file table. I keep reading that creating a trigger (when the form gets submitted into this database in the xml format, an on insert trigger
    would take all the data submitted and inserted into another table with just the data, into separate columns)  for this is the best way but I'm not sure how to do this either. I have a copy of what the MySQL trigger would look like but keep running
    into errors when I try to run it in SQL Server.  Also the issue with how I would create another trigger if / when I create another form. I read somewhere I can only create one on insert trigger per table, still don't know this to be true. Anyway below
    is the xml as it is in the xml table in the database.
    XML STARTS HERE------------------
    <
    formxmlns:oxf="http://www.orbeon.com/oxf/processors"xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"xmlns:xh="http://www.w3.org/1999/xhtml"xmlns:xi="http://www.w3.org/2001/XInclude"xmlns:ev="http://www.w3.org/2001/xml-events"xmlns:saxon="http://saxon.sf.net/"xmlns:xs="http://www.w3.org/2001/XMLSchema"xmlns:odt="http://orbeon.org/oxf/xml/datatypes"xmlns:fb="http://orbeon.org/oxf/xml/form-builder"xmlns:xxf="http://orbeon.org/oxf/xml/xforms"xmlns:xbl="http://www.w3.org/ns/xbl"xmlns:xpl="java:org.orbeon.oxf.pipeline.api.FunctionLibrary"xmlns:sql="http://orbeon.org/oxf/xml/sql"xmlns:p="http://www.orbeon.com/oxf/pipeline"xmlns:fr="http://orbeon.org/oxf/xml/form-runner"xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xf="http://www.w3.org/2002/xforms"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:exf="http://www.exforms.org/exf/1-0">
      <
    Header>
        <
    HHIFR_Patch>/fr/service/persistence/crud/bfp/permits/form/738433584d6c0aff25e0ab8ca1bd99bcc7e10b49.bin</HHIFR_Patch>
      </
    Header>
      <
    Permit_Number_Hdr>
        <
    Permit_Number>Test123</Permit_Number>
      </
    Permit_Number_Hdr>
      <
    Permit_Info_Hdr>
        <
    Permit_Date>2014-07-15-05:00</Permit_Date>
        <
    Permit_Station>HQ</Permit_Station>
        <
    Permit_Employee_Number>0676</Permit_Employee_Number>
        <
    Permit_Status>Active</Permit_Status>
        <
    Employee_Name>Randy
    Marrero</Employee_Name>
      </
    Permit_Info_Hdr>
      <
    Applicant_Info_Hdr>
        <
    Applicant_Name>Randy
    Marrero</Applicant_Name>
        <
    Applicant_Phone>8434741099</Applicant_Phone>
        <
    Applicant_Email>[email protected]</Applicant_Email>
      </
    Applicant_Info_Hdr>
      <
    Mailing-Address-Section>
        <
    Mailing_Address>40
    Summit Dr</Mailing_Address>
        <
    Mailing_Suite/>
        <
    Mailing_City>Hilton
    Head Island</Mailing_City>
        <
    Mailing_State>SC</Mailing_State>
        <
    Mailing_Zip>29926</Mailing_Zip>
      </
    Mailing-Address-Section>
      <
    Physical_Burn_Hdr>
        <
    Physical_Address>35
    Summit Dr</Physical_Address>
        <
    Physical_Suite/>
        <
    Physical_City>Hilton
    Head Island</Physical_City>
        <
    Physical_State>South
    Carolina</Physical_State>
        <
    Physical_Zip>29926</Physical_Zip>
      </
    form>
    XML ENDS HERE ------------
    Randy Marrero

  • How do you use tools for reporting in oracle?

    Hello,
    I have a question about reporting in oracle pl/sql..., how tools do you use to reporting in oracle?
    ths,

    Hello,
    reporting in "Excel" files is often required. And there are free tools to do so.
    https://xml-spreadsheet.samplecode.oracle.com/ or
    https://exceldocumenttype.samplecode.oracle.com/
    Others can be found at Re: How to save a query result and export it to, say excell?
    Regards
    Marcus

  • Using Siri for To Do List

    Is there native To Do function built in with Siri capabilities? I know about reminders, but curious if there is a simple alternatives where i can just list my tasks. Thanks!

    I have the same, let´s call it, deficit problem from iCal. I have around 1000 contacts in my iCal computer and iPhone and it is difficult to manage a lot of customers and suppliers.
    It would be thousand times easier to have sub-groups, as for example, Customers, then Customer_1, Customer_2 and so on ...
    Meanwhile ... i did not find any solution
    Hope Apple can think that is an advantage caracteristic for their software and does an update.

  • How to: Using BADI for reporting variables

    I am familiar with using the exit RSR0001. However I never used a BADI to implement such a variable.
    Is there some information available to get me started?

    Hi,
    These should help you:
    [Implementing a Business Add In (BAdI) in an Enhancement|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0456c54-0901-0010-f0b3-cd765fb99702]
    [Enhancing DataSources with BAdI RSU5_SAPI_BADI|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7]
    Even check these blogs:
    [Which carries stronger SAP "guarantees": BAdI's or Exits?|Which carries stronger SAP "guarantees": BAdI's or Exits?]
    [SAP Network Blog: A new kid(BAdI) in town|A new kid(BAdI) in town]
    Cheers,
    Habeeb

  • Abap code used for reporting

    Hi Gurus;
    Can some one send me the abap codes used mainly for reporting OR can some one give me some sample code used in reporting. my mail id "[email protected]".

    smod > rsr0001 > EXIT_SAPLRRS0_001 > ZXRSRU01 >
    CASE I_VNAM.
    WHEN 'ZE_FPPT'.
        CALL FUNCTION 'Z_VAR_FP4'
          EXPORTING
            I_VNAM        = i_vnam
            I_STEP        = i_step
            I_T_VAR_RANGE = I_T_VAR_RANGE
          IMPORTING
            E_T_RANGE     = E_T_RANGE.
    FUNCTION Z_VAR_FP4.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_VNAM) LIKE  RSZGLOBV-VNAM
    *"     REFERENCE(I_STEP) TYPE  I DEFAULT 0
    *"     REFERENCE(I_T_VAR_RANGE) TYPE  RRS0_T_VAR_RANGE
    *"  EXPORTING
    *"     VALUE(E_T_RANGE) TYPE  RSR_T_RANGESID
    data: l_s_range type rsr_s_rangesid.
    data: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    data: year(4).
    data: mth(2).
    IF I_STEP = 2 .
      LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE
            ( VNAM = '0I_FPER' ).
          year = LOC_VAR_RANGE-HIGH+0(5).
          mth = LOC_VAR_RANGE-HIGH+5(2).
               if mth < 10.
            concatenate '0' mth into mth.
          endif.
          concatenate year '0' mth into L_S_RANGE-HIGH.
          L_S_RANGE-SIGN = 'I'.
          L_S_RANGE-OPT  = 'EQ'.
          APPEND L_S_RANGE TO E_T_RANGE.
        ENDLOOP.
      ENDIF.
    ENDFUNCTION.
    Regards,
    BWer
    Assign points if helpful.
    Message was edited by: BWer

  • UOM Conversion changes where conversion is only used for reporting

    I think this is a different situation than I've seen in other posts.
    We have a UOM conversion from CS to POUND (i.e. 1 case = 30 pounds), and at some point may want to change it so that 1 case = 28 pounds. In our situation, all transactions are done at the CS (primary UOM) and the weight is only used in calculations to print on shipping documents. Is there any harm in just changing the 30 to 28 when that time comes? Again, there are no transactions that reference the weight, no PO's, no SO's, no financials, etc.
    We also have a similar situation where a PALLET may contain 100 cases now, but in the future be reconfigured to contain 90 cases. Same idea, nothing is transacted in Pallets, and the conversion is only used in reporting. Seems like it would be OK to change that conversion without causing problems. Any thoughts?
    Thanks for your insights!
    Bill
    (Running r12.1.3 with OPM)

    I think this is low risk - just make absolutely sure that the uom was not used for customer pricing, internal pricing, boms, on ASL, on price breaks, on quotes, on POs, on material transactions, wip moves etc.
    As long as it was truly used just for reporting, you should be ok.
    Sandeep Gandhi

  • Using Voyager for BW cube reporting

    Hi folks,
    Am trying to use Voyager for reporting off a BW multicube. This is the first time am trying this tool out. Can't seem to find anything for Navigation attributes in the data panel when trying to create new queries. The same also applies for the display attributes attached to the Infoobjects, in that they do not appear on the Voyager side. How can this be handled at all? Or is that a known limitation?
    On another front, are there any ways to create restricted key figure type functionality in Voyager? How can that be approached?
    Appreciate any information on the above.
    Thanks,
    Rv

    Hey,
    Okay, first of all, i was able to create queries so there is definitely more to that then. I could not see any BW queries for the multicube in the Voyager .. are there any special settings that would show those queries?
    Modifying queries - i could do that as well but then this is only applicable to the ones i created in the Voyager workspace. I am guessing you were referring to the BW queries in your note.
    Okay, so for the RKFs, are there any other ways to overcome that limitation such as if my column spread to be something on these lines. Column 1 - Actual version for Previous year Sales , Column 2-Actual version for current year Sales and so on...
    Thanks for looking !

  • Using Oracle Essbase For Report Purpose

    Good afternoon all,
    I am new in Oracle Essbase. I will appreciate If I can get a link on how to setup Essbase and use it for report purpose.

    start here http://download.oracle.com/docs/cd/E12825_01/nav/portal_1.htm it has all of the information on installation and setup

  • Tcode for report: PO missed delivery date

    Dear SAP Gurus,
    Kindly let me know is there any T-code for report which list the purchase orders missed for delivery date.
    Please help.
    Regards,
    Prashanth

    Dear
    your can your TCODE -  ME2M.
    Select Delivery Date field do the following step
    1. click on Multiple selection Button
    2. click on maintain selection option
    3. select single value and click continue.
    run the report. This may be useful to you.
    Regards,
    Pravin Kadam.

  • Strategies for report management?

    Folks -- I'm a newbie to development, and to reports development, and to  Crystal.  So I know how thrilled y'all will be to work with me!
    I am responsible for report development for a new HRIS system we're implementing.  We have Crystal Reports (XI rel 2) and the "eval" 5-user version of Crystal Reports server that comes with it.  Right now, I'm trying to use that for report distribution, though I'll probably have to learn Visual and move that way for more widespread distribution.
    In the meantime, the onslaught of report requests is overwhelming me -- not only in terms of getting them done, but in terms of MANAGING them.
    With Crystal Server, my files are saved to this weird directory structure (like c$\Program Files\Business Objects\BusinessObjects Enterprise 11.5\FileStore\Input\a_012\019\000\4876\crypticname.rpt).
    I'm trying to find an easy yet logical way to manage the REQUESTS, DEVELOPMENT, and finalization of all of my reports (I will have, probably, 50-100 when all done, but they're constantly changing).
    I tried keeping a "local" folder structure and then only moving them to the server when they're "finalized."  This is proving difficult, because of the "urgent" change requests that come in (we're not in a highly-structured environment).
    I would love to hear how others manage their reports inventory.  Have you built a database (using what?)?  Bought a product?    I'm just coming up clueless on the best/easiest way to do this!
    Thanks
    MK

    Hi Kent,
       What a brave guy !
    First off, you need to a simple, consistent, helpful way to deal with the users requests. 
    You need a report requirements sheet.
    This sheet will contain things like:
    -Purpose of report
    -Report Title (...this is more important than you might think.
         For instance, if it's and inventory report, you might want all in this group to start with "INV", like "INV_Fall_Summary", etc.
    That way, they are all listed together in the folder, db, etc.)
    ...then table.field + filter like...
    -Table.field  > 5
    -Table.filed between 2 and 8
    ...then, when someone wants a report, they fill out the requirements sheet and hand it to you.  Also include a place for them to sign it.  Most people are pretty cool, but occasionally your boss says "..they say that's not what they asked for..."
    and you can say "...is this their signature ...?"
       If they want a change, they fill out a change request.
    Both the requirement sheet and change request make the user thing about what they are asking you for.  What you DON'T want, is for someone to just drop by your desk and say "hey, can write me up a quick one on blah, blah..."...'cause, sure enough, they'll walk away and you'll be stuck just trying to remember a part of what they said...even worse, they won't remember it all either.
    Happy Hunting,
    The Panda
    ...then you need report standards like...
    -Report Title: Arial 16 Bold
    -Groups Headings : Arial 12 Bold
    -etc

  • Hotspot for report

    Hello,
    A couple of things about putting on hotspot on the reports, which once again I am new to:
    1. As usual, is there any good internet resources and example programs that I can refer to?
    2. Does that mean for each part of information to be opened, I will have to create a new internal table for that? say for example, if I would like to put all the pernr that belongs to EE groups into a hotlink so that user could click on EE groups to get the list of pernr, do I have to have an intenral table for all the EE groups and one for all pernr for each EE group?
    Thanks a lot!
    Regards,
    Anyi

    Hi,
    Go thru this docu & link.
    http://www.erpgenie.com/abap/drill_down_reports.htm
    <b>HIDE technique</b>
    In this case thins are much simpler. Consider the case, wherein you display fields from table sflight in basic list. When user double clicks on any sflight-carrid, you are displaying the detailed information related to that particular carrid on secondary list.  Hence there is a need to store the clicked carrid in some variable.  So that you can access this carrid for next list. ABAP/4 has facility; a statement called HIDE, which provides the above functionality.
    HIDE command temporarily stores the content of clicked field in system area.
    Syntax:
    HIDE <FIELDS>.
    This statement stores the contents of variable <f> in relation to the current output line (system field SY-LINNO) internally in the so-called HIDE area. The variable <f> must not necessarily appear on the current line.
    You have to place the HIDE statement always directly after the output statement i.e., WRITE for the variable <f>.  As when you hide the variable, control is passed to next record.  While writing, WRITE statement takes that record from header and writes it on to the list, but when writing onto your interactive list you will miss out 1st record.
    To hide several variables, use chain HIDE statement.
    As soon as the user selects a line for which you stored HIDE fields, the system fills the variables in the program with the values stored.  A line can be selected.
    •     By an interactive event.
    For each interactive event, the HIDE fields of the line on which the cursor is positioned during the event are filled with the stored values.
    The HIDE area is a table, in which the system stores the names and values of all HIDE fields for each list and line number.  As soon as they are needed, the system reads the values from the table.  (Please try to find the name of this table.)
    Sy-lsind indicates the index of the list and can be used to handle all the secondary lists.  When the user double clicks on the line or presses F2, sy-lsind is increased by one and this new sy-lsind can be handled.  For example:
    Write: / ‘this is basic list’.
    •     Will create a basic list.
    If sy-lsind = 1.
    Write: / ‘this is first secondary list’.
    Elseif sy-lsind = 2.
    Write: / ‘This is second secondary list’.
    Endif.
    When this code is executed,
    •     Basic list is produced.
    •     When the user clicks on the basic list, sy-lsind becomes one.
    •     AT LINE-SELECTION event is triggered.
    •     Whatever is written under IF Sy-lsind = 1, gets executed.
    •     Secondary list is produced.
    •     Again if user clicks on this list, sy-lsind becomes two.
    •     AT LINE-SELECTION gets triggered.
    •     Code written under IF Sy-lsind = 2, gets executed.
    A sample program for AT LINE-SELECTION.
    User interface
    An interactive report starts with basic list where condensed information is stored on basic list and detailed information is stored on secondary list. To implement this kind of reporting, you need to provide the user with things like menu, icons, function keys. You also need to write code, which must react, to the user’s action.
    For this, you need to create the interface, which interacts with the user.
    The user interface is independent of the program or list or screen. However both interface and list can be associated by means of GUI status. A GUI status groups together the interface components.
    •     Menu bar
    •     Application tool bar
    •     Function keys
    •     Title bar
    The last element of the user interface is independent of the GUI status i.e., titlebar.
    To assign status to your list the statement SET PR-STATUS.
    Some facts about GUI status are:
    •     A program can have multiple GUI status and titles for different lists.
    •     Multiple lists can be assigned to same GUI status.
    •     Normally both GUI status and title go together.
    Addition 4
    ... HOTSPOT [{ON|OFF}|{= flag}]
    Effect
    This addition influences the display of the mouse pointer and the function of the mouse in the list displayed on the screen. For flag, a data object of type i is expected. If ON is specified or if the content of flag is not equal to 0, then when the mouse pointer is positioned on the list area that is formatted correspondingly, it changes its appearance to a hand, and a single click has the same effect as a double-click, that is, selection of function key F2 . If OFF is specified or if the content of flag is equal to 0, the function of the mouse does not change (default setting). If neither ON, OFF nor flag is specified after HOTSPOT, then the ON addition takes effect.
    If the attribute INPUT ON is set, the HOTSPOT ON addition has no effect on line elements.
    Example
    Demonstration of a hotspot. Clicking once on the output creates a details list.
    START-OF-SELECTION.
      FORMAT HOTSPOT.
      WRITE 'Click me!' COLOR 5.
      FORMAT HOTSPOT OFF.
    AT LINE-SELECTION.
      WRITE 'Yeah!' COLOR 3.
    Addition 5
    ... INPUT [{ON|OFF}|{= flag}]
    Effect
    This addition makes list areas ready for input. For flag, a data object of type i is expected. If ON is specified or the content of flag is not equal to 0, the relevant list area is displayed with a different foreground and background color than the rest of the list, and the user can overwrite the output. The screen cursor is positioned in the first field that is ready for input. If OFFis specified or the content of flag is equal to 0, the output is not made ready for input (default setting). If neither ON, OFF nor flag is specified after INPUT, the ON addition takes effect.
    Within an area that is ready for input, icons are displayed empty and symbols are displayed as characters according to the codepage. Line elements are not made ready for input. The "-" und "|" characters in a list area that is ready for input are not converted into line elements, however, and are displayed ready for input. the latter applies particularly to the ULINE statement.
    The width of the list area that is ready for input is defined by the output length. If in Unicode systems the display of contents from the list buffer in a list area that is ready for input results in truncation, the indicator is placed outside the area. The number of characters that can be entered is limited by the output length. The content cannot be moved. In ar. In Unicode systems, the number of characters that can be entered depends on the space that the individual characters require.
    The entries made by the user are saved in the list buffer and can be evaluated during a list event. If characters were truncated in the list, then they will also be lost in the list buffer.
    Note
    If a list line contains an inout field with blank characters exclusively, it is not displayed if the SET BLANK LINES ON statement was not executed beforehand.
    Example
    Output of a ready for input field and evaluation of the AT-LINE-SELECTION result. The evaluation is done only if the user clicks on the hotspot below the line that is ready for input.
    DATA: input_field(100) TYPE c,
          line_num TYPE i.
    START-OF-SELECTION.
      WRITE 'Input text:'.
      SET BLANK LINES ON.
      FORMAT INPUT.
      WRITE / input_field.
      FORMAT INPUT OFF.
      WRITE / '>>> OK <<<' COLOR 5 HOTSPOT.
    AT LINE-SELECTION.
      IF sy-lisel = '>>> OK <<<'.
        line_num = sy-lilli - 1.
        READ LINE line_num FIELD VALUE input_field.
        WRITE:   'The input was:',
               /  input_field.
      ENDIF.
    Addition 6
    ... FRAMES [{ON|OFF}|{= flag}]
    Effect
    This addition determines whether the "-" and "|" characters are converted into line elements. For flag, a data object of type i is expected. If ON is specified or if the content of flag is not equal to 0, the conversion is made in the relevant list area (default setting). If OFF is specified or if the content of flag is not equal to 0, the conversion does not take place. If neither ON, OFF nor flag are specified after FRAMES, the ON addition takes effect.
    In the FRAMES ON setting, the following points apply:
    If the "-" and "|" characters are output directly next to each other or above each other, then they are replaced by line elements, resulting in continuous lines (frames). This applies particularly to lines output using ULINE.
    A solitary "|" character is always replaced by a vertical line.
    Line elements that are explicitly output with the AS LINE addition are not replaced by line elements and they do not influence "-" and "|" characters that are next to each other.
    In the FRAMES OFF setting, the "-" and "|" are not converted into line elements. You can explicitly output line elements using the AS LINE addition.
    Note
    The FRAMES OFF addition is suitable for preventing unwanted results in print lists. This applies particularly to lists that are intended for archiving.
    Example
    Output of a frame with an without connecting the characters "-" and "|".
    FORMAT FRAMES ON.
    PERFORM frame.
    FORMAT FRAMES OFF.
    PERFORM frame.
    FORM frame.
      SKIP.
      WRITE: / '----',
             / '|  |',
    ENDFORM.
    Addition 7
    ... RESET
    Effect
    This addition sets all formatting settings for which the corresponding addition is not specified in the same FORMAT statement to the state OFF, apart from the setting of the FRAMES addition, which is set to ON. For settings whose addition is also specified, the RESET addition has no effect,
    The following table shows the effect of RESET compared with the default setting, the setting at the program start and the setting that is made for reporting and list events.
    State State after RESET State after program start State after reporting or list event
    COLOR OFF OFF OFF
    INTENSIFIED OFF ON ON
    INVERSE OFF OFF OFF
    HOTSPOT OFF OFF OFF
    INPUT OFF OFF OFF
    FRAMES ON ON No change
    Example
    This FORMAT statement creates the default setting after the program starts.
    FORMAT RESET
           INTENSIFIED ON.
    Thanks
    sunil

  • Which one is better ODS-INFOCUBE for reporting in BW

    Hello expert's
    1.I want to know which one ODS or INFOCUBES are better (technically/functionally) for reporting  purpose in BW.if some one is having any comparisons on ODS/INFOCUBE then plz pass on to me.
    2.Are Z tables reliable in case of data updation and fetching when we create ODS/INFOCUBE.
    3.HOW RELIABLE THE "Z"(*TABLES/REPORTS) are in SAP-BW/R/3-ABAP.

    1.Cubes are optimized for reporting..due to star schema structure.Use cubes for reporting aggregated data to be accessed by large number of users.
    ODS are for detailed level reporting.ODS structure is like flat DB table.
    usually drilldown is setup from cube report to the ODS report.
    2.Are u referring to custom ODS and cubes..then they have the Z tables internally..reliability depends on ur design.But always try to use BC content,else copy BC content and change/enhance it.else if no BC content found then create Z-content directly.
    3.Again,depends on the design.But always using BC content is suggested.
    cheers,
    Vishvesh

Maybe you are looking for

  • Error log file

    Hi, If I got the error while importing data through import manger, where I get this error list? What is the path? Where the error log file is store? explain me indetail for when occuring errors in data manger, imort manger, syndicator. Thanks in Adva

  • How can I set the 27" Imac to have full resolutions not 1280x720

    Currently its not using the full res - I only have the display options of 1280 x 720

  • Opening in edit page

    just reistalled elements 9 on new hard drive and can't get to open dorectly into the edit page

  • Cannot active my playbook

    Dear expert, I just have on hand my playbook. Now, i cannot active it when it still hanging on Limited Warrantly screen. I will tell about story how i did with it: The first time, i choose the Wifi which signal not good, so when i setup for the first

  • HELP NEEDED - 530 user cannot log in

    I'm using CS5.5 and would desperately like some advice over a very odd problem. For some reason I have a duplicate website  showing in DW. It is not on the desktop and doesn't appear in any search. The original - Cumbria Dog Training, ha sbeen joined