Where it could have gone wrong ?
Hi ,
i got the error :
ORA-06550: line 4, column 1:
PLS-00428: an INTO clause is expected in this SELECT statement
when executing :
declare
begin
select * from testing_timelogging where DESCRIPTION_LEVEL1 = 'ttttt' ;
exception
when no_data_found then
dbms_output.put_line('No DATA');
when others then
dbms_output.put_line('OTHERS');
end ;
must i really declare a variable ?
tks & rdgs
What you are executing is a PL/SQL, and not just SQL. In PL/SQL (like any other language accessing database), you need to declare variable(s) to capture value(s) returned by a SELECT.
Similar Messages
-
ALV list with empty data - What could have gone wrong?
Dear experts,
I'm currently working on some codes to display data (the tables involved really do contain data), but when the codes are executed, the ALV list does not contain any data in it (only the column headers are fine).
What could have gone wrong? I've been staring at the codes for hours now. Please help. Appreciate any help at all.
Displaying ALV data with REUSE_ALV_LIST_DISPLAY:
form display_alv_data .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = w_prog
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_STRUCTURE_NAME =
* IS_LAYOUT =
IT_FIELDCAT = gt_field_cat[]
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IR_SALV_LIST_ADAPTER =
* IT_EXCEPT_QINFO =
* I_SUPPRESS_EMPTY_DATA = ABAP_FALSE
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = gt_final
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " display_alv_data
Retrieving data from the database tables into the internal table:
form retrieve_data .
" For internal table 1
SELECT ekbe~ebeln
mseg~mblnr
ekbe~belnr
ekbe~ebelp
ekbe~matnr
ekbe~menge
ekbe~dmbtr
ekbe~werks
mseg~lgort
mseg~lifnr
lfa1~name1
FROM ekbe INNER JOIN mseg ON ekbe~ebeln = mseg~ebeln
INNER JOIN lfa1 ON mseg~lifnr = lfa1~lifnr
INTO CORRESPONDING FIELDS OF TABLE gt_1
WHERE mseg~bwart = '101' AND " Movement type: Goods Receipt
ekbe~vgabe = '2' AND " Transaction / event type for Invoice Verification Number
ekbe~matnr IN s_m_num AND
mseg~lifnr IN s_v_num.
" For internal table 2
SELECT ekbe~ebeln
makt~maktx
eket~eindt
FROM ekbe INNER JOIN makt ON ekbe~matnr = makt~matnr
INNER JOIN eket ON ekbe~ebeln = eket~ebeln
INTO CORRESPONDING FIELDS OF TABLE gt_2
WHERE eket~eindt IN s_d_date.
" For internal table 3
SELECT ekbe~ebeln
ekko~bedat
ekko~ekorg
ekko~ekgrp
ekko~bukrs
FROM ekbe INNER JOIN ekko ON ekbe~ebeln = ekko~ebeln
INTO CORRESPONDING FIELDS OF TABLE gt_3
WHERE ekko~bedat IN s_p_date AND
ekko~ekorg IN s_p_org AND
ekko~ekgrp IN s_p_grp.
" For the final internal table
SORT: gt_1, gt_2, gt_3.
LOOP AT gt_1.
MOVE-CORRESPONDING gt_1 TO gt_final.
READ TABLE gt_2 WITH KEY gfs_ebeln = gt_1-gfs_ebeln BINARY SEARCH.
MOVE-CORRESPONDING gt_2 TO gt_final.
READ TABLE gt_3 WITH KEY gfs_ebeln = gt_1-gfs_ebeln BINARY SEARCH.
MOVE-CORRESPONDING gt_3 TO gt_final.
APPEND gt_final.
ENDLOOP.
endform. " retrieve_dataDear forumers,
I apologize for the rather late reply. The SAP server that I've been working on was down since Thursday evening and I wasn't able to debug much into the codes. Nevertheless, I really do appreciate all of your inputs and help here.
Rob,
I've just debugged my codes again and found out that in the first place, there is no data contained in the internal table gt_1 at all. My rough guess is because I've misused the INNER JOIN wrongly here (see code comments below):-
SELECT ekbe~ebeln
mseg~mblnr
ekbe~belnr
ekbe~ebelp
ekbe~matnr
ekbe~menge
ekbe~dmbtr
ekbe~werks
mseg~lgort
mseg~lifnr
lfa1~name1 " this line should probably be commented out
FROM ekbe INNER JOIN mseg ON mseg~ebeln = ekbe~ebeln
INNER JOIN lfa1 ON lfa1~lifnr = mseg~lifnr " this line should probably be commented out - the table join here is not based on table ekbe at all
INTO CORRESPONDING FIELDS OF TABLE gt_1
WHERE mseg~bwart = '101' AND
ekbe~vgabe = '2' AND
ekbe~matnr IN s_m_num AND
mseg~lifnr IN s_v_num.
Next, I commented out certain lines further and found that there is still no data contained in the internal table gt_1 again, as follows:-
SELECT ekbe~ebeln
mseg~mblnr
ekbe~belnr
ekbe~ebelp
ekbe~matnr
ekbe~menge
ekbe~dmbtr
ekbe~werks
mseg~lgort
mseg~lifnr
" lfa1~name1
FROM ekbe INNER JOIN mseg ON mseg~ebeln = ekbe~ebeln
" INNER JOIN lfa1 ON lfa1~lifnr = mseg~lifnr
INTO CORRESPONDING FIELDS OF TABLE gt_1.
" WHERE mseg~bwart = '101' AND
" ekbe~vgabe = '2' AND
" ekbe~matnr IN s_m_num AND
" mseg~lifnr IN s_v_num.
There should be data contained in table ekbe here. What could have really gone wrong now? -
What could have gone wrong?
I installed PHP 4.4.6 + Oracle instant client 10g(win32) + Apache 2.0.59 (Win32) on my Windows XP Professional Version 2002 SP2.
I enabled php_oci8.dll in my php.ini. Also put tnsname.ora under C:\instantclient_10_2.
I loaded phpinfo.php and it shows "OCI8 Support enabled"
However when I use below script to test:
<?php
if ($c=OCILogon("user", "pw", "db")) {
echo "Successfully connected to Oracle.\n";
OCILogoff($c);
} else {
$err = OCIError();
var_dump($err);
print "\nError code = " . $err;
print "\nError message = " . $err[message];
print "\nError position = " . $err[offset];
print "\nSQL Statement = " . $err[sqltext];
echo "\nOracle Connect Error " . var_dump( OCIError() );
?>
The output is:
Interactive mode enabled
bool(false)
Error code =
Error message =
Error position =
SQL Statement = bool(false)
Oracle Connect Error
Please help enlighten what I should do to move on.
Many thanks,
PHPNewbieThanks cj. I think I'm getting closer.
After replaced php_oci8.dll, I retested a simplified script:
if ($c=OCILogon("user", "pw", "kirin"))
{ echo "Successfully connected to Oracle.\n";
OCILogoff($c); }
else { $err = OCIError();
var_dump($err);
#echo "\nOracle Connect Error " . var_dump( OCIError() );
?>
The the output is:
Warning: ocilogon() [function.ocilogon]: OCIEnvInit() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in C:\work\test.php on line 3
Warning: ocierror() [function.ocierror]: OCIError: unable to find error handle in C:\work\test.php on line 6
bool(false)
I can't understand both warnings, isn't that ORACLE_HOME is not needed for instant client, For the second warning, isn't that OCIError does not need to pass any handle? -
Before you ask, i tried going through the third-party add-on document and opening it up in safemode did not fix it. Also, I am running it as administrator and that is not helping either.
I DID IT! I FIXED IT, FINALLY!!! At least it worked for me. Here's what I did: from Control Panel/Programs/Programs and Features/Uninstall or Change Program, I right-clicked on iTunes and selected Repair. After that ran and completed, I went to Computer/Local Disk (C:)/Program Files. From the list, I right-clicked on iTunes and selected “Run as Administrator.” After that I tried to purchase music from iTunes, and it worked! I hope this makes sense and works for you. Good luck!
-
Working alternating with iPhoto and FCE tgrying to import pictures from iPhoto into FCE suddenly all my 22300 pictures disappeared leaving empty frames. Does somebody know where the pictures could have gone and how can I get them back into iPhoto? Lothar
The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
Option 1
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
If that fails:
Option 2
Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
Regards
TD -
Printer problem and where Apple have gone wrong....
Using a Canon ip100 printer with Lion now gives an error message every time I want to print - says printer is not connected. Have to disconnect usb then reconect and it works.
Also occasionally getting error message telling me I've just shut my computer down and it will restart - when I haven't!
I'm not used to things not working properly on my Mac!
I love progress, but am really disappointed with Apple with this release. It has lost it's clean simplicity, it's lost it's intuiative use, it's got bugs, amateurish graphics, childlike icons and feels generally dumbed down. - perhaps Macs are no longer for the discerning creative user, with Apple now prefering the profits associated with appealing to the masses. Despite decades of excellence under Steve Job's leadership is possible for even Apple to get it wrong - just like Microsoft did with Vista! A pity - I don't feel I can enthuse about my Mac anymore.....With regards to the iP100, check that you are using v10.42.3.0 of the printer driver. This information can be found in System Information > Hardware > Printers.
-
Upgraded to 10.8.3 on Mac mini and things have gone wrong
Ok I am using a late 2009 mac mini 4 gig computer and been on Mountain Lion 10.8.2 for some time with nothing going wrong with my computer at all. I decided to update to the new 10.8.3 and have left it a few days but nothing is resolving. Things have slowed down and getting the spinning wheel happening alot, screen freezes for a few seconds and then everything is fine then freezes again. My itunes keeps stopping in songs and starting again, it is like the computer is doing catch up or its thinking about things. It is getting me down and dont know what to do.
I have repaired disk permissions and ran clean my mac, everything was fine before I put this 10.8.3 on my mac. Can someone please tell me how do I put 10.8.2 back on ? I read where someone said on line that reinstall 10.8.3 but do not know how to do this.
If someone can help I would really appreciate thisThank you very much Barney for your reply, I have got rid of my clean my mac as sometimes I thought it was more a hinderance than a cure and I went to disk utilities and clicked verify diak and within 5 minutes it says the following
Incorrect number of file hard links
Checking catalog hierarchy.
Checking extended attributes file.
Checking volume bitmap.
Checking volume information.
The volume Mac Mini 10.8.3 was found corrupt and needs to be repaired.
Error: This disk needs to be repaired using the Recovery HD. Restart your computer, holding down the Command key and the R key until you see the Apple logo. When the OS X Utilities window appears, choose Disk Utility.
I really feel like I am in the deep end here, please can you explain to me what I do to get this sorted out step by step pleas ? as never had any problem with this computer since I bought it and dont really know what I am doing.
So I understand I need to press command and r key, once I have done that do I need to go back in to utilities and verify disk and repare permission, hope you can explain to me like Im stupid please :-) -
There seems to be a light purple spot on my iPod. It is not located on the screen but near the scroll wheel. It will not rub off. Also my back light is wigging out. I have it set on 2secs and have the brightness all the way down. This is to conserve battery life. Every time I take my iPod off of hold, the back light springs to life at full brightness then flickers for a while then going off. As I look at it now, the little lock icon does not show up when I put my iPod on lock. Can anyone help me?
I agree with epsilon delta and the others. Forums do seem to be the place where people come to look for answers or to ask questions.
I have had my 16GB 3GS for around 4-5 weeks now, when I first got it it had 3.0 on it, I was asked when I connected the iPhone to iTunes for the first time if I wanted to update the software to 3.1 which I did with no problems whatsoever. At a later date I updated to 3.1.2 and I have also had no problems whatsoever with this update too. I think you should update especially has 3.1.2 has been out a little bit now.
A bit of advice I would give is perhaps not update to the latest software version in the future straight away. What I do is wait a little while and keep checking back on this forum to see if there is any problems reported etc. But bear in mind like epsilon delta said:
'Taking into account the millions of iPhone users worldwide, the number of people reporting problems on this website is a very very small percentage' -
Quite suddenly several things have gone wrong with my itouch
I have refurbished iTouch 8GB we bought from Applestore. I got it last X-mas and everything was fine until now.
First, like others, my yahoo mail isn't working correctly in that it won't always send. I get a message that it doesn't recognize my password. I have to constantly manually re-enter my password to send. It is an intermittent problem. Probably Yahoo's fault from what I gather?
Next, even though I have everything set to start up iTunes when I connect the iTouch to my computer (a MAC), iPhoto starts up.
Next, synching with iTouch and ical is no longer working. I tried the method described in another forum, of deleting the contents on my computer and starting over, etc., but now I have double events of everything, and am still missing some things that I was missing before.
Also, my iTouch now defaults to my "work" calendar instead of "home" calendar when I enter an event. So I always have to manually enter "home" everytime I enter an event.
This has all occurred one right after the other in the last few weeks. Could it be an updated iTunes that is causing this? I tried looking up iTunes help but just get an endless "searchiing" signal and the spinning beachball on my computer.
Thanks!Although I cannot help solve all of your problems, I will do my best.
Yahoo mail problem: can't really help you with that. Although when iCloud opens up this fall, it may be easier to use an @me.com email adress.
iPhoto opens when you connect your iPod: Open iPhoto, then on the menu bar click "iPhoto", then click "preferences" when the windows appears, you will see "connected camera opens". Select "no application".
If you want your home calender selected by default, go to settings>mail, contacts, calenders> scroll down to the default calender option.
Good luck,
Matt -
After plugging my iPhone into my computer something happened to my phone that took seconds and now I cannot find my photos of my holiday. Where could they be and what was this that happened to my phone. I was not asked to do anything and nothing was said after it happened, it looked like an upgrade or a download not sure something ran across the the screen and that was that. I had approx 600 photos please help me.
1) ensure iTunes is authorized for your iTunes store account(s)
2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
3) sync the device
iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
above works for purchases from the iTunes store. for everything else, check out this post by Zevoneer. -
My reminders have gone wrong since uploading ios7
Since uploading ios7 my reminders were all wrong. So I wiped them to reset them. However now I can't set anymore. It doesn't look like it should when I open reminders it doesn't have date or any other options. It's very annoying as I use them to remind me to take medication. Anyone know what to do? I can't see anyway out help!
First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.
Did you tap on a blank line to create a new reminder? -
Pretty clear what happened: the so called upgrade wiped the bookmarks out and got rid of the VERY useful bookmarks bar. The window that now comes up is worthless and cumbersome. I need my bookmarks back. I looked in the profile for a possible second ff but there was only this one and I don't like it. I want the bookmarks bar back and my bookmarks back. What to do????
Firefox doesn't "lose" bookmarks during an update, and even if it did you should see the default bookmarks that come with Firefox. Plus, Firefox 4+ versions have ten bookmark backups stored in your Profile folder; Firefox 3.6 and earlier stored five backup files.
'''Were your bookmarks even being saved in Firefox, or maybe something like the Google Toolbar or a Yahoo Toolbar extension??''' <br />
Those two extensions haven't been updated for Firefox 5.0 ''(to the best of my knowledge, unless they were updated in the last couple of days)'', so those extensions would have been disabled during the update due to the lack of "compatibility".
To see if that is the case, open the Add-ons Manager tab - {Ctrl + Shft + A} - then open Extensions and see which extensions may have been disabled, they would appear at the bottom of that list and would be greyed-out.
Please check to see what extensions might be disabled. -
about 6 months ago i was trying to unlock my phone. my passcode for everything has always been the same 4 digits. i unlocked the phone twice in the space of 10 minutes to reply to text messages by the time id checked my phone again my passcode no longer worked. frustrated i tried the passcode over again unfortunately my younger sister got a hold of my phone and further locked me out. i purchased another phone and now have come across the old phone, i need to get the pictures off the disabled iphone3gs of mine. these photos are a must! i dont want anything else off the phone just the photos. unsure of what to do now as restoring the phone hasnt worked either!!!!!!!!!!!!!!!!!!!!!!
If you have an iTunes backup that includes the photos you may be able to extract them from the backup using a 3rd party utility such as http://www.wideanglesoftware.com/ibackupextractor/
-
Export Dimensions Have Gone Wrong
Hi All,
I was exporting a load of music samplers, just a simple JPEGs at 1400x1400px against a wav file, as found here.
http://www.youtube.com/watch?v=oZdm5o7C7_0&feature=related
For the last 3 done, for some reason it made the image all small on the Quicktime export, as seen here:
http://www.youtube.com/watch?v=DWLlbadoGN4&feature=related
I've started several new projects DV-NTSC48kHz (which is what I used initially, but still the same thing. The only thing I remember doing wrong was accidently exporting as 640x480, instead of 480x640, and then tested it again at the proper resolution. It's a Quicktime Export, and because it keeps happening for every new project created any audio/JPEG image combination, is there a more global setting I'm missing here?
Much appreciated
Digiman9999DV-NTSC is 720 x 480.
-
How do i find where my pictures have gone
i went to open I photos then it asked witch i photos i wanted to open to chose from i photos or in photos i clik on the first one and now all my photos have gone
Depress the option key and launch iPhoto - use the select library option and see how many iPhoto libraries you have and what is in them
LN
Maybe you are looking for
-
Setup wireless for external hard drive?
I know that this is not mentioned in the manual at all, but I wondered if I would be able to set up my external hard drive to the AirPort Express and have it transmit those files wirelessly. It's annoying having to drag the external drive around and
-
Are there any Lenovo X220 owners with IPS that don't notice ghosting?
I need to pull the trigger soon and have been watching all the posts about fan noise, throttling and IPS ghosting. Are there any users with an IPS screen who do not notice, or are not bothered by, ghosting on their IPS screen? I would prefer IPS for
-
I can't view my icloud emails from my 4s any more. I can log into incloud and view them though. Mt icloud credentials have already been added to my phone and I previously could view them. Any suggestions would greatly be appreciated.
-
is there going to an update on iOS 5 to fix the compatibility with the apps?
-
Feild status group realted question
hello, i am referring to some other compnay's quality box for reference, i find that they have enabled cost center required for thier inventory account grp , but all accnts in this grp are balance sheet as inventory is balance sheet accs i am not