Problem with an empty collection
When a procedure executes
FOR i IN g_tabla_situacion.FIRST..g_tabla_situacion.LAST
LOOP
END LOOP;
and g_tabla_situacion has no elements, ORACLE returns a
"*-6502:ORA-06502: PL/SQL: numeric or value error*"
How can I avoid this problem?
Now I am doing...
IF ( g_tabla_situacion.COUNT > 0 ) THEN
FOR i IN g_tabla_situacion.FIRST..g_tabla_situacion.LAST
LOOP
END LOOP;
END IF;
but it doesn't seem the best solution...
Thanks.
Edited by: pacoKAS on 19-feb-2010 0:34
pacoKAS wrote:
I was thinking in a solution that forces g_tabla_situacion.LAST to be lower than g_tabla_situacion.FIRST when I load g_tabla_situacion with no registers....Not sure what you mean, but if your collection is not dense (as in only these indexes are present: 1 - 2- 5) you will get an exception. The method that I showed you will always work correctly, regardless if the collection is Sparse (containing gaps) or if the collection doesn't contain any entries.
Similar Messages
-
I am having problems with my music collection, after burning all of my music to the computer I organized it into folders and placed it in the iTunes Folder. As of now i realize this was a mistake. Starting on a new computer now. I cant get my music to transfer from the itunes folder on the old computer? I keep getting error "Can't Read from the source file or disk." Whenever I got to folder properties its always checked read only. But when i play the song it works just fine. Im sure this is just because I added music into itunes folder but is there anyway to fix it?
WMA files are 'window media audio' files, which is a Microsoft format. If you want to add them to your iTunes library on your Mac then you will need to convert them into a compatible format first. If you still have your windows machine then iTunes for Windows can convert them from WMA to MP3 format : https://discussions.apple.com/message/24158701#24158701
Or try a search for, for example, 'convert wma to mp3' to find programs to convert them. -
Problem with a BAPI collecting dunning levels
Hello all experts,
I am having a problem with BAPI DebtorCreditAccount (called from a VB program), collecting dunning levels.
The BAPIs is called like follows (only the essential code is shown):
The first function (GetCustomerCurrentBalance) works fine but the second (GetCustomerHighestDunningLevel) doesnt work.
Public Function GetCustomerCurrentBalance(ByVal strCustomerID As String) As Decimal
Dim objARAccount, objReturn, objActualBalance As Object
Try
objARAccount = Me.p_sapBapi.GetSAPObject("ARAccount", "1000", Me.ConvertCustomerID(strCustomerID))
objARAccount.GetCurrentBalance(Return:=objReturn, ActualBalance:=objActualBalance)
Return CType(objActualBalance.Value("TOTAL_BAL"), Decimal)
Catch ex As Exception
Return 0
Finally
objARAccount = Nothing : objReturn = Nothing : objActualBalance = Nothing
End Try
End Function
Public Function GetCustomerHighestDunningLevel(ByVal strCustomerID As String) As Integer
Dim objDebtorCreditAccount, objReturn, objHighestDunningLevelD As Object
Dim objTEST1 As Object
Try
objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount", Me.ConvertCustomerID(strCustomerID), "0001")
objDebtorCreditAccount.GetHighestDunningLevel(Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD)
Return CType(objHighestDunningLevelD.Value("DUNN_LEVEL"), Integer)
Catch ex As Exception
Return 0
Finally
objDebtorCreditAccount = Nothing : objReturn = Nothing : objHighestDunningLevelD = Nothing
End Try
End Function
The error message I get is:
Message: The runtime object of type DebtorCreditAccount with the persistent key 00000480060001 could not be created in the Business Object Repository.
Message-Nr: 826
Workarea: OL
R/3 error message: Object does not exist
Please give me some input on how to proceed!
Best Regards,
NiklasThanks Vijaya for your fast reply. The parameters that I am giving as input are however correct.
I have investigated the problem a bit further and tried some other calls.
If I just chose to create an object of the type DebtorCreditAccount (without submitting any parameters) and then use the same method call as before (se code in topic above) I get the following error: Mandatory parameter HIGHESTDUNNINGLEVELA missing. This must mean that it knows that something is missing.
objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount")
objDebtorCreditAccount.GetHighestDunningLevel(Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD)
If if add the mandatory parameter HIGHESTDUNNINGLEVELA I get the error message "The persistent key for an business object instance of type DebtorCreditAccount has not been set. Cannot invoke method GETHIGHESTDUNNINGLEVEL. This I interpret as the object has not been right instantiated. This brings me back to square one.
objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount")
objDebtorCreditAccount.GetHighestDunningLevel(HIGHESTDUNNINGLEVELA:="0", Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD)
Grateful for a response!
Regards,
Niklas -
Contract - problem with attachements (empty field in LOIO_OBJID)
Hi Guys,
We are using extended classic scenario of SRM 4.0 (SRM Server 500) and our latest support package is SAPKIBKS12. We have the following problem with contracts.
Sometimes when an attachment is added to a contract the system does not fill the following fields in tabel BBP_PDATT.
LOIO_CLASS: Normally filled with BBP_L_DOC
LOIO_OBJID: Normaly filled with a GUID size datastring
Whenever this happens and later on the contract is changed and released the system will raise an abort. We tried the following notes but no good result.
891293,919467,932602,964065. Some other notes that might be possible are 1042826/1085700/1083063 but we also don't have good experience with these ones.
Can anyone give us advice about two things.
1) Is there a way to fill the empty fields in BBP_PDATT so that existing contract will work properly again?
2) Does anyone know why this problem occurs and how to fix it for new contracts?
Hope to hear from you,
ArieThankyou for the reply. I have made following changes but still not working. I am creating the inquiry and customer material is not getting populated. Please guide in resolving the issue.
DATA : W_ENQUIRY_ITEM_INX LIKE BAPISDITMX OCCURS 0 WITH HEADER LINE.
W_ENQUIRY_ITEM_INX-ITM_NUMBER = THEAD-ITEMNO.
W_ENQUIRY_ITEM_INX-UPDATEFLAG = 'X'.
W_ENQUIRY_ITEM_INX-CUST_MAT22 = 'X'.
APPEND W_ENQUIRY_ITEM_INX.
CALL FUNCTION 'BAPI_INQUIRY_CREATEFROMDATA2'
EXPORTING
SALESDOCUMENTIN =
INQUIRY_HEADER_IN = W_ENQUIRY_THEAD
IMPORTING
SALESDOCUMENT = W_NUMBER
TABLES
RETURN = W_RETURN
INQUIRY_ITEMS_IN = W_ENQUIRY_ITEM
INQUIRY_ITEMS_INX = W_ENQUIRY_ITEM_INX
INQUIRY_PARTNERS = T_INQUIRY_PARTNERS -
Problem with video garbage collection
I have problem with a cummulative memory issue. I have developed an air application that reproduces video when it is needed. Although my air process (myAir.exe) uses the same ammount of memory for days (stable, illustrating lack of development memory leak problems) the total system memory increases every time a video is being reproduced. Every time the video is stopped the memory used by this video is released but not completely resulting to a continuously increasing system memory. Is this a graphics card problem, an OS graphics garbage collection problem or an air development problem! Has anyone ever had a similar problem? Every response would be helpful.
Thank you in advance.Just a question ..??.. as a result of this dbconn getting freed before method ends , are you getting resultsetclosed error ?..
-
Strange problem with Outlets and Collection View Items
This is a strange issue. I am using XCode 3.2.2 and I am building a Collection View. To do this I have a non-document based application that uses Core Data.
*Collection View Item Class*
I created a new class that inherits NSCollectionViewItem and built it to have an outlet to the Label.
*Collection View Item NIB*
I created a Empty NIB for my Collection View Item. To the NIB I added a Custom View object and set the Class Identity to NSBox. I then added a Label to the new NSBox. I changed the File Owner to the new class and connected the "view" outlet to the new NSBox and the Label to the label outlet.
*Main Menu NIB*
I added a new NSCollectionViewItem object to the Main Menu NIB and set the Class Identity to the new class mentioned above. I then set the NIB Name to the name of the NIB mentioned above. In the window I added a NSCollectionView then set its Item Prototype to the new NSCollectionViewItem object I just configured. This is the typical way to set up a collection view with its item in a different NIB.
*Back to the problem*
Everything seem to work well except that in the setRepresentativeObject in the Collection View Item class when it attempts to set the Label to a value. Nothing happens. When I check closely I find that the Label is coming back nil. It is properly linked. I deleted everything and rebuilt the collection view item and relinked everything without success.
*How I made it work but not happy with it*
I have finally made this work by simply putting the line "[self view];" just before I attempt to run "[label setStringValue:name];". If I remark out the "[self view];" the label returns nil. I have a note near the line to make it easier to spot. It seems that I should not need to access the superclass's "view" accessor just to access one of view's subviews. Is this a bug or have I written this wrong?
The Collection View Item code is below. Any help is appreciated.
Thanks,
Rob
#import <Cocoa/Cocoa.h>
#import "PersonManagedObject.h"
@interface PersonSelectionViewItem : NSCollectionViewItem {
NSTextField *label;
#pragma mark Finalizers
- (void)dealloc;
#pragma mark Outlets
@property (nonatomic, assign) IBOutlet NSTextField *label;
#pragma mark Instance Methods
- (void)configureKeyValueObserving;
- (void)removeKeyValueObserving;
#pragma mark Overrides
- (void)setRepresentedObject:(id)representedObject;
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context;
@end
#import "PersonSelectionViewItem.h"
@implementation PersonSelectionViewItem
#pragma mark Finalizers
- (void)dealloc{
[self removeKeyValueObserving];
[super dealloc];
#pragma mark Outlets
@synthesize name;
#pragma mark Instance Methods
- (void)configureKeyValueObserving{
PersonManagedObject *person = (PersonManagedObject *)[self representedObject];
[person addObserver:self forKeyPath:@"lastNameFirstName" options:0 context:NULL];
- (void)removeKeyValueObserving{
PersonManagedObject *person = (PersonManagedObject *)[self representedObject];
[person removeObserver:self forKeyPath:@"lastNameFirstName"];
#pragma mark Overrides
- (void)setRepresentedObject:(id)representedObject{
[super setRepresentedObject:representedObject];
NSString *personName = (NSString *)[representedObject valueForKey:@"lastNameFirstName"];
[self view]; //<---Without this line the "label" variable 2 lines down will be nil.
if (personName) {
[label setStringValue:personName];
[self configureKeyValueObserving];
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context{
if ([keyPath isEqualToString:@"lastNameFirstName"]) {
[[self label]setStringValue:[object valueForKey:@"lastNameFirstName"]];
} else {
[super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
@endI think you must be correct. I just ran into the problem again in yet another NIB. It was in the setRepresentedObject method. I simply put in the same line "\[self view\]" just before I needed to set the value of the view component and it worked again. If it is the same in other components I guess I just need to pay attention to it. Thanks for the information.
Message was edited by: Cycles4Fun -
Problem with LR4 Smart Collections
I have set up a set of smart collections to aid in my work flow. This is how I wish for it to work. Problem is that the photos will not move down thur the workflow. I also want to drag my newly imported photos to workflow collection set to begin the process.
000 Workflow (Collection Set)
100 Pick Flag [P] [X] - Condition: Pick Flag is Flagged
200 Metadata - Condition: Pick Flagged is flagged
Label Color is red
Metadata Status is unknown
300 Star Rating Condition: Rating is 2 or more stars
400 Keywording Condition: Picked Flag is Flagged
Label Color Is red
Rating is 2 or more stars
Keywords are empty
500 Start Rework Condition: Keywords aren't empty
Lable is green
Has Adjustments is false
600 Finished Rework Condition: Has Adjustment is true
Label Color is blue
700 Trash Condition: Pick flag is reject
001 Disposition (Collection Set)
Deviant Art Condition: Job is Deviant Art
Fan Art Condition: Job is Fan Art
Photoshelter Condition: Job is Photoshelter
My Web Site Condition: Job is My Web
See Me Condition: Job is See Me
Keep Condition Job is Keep
I took the time to list everything like this so that I hope everybody can understand my madness.Thanks for the reply. No I haven't see your workflow smart collections, I would like to see them. Where can I see them. As to the movement of my photos. I guess I mean that once I have completed a step I want the photo to move to the next step set by the conditions of the smart collection and so on till all photos are ready to be disbursed. I hope that helps.
Mike -
Problem with CS6 Master collection on iMac
Hi .
The installer for CS6 Master Collection (Site Licence) will not accept the serial no on a iMac
I have run the adobe cleaner and cleared all Adobe products off the mac.
I have run ONYX and fixed all it could fix re permissions etc and HD problems (none)
The OS version is 10.6.8 and latest updates as of yesterday.
The install and serial no work fine on all other 19 Macs same configuration
There are no adobe products showing up in applications or Utilities
Network connection is fine.
Any suggestions please ?Hi sheamusmac ,
Please refer the mentioned kb: http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html .
Regards,
Romit Sinha -
Problem with CS3 Master Collection on new Box & WinXP
I just got a new computer, specs given bellow, that I just installed CS3 Master Collection. The installation was reported as successful but when I try to run any of the CS3 programs (Flash, Photoshop, etc) the process starts (I checked this with Widows Task Manager/Process) but then nothing happens at all. I haven't been able to find anything like this phenomenon with Google searches so I'm now posting here.
Sys Specs:
AMD A10-6800K APU with Radeon HD Graphics
4.09 GHz, 2.21 GB Ram
500 GB HD with 166G Free space after CS3 installation.Motherboard is a A55M-E33
Message was edited by: James DanielTry running the Creative Suite Cleaner Tool, and then try installing again.
-
Problem with CS4 Master Collection Install
Have tried repeatedly to install CS4 Master Collection on an HP laptop running Microsoft Vista to no avail. I have uninstalled all previous attempts to install, run cleaner, deleted temp file stuff, rebooted ad nauseum etc. Originally, I was receiving a 1603 error code for all major programs: Photoshop, AI, etc. Now, I get a set up error: "set up has encountered an error and cannot continue. Contact Adobe Support." At this point, I have spent days trying to resolve this problem. Please help.
Since you mention Error 1603 you might try going thru the page linked below...
Error 1603: A fatal error occurred during installation -
Problem with Embedded Files/Collections
I have written a Pdf file (fragments below) to act a container to other pdf's. Initialy it all looks good, however when I click on the embedded file inside Acrobat Reader instead of displaying the contents I get a thumbnail of the acrobat logo with the Open and Save options underneath. If I click open it opens a new Reader window with the container file displayed again, not the embedded file. However if I click save it saves the embedded file down to disk correctly.
How can I make it so that when the file is clicked in the attachments window it opens directly into the main reader window?
5 0 obj
<<
/Params <<
/Size 5298
/ModDate (D:20081002163423+01)
/CreationDate (D:20081002163423+01)
>>
/Length 5298
/Type /EmbeddedFile
/Subtype /application#2Fpdf
>>
stream
endstream
endobj
6 0 obj
<<
/Type /Filespec
/EF <<
/F 5 0 R
>>
/F (Options Report.pdf)
/Desc (Options Report)
>>
endobj
7 0 obj
<<
/Type /Catalog
/Pages 8 0 R
/OpenAction[4 0 R /Fit]
/Names << /EmbeddedFiles 9 0 R >>
/Collection <</Type /Collection /View /T>>
>>
endobj
9 0 obj
<< /Names [ (Options Report) 6 0 R ]
>>
endobjLeonard, I have uploaded the completed file to http://forum.planetpdf.com/webboard/wbpx.dll/~planetpdfforum/read?167447,3
I could not see how to upload files to this forum.
As stated above the file opens in Acrobat Reader v7 to the cover page, and allows the embedded files to be opened in seperate application windows, as it does in version 9. However under Acrobat Reader v8 when an embedded document is opened it just re-opens at the package level, not the embedded doc.
Thank you in advance if you can look at this. -
Hello All,
Please refer to following link where I provided the messaging Queues.
http://farm4.static.flickr.com/3486/3882733944_1c74be83f7_o.jpg
Basically the problem is when the value is sent to target it comes like...
After remove Contexts:
SUPPRESS
1234
SUPPRESS
After SplitByValue
null
1234
SUPPRESS
So the node is not creating the field at all in the target as there is null in the begining.
I tried by
1. Changing contexts with different combinations.
2. wrote a UDF to get rid of null in the begining. It dint work
help.
Venkat.Thanks Luis.
I tried with mapWithDefaults earlier but it was changing the null to SUPPRESS but no change in the target field output ( i.e it is still not coming )
Can someone please tell me how to do I get rid of null in the output?
null
12345.23
SUPPRESS
Output:
12345.23
It should also work for following....
null
123455.24
434567.23
345654.23
SUPPRESS
Output :
first structure : 123455.24
Second structure: 434567.23
Third structure: 345654.23
Venkat. -
Problem with creating a collection from query
This is driving me nuts. What I am trying to do is create a collection but the sql to create it is produced dynamically. The query I want to end up with in this example is -
select pr.code,pr.description, max(decode(pe.period_beginning,'01-NOV-08',fe.effort,0)) NOV_08,1 NOV_08_PERIOD_ID, max(decode(pe.period_beginning,'01-DEC-08',fe.effort,0)) DEC_08,21 DEC_08_PERIOD_ID, max(decode(pe.period_beginning,'01-JAN-09',fe.effort,0)) JAN_09,22 JAN_09_PERIOD_ID, max(decode(pe.period_beginning,'01-FEB-09',fe.effort,0)) FEB_09,41 FEB_09_PERIOD_ID, max(decode(pe.period_beginning,'01-MAR-09',fe.effort,0)) MAR_09,81 MAR_09_PERIOD_ID from forecast_projects pr,forecast_periods pe,forecast_effort fe
where pr.id=fe.project_id(+)
and pe.id(+)=fe.period_id group by pr.code,pr.description order by pr.code
but the list of dates within single quotes are derived from some pl/sql which pulls them from a table.
So my pl/sql looks like this -
begin
if apex_collection.collection_exists(p_collection_name=>'KEANEFORECAST') then
apex_collection.delete_collection(p_collection_name=>'KEANEFORECAST');
end if;
declare
l_period date;
l_period_id number := 0;
l_query varchar2(1400) := '';
l_query_start varchar2(1400) := 'select pr.code,pr.description,';
l_query_part1 varchar2(1400) := ' max(decode(pe.period_beginning,''';
l_query_part2 varchar2(1400) := ''',fe.effort,0)) ';
l_query_end varchar2(1400) := ' from forecast_projects pr,forecast_periods pe,forecast_effort fe
where pr.id=fe.project_id(+)
and pe.id(+)=fe.period_id group by pr.code,pr.description order by pr.code';
begin
for c1 in (
select id,period_beginning into l_period_id,l_period
from forecast_periods order by 1) loop
l_query := l_query || l_query_part1 || c1.period_beginning || l_query_part2 ||
replace(substr(c1.period_beginning,4),'-','_') || ',' || c1.id || ' ' ||
replace(substr(c1.period_beginning,4),'-','_') || '_PERIOD_ID,';
end loop;
l_query := substr(l_query,0,length(l_query)-1);
l_query := l_query_start || l_query || l_query_end;
dbms_output.put_line(l_query);
apex_collection.create_collection_from_query(
p_collection_name=>'KEANEFORECAST',
p_query=> l_query);
end;
end;
Now what happens is that the query is produced perfectly - the dbms_output.put_line gives me the exact query as quoted at the top of my posting, and if I run it I get the desired results. If I run this whole block of pl/sql it also works absolutely fine and my collection is created - great.
However if I put this pl/sql into an onLoad Before Header block then when I try to run the page I get the following -
ORA-20104: create_collection_from_query Error:ORA-20104: create_collection_from_query ParseErr:ORA-00923: FROM keyword not found where expected
I think it is getting in a mess with the quotes in the query, but I do not know why and I have been racking my brains to think of a workaround. It's odd that it works fine if I run it standalone in the SQL Commands tab but not as a page process.
I'd be really grateful for any advice/pointers here.
Thanks in advance.You are an absolute star - thank you! What this enabled me to do was to see the query being produced - which was showing it different to that which dbms_output.put_line reported - no idea why this should be. Anyway this allowed me to correct a couple of things which then enabled it all to work.
The thing that showed as different was the representation of a date field - dbms_output.put_Line was showing this in DD-MON-YYYY format whereas the debug showed it with a timestamp portion.
Thank you again. -
Problem with access site collection in metadata
Hello,
I have question I enabled almost all publishing feature and I don't why I cant get Site collection Access in metadata I searched every where how to get that bar plz .
Best Regards,
AyeshHi Ayesh,
Per my test, it seems that the Site Collection Access is only available for the local group of that site collection which is used to store the site collection local term sets.
To make the site collection local group available, please refer to the steps in the link below:
http://www.dotnetsharepoint.com/2013/10/how-to-get-site-collection-local-term.html#.U-PVOvmSyd5
After that, you will see the Site Collection Access when you click the group in Term Store Management.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Problem with secure empty trash
I'm having trouble to secure empty trash. So basically I have a hard drive plugged in and because the space is getting really little I wanted to empty the trash so that I would have more space in the hard drive. But everytime I'm in the middle of the process it is never done because "The operation can’t be completed because you don’t have permission to access some of the items.". I tried to go to the disk utility to change the permission but the option is unavailable. Can someone please help me out? There's only 16GB left in my hard drive and I really need more space since it's storing too much trash right now. Thanks!
p.s. my hard drive is 320 GB spectra flash.Please see my other post of the same nature.
Thanks to Hypen, WMP is GONE GONE GONE
Maybe you are looking for
-
Creation of Plant in IS-Retail
Dear all, We have IS-RETAIL system operative and we would like to create a new company code and plant which is not into IS-Retail . We need to create a new plant which should work for ERP and not for IS-Retail. I have changed the site profile to empt
-
Flash player controls disappear
I have inserted a flash movie in my web site. The controls disappear when you move the cursor away from the movie. Is there a way to make the controls stay visible all the time? DD
-
I have a repeatable crash on Solaris Sparc 32 bit. I use a table created by CREATE TABLE "IAN"."PICDAR_MANIFEST" ( "OBJECT_NAME" VARCHAR2(64 BYTE), "OBJECT_TYPE" VARCHAR2(10 BYTE), "COUNT" NUMBER, "FILE_NAME" VARCHAR2(32 BYTE),
-
Complex data model question regarding master data
Hi Experts, I have a requirement to add master data retail price and master data cost into BW. Both amounts are based on plant and material. How do I model this? Here is how the records are coming in via the datasource: Plant Material UofM Co
-
Certainly is a minor question, but an advise is always helpfull! To get the final size of the picture, in my case A3 o A3+, from a D 700 NEF, it is better to use ACR interpolation before to open the image in CS5 or open the file at native size and th