SQL DECLARE 2 N NUMBER; 3 I NUMBER; 4 F NUMBER; 5 BEGIN 6
hai,
error in factorial number code
any help?
thanks
rcs
SQL> DECLARE
2 N NUMBER;
3 I NUMBER;
4 F NUMBER;
5 BEGIN
6 N:=&N;
7 F:=1;
8 FOR I IN 1...N
9 LOOP
10 F:=F*I;
11 END LOOP;
12 DBMS_OUTPUT.PUT_LINE('THE FACTORIAL VALUE IS' ||F);
13 END;
14 /
Enter value for n: 5
old 6: N:=&N;
new 6: N:=5;
FOR I IN 1...N
ERROR at line 8:
ORA-06550: line 8, column 13:
PLS-00103: Encountered the symbol "." when expecting one of the following:
( - + case mod null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current max min prior sql stddev sum variance execute
forall merge time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
The symbol "<an identifier>" was substituted for "." to continue.
----------
hi,
SET SERVEROUTPUT ON
DECLARE
N NUMBER;
I NUMBER;
F NUMBER;
BEGIN
N := &N;
F := 1;
FOR I IN 1 .. N
LOOP
F := F * I;
END LOOP;
DBMS_OUTPUT.PUT_LINE('THE FACTORIAL VALUE IS ' || F);
END;
/Tips:
1- post your code inside tags (start and end tag are the same) to proper formatting :)
2- use a meaningful name in the thread :)
Regards,
Similar Messages
-
HI Team, Recently One week back I bought a new iphone 5 from India. They have given me a used mobile which has a different IMEI number when compared to the IMEI number present on the box. Please let me know how to proceed further
When you went back to the place where you purchased this phone, & asked them, what did they say?
No one here can help you with this, nor can/will Apple. You need to take this up with whoever you purchased this phone from. -
hello
I have problem with regist my visa and I cannot buy from store
the message came in the end of form is says
the phone number must be a 7-digit number
and I have writed but not accepted
iam from saudi arabia
my mobile is 966504850992
pls answer
thanks
dfr aldossaryWow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum. Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is. Apple is not here. It's users, like you.
If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off. -
How to look for sales order number if I know outbound delivery number?
How to look for sales order number if I know outbound delivery number?
Hi ,
If you want to see the Sales order Number from Outbound delivery or invoice,go to their respective T-codes,say for example,
for delivery,Goto Tcode: VL02N / VL03N.There you will find Document Flow Icon,click on that,or press F7.
You will get a window,there you can see the Sales order Number before your outbound delivery Number
With Thanks and Regards,
Priya -
How to find Invoice number linked to FI accounting document number ??
Hello All,
I have been looking around for all possible combinations to find the link between FI accounting document number (BSEG-BELNR) and Intercompany Invoice number (for which billing corr. to STOs' or POs' is done).
The requirement is that during ERS posting, we have accounting document numbers (BSEG-BELNR) and associated STOs' for this (BSEG-EBELN), but we are unable to map the Intercompany Billing Invoice number(s) (where the billing corr. to STOs' obtained from BSEG-EBELN) to this accounting document number (BSEG-BELNR).
Any pointers or detailed view solution would be of great help.
Thanks,
AnshHello DPM,
Thank you for the descriptive help. But my requirement is to look for Intercomapny Billing number (VBRK-VBELN) linked to an accounting document number (BSEG-BELNR) and not Invoice Receipt Number.
The steps that I am following are:
From BSEG, found EBELN (Stock Transfer Order) and XREF3 (Reference Key, combination of fiscal yr., some ref. number, maybe GR no. and ref item no.), based on BELNR (Accounting document number).
From EKBE, found XBLNR (Reference Delivery Number or Direct Intercompany Billing Number on which GR is done) based on
EKBE - EBELN = BSEG - EBELN
EKBE - BELNR = BSEG - XREF3 (only ref and item no., considering it to be a GR no.)
EKBE - VGABE = '1' and EKBE - BEWTP = 'E'.
From VBRP, found VBELN (Intercompany Billing No., which is a desired number) based on
VBRP - AUBEL = EKBE -EBELN (Stock Transfer Order)
VBRP - VGBEL = EKBE - XBLNR (Delivery number)
Here, I am not sure about 2 things:
Whether the reference no in BSEG-XREF3 will always be Goods Receipt number for Stock Transfer Order or not. If not, then what it can be and how I will have to proceed further then.
Secondly, If in case for an accounting document number, I have 2 Stock Transfer orders (BSEG - EBELN) and same reference number (BSEG-XREF3), then from History table (EKBE) I get only single delivery based on which GR was doen for both STOs', then I shall be getting single Intercompany Billing Invoice from VBRP or different ?
Kindly provide your inputs.
Thanks,
Ansh -
How to trace purchase order number with respect to Purchase requestion numb
Hi friends,
Can u please help me how to Trace purchase order number with respect to purchase Requetuion number. Is there any standard report available in R/3Hi Vamsi,
Thats what!!!
Goto SE16 - EBAN - Give PR number in the iput screen.
In the output screen you will have to do field selection from Menu - Settings - formatlist - choose fields.
There you choose Purchase Order.
So the output will display for you POs for the PR that you entered.
Regards,
Vishal -
why is that i can not view my warranty status? whenever i tried to put my phone's serial number itunes prompt that my serial number is not a valid one. how can i solve this issue?
https://selfsolve.apple.com/agreementWarrantyDynamic.do
-
I have just transferred my entire application file from an Imac to an identical Imac, both running OS 10.9.5. Everything works fine, excepting that when I attempt to open Photoshop 6, I am prompted for the serial number. I enter the serial number provided by Adobe, which I have confirmed with my "previous purchase" records kept by Adobe. It is demanding a "qualifying product", all of which is contained in the complete files I transferred. Why can't Adobe recognise my valid serial number for Photoshop 6?
I have just transferred my entire application file from an Imac to an identical Imac,
Say what?
Please use the proper installer.
Are you really talking about Photoshop 6 or about Photoshop CS6? -
Varchar to number returns a ORA-01722-Invalid Number error
I have a script where i am converting a varchar to number to be compared against a number.
(To_Number(p.result_value,'999999.99') < 0 OR p.result_value < 0)
this particular line is causing the error ORA-01722-Invalid Number.
Is there any ideas as to why this happens and how I can resolve?
Thanks in advance!The result_value column in Pay_Run_Result_Values is a varchar2 field.
So you need to put in some additional logic to make sure that the row is having numbers alone before doing to_number.
Cheers
Ganesh -
I am a Creative Cloud subscriber and Acrobat XI Pro is asking for a serial number. When I enter my CC serial number, it indicates that the serial number is invalid
>enter my CC serial number
I don't know how that is possible, since Cloud accounts do not use a serial number... you download & install & activate Cloud programs with your Cloud log in to your paid account
Ask for serial number http://forums.adobe.com/thread/1234635 has a FAQ link
http://www.adobe.com/products/creativecloud/faq.html
http://helpx.adobe.com/creative-cloud/help/install-apps.html
http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
what is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
Cloud Getting Started https://helpx.adobe.com/creative-cloud/topics/getting-started.html
-Install, update or UNinstall, and launch after installing -
Number of PO with Purchase requisition number not null
Hi Experts,
I need to number of PO with Purchase requisition number not null in ECC
T-CODE nse16n and table name =EKPO
But when I make EKPO-BANFN not equal NULL it doesnt work ? how can do that ?
I custom my data source 2LIS_02_SCL with EKET.BANFN I want to check my DS with ECC data .
Thanks and best regards
IlyaebiIF you need to check the number of PO's with Purchase requisition number not null then simply open the table EKPO in SE12, click on Contents and against the field BANFN right click on the empty box where you enter values and click on Options. From the pop up window selecte Not Equal to and check the Number of Entries in the table. You will get the desired result even though the volume of data might be large.
Regards,
Arminder -
National Stock Number (NSN) as an Alternate Item Number in PeopleSoft FSCM
My company is a supplier of defense related products to the United States military and sometimes foreign militaries.
The Defense Logistics Agency of the Department of Defense assigns items IDs to material which the United States military buys, transports, stores and uses. These item IDs are called National Stock Numbers (NSN).
My company has a requirement to display (show) the NSN on shipping documents to any shipments for the United States military. Also, we internally in the company need to be able to search the items (and products) by NSN on various screens within Peoplesoft. We also need the ability to periodically load a csv file into peoplesoft to assign NSNs to item IDs.
We are on PeopleSoft version FSCM 8.9. Of course FSCM 8.9 does not have any build-in/delivered functionality to support NSNs. NATO also uses a similar idea called NATO Stock Number. Both the (National Stock Number and the NATO Stock Number) are 13 digits.
I reviewed the 9.1 Peoplebooks and there is no mention of NSN (NATO stock number or national stock number).
I have also reviewed the 9.2 Pre-Release Notes and there is no mention of NSN (NATO stock number or national stock number).
We have thought about using PROD_ITEM.PROD_FIELD_C30_A as a place to store NSNs. We are also considering MASTER_ITEM_TABLE.ITEM_FIELD_C30_A as a place to store NSNs. Please note that we need NSN for shippable products only.
I am looking for better ideas here or at least validate our idea for putting it in the fields discussed above. Also, if someone could give a reason for Product Item table vs Master Item table, which would be better?
Thanks in advance.
Mansoor H. Khan
Principal Programmer Analyst
Thales Communication Inc.
22605 Gateway Drive
Clarksburg, MD, 20871
Tel: 240 864 7747My company is a supplier of defense related products to the United States military and sometimes foreign militaries.
The Defense Logistics Agency of the Department of Defense assigns items IDs to material which the United States military buys, transports, stores and uses. These item IDs are called National Stock Numbers (NSN).
My company has a requirement to display (show) the NSN on shipping documents to any shipments for the United States military. Also, we internally in the company need to be able to search the items (and products) by NSN on various screens within Peoplesoft. We also need the ability to periodically load a csv file into peoplesoft to assign NSNs to item IDs.
We are on PeopleSoft version FSCM 8.9. Of course FSCM 8.9 does not have any build-in/delivered functionality to support NSNs. NATO also uses a similar idea called NATO Stock Number. Both the (National Stock Number and the NATO Stock Number) are 13 digits.
I reviewed the 9.1 Peoplebooks and there is no mention of NSN (NATO stock number or national stock number).
I have also reviewed the 9.2 Pre-Release Notes and there is no mention of NSN (NATO stock number or national stock number).
We have thought about using PROD_ITEM.PROD_FIELD_C30_A as a place to store NSNs. We are also considering MASTER_ITEM_TABLE.ITEM_FIELD_C30_A as a place to store NSNs. Please note that we need NSN for shippable products only.
I am looking for better ideas here or at least validate our idea for putting it in the fields discussed above. Also, if someone could give a reason for Product Item table vs Master Item table, which would be better?
Thanks in advance.
Mansoor H. Khan
Principal Programmer Analyst
Thales Communication Inc.
22605 Gateway Drive
Clarksburg, MD, 20871
Tel: 240 864 7747 -
Using Mountain Lion (OS 10.8), in Contacts, how can I show a count of number of contacts total and/or number of contacts in a group?
If you scroll the list to the bottom, there might be a count. I haven't figured out why you sometimes get a count and other times you don't.
-
When I quit itunes it restarts again with the dot under the itunes logo but the iTunes window doesn't open until I click the icon on the dock. Also in the middle of the size vale in the size column the value starts with a number then a ? then a number.
This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes for Mac forums.
Regards. -
I have a gift card but when I try to redeem it ask me for a code number, I am not sure which number to use but have tired all three that are on the gift card but none have worked. Can anyone tell me which number to use.
If it looks like this: click here then use that code. If it looks like an "O" it is actually a zero.
Maybe you are looking for
-
I want to save existing passwords for a reinstall of Firefox
Firefox 14.2.0, Slackware 64-bit 14.1. My user account contains Firefox data from the initial release of Firefox (some years ago). I want to completely remove the Firefox directory tree and start fresh (there's a lot of stuff in there that I don't gi
-
Problem in seeing a shape from different angle
Hi all, I am facing the problem in seeing an arrow on canvas. I am using QuadArray to form a shape of Arrow. I have created an arrow on a location where i click on canvas. When i see it from different angles, some of the surfaces got disappear even t
-
I purchased a new computer and can't open my "Indesign" program, I need my serial number but don't no it, what do I do?
-
Airport Extreme won't connect to hidden WPA network????
I have SSID broadcasting turned off on my ATT modem/wireless router so my network is hidden from my neighbors, but now my AEX won't join the network. No matter how many times I put in the network name and WPA pass, when the AEX reboots it has flashin
-
Moving from one ISP with Fibre to another
Can anyone tell me is it possible to move to another ISP if they do Fibre when I already have Fibre with BT Thanks Michael