Who can answer these simple questions?

Please be patient to read the following simple code. The numbers at the beginning of each line are line number. It is part of a code to read record into a file.
// Fig. 17.4: BankAccountRecord.java
1 public class BankAccountRecord implements Serializable {
2 private int account;
3 private String firstName;
4 private String lastName;
5 private double balance;
public BankAccountRecord()
6 this( 0, "", "", 0.0 );
public BankAccountRecord( int acct, String first,
String last, double bal )
7 setAccount( acct );
8 setFirstName( first );
9 setLastName( last );
10 setBalance( bal );
public void setAccount( int acct )
11 account = acct;
public void setFirstName( String first )
12 firstName = first;
public void setLastName( String last )
13 lastName = last;
public void setBalance( double bal )
14 balance = bal;
import BankAccountRecord;
public class CreateSequentialFile extends JFrame {
private ObjectOutputStream output;
15 File fileName = fileChooser.getSelectedFile();
16 output = new ObjectOutputStream(
new FileOutputStream( fileName ) );
public void addRecord()
17 int accountNumber = 0;
18 BankAccountRecord record;
19 String fieldValues[] = new String(4);
20 record = new BankAccountRecord(
accountNumber, fieldValues[ 1 ],
fieldValues[ 2 ],
fieldValues[ 3 ] );
21 output.writeObject( record );
22 output.flush();
My questions are:
1. BankAccountRecord is a class. After line 18 is excecuted,
record is an object of BankAccountRecord, right?
2. Line 20 initialize record, right?
3. After line 21 is excecuted, what is written to the file?
It should the record(account, firstName, lastName, balance),
right? But since BankAccountRecord is a class and record is an object of BankAccountRecord, how about the methods
of the class BankAccountRecord, for example setAccount( ),
setFirstName(), setLastName(), setBalance(), are these
methods also written into the file? I think not. But why?

1) After line 18, record is a reference to a BankAccountRecord with an undefined value. That is, it may be null, it may hold garbage, but you can't use it. Local variables are not initialized. Members are initialized to (0, 0.0, false, null) as appropriate for type, as are array elements.
2) Line 20 assigns record to refer to a newly created BankAccountRecord object.
3) Methods are not written out on serialization, only the state of the object--i.e. it's member variables. The method definitions are stored in the .class file that was created when you compiled the class. (If you really wanted to you could override the method (writeObject, I think) and write out whatever you wanted, but there's not need to serialize the method definitions, since they're part of the class.)

