Preferred style of writing listeners

As a programmer who is just now seriously learning Java, I use two main books for references:
Java: How to Program (3rd Edition) by Dietel and Dietel
and Teach Yourself Java 2 in 21 Days (3rd edition) by Cadenhead and Lemay
The books differ on how they write listeners. Dietel suggests that you add a seperate listener to each component via an anonymous inner class, as below:
myComponent.addActionListener(
   new ActionListener()
      public void actionPerformed(ActionEvent e)
         // do stuff
);Cadenhead and Lemay, however, suggest that your main class should implement one ActionListener and add it to all components that have actions associated with them, as below:
public class myApplication extends JFrame implements ActionListener
   public void actionPerformed(ActionEvent e)
      if (e.getSource() == "a component")
         // do stuff
      if (e.getSource() == "another component")
         // do other stuff
      // etc., etc.
}I can understand not wanting to have so many anonymous inner class files, but at the same time I see the appeal to not having to check so many if statements. For a medium-sized application, which is preferred and why?

My preference is to use one inner class per listener, the Dietel way. That way my code says "Here's a button. And here's what happens when it's clicked on." That works for me provided that all the buttons do different things. But if I had a situation with 10 buttons that all did essentially the same thing (as in a calculator) then I would probably do something more like the Cadenhead and Lemay, since you wouldn't end up with a massive case-statement inside the single listener.
That's just my personal opinion. I don't even mind writing anonymous inner classes inside anonymous inner classes, following the rule I implied above of "code the object's behaviour next to its declaration". However many people would find that difficult to follow and to maintain, and I can sympathize with that viewpoint. You'll notice that I don't have trouble writing long complex sentences full of those clause things, either, so perhaps I'm not the best guide for simplicity.

