Q about( for) and (if) statements

Hi
I am not sure whether i am right or not, but i found that (for) or (if) statement cannot be written outside constructors and when i try to write it (illegal epxpression start ) message appears.
my Q is it must be written inside constructor ?
Actually i saw a program with (if) and (for) outside constructor

Suggestion: when you have a question about your code, the most
effective thing to do is post a short complete example. Does that make
sense to you? Will you do it the next time?

Similar Messages

  • What's the maximum size a varchar2  variable can hold for and NDS Stmnt?

    What's the maximum size a varchar2 variable can hold for and NDS Statement? I read that NDS is good for doing EXECUTE IMMEDIATE on statements that aren't too big. The 10g PL/SQL manual recommends using DBMS_SQL for statements that are too large, but it never gave a limit for what too large was. Does anyone know offhand?

    The limit is the same as the length of varchar2 variable within PL/SQL - that is varchar2(32767).It's not documented, but intermediate concatenation result can hold up to (64k-1) :
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    declare
      part1 varchar2(32767) := rpad('begin null;', 32767);
      part2 varchar2(32767) := lpad('end;',        32767);
    begin
      dbms_output.put_line(length(part1 || ' ' || /*' ' ||*/ part2));
      execute immediate part1 || ' ' || part2;
    end;
    65535
    PL/SQL procedure successfully completed.

  • Balance Sheet and Income Statement for Plan data

    Hi Everyone,
    in our Company  we maintain Plan in COPA for next year that is for 2009 , we have finished all the Planing activities and now (users asked me), they want to have Balance Sheet and Income Statement for the data we have in Plan version , I am not sure what they are Talking about, please help me ,
    where can I set up that requirement ?  and what is actually Balance Sheet and Income Statement for Plan data?
    Thx
    Niki

    Is the issue resolved?
    What did you do?
    Thanks
    Naveen

  • My iphone 4 is dead after I updated to ios 6.1.3 it doesnt turn on and doesnt respond to itunes also. Visited Apptronix service desk but they say there is nothing they can do about it, and they have charged INR 10640 for a new one. Is there anybody same..

    My iphone 4 is dead after I updated to ios 6.1.3 it doesnt turn on and doesnt respond to itunes also. Visited Apptronix service desk but they say there is nothing they can do about it, and they have charged INR 10640 for a new one. Is there anybody with similar problem....

    Hm... Try this----> http://support.apple.com/kb/ht1808 or http://osxdaily.com/2010/12/04/ipad-dfu-mode/

  • We have always used one iTunes account and I want to crate a new account for my daughter.  What is the best way to go about this and will she need to download free apps again?

    We have always used one iTunes account and I want to crate a new account for my daughter.  What is the best way to go about this and will she need to download free apps again?

    Not going to happen the way you want it to.
    When you add a gift card balance to the Apple ID, it's available for the Apple ID.
    Probably best to create unique Apple ID's for each... this will also make things easier in the future as purchases are eternally tied to the Apple ID they were purchased with.

  • Can anyone offer some advice i am looking to upgrade the OS system on one of my macbook pro's, currently running os10.4.11, I would like to upgrade to OS10.5? how would I go about this, and is there a cost, for what is an old operating system now?

    Can anyone offer some advice i am looking to upgrade the OS system on one of my macbook pro's, currently running os10.4.11, I would like to upgrade to OS10.5? how would I go about this, and is there a cost, for what is an old operating system now?

    Since your Mac probably came with 10.4, there is no longer a way to get 10.5 Leopard install media. IF it has the requirements, you may be able to upgrade to 10.6 Snow Leopard by buying the boxed install media at the Apple Store for $30.
    System requirements are found here: http://support.apple.com/kb/SP575
    General support can be found here: http://www.apple.com/support/snowleopard/

  • This isn't a question but rather a warning to anyone using the new OS for iphone 4.  The imessage uses up your data plan like crazy.  I called Apple about it and they said no it's not doing it.  I called AT

    The new OS is burning through my data plan like crazy and here's why.  Imessage uses your data plan and not your texting plan.  So every time you send a text message to someone with an iphone it uses imessage and it uses your data, not your text plan.  I couldn't figure out why I was burning through so much of my data plan so quickly.  I called Apple and they said, no it's not the data plan doing it.  I called AT&T and they said, yes, the imessage uses data instead of your texting plan if you are texting to another iphone.  Also, the new OS runs your apps all the time, even when you aren't using them.  So if you are not near wifi your apps are running and burning your data plan.  The AT&T guy took me through the steps to turn off the apps.  You can still use them but they won't be running constantly.  Seriously Apple, you should let people know this.  It does say it in the fine print on the website "data rates may apply" under imessage but most people will never read this.  So my data plan started on October 10th and it's already at 175 megabytes and I only have a 200 megabyte plan.  I've never used more than 50 to 75 megabytes in a month.  Apple get it together and be honest with people and tell them.  Quit denying the problem.  Most people have probably not even discovered this yet.  Wait till you get your bill.

    kimmie92592 wrote:
    It's not really common knowledge because I've talked to several people today and none of them knew about it.  Also, when I called Apple they said no the new OS is not using data.  Totally wrong answer.  You'd think they'd know about it and at least tell people.  The people who are going to be hit by this are people like me with the 200mb plans.  I just think it's best to spread the word so people can know what's happening.  I still don't know how I went through so much data in such a short period of time.  It's not happening anymore though, not since I fixed everything up last night. 
    If you are using a free wifi connection, there are no data charges with iMessage.  But in an area where you did NOT have a wifi connection, of course it used 3G and of course you got charged for it (or had it count against your plan limits).
    I'll ask again - without a wifi connection, just what did you think was happening?  How did you think your iPhone was able to magically send a message WITHOUT using any data connection?  A little bit of rational thought would have made you realize that there was no way, over a 3G connection (which is a service provided by your cellular service provider, NOT Apple), that you can send or receive ANYTHING without your service provider's plan picking it up.
    Nothing abut iMessage has ever hinted that it can, in any way, bypass your service provider when NOT using a wifi connection.

  • New tab for Contract for data about products and product sales.

    Looking for ideas to implement a new tab on the Contract (RECN)
    We have some basic data about products and product sales that we want to have implemented on a screen tab for a contract.  The user needs to be able to enter information about a product, quantity, year grown, and tax info. And then each of these products may have one or many sales records showing date of sale, quantity sold, and a brief note.
    So a contract can have 1 or many products and a product can have one or many sales records.
    The user needs to be able to enter, update and delete any one of these records.  And, ideally, enter multiple of each before saving.
    Do any of you have ideas about how to go about this?  Using ALV grids? or table controls? I'm still wet behind the ears regarding doing screen development in SAP so am open to any and all suggestiions.
    SAP 6.4 is the version we are at.
    Thanks
    Laurie

    Maybe the original order to renew and keep unlimited data was cancelled because it was not an option. It wasn't a "bait-and-switch" The order was cancelled, it wasn't switched. When you called to reissue the order they told you the correct options so they did not switch you without your knowledge. The second rep was correct, he didn't lie, the first rep did. Verizon cancelled the order because if they didn't you would have been set up w/ new 2 year agreements on a tiered data plan, which would have been illegal. Thats why they cancelled it. So you can either not make the change, keep the unlimited data and buy the phones outright. Or switch, go to a tiered plan, and get new phones. By glitch they meant the system accidentally allowed you to keep the unlimited plan, though it was not an option. Verizon has had this rule since they removed the unlimited plan back in '11.
    << Full name of rep removed >>
    Message was edited by: Verizon Moderator

  • One question about Pricing and Conditions puzzle me for a long time!

    One question about Pricing and Conditions puzzle me for a long time.I take one example to explain my question:
    1-First,my sale order use pricing procedure RVAA01.
    2-Next,the pricing procedure RVAA01 have some condition type,such as EK01(Actual Costs),PR00(Price)....,and so on.
    3-Next,the condition type PR00 define the Access Sequences PR00 as it's Access Sequences.
    4-Next,the Access Sequences PR00 have some Condition tables,such as:
         table 118 : "Empties" Prices (Material-Dependent)
         table 5 : Customer/Material
         table 6 : Price List Type/Currency/Material
         table 4 : Material
    5-Next,I need to maintain Condition tables's Records.Such as the table 5(Customer/Material).I guess the sap would supply one screen for me to input the data of table 5.At this screen,the sap would ask me to select one table,such as table 5.When I select the table 5,the sap would go to the screen to let me input the data of table 5.But when I use the T-CODE VK31 or VK32 to maintain Condition tables's Record,I found it's total different from my guess:
    A-First,I can not found one place for me to open the table,such as table 5,to let me input the data?
    B-Second,For example,when I select the VK31->Discounts/Surcharges->By Customer/Material,the sap show the grid view at the right side.At the each line of the grid view,you need to select the Condition Type at the first field.And this make me confused very much.Why the sap need me to select one Condition Type but not the Condition table?To the normal logic,it ought not to select Condition table but not the Condition Type!
    Dear all,I'm a new one in sd.May be this is a very stupid question.But it did puzzle me for a long time.If any one can  explain this question in detail and let me understand the concept,I will appreciate him/her very much.Thank you.

    Hi,
    You said that you are using the T.codes VK31 or VK32.
    These transaction codes are used to enter condition records for standard condition types. As you can see a grid left side having all the standard condition types like price, discounts, taxes, frieghts.
    Pl check using T.code VK11 OR VK12 (change mode)
    Here you can enter the required condition type, in the intial screen. (like PR00, MWST, K004, K005 .....etc)
    After giving the condition type, press enter or click on Combinations icon on top of the screen. Then you can see all the condition tables which you maintained for that condition type. Like as you said table 118, table 5, table 6 and table 4.
    You can select any table and press enter, then you can go into the screen in which you have all the field cataglogues you maintained for that table. For example you selected combination of Customer/Material (table 5) then after you press enter then you can see customer field on top, and material fields.
    You can give all the required values and save the conditon record.
    Hope this is clear.
    REWARD IF HELPFUL.
    Regards,
    praveen

  • I have read up on all about crashes and i cant even open it in safe mode :( i have tried deleting it and reinstalling it but the problem still persists. What would you suggest i do and is there any way i canget hold of firefox 6 for mac?

    i have read up on all about crashes and i cant even open it in safe mode :( i have tried deleting it and reinstalling it but the problem still persists. What would you suggest i do and is there any way i canget hold of firefox 6 for mac?

    Does the regular Firefox 8 release version work or does the version crash as well?
    *Firefox 8.0.x: http://www.mozilla.com/en-US/firefox/all.html
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • I recently installed MacKeeper on my iMac.  It was a disaster.  I lost applications and files.  Fortunately I had back up.  Worst of all it did something to my system software that it takes about 7 minuts to stat-up.  What can I do to get it to start-up f

    Version:1.0 StartHTML:0000000186 EndHTML:0000002354 StartFragment:0000001670 EndFragment:0000002318 SourceURL:file:///Users/armandodiaz/Desktop/I%20recently%20installed%20MacK.doc                   
    I recently installed MacKeeper on my iMac. It was a disaster.  I lost applications and files. Fortunately I had back up. Worst of all it did something to my system software that it takes about 7 minuts to stat-up.  What can I do to get it to start-up faster?
    Thanks

    How to Remove MacKeeper
    Given you have a backup you may want to think about erasing the hard drive and reinstalling Snow Leopard then restore your backup.

  • Hi I have signed up for apple chat and it accepts my password etc then a notice come up saying @what is the user name you want people to see' and it states my email addy with a tick beside it ..it isnt highlighted though so cant click on it..help..

    Hi I am trying to set up chat on my Ipad...I have had email verified and got a pw etc//I sign in and it is accepted then I get a notice saying! What name do you want people to see you as..and it states my email addy which is ticked..then I press DONE and I just keep going back to the sign in screen any ideas please?

    What application are you talking about?

  • How to remove "About this Page" and "Privacy Statement" on a OA page

    Hi,
    How do i remove "About this Page" and "Privacy Statement" links at the bottom of an OA page and add "Close Window" link on the top right corner of OA page.
    Please help.
    Advance thank
    Pavan

    Hi,
    1. Select Personalize Page link at top right of page.
    2. Select Choose context button.
    3. In the scope drop down box select OA Footer.
    4. Click on apply.
    5. Expand privacy.
    6. Click on personalize pencil icon.
    7. Set Rendered property to false at required level.
    8. Click on apply.
    9. Click on Return to Application link.
    thanx
    Pratap

  • Release notes for 2.16 states that there was a fix for alerts not being modal. We are using 3.0.6 and are experiencing the same issue; was there a regression to the modal fix. What version needs to be used to make sure that alert messages are modal?

    Release notes for 2.16 states that there was a fix for alerts not being modal. We are using 3.0.6 and are experiencing the same issue; was there a regression to the modal fix. What version needs to be used to make sure that alert messages are modal?

    We are trying to determine why alert boxes are not modal
    The fix states it's for Firefox 2.0 - 3.7a1pre
    We are using 3.0.6 not the current version of 3.6.13.
    Add-on release notes 2.16.1
    https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/versions/
    Repeating 2.16 release notes since 2.16 was not made available for more than a couple of hours
    Fixed bug whereby some alert boxes weren't properly parented/owned. This led to some alerts not being properly modal
    with respect to the window/dialog that issued the alert.

  • Which two statements are true about WHERE and HAVING clause ?

    Which two statements are true about WHERE and HAVING clause ?
    1. WHERE clause can be used to restict rows only
    2.HAVING clause can be used to restrict groups only
    3.HAVING clause can be used to restrict groups and rows
    Plz help me in dis ques...which two will be correct...i think its 1 and 2...but not sure.

    863180 wrote:
    Plz help me in dis ques...which two will be correct...i think its 1 and 2...but not sure.If you are not sure then you do not fully understand HAVING.
    SY.

Maybe you are looking for

  • Importing swf from bin-release to Flash Professional..

    Hello, I'm trying to take a .swf from the bin-release folder from Flash Builder and import it into Flash Professional CS5 and it doesn't work. Here are the steps I have taken: I'm using the following simple code in FlashBulder <?xml version="1.0" enc

  • Difference in GL Balances between two Standard Report fbl3n and fagll03

    Hi , Mismatch of balances between two standard report ie.fbl3n and fagll03 . We are giving the complete example of what we are facing right now ... please go through the examples . ENTRY NO. 1 We have posted one MIRO , Accounting Posting is as below

  • How can I recover email from library file?

    I tried to convert from incoming POP to IMAP (per instructions from Verizon).  I then saw thousands of emails in my inbox disappear.  They reside in my library folder with a different name:  Library/mail/POP-(my email address/INBOX/messages/.   I can

  • Final Cut Express Vs. Final Cut Pro Vs. Adobe Premiere

    Hey all, I just bought my first Apple computer and I'm loving it. I have worked with Final Cut Pro in the past and I really enjoy working with it. However, $1000 is a bit steep. I would like to ask what your opinions are on maybe getting Final Cut Ex

  • HP 67oo All in One won't save scans at 2.400 dpi

    Hi, i tried to scan a photo at 2400dpi and when it comes to saving the file, i get a "the hp scan application was unable to save the file to the specified location". I tried several locations, including external drives etc... I have Win7 Enterprise a