Similar Messages

  • ALL MY DUKES TO ANYONE WHO CAN EXPOSE THESE POSTERS/IMPOSTER

    Please check message #16 and #17 at the link below:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=216311
    Also look at these links:
    http://forum.java.sun.com/thread.jsp?thread=216613&forum=17&message=750160
    http://forum.java.sun.com/thread.jsp?thread=216434&forum=31&message=749121
    and this is where they usually hang out.
    I currently have earned more than 200 dukes and am willing to give them all (including any additional ones that posters may give me later on) to anyone who can expose these cowardice posters and the imposter for who they are.
    Seriously,
    V.V.

    I will post a mail to the SUN company proposing the following idea:
    "how about to abolish these duke dollars in your forums ?"
    duke dollars only cause problems.. to all of us..
    I prefer a forum without any reward .. only for programmers interested in learning Java....

  • Hello once again i must bother who can answer and this is a double play. lg optimus zone.

    lg optimus zone. is there a front facing camera and if so how do I use it?? and I was able to find the setting on how to switch the end call key on the screen to the power button, how do I locate this?? for the life of me I can not locate the settings for it again! I tried changing it to the power button and failed. and to be misleading and make this a triple threat, when making a call that requires dial prompts, my screen fades in and out turning off and on, when I say need to press one to continue with English, I am postioning the phone so it doesn't take as dominut as effect. is this just sensitivity on the phone is it the angle on how I hold the phone or is it a defect??? thanks to whoever can answer these questions in advance. if you can't answer all that's fine just as long s I get all the answers from someone and multiple people eventually! thanks!

        We want you to enjoy the best reliability from your device jr1984. Do you have an existing account with us? Please confirm the make and model. I'm sorry we don't support the device you have referenced in your post.
    JonathanK_VZW
    VZWSupport
    Follow Us on Twitter@VZWSupport

  • HT1386 I have  purchased a book and it went (accidently) to my PC.  How do I get it from PC to iphone 5?  the book now has an "epub" extension.  Thanks for anyone who can answer!  Frustrated !!!

    I have  purchased a book and it went (accidently) to my PC.  How do I get it from PC to iphone 5?  the book now has an "epub" extension.  Thanks for anyone who can answer!  Frustrated !!!

    I'll assume that you are referring to purchasing a book in iTunes. If that is the case, you can transfer the purchase with the phone, or you can sync the phone and iTunes.

  • I keep receiving emails saying my apple id password has been changed when I havent changed it? Nobody else has access to my emails or can answer my security questions??

    I keep receiving emails saying my apple id password has been changed when I havent changed it? Nobody else has access to my emails or can answer my security questions??
    I have changed my email password aswell as having to keep changing my apple is password an it keeps changing?

    Sounds like you follow good practices.
    This has been going around for some time in various forms, a number of users have asked about it and the best advice is if in doubt go doirectly to Apple, not links in the email.  Calling Apple or using the Apple site is always the best approach.
    A few have even noticed very slight misspellings in the emails, things like Appel instead of Apple...most people don't even notice those.
    Anyway, safe computing and have a good day.

  • Can't anyone answer this simple question?

    Guys,I want to know whether a GUI which is made using Swing can write files to disk,or ,in another way--does Swing support writing files to disk?(This is becoz applets do not support this feature)
    Thannks in advance,
    Avichal167

    One thing to note...
    Because the previous example is simple, I handled all the File IO operations in the same class as the GUI ...
    You can how ever have the File IO done in a different class and tie it in to your GUI class...
    Example... GUISample.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class GUISample extends JFrame implements ActionListener{
            private JTextArea jtxArea;
            private JButton jbtn;
            private String[] bText = {"Read","Write"};
            private boolean bState = true;
            private FileHandler handler;
         public GUISample(){
                 super("GUI Sample");
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setLayout(new BorderLayout());
              jtxArea = new JTextArea(15,20);
              jtxArea.setEditable(true);
              jbtn = new JButton(bText[0]);
              jbtn.addActionListener(this);
              getContentPane().add(jtxArea,BorderLayout.CENTER);
              getContentPane().add(jbtn,BorderLayout.SOUTH);
              pack();
              setVisible(true);
              handler = new FileHandler(); // instantiates FileHandler
         /* both method from FileHandler return Strings to be displayed in the JTextArea */
         public void readAndDisplay(){
              jtxArea.setText(handler.readTheFile()); // calls method from FileHandler
         public void writeToFile(){
              jtxArea.setText(handler.writeTheFile(jtxArea.getText())); // calls method from FileHandler
         public void actionPerformed(ActionEvent ae){
                if ((ae.getSource() == jbtn)&&(bState)){
                      bState = false;
                      jbtn.setText(bText[1]);
                      readAndDisplay();
                 else{
                           bState = true;
                           jbtn.setText(bText[0]);
                           writeToFile();
         public static void main(String[] args){
                 GUISample gspl = new GUISample();
    }Example... FileHandler.java
    import java.io.*;
    public class FileHandler {
    private String theData;
    public String readTheFile(){ // reads and returns data or message
             try{
                 File afile = new File("test.txt");
                     FileInputStream fis = new FileInputStream(afile);
                      try{
                           byte[] strBuff = new byte[(int)afile.length()];
                           fis.read(strBuff);
                           try{
                                theData = new String(strBuff);
                                fis.close();
                           }catch(NullPointerException npe){theData = "Null Pointer Exception";}
                       }catch (IOException ioe){theData = "IO Exception";}
               }catch (FileNotFoundException fnfe){ theData = "File Not Found";}
         return theData;
         public String writeTheFile(String data){ // writes and returns a message
             try{
                 File afile = new File("test.txt");
                     FileOutputStream fos = new FileOutputStream(afile);
                   try{
                           try{
                           fos.write(data.getBytes());
                           fos.close();
                           theData = "File Saved";
                    }catch(NullPointerException npe){theData = "Null Pointer Exception";}
                       }catch (IOException ioe){theData = "IO Exception";}
               }catch (FileNotFoundException fnfe){theData = "File Not Found";}
               return theData;
    }and of course you can use the same Test.txt file...
    As you can see from this example, I have one class create and handle the GUI and the second class handles all the File IO operations...
    So to better answer your first question, Swing and AWT and Applets can be used to create GUIs... and as far as File IO, all three can have code or be couples with a class that does File IO operations...
    The only restriction is with Applets where by default the SecurityMananger does not allow File IO operations...
    Notice the word "default", this means Applets are capable of doing File IO, if you do some extra coding and policy work... ( my terminology may be off on this)
    But as stated earlier, I am not well versed enough in Applets to give you assistance in creating a Signed Applet that can... soon I will, just not at this time...
    - MaxxDmg...
    - ' He who never sleeps... '

  • Need a simple answer for simple question???

    simple question... what is the best way to export my fce movie and burn it on idvd for the best quality for genaral use ... sd..4x3 ratio tv.. lots of ken burn effects on photos... lots of sd video... ???
    not so simple answer... i have read manuals.. apple discussions.. etc etc my eyes are blurry.. i have been exporting out of fce to qk time movie, then import to idvd and burn..
    i get lots of wavy or jitter when doing kens burn effects on photos.. i have been told that 1 field must be missing.. and its better to take the qk time movie convert it again making sure hi quality is checked(movie properties 720 x 480) and self contained movie, then import to imovie ver 5.02 which has better codecs then to idvd ... an apple store tech said..
    then another apple store tech said...dv pro or dv stream or interlaced or on and on and on
    its not 16x9, or for the web or anything but simply burn it and give it to my grandma to play in a standard dvd player.. best quality.. period.. i know it won't any better than my source video but the wavy photos bother me..
    help

    The Apple store tech told you garbage. The quality will be the same. It's using the same QuickTime engine. There may be a difference because going through iMovie will go through a file conversion and the picture might be softened a little, which will mitigated this flicker you see.
    The wavy photos can be a lot of things, most likely due to the nature of the images themselves and the movements you've done on them. What often works on still images is to apply a one pixel vertical motion blur in an application like Photoshop or Elements. This helps to reduce interlace flicker on motion when the material is brought into a video editing application.

  • My $20 to the person who can write this simple script for Fission

    Here is what I need to automate. I don't care if it's an Apple Script, or an Automator work flow - whatever - just so it will work with my present setup. Once I test it and it works, I'll send $20 to the first person who can help me.
    Script needs to apply to each (and every) MP3 file in a selected folder:
    Open the first file with Fission v1.6.6 (from: www.rogueamoeba.com)
    Select all
    Normalize
    Save audio (in same folder)
    A warning dialog pops up: "File already exists..." -- answer with "Replace"
    Close file
    Repeat for next file in the folder, until every file has been Normalized
    End script when the last file in folder has been Normalized
    I don't mind finding the folder (which will be in my iTunes Library), and then starting the set of actions on the folder but I definitely don't want to be required to take any additional action on each and every file.
    I'm presently running Fission v1.6.6 under MacOS 10.4.11 on a PPC desktop, so it needs to work in that environment.
    Note that the latest version of Fission requires MacOS 10.5 - I can't use any script that requires that version. Rogue Amoeba's Legacy software page (http://www.rogueamoeba.com/legacy/) shows Fission v1.6.8 as working with 10.4, but that contradicts the Version History for Fission which shows 1.6.6 as the last one for 10.4 - still investigating.

    Pierre L.
    Thanks for the effort!
    First, I can clarify this: Rogue Amoeba confirms that I can use the version 1.6.8 of Fission located on their Legacy page with my OS version 10.4.11, so I've upgraded from 1.6.6 to 1.6.8. Seems to be working OK.
    Next, let me apologize for being mostly ignorant about all things AppleScript. I'm really in over my head, here, because I've not used the ScriptEditor for more than a few minutes before today.
    What I've done so far:
    I checked the box in the Universal Access preferences pane to enable access for assistive devices.
    I copied your script from this forum and pasted it into Script Editor.
    I've Compiled your script, then "Saved As" an "Application" on my Desktop.
    When I double click the icon for the saved script (which ends in xyz.app), a navigation window appears, which I used to select a test folder on my desktop.
    When I Choose the test folder, Fission launched, and selected the whole file, as expected. Then I get an error:
    "NSReceiverEvaluationScriptError: 4" - with buttons to "Edit" or "OK"
    Thinking it might be a timing error, I edited the delays:
    set theFolder to choose folder
    tell application "Fission" to activate
    tell application "Finder"
    set theApp to POSIX path of (get file of process "Fission")
    set theFiles to document files of theFolder
    repeat with thisFile in theFiles
    open thisFile using POSIX file theApp
    tell application "System Events" to tell process "Fission"
    delay 18 -- adjust if necessary
    keystroke "a" using command down -- Select All
    delay 2 -- adjust if necessary
    click menu item "Normalize Selection" of menu 1 of menu bar item 7 of menu bar 1
    delay 4 -- adjust if necessary
    keystroke "s" using {shift down, command down} -- Save Audio…
    delay 3 -- adjust if necessary
    keystroke return -- Save
    delay 2 -- adjust if necessary
    click button "Replace" of sheet 1 of window "Save Audio"
    end tell
    end repeat
    end tell
    tell application "Fission" to quit -- optional
    ... Compiled, and Saved again.
    Now, the script runs up to the point where it should answer the Save pop-up window: "File already exists..." with the keystroke to "Replace" - but the script stops there, with the same error: "NSReceiverEvaluationScriptError: 4"
    Bottom line: so far, I've been able to get the first mp3 file in my test folder Normalized, but not Saved. Any suggestions?

  • Who can answer all my shuffle problems?

    i got the ipod shuffle 1gb version for christmas, and it all seemed to work just fine. i used it with my ibook a few times - transfered some songs to it, listened to it, and just left it for a couple of days on a table, switched off.
    then, when i tried to turn it on a play some songs again, it just started blinking the orange/green error combination. (the key lock is not on). it wont play any songs, and when i connect it to my ibook usb (i've tried both ports), it wont appear anywhere! not on the desktop, and not in itunes. i've also tried different emacs, and two pcs.
    it just keeps blinking orange till i remove it. it had not been faulty removed before this - i always click the "release/eject" sign first, and wait for it to be ready.
    well, i returned it to apple, and got a new one. i put it in the usb, and it worked fine. transfered the songs again, and tried it last night. it played the songs just fine. then i turned it off, and left it till i woke up this morning. i'd been looking forward to listen to music on the bus again, but guess what! the same problem has returned - ipod shuffle is, once again, not working!
    just to mention it, i've tried all the steps and solutions on the apple support site, and i've also searched different forums. i hope theres someone out there who can help me with this problem, cause it REALLY annoys me.
    i run osx 10.4.4 on an ibook g4, and have the newest version of itunes. theres no use in downloading a ipod update, since it wont find my ipod.

    Lunica and Alejandro:
    I also bought a Shuffle at Christmas time and I have the same problem (blinking intermitent orange / green light and iPod invisible in Finder, iTunes, etc). It worked at first but it stopped working right after I uploaded a new playlist. Like Alejandro, I bought mine in North America (Canada) but am now in Africa so I cannot exchange the iPod.
    Alejandro: la verdad es que tampoco se que hacer. Chatee con Mac support y ellos no me han podido ayudar (me hacen repetir todos los pasos de hacer el restart, etc.) Dices que tampoco puedes encontrar el iPod en el Disk Utility? Yo todavia no he probado pero te diré si tengo suerte.
    If there are at least three of us with the exact same problem and all bought shuffles around Christmas time in North America, could this be a fault with a batch of Shuffles?
    iBook G-4   Mac OS X (10.4.4)  

  • HT3591 I was about to download (buy) some music from ITunes when they said I had to answer these security questions, however I've never answered in my hole apple experience which has left me unable to buy anything because I don't know my security question

    I was about download music when it then asked me for my security questions. The problem for me is that I've never answered these questions ever in my hole apple experience and even if I did, I've 100% completely forgot about them. I then decided to email a link to deactivate my questions however this email from Apple had never come, I'm know left unable to download music, apps, and books.

    You need to manage your Apple ID and change your security question there.

  • Who do I talk to at Verizon that can give me details on my online order?  When I call customer service no one is able to answer a simple question like "what's the status of my order".

    Verizon - Please give me the phone number of who actually know what is going on with the iPhone6+ orders.

    Honestly as a longtime Verizon customer I can say that I do not feel like Verizon is representing their customers well at all.  They cant even be honest with any of us! 

  • Very simple question: who can answer it??

    Win2000 JDEV902, no application server, no database just W2000 and JDEV902:
    When I follow the tutorial "OTNDeptEmpStub" and run the class:
    Example 1 - Department numbers
    [SOAPException: faultCode=SOAP-ENV:IOException; msg=Connection refused: connect; targetException=java.net.ConnectException: Connection refused: connect]
    void org.apache.soap.SOAPException.<init>(java.lang.String, java.lang.String, java.lang.Throwable)
    void oracle.soap.transport.http.OracleSOAPHTTPConnection.send(java.net.URL, java.lang.String, java.util.Hashtable, org.apache.soap.Envelope, org.apache.soap.encoding.SOAPMappingRegistry, org.apache.soap.rpc.SOAPContext)
    org.apache.soap.rpc.Response org.apache.soap.rpc.Call.invoke(java.net.URL, java.lang.String)
    java.lang.String[] IOTNDeptEmpStub.getDeptNoArray()
    void Class1.main(java.lang.String[])
    Process exited with exit code 0.
    ======================================
    What's wrong??
    Please help, thanks Stephan

    Are you using iMovie '11 or something prior to that? Something older like iMovie HD 6 even? If it's iMovie '11 you first import all your video clips into the Event Library. Then you highlight just the pieces you want by click in the Event clip itself, you get a yellow outline box that you can stretch to the size of the video clip. Then drag that whole area inside the yellow box up to the top half of the Window where the Project Browser window sits.
    Add more clips as need, add titles, transitions, still pictures, music, etc. Then go to the Share Menu and decide what you want to do with it. Send it to the Media Browser lets you make DVDs with it in iDVD. Export Movie will save it to the Desktop if you want to upload it to YouTube.

  • Can any one answer these interview questions

    CTS INTERVIEW QUESTIONS( 24/02/07 )
    1.  What is the difference b/w classical report and ALV  report and in classical report can we produce output more than 255 characters?
    2.  Did you used classes to create ALV reports  and how is superior over using    function modules in ALV report generation?
    3.  If we don't know the  exact number of blocks to be generated then Can we generate the output with different number of blocks in 
         ALV   reports?
    4.  In report if we have write statements in initialization, top of page and in start of selection then which event is first excuted and what
         is  the output?
    5.  In interactive report what is the use of exit key word?
    6.  what are nested structures and deep structures?
    7.  how can we write BDC program to  upload  data from  CSV, XL, TAB delimeter type flat files?
    8.  In BDC if the flat file consist of header and multiple line items then how to upload the load, does we create a single internal table for
         both header and body or different internal tables?
    9.  In call transaction and session method which method is prefered one?
    10. why can't we use call transaction method to upload large amount of data?
    11.what is the use of standard text in sap scripts, why can't we hard code the same information in form itself?
    12.what are user exits and how can we create them?
    13. can we modify  the  sap provided  code?
    14. what are oss notes?
    15. what are the different types of performance techniques?
    16. can we do modifications on output of   ALV reports, how?
    17. what are the classes that are used in ALV reporting?

    hi bhushan,
    1. What is the difference b/w classical report and ALV report and in classical report can we produce output more than 255 characters?
    Ans. Classical report ---Consist of one program that create a single list.This means that when list is displayed,it has to contain all data
    requested,regardless of the number of details the user wants to see.This procdeure may result in extensive and cluttered list from which the user has to pick the relvent data.(desired selection much be made before hand).
    Mian thing in classical report is it is not interactive(you will have cluttered information).
    Alv report _ IS interactive reporting (it is a set of function modules).(in alv we use both classical and interactive).
    in classical report we can't produce output more than 255 characters(but in ALV we can have the report contains columns more than 255 characters in length).
    ALV is very efficient tool for dynamically sorting and arranging the columns from a report output.
    2. Did you used classes to create ALV reports and how is superior over using function modules in ALV report generation?
    Ans. its upto you(did you use classes in ALV then say yes)
    3. If we don't know the exact number of blocks to be generated then Can we generate the output with different number of blocks in
    ALV reports?
    4. In report if we have write statements in initialization, top of page and in start of selection then which event is first excuted and what
    is the output?
    ANS. TOP_OF_PAGE is triggered.
    this event is triggered with the first WRITE statement or whenever new page is triggered. if you donts have any write statement before top-of-page or
    in start-of-selection then this event is not triggered.
    5. In interactive report what is the use of exit key word?
    Ans.
    6. what are nested structures and deep structures?
    7. how can we write BDC program to upload data from CSV, XL, TAB delimeter type flat files?
    Ans use FM 'GUI_UPLOAD'(CSV/TAB is .XLS)
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = 'D:PERSONALF1.XLS'
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = ' '
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    VIRUS_SCAN_PROFILE =
    NO_AUTH_CHECK = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    tables
    data_tab = itab[]
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    NO_AUTHORITY = 6
    UNKNOWN_ERROR = 7
    BAD_DATA_FORMAT = 8
    HEADER_NOT_ALLOWED = 9
    SEPARATOR_NOT_ALLOWED = 10
    HEADER_TOO_LONG = 11
    UNKNOWN_DP_ERROR = 12
    ACCESS_DENIED = 13
    DP_OUT_OF_MEMORY = 14
    DISK_FULL = 15
    DP_TIMEOUT = 16
    OTHERS = 17
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    You can also use.
    Use GUI_UPLOAD FM with exporting parameter
    has_field_separator = 'X'
    8. In BDC if the flat file consist of header and multiple line items then how to upload the load, does we create a single internal table for
    both header and body or different internal tables?
    ans. To know more- /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    /people/william.li/blog/2006/03/21/minimize-memory-usage-during-message-mapping-when-replicating-an-element
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b
    No Documentation for Mapping Function useOneAsMany (Mapping Problem)
    /people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
      Re: BDC - Header with multiple line items.   
    Posted: Sep 18, 2006 6:53 PM    in response to: sap innova       Reply      E-mail this post 
    http://www.sap-basis-abap.com/abap/handling-table-control-in-bdc.htm
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    When you have enter multiple line in BDC for a table control use call transaction tcode using i_bdcdata options from opt message into i_messages.
    Check the below example.
    data: lws_cnt type char2,
    lws_field type char15.
    LOOP AT i_invoicing_plan INTO wa_invoicing_plan.
    lws_cnt = sy-tabix.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = lws_cnt
    IMPORTING
    output = lws_cnt .
    CONCATENATE 'FPLT-AFDAT(' lws_cnt ')' INTO lws_field.
    CONCATENATE wa_invoicing_plan-date+6(2)
    wa_invoicing_plan-date+4(2)
    wa_invoicing_plan-date+0(4) INTO lws_date
    SEPARATED BY '.'.
    PERFORM bdc_field USING lws_field lws_date.
    CONCATENATE 'FPLT-FPROZ(' lws_cnt ')' INTO lws_field.
    lws_perct = wa_invoicing_plan-percentage.
    CONDENSE lws_perct.
    PERFORM bdc_field USING lws_field lws_perct.
    ENDLOOP.
    While calling the transaction give like this:
    DATA: opt TYPE ctu_params.
    opt-dismode = 'N'.
    opt-updmode = 'A'.
    opt-defsize = 'X'.
    CALL TRANSACTION tcode
    USING i_bdcdata OPTIONS FROM opt MESSAGES INTO i_messages.
    LOOP AT i_messages.
    ENDLOOP.
    9. In call transaction and session method which method is prefered one?
    Ans. it depends on data if data is small then go for call transaction method.
    10. why can't we use call transaction method to upload large amount of data?
    Ans.there are chances of many errors.
    11.what is the use of standard text in sap scripts, why can't we hard code the same information in form itself?
    Ans.Assume ur company has stored some text which will printed on sapscript based on certain conditions and not taken thru driver program .
    For eg .for a plant 1000
    You have to print 'Plant is 1000 and stock is 1000'.
    for plant 1010
    You have to print 'Plant is 4000 and stock is 3000'.
    Then you will create a standard text thru SO10 create a text name and id would be ST and language as EN .
    AND YOU PLace the text You have to print 'Plant is 1000 and stock is 1000'.
    and this will create one standard text and another standard text for another .
    then in the sapscript you will check the plant
    use the command in the sapscript and write
    Include text name 'zzz' id ST lanuage en.
    When you execute
    Sapscript will read the include and bring the text from SO10 and print on the screen .
    Check T-Code NACE
    Check link for more on SAP Scripts.
    http://www.sap-img.com/sapscripts.htm
    12.what are user exits and how can we create them?
    User exits -> They are the provisions given by the sap standard program to add some extra functionality to their program .
    Which will be present till there is any version change .
    1. User exits were nothing but
    subroutines
    FORM/PERFORM
    called from standard programs.
    2. The FORM defintion was placed inside
    an empty include file.
    3. So It was called EVERYTIME.
    and we need to MODIFY/REPAIR the
    standard include .
    USER EXITS
    1. Introduction:
    User exits (Function module exits) are exits developed by SAP.
    The exit is implementerd as a call to a functionmodule.
    The code for the function module is writeen by the developer.
    You are not writing the code directly in the function module,
    but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    For information on Exits, check these links
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    13. can we modify the sap provided code?
    Ans. Yes,but you need to have access key and i thing you need to have permission also.
    14. what are oss notes?
    ans.SAP provides support in the form of Notes also and this is called OSS. Can check the link Sree provided.
    Just for an example if you face any error in your system. Then there is error number associated with the error. Then you can search for the OSS not for the error number, and the note will give you possible solution to your problem.
    You do have notes for any details for every thng and any thing related to SAP.
    ans.YES! It is Online Suppor System from SAP. It is official.
    Search in http://service.sap.com support portal link with keywork 'OSS' / 'OSS User Guide' to get more info and 'how to' guides.
    OSS (online support system) .You can get this support from WWW.SAP.COM site..SAP will issue OSS userid and password to the customers with each licence to their packages..Here you will get all suppost packages information and how to use the things..These kind of info you will get it..Ask your Project customer about this id.. OSS1 is the transaction code to check the oss notes from SAP...
    15. what are the different types of performance techniques?
    Ans. Use se30--- simply gives you an over view of the time spent on the application processing against the time spend selecting from the database.
         use sto5 _SQL trace tool ---Overview of exactly how the prog is hitting against the database and shows you the individual SQL statements used with which index was used.
    16. can we do modifications on output of ALV reports, how?
    ans.
    17. what are the classes that are used in ALV reporting?
    ans.Check out this tutorial
    An Easy Reference for ALV Grid Control.pdf
    and also demo programs in your system.
    BCALV_GRID_*.
    Check these out:
    Check this for basic concepts of OOPS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
    Tabstrip
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf
    Editable ALV
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc
    Tree
    http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm
    General Tutorial for OOPS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf
    http://www.geocities.com/mpioud/Abap_programs.html
    Award points,if it is helpful

  • Can someone answer these lovely question about the Zen Vision: M plz

    I know we don't know much yet, so from what what we know, can someone answer me?
    Or can a mod?
    . Will it have the same crap firmware in every Zen mp3 player (Sorry to call it that, but it's my personal opinion)? The main reason I changed to an Ipod was the firmware of the Zen Xtra :\. I loved it, loved the sound quality, but then... I have no need for file manipulation on the mp3 player itself, and it presented a problem. All that added crap made you click 6 times just to play one song!
    And then you had to add an album to your playlist to get it to play...
    After awhile, it drove me nuts... I wanted something simple, I just wanted to play my music, not shuffle thru a bunch of crap to get there!, and went for an Ipod.
    I dunno... one of the reasons I'm liking the look of this is that it copies the Ipod firmware. It seems Creative now knows what it's doing... Or does it's Is the copied part only the front, and I would have to click 6 times to play one song? I must know.
    2. Will it have all the extras of an Ipod, games, contacts, calender, notes, etc? FM radio is a plus.
    3. What is the sound quality on this one?
    4. Will this one... have a headphone jack problem while I own it's Don't take this last question seriously... Or do :X

    Newsboys2004 wrote:. Will it have the same crap firmware in every Zen mp3 player (Sorry to call it that, but it's my personal opinion)? The main reason I changed to an Ipod was the firmware of the Zen Xtra :\. I loved it, loved the sound quality, but then... I have no need for file manipulation on the mp3 player itself, and it presented a problem. All that added crap made you click 6 times just to play one song!And then you had to add an album to your playlist to get it to play...After awhile, it drove me nuts... I wanted something simple, I just wanted to play my music, not shuffle thru a bunch of crap to get there!, and went for an Ipod. I dunno... one of the reasons I'm liking the look of this is that it copies the Ipod firmware. It seems Creative now knows what it's doing... Or does it's Is the copied part only the front, and I would have to click 6 times to play one song? I must know.
    Actually seeing as Creative's firmware came first it would seem Apple copied Creative. The iPod firmware and library manipulation is very similar to the Creative players, having played briefly with an iPod.
    Also you talked before about the difficulty with queuing a track, but couldn't describe a better system. Can you explain how the iPod makes it easier? I don't see any way Creative can make it quicker. You need to access the album/artist, then press the play button. Job done.
    2. Will it have all the extras of an Ipod, games, contacts, calender, notes, etc? FM radio is a plus.
    I doubt games and notes, we've never had anything like this to-date.
    A Mod or owner can tell you for sure of course.
    3. What is the sound quality on this one?
    SnR is allegedly 97dB. Of course the subjecti've sound quality is one for the users to debate when there are shipping and several folks here at least have one. I doubt a Mod can tell you anything different.
    4. Will this one... have a headphone jack problem while I own it's Don't take this last question seriously... Or do :X
    If Creative haven't learned their lesson from the Micro and Xtra, well...

  • Importing EDLs and Reconnecting Media... Who can answer this question?

    Hi, happy holidays! What am I missing here:
    I have an EDL with in and out points from a number of different source files.
    I import the EDL in Final Cut Pro as a sequence.
    I click on the sequence. The edit decisions can be seen in the timeline, with all of the source files designated as offline.
    I select the timeline and attempt to reconnect the media.
    The media reconnects, no problem, but the edit decisions aren't in place. In other words, all of the media files begin at the beginning of the source media files (i.e. 04:00:00:00), rather than at the edit decision in and out points for each of the edits in the timeline.
    Surely I'm just missing a step here, right?
    Thanks, Mtbakerstu

    Hi Jerry,
    The source files have been have been re-encoded with a different codec, but they are exactly the same insofar as duration of the source files, and the timecode hour and frame rate they have been assigned, as well as the name I have assigned the files.
    I am simply trying to trick the EDL into recreating a timeline which utilizes source files which have been encoded differently than the original source files... And the timeline is recognizing these files.... only it won't cue the files up to correct timecode point in the files.
    Hope that makes sense.
    Thanks,
    Mtbakerstu

Maybe you are looking for

  • Problem with Java EE 5 and derby

    have a problem with the database connectivity in the examples of Java EE 5, I have the NETBEANS 5.5 with Sun Java System Application Server Platform Edition 9, and with the derby database. I just try to run my application, but there is not connectivi

  • How to create a new session in JSP file

    Usually a child IE window uses same session with parent window. Dose someone know how to create a new session when creating a new IE window by clicking a URL in parent window? The web page is writen by jsp file.

  • Not able to use my recently purchased iPhone5c

    I recently bought an iPhone 5c from someone, and I went to activate it at the Sprint store and they said it was still connected to the other guy's account. I can't contact the guy. Please help me, I would like to be able to use this phone...

  • Scroll Blending Modes?

    Is there any way to quickly change blending modes in CS3 without using the mouse? I'm envisioning a single click in the blending mode drop-down menu and then using the up and arrow keys to scroll through the list. It's the kind of interface feature I

  • An infuriating exchange with tech support

    Since Verizon seems to have no higher tier than this to register concerns about service, I'll air my grievance here. I few days ago, I began to have trouble logging in to servers hosted by a well known web hosting company. I've been logging in to the