Similar Messages

  • Preferred style of event handling?

    Having developed several java applications I found that my preferred method of event handling in java is to have one component (often named EventHandler) which implements ActionListener's, MouseListener's, ListSelectionListeners, etc. I like this approach because it allows me to finalize code such as menu bars, toolbars, etc and essentially turns the EventHandler into the engine of the application.
    The problem I often run into is that while a lot of our code is finalized and can be left alone, the EventHandler becomes monstrously large with all of the logic code necessary to make the application accomplish it's task.
    I would really appreciate some ideas/opinions on this topic and possibly ways to improve this design which might make it easier to handle the events of a java app.

    I find it useful to create event handlers that focus on a particular function like a toolbar or menubar or whatever. For example, I would create a MyFrameMenuEventHandler for all menu events. If that became to cumbersome I would break the event handler up into menus like MyFrameFileMenuEventHandler and MyFrameEditMenuEventHandler.
    All of my event handlers really do nothing but call handler methods on the parent object from which the event originated (usually a frame object). This allows mapping of the same event from different sources to the same handler code.
    It also allows subclasses to override the handler methods without needing to modify the event handlers. It is also useful for providing hooks like afterFileOpen and beforeFileOpen for the handleFileOpen handler method.
    If the class containing the handler methods becomes to cumbersome you could subclass the frame, for instance, and include a logical subset of handler methods. Provide additional subclasses for the remaining handler methods. For example, you might have MyFrame, which creates components, sets layout, providers component accessor methods, and creates event handlers and registers components. Then create a subclass of MyFrame called MyFrameMenuHandler that contains all handler methods for menu events and so on.
    Although if classes start getting this big you probably would need to break it up into logical components to make it more manageable.
    I have used this technique both in Java and Forte 4GL--where I original used the technique.

  • What is your programming style with C-like-syntax langauges?

    EDIT: I decided this might be better off as a general style thread for C-like-syntax languages (C, C++, Java, ObjC, D)
    Everyone, what's the general style you use with languages that have a bracketed syntax like C does?
    What are the advantages to your style, as you see it?  For example, K&R style saves vertical file length, but Allman (aka ANSI) makes block starts more clear.
    A nice rundown of some common ones here: http://en.wikipedia.org/wiki/Indent_style
    And, what is your preferred 'style' when it comes to comments in C?
    Do you use the C++-style '//' comments for single lines, or do you still use the C-style '/**/', and why?  Is there anyone that prefers C-style even if they don't care about supporting old non-C99 compilers?
    Second, and this is what I'm most curious about, do you often put short comments on the same lines as source code?  How often, and with how much of a space between the comment and the code itself?
    When writing comments on the same line as code, do you capitalize the beginning of the comment?  Do you add a period to the end?
    Lastly, while we're on the subject, what's your 'rule' for line length?  I like a 100-char limit, but 80-char is the 'standard', and some people use more than 100 due to a rise in large and widescreen monitors.
    No holy wars, please!  Just a few questions I've been pondering, it's all personal preference in the end
    Last edited by Ranguvar (2009-11-21 01:05:26)

    Still my biggest C program (pathetic, I know), this is a solution to K&R's Ch.1 Q.13, which you can read at the beginning of the file.
    It's a good example of my current style.
    http://repo.or.cz/w/tcpl.git/blob_plain … :/ch1/13.c
    I use tabs for indentation, and spaces for aligning code, to allow anyone to set their own tab width.
    I like 8-character indent in my editor, though.  The clearly defined blocks really help.
    Since the blocks are so clearly defined, I see no need for Allman-style:
    if (something)
    foo();
    bar();
    else
    bar();
    foo();
    I use a more K&R style:
    if (something) {
    foo();
    bar();
    } else {
    foo();
    bar();
    I use C-style comments for important single-liners and multi-liners, as such:
    * IMPORTANT
    For single-line comments that are descriptions of a following block of code, I use C++-style comments on their own line, capitalized and with some punctuation except for extremely short comments.
    I have no patience for compilers that can't keep up with ISO/ANSI C99 (*cough*MSVC*cough*), which is around 10 years old now, and was publicly in the works long before that
    // This next block of code kicks ass.
    while (awesomeness) {
    kick_ass("awesomeness");
    foo();
    And for comments that share lines with source code, they are quick lowercase sloppy notes in C-style.  The C-style makes them stand out more and just looks better there, IMO.
    No real rule on how far away from the code they are spaced, but usually a 5-char or so minimum, and I often align them with other comments.
    super_fuction(1, 2455, "foobar"); /* note to make this understandable, if possible */
    Last edited by Ranguvar (2009-11-21 06:50:16)

  • How to change the default text style?

    The MacOS system seems to maintain a collection of text 'styles' available in applications such as TextEdit, Bean, MacJournal, Notebook and DevonThink. This collection contains a default style, used by some (but not all) of these applications as the default text style for new documents.
    At my computers this default style is characterized in the 'favorite styles' panel as 'left aligned, spacing 0.0x' and it has strange tab stops (0.99, 1.98, 2.96, 3.95, 4.94, 5.93, 6.91, 7.90, 8.89, 9.89, 10.86, 11.85 cm).
    I prefer tab stops at 1.00, 2.00, 3.00 etc., and 1.2x line spacing.
    I guess I have changed the default style by accident, as I cannot imagine Apple putting such strange tab stops in a default style (0.0x spacing sounds a bit strange too). If so, it must somehow be possible to change the default style.
    I have tried to change the default style via TextEdit (which does not use the default style as default, but spacing 1.0x and tab stop at each centimeter) and several other applications (Bean, MacJournal, Notebook) in the following way: select a piece of text with the intended format, open the document styles panel, click 'Add to Favorites', enter 'Default' as the name for the style and click 'Replace'. Unfortunately, that doesn't work. Although I do not get an error message, the Default style hasn't changed. I can save my preferred style as, for example, 'Preferred' but that does not prevent MacJournal and other applications from using Default for every new document.
    Any idea how to change this default style, or, if that is not possible, reset it to its original state?

    I suggest you have a look at [https://addons.mozilla.org/en-US/thunderbird/addon/stationery/?src=api Stationery].
    It won't help you in defining styles, as such, but will give you templates wherein you can set up styles.

  • Where can i find the different class names to change the style sheet

    Hi experts,
    i m making a WAD but i need change somethings in the stylesheet, for example, in my query i have some exceptions, i need this exceptions to works some functions of the broadcaster, but i dont need show the exceptions in the report, so, i need a class name to change the stylesheet to dont show the colors of these exceptions when the report is executed, i have seen this function in a report but i dont remember how to do it.....
    for example this works to change a hier from horizontal to   vertical
    <STYLE>
      .SAPBEXHLevel0 {writing-mode: tb-rl;
                                    filter: fliph flipv };
      .SAPBEXHLevel1 { writing-mode: tb-rl;
                                    filter: fliph flipv };
      .SAPBEXHLevel2 {writing-mode: tb-rl;
                                    filter: fliph flipv };
    .SAPBEXHLevel3 {writing-mode: tb-rl;
                                    filter: fliph flipv };
    </STYLE>
    some like this, was the class name to change the colors, please help

    not answered

  • CS3 5.0.3.662 - Unable to create shortcut to character style

    Hello, I'm trying to assignate a shortcut to different character styles through the edit style menu, however when I place the cursor over the shortcut square nothing happens while I try to input a shortcut for it.
    Any idea why this isn't working? I tried to search for this at the define shortcuts, but couldn't find one that said something about applying a character style.
    I know i can apply each and every one of them separately, but since I'm doing a kind of dictionary, I want to change the style while writing from "word" style to "definition" style and "example" style without having to use the mouse.
    Thanks
    Daniel

    thanks! I didn't know it had to be with the numeric pad. About the nested styles, I'll check it out to see if I understand it (a bit new to this).
    edit
    Nice, I checked out the nested styles, it works almost perfectly for my needs. I might use a bit of the nested style and also the shortcut keys since I haven't figured out a rule because my examples sometimes appear after the definition, but then another definition comes in with yet another example (specific for that other variant). I guess i could use an em space or something like that to mark the difference while Im typing.
    thanks again.

  • Feedback: technical style for unit preferences

    in Preferences>Units & Rulers, simply write a unit label in terms of singular rather than plural.
    with reference to technical styles for writing units, a unit label of 'mm' for millimeter is clear and usable. likewise for a unit label of 'cm' for centimeter.
    HTML and CSS already specify guidelines for structured styles. i imagine that developers and users of software interfaces might also benefit from applicable uses of structured styles.
    ps - i could use the Photoshop CS6 beta seamlessly into my image workflows.

    It helps if you tell which version you are using.
    Did you try to change the master quiz slides for the position of the feedback captions?

  • Coding Style and format

    Hello everyone,
    For past few days, I am thinking that in java, format of writing a method is as follows:-
    return_value method_name(){ //bracket starts here
    //body
    }Even any book on java specified this kind of formatting.
    whereas, in c, c++ we use to write :-
    return_value function_name()
    { //starting bracket in next line
    //body
    }But if you consider readability, then surely the second format is good, where the starting bracket starts at a new line. Isn't it so?
    Even I asked this question to some IT people, who visited our campus few days back.. they said that java uses the old K&R style of writing methods, whereas VC++ i.e Microsoft uses the new technique i.e writing { on next line.
    Why is there such difference. and moreover if you consider readability then in my opinion, obviously the second style is better as it distinguishes the starting and closing brackets. so scope can be easily understood.
    Please put your views.
    Thanking you.

    Here's some of my real production code. I put everything on a new line....I used to do it the other way, but I like it much better like this.
        public void createJob(Job job)
            String jobName = job.getJobName();
            Job dbJob = null;
            try
                List jobs = super.executeNamedQuery( "getJobFromName", new String[]
                { jobName } );
                if ( !jobs.isEmpty() )
                    dbJob = (Job) jobs.get( 0 );
                    job.setJobId( dbJob.getJobId() );
                    job.setJobDescription( dbJob.getJobDescription() );
                if ( dbJob == null )
                    create( job );
            catch ( MaxNumOfResultsExceededException exp )
                throw new DaoException( "Max row number exceed.", exp );
        }

  • How to change style (back-ground color) in selectBooleanCheckbox?

    Hi
    I've got selectBooleanCheckbox:
    af:selectBooleanCheckbox text="selectBooleanCheckbox 1"
    label="Label 1" />
    I can change background color of text="selectBooleanCheckbox 1" and label="Label 1"? just by adding inlineStyle="background-color:rgb(255,255,66)"
    SO, How can I change background color in space BETWEEN text and label (just at the checkBox)?

    Hi,
    the inline style property only styled the DOM node of the component. ADF Faces components are complex DHTML components that you style by writing a custom skin (see developer guide for skinning). If you don't want to write a custom skin, use Firebug to determine the style class generated for this component
    Frank

  • Bold only font designs / style set up

    Hello OpenType Developers,
    How do you set up the style of a font design existing only as Bold
    version like IMPACT from MS?
    Should I set the style to NORMAL/REGULAR (400) or should I set it up to
    BOLD (700) even if no normal or regular design is applicable or will be
    designed in the future.
    MS goes the way and set the font to REGULAR.
    Andreas

    Thomas Phinney may correct me, but I think we follow a slightly different practice:
    - set all the info connecting to a BOLD style as you would for a Regular face:
    - name table Windows Compatible style name = Regular
    - OS/2.fsType and head.macStyle = 0 ( Regular)
    but set the descriptive stuff to Bold:
    name table Win Preferred Style Name = Bold
    OS/2 weight class and Panose value to a Bold value.

  • About paragraph style

    Hello all,
    I created a new paragraph style 'ABC' by following the steps mentioned in Pages Help.
    Saved the document and closed it.
    Next I opened a new document, but when i checked in the style drawer the the new paragraph style 'ABC' is missing.
    Q. How do i get the new document to follow style 'ABC'? Did i miss any step while creating a new style?
    regards,
    K

    K,
    Styles are attached to specific documents. So when you create a new one, save the document, it will only apply to that saved document, and not other ones you open ...
    ... with one exception. Start with a blank document, set it up the way you want (fonts, views, rulers, styles, etc.), then click on File > Save As Template. Finally, click on Pages > Preferences > and set that template as your startup document. That way, every time Pages opens, you'll have your preferred styles right there handy.
    -Dennis

  • Looking for a CHM/PDF/? maker

    Hello, I intend to make a guide and would like to organise it in the ways seen in PDF or CHM (preferably) style, so far all I've found is readers for these formats, is there any software to make these or any lesser known alternatives that can achieve a similar outcome? It will include text and images along with all the formatting. All I can think of is writing it in HTML, opening in Firefox and printing to file for PDF but even then I couldn't link the pages in the index. Another idea is keeping it as HTML with local link paths (for now I'll be doing it this way) but I'd like to do something a little more. Any ideas? Thanks as always.

    All else being equal, I'd second progandy's suggestion of texinfo - it is the tool for this.
    But all else if often not equal!  If you already know any latex (which I have to doubt, given that this was asked) then latex with `latex2man` is a recent "oh nice" discovery of mine for exactly these purposes.  Even if you don't know latex, I'd argue that learning latex will have more broad use than learning texinfo format (but then I've never really used the latter, so this may be a biased view).
    Last edited by Trilby (2013-07-17 12:01:12)

  • Fairly certain that FileStream.writeObject() and FileStream.readObject() do not function - at all -.

    I've struggled with this since Jan 9th, 2013 (if not longer) and the only conclusion I can come to is that this simply does not function.  No matter what I try and no matter what resource (and I'm finding precious few) I follow to try to implement this within Flash Builder 4.7, Flex SDK 4.6.0 (Build 23201), AIR SDK 3.5, I only succeed in creating a file (with the correct name) that is 123 bytes in size that reads back in as NULL;
    I've tried using ByteArray.writeObject()/readObject() as an intermediary with FileStream.writeBytes()/readBytes(), with no luck.
    I've tried instantiating an object, setting properties and then using that.  I've tried instantiating my correctly formed ValueObject (including the remoteClass alias metadata tag).
    I've tried using -verbatim- the example provided in the top most suggested 'Community Help' resource http://www.switchonthecode.com/tutorials/adobe-air-and-flex-saving-serialized-objects-to-f ile It is worth noting that this solitary example of the procedure/SDK-usage is dated to Flex SDK 3.0 and at least 04/04/2009 (first comment on the article).
    My frustrating hell (one version of many methods attempted) is detailed on StackOverflow (including -all- mxml, as, and trace output), but so far, no assistance has been forthcoming, alas.  This is a severely stripped down and simplified version of what had been a far more complex attempt:
    http://stackoverflow.com/questions/14366911/flex-air-actionscript-mobile-file-writeobject- readobject-always-generates-null-w
    An earlier post* detailing a far more complex attempt interation, with, alas, just as little help (guess this isn't a hot button topic) forthcoming:
    http://stackoverflow.com/questions/14259393/flex-actionscript3-filestream-writeobject-fail s-silently-in-ios-what-am-i-doin
    * I previously suspected that it was only failing from within iOS on an iPad, but the first example (the stripped down version) made it evident that it didn't work in the AIR mobile device simulator (iPad) in the Windows environment, and indeed, didn't work in a non-mobile project in the windows environment AIR launcher.
    I'm at a loss, upset, frustrated, in major trouble with my supervisor/deadlines, etc.
    I would very much appreciate any suggestions/help/confirmation/etc.
    Just to move ahead with development I've opted for a far less preferable solution of writing out both an XML file and a JPG file.  I very much do not like this and very much want to store encapsulated serialized objects locally in the same way I assume will work for storing remotely with AMFPHP (if the project ever gets to that point *sigh*).
    Again.  Would be so grateful for any help.

    I want to add to this post as I marked it as "The Answer" though it does not indeed contain the answer directly, for those who come looking for simliar solutions.
    harUI prompted me to realize that my metadata term needed to be capitalized (RemoteClass instead of remoteClass).  As the metadata tags may be user defined, the compiler throws no errors (or warnings *grumble*)
    package vo
        import flash.display.BitmapData;
       // [remoteClass(alias="PTotmImageVO")] incorrect
       [RemoteClass(alias="PTotmImageVO")]
        public class PTotmImageVO

  • Highlighting  text (as in Word)

    Hi - Is is possible to highlight text, that is color over text, in a similar way to how it can be done in Word. I use this feature in Word a lot for editing & redrafting purposes!
    Many thanks!

    pete scott1 wrote:
    Hi - Is is possible to highlight text, that is color over text, in a similar way to how it can be done in Word. I use this feature in Word a lot for editing & redrafting purposes!
    Many thanks!
    *A slightly more efficient system of highlighting text: (and possibly slightly more efficient than MSword as well as you can highlight text with a keyboard shortcut after a simple initial setup.)*
    *+step 1+*
    select text. apply background colour.
    *+step 2+*
    open styles drawer through menu or shiftcmdt
    *+step 3+*
    _select again_ the text you applied the b/g colour to previously. in the styles drawer, under character styles, click the little upside-down triangle and click +create new character style from selection+. name your style.
    ( *+step 4+* - *Keyboard shortcut and use* )
    click on the upside-down triangle for options on your new style and add a hotkey. f6 works fine as it's not usually already assigned to another function. _*now, highlight away by selecting text and either clicking on the highlight style in the styles drawer, or simply pressing f6.*_
    ( *+step 5+* )
    to maintain the highlight style you created in the styles drawer as a default style for all documents, use this tip by Dennis from another post
    +Start with a blank document, set it up the way you want (fonts, views, rulers, styles, etc.), then click on File > Save As Template. Finally, click on Pages > Preferences > and set that template as your startup document. That way, every time Pages opens, you'll have your preferred styles right there handy.+
    If you don't want to mess with templates for some odd reason, you can always import the style from a previously highlighted document to which the style you created is attached. Use Format -> +Import Styles+

  • Report from SAP Quickviewer code

    Hi,
    I have been given a code generated by SAP Quickviewer (transaction SQVI). The client expects me to design an ABAP Report using this code as a guideline. Is this practically possible. I don't even have access to the name of the quickview. No tech spec too.
    Some lines of the code: Just to give you guys the feel of it...
    REPORT AQL3SYSTQV000116ORDERS_CPR====
       LINE-SIZE 253 NO STANDARD PAGE HEADING LINE-COUNT 000(001).
    INCLUDE <SYMBOL>.
    INCLUDE <ICON>.
    SELECTION-SCREEN: BEGIN OF BLOCK PROG
                               WITH FRAME TITLE TEXT-F58.
    %FA00000 /BAY0/AXCMR_AUT2-SUBSTITUTE
    TABLES /BAY0/AXCMR_AUT2.
    TABLES VBAP.
    TABLES VBPA.
    TABLES /BAY0/AXCMR_CPR.
    *TABLES KNA1.
    DATA AVBEGKNA1 LIKE KNA1.
    TABLES KNA1.
    TABLES VBAK.
    DATA %COUNT-VBAK(4) TYPE X.
    DATA %LINR-VBAK(2).
    SELECT VBAKANGDT VBAKAUART VBAKBNDDT VBAKERDAT VBAK~ERNAM
           VBAKERZET VBAKKUNNR VBAKVBELN VBAKVKORG VBAP~ABGRU
           VBAPARKTX VBAPMATNR VBAPPOSNR VBAPPRODH VBAP~VBELN
           /BAY0/AXCMR_CPRKUNAG /BAY0/AXCMR_CPRKUNWE
           /BAY0/AXCMR_CPRMATNR /BAY0/AXCMR_CPRPRICE
           /BAY0/AXCMR_CPRVKORG VBPAKUNNR VBPAPARVW VBPAVBELN
           AVBEGKNA1KUNNR AVBEGKNA1LAND1 AVBEGKNA1NAME1 AVBEGKNA1ORT01
           /BAY0/AXCMR_AUT2ML1 /BAY0/AXCMR_AUT2ML2 /BAY0/AXCMR_AUT2~ML3
           /BAY0/AXCMR_AUT2ML4 /BAY0/AXCMR_AUT2OBJID
           /BAY0/AXCMR_AUT2PRICE /BAY0/AXCMR_AUT2SUBSTITUTE
           /BAY0/AXCMR_AUT2VKORG KNA1KUNNR KNA1LAND1 KNA1NAME1
           KNA1~ORT01
    INTO (VBAK-ANGDT , VBAK-AUART , VBAK-BNDDT , VBAK-ERDAT , VBAK-ERNAM
         , VBAK-ERZET , VBAK-KUNNR , VBAK-VBELN , VBAK-VKORG , VBAP-ABGRU
         , VBAP-ARKTX , VBAP-MATNR , VBAP-POSNR , VBAP-PRODH , VBAP-VBELN
         , /BAY0/AXCMR_CPR-KUNAG , /BAY0/AXCMR_CPR-KUNWE
         , /BAY0/AXCMR_CPR-MATNR , /BAY0/AXCMR_CPR-PRICE
         , /BAY0/AXCMR_CPR-VKORG , VBPA-KUNNR , VBPA-PARVW , VBPA-VBELN
         , AVBEGKNA1-KUNNR , AVBEGKNA1-LAND1 , AVBEGKNA1-NAME1
         , AVBEGKNA1-ORT01 , /BAY0/AXCMR_AUT2-ML1 , /BAY0/AXCMR_AUT2-ML2
         , /BAY0/AXCMR_AUT2-ML3 , /BAY0/AXCMR_AUT2-ML4
         , /BAY0/AXCMR_AUT2-OBJID , /BAY0/AXCMR_AUT2-PRICE
         , /BAY0/AXCMR_AUT2-SUBSTITUTE , /BAY0/AXCMR_AUT2-VKORG
         , KNA1-KUNNR , KNA1-LAND1 , KNA1-NAME1 , KNA1-ORT01 )
    FROM ( VBAK
           INNER JOIN VBAP
           ON VBAPVBELN = VBAKVBELN
           INNER JOIN /BAY0/AXCMR_CPR
           ON /BAY0/AXCMR_CPRKUNAG = VBAKKUNNR
           AND /BAY0/AXCMR_CPRVKORG = VBAKVKORG
           AND /BAY0/AXCMR_CPRMATNR = VBAPMATNR
           INNER JOIN VBPA
           ON VBPAKUNNR = /BAY0/AXCMR_CPRKUNWE
           AND VBPAVBELN = VBAPVBELN
           INNER JOIN KNA1  AS AVBEGKNA1
           ON AVBEGKNA1KUNNR = /BAY0/AXCMR_CPRKUNWE
           INNER JOIN /BAY0/AXCMR_AUT2
           ON /BAY0/AXCMR_AUT2PRICE = /BAY0/AXCMR_CPRPRICE
           AND /BAY0/AXCMR_AUT2VKORG = /BAY0/AXCMR_CPRVKORG
           INNER JOIN KNA1
           ON KNA1KUNNR = /BAY0/AXCMR_CPRKUNAG )
           WHERE VBAK~ANGDT IN SP$00003
             AND VBAK~AUART IN SP$00001
             AND VBAK~BNDDT IN SP$00002
             AND VBAK~ERDAT IN SP$00004
             AND VBAK~ERNAM IN SP$00005
             AND VBAP~ABGRU IN SP$00010
             AND VBAP~MATNR IN SP$00006
             AND VBAP~POSNR IN SP$00007
             AND VBAP~PRODH IN SP$00009
             AND VBAP~VBELN IN SP$00008
             AND /BAY0/AXCMR_CPR~KUNAG IN SP$00016
             AND /BAY0/AXCMR_CPR~KUNWE IN SP$00015
             AND /BAY0/AXCMR_CPR~MATNR IN SP$00014
             AND /BAY0/AXCMR_CPR~PRICE IN SP$00013
             AND VBPA~KUNNR IN SP$00011
             AND VBPA~PARVW IN SP$00012
             AND /BAY0/AXCMR_AUT2~ML1 IN SP$00022
             AND /BAY0/AXCMR_AUT2~ML2 IN SP$00021
             AND /BAY0/AXCMR_AUT2~ML3 IN SP$00020
             AND /BAY0/AXCMR_AUT2~ML4 IN SP$00019
             AND /BAY0/AXCMR_AUT2~OBJID IN SP$00018
             AND /BAY0/AXCMR_AUT2~SUBSTITUTE IN SP$00017.
      %DBACC = %DBACC - 1.
    Please help with this.
    thanks,
    Vishal.

    My advice would be to make sure the client tells you what they want the new ABAP Report to do that is <u>different</u> from the Quickviewer Report.  If the client does not have a formal technical spec process, then you at least need to be told verbally or via e-mail what to change.  Without that information you cannot proceed with any meaningful development.
    Assuming that you can get that information, all you need to do is to create a copy of the Quickviewer program (via SE38) since the Quickviewer program is just a regular ABAP program.  Then you must get a feel for what the code is currently doing (understand the logic) so that you can proceed with making the changes required for the new version. 
    Another approach might be to simply get an understanding of the Quickviewer code and start your own ABAP Report from scratch (using your own preferred style of coding).
    Have fun!
    Regards,
    James Gaddis

Maybe you are looking for

  • Transaction type to be used for revaluation

    Hi Sir, Question is how to revaluate the asset. 1.  In oabw, oayr and in ao90 I checked and the posting of gross revaluation in abaw Tty 800 is posted. 2. It is shown in aw01n. Till here It is fine, after that What I need to do. Pl Suggest different

  • Screen size 10 pixels to big after update to 10.4.10

    I have to me at least, a strange problem... my screen size is too big for the monitor. I have a dual-monitor system, btw. When the mouse is at the far right of the desktop, the entire screen area moves in the other direction as to "accomodate" the la

  • 30" display with MacBook Pro--how to resolve sparking pixels?

    I'm seeing sparkling pixels in large black or dark gray areas on my 30" display (bought in Dec 2005). when using it with a new MBP (2.0Ghz, 2GB). I didn't see those when using it with my stock G5 dual-core 2.0GHz. Should I address this at the display

  • Date Validation - a Nightmare for ME!

    Hi, I searched the forum and came up with some code that works for me partially. I am still having problems with getting the end result that is needed. I need to do a date validation where the begin date is less than end date. Below is the syntax..It

  • Source codes and jframes

    Hello , I am trying to make it so that I can somehow place this source code, *Hi_LoGame.java* Peter Hadlaw *2009/10/12* *This is a simple guessing game that tells the user if they got the number right or if the are too low or too high, and then